MOPCON
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 那些年我參與智慧電網相關專案血淚史 - 李昀陞 {%hackmd rG6pzIawQKe5cHU4rycgYg %} [投影片](https://slides.com/peter279k/mopcon-2020) ## 講者介紹 **Peter** GitHub 活躍開源開發者 - Active open source contributor - LaravelConf Taiwan Member - An associate engineer - DevOps - Back-end - System Architecture Research - Web Application Security - PHP, Python and JavaScript - Smart Grid technology (2017~) - Slide:https://slides.com/peter279k/mopcon-2020 ## 臺灣智慧電網 Smart Grid - 法規制度 - 產業發展 - 資通訊基礎建設 - 發電調度 為多方領域匯集的領域 輸電配電售電 ### What is Smart Grid? - 龐大複雜的電網整合系統 - 各國依照電力系統狀況,發展涵蓋不同的重點 ### Introduction to Demand Response System 1. 需量競價措施 - 管理電力需求的一種方法,開放用戶把節省的電力賣回電力公司 - 是指電力系統高載時期 - 開放用戶把節省下來的電賣回給電力公司由用戶出價競標,電力公司則採愈低報價者先 - 得標方式決定得標者,若得標者於抑低用電期間確實減少用電量,則可獲得電費扣減 2. 接手需量競價平台 - 沒有文件,只有程式碼(沒有完整記錄) - 每天被 PM 追殺 - 系統時常不穩定 - 系統平台前後端有很多隱藏的Bug - 連個系統架構圖都沒有 3. 識別主要問題 - 從開發角度 - 一定要有 issue tracking - Git Workflows Selecting - [GitHub Workflow](https://www.atlassian.com/git/tutorials/making-a-pull-request) - 從系統角度來看 - System Architecture - Network - Data Exchanging - Demand Response System Architecture(Original Data Exchanging) - Data Parsing - Data Exchanging - Database backup - 資料交換後寫不進去 - df -lh - VPS 主機硬碟滿了? - 因為 MySql Dump 指令備份資料儲存在 local 端 - du -h /data |sort -g - ./backup/databases - System Monitoring - 使用 SQL 語法獲得 DB 的健康狀況 - 不用記錄健康狀況 - System Reliability & System Maintainability - 利用 Agent 既有的 Legacy 系統架構上進行監控 - 最終進入維護模式 ### 用這麼多程式語言目的 資料解析 -> 讀檔與解析 資料交換 -> HTTP 請求 >發現其實單一語言就可以解決上述問題 >有些既有的資料交換程式是半殘的 >許多交換步驟甚至是半手動 **過多程式語言反而讓系統更加複雜** ### 用戶開票系統 - NBS NBS new billing system ## Introduction to CIM and Smart Grid - CIM - Common infromation Model - 通用信息模型 - 訊息格式與方法可以標準化 - IEC - 國際電工協會 - 想像成是IEFT RFC - 大約1991 found DR System with no IEC Standards 轉變成 -> CIM System ### CIM System Architecture - Containerize SOAP Adapter - 簡單物件選取協定 ### IEC-62325 with SOAP - 機組六段式機組報價 - SOAP develop = SOAP header + SOAP body ## CIM System DevOps 1. SOAP push to bitBucket 2. bitBucket ci to circleci 3. bitBucket hook to slack ### Introduction to Load Characteristic Analysis System - 需量競價負載分析系統 - 加入資料科學,整合系統功能 - 無法直接存取用戶服務數據大平台 - 中間卡個 SAS,SAS 送資料到 FTP Server - 無法資料流監控問題 - 合作的廠商負責用 SAS 串接但不做資料監控 - PM 時常追殺:資料倉儲所儲存的原始資料有問題 ### CI/CD >教練 我想自動部署 > [name=Speaker] ## 總結 - 專案應該要 issue 化,可追蹤化 - 交換資料或擷取資料都要有管線 - 設計任何系統 - Think twice - 任何系統都要有 log 與監控 - 被 PM 追殺時才可以馬上知道問題 - 將系統容器化在離線部署上會較方便 ###### tags: `MOPCON 2020`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully