Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
如何運用 ChatGPT 徹底解放 SRE
Search
robersonliou
April 01, 2023
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
如何運用 ChatGPT 徹底解放 SRE
近期 ChatGPT 掀起了一波科技熱潮,也對軟體工程師帶來不小的震撼!在這個議程中,我將以 SRE 的角色出發,分享如何運用 ChatGPT, 提高 SRE 日常工作的效率和生產力。
robersonliou
April 01, 2023
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
A Soul's Torment
seathinner
8
3.8k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
Building an army of robots
kneath
307
47k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
440
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
The Invisible Side of Design
smashingmag
301
52k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Building Adaptive Systems
keathley
44
3.3k
Transcript
https://mvc.tw 歡迎參加我們的每週四固定聚會 如何運用 ChatGPT 徹底解放 SRE Roberson Liou
https://mvc.tw About ▪ SRE Manager / MAYO ▪ 微軟最有價值專家 ▪
twMVC 核心成員 ▪ DevOps Taiwan 志工 ▪ BLOG - 工程良田的小球場 p.2
https://mvc.tw Outline ▪ 基本介紹 ▪ 使用情境 ▪ 火力展示 p.3
https://mvc.tw 基本介紹 4
https://mvc.tw 何謂 ChatGPT ▪ Chat Generative Pre-trained Transformer ▪ 由
OpenAI 於 2022.11 推出 ▪ 兩個月後使用者破億 ▪ 有 GPT3.5 / GPT4.0 兩個版本 p.5
https://mvc.tw ChatGPT 擅⾧做什麼 ▪ 內容生成(Content Generation) ▪ 非結構化資料處理(Data Prompt) ▪
程式碼生成(Codex) p.6
https://mvc.tw ChatGPT 有什麼限制 ▪ 最新資料時間為 2021.9 ▪ 輸入⾧度不能超過 2048 Token
▪ 1 Token 約等於 ▪ 4 個英文字母 ▪ 2 個中文字 p.7
https://mvc.tw SRE 的守備範圍 p.8 https://blog.bytebytego.com/p/ep-52-devops-vs-sre-vs-platform-engineering
https://mvc.tw ChatGPT for SRE 的適用場景 ▪ 自動化(Automation) ▪ 腳本撰寫(Scripting) ▪
問題排除(Troubleshoot) ▪ 事件報告(Incident Report) p.9
https://mvc.tw SRE 該如何使用 ChatGPT ▪ 不要期待完全正確的答案 ▪ 透過 Pair 來快速迭代出正確答案
▪ 主動挖掘哪些服務可以使用結構化來描述 ▪ EX: JSON / YAML / DSL / Code ▪ 多運用轉換的技巧進行提問 ▪ Powershell → Bash ▪ Terraform → Pulumi p.10
https://mvc.tw SRE x ChatGPT p.11
https://mvc.tw ChatGPT Prompts ▪ 模糊的問題就會得到模糊的答案 ▪ 產生㇐段佈署 Azure 網站的 Terraform
▪ 盡可能賦予情境、條件限制及提供範例 ▪ (情境)產生㇐段佈署 Azure App Service 的 Terraform 腳本 ▪ (條件)機器 sku 必須為 S1,並預設關閉 FTPS 功能 ▪ 反覆詢問可以提高正確率 p.12
https://mvc.tw 使用情境 13
https://mvc.tw CI/CD – Azure DevOps ▪ 產生 Pipeline YAML 範例
▪ Pipeline 的拆解與重構 ▪ Job / Stage / Step 的轉換 ▪ 抽取 YAML Template ▪ 降低平台的轉換成本 ▪ Azure Pipelines → GitHub Actions p.14
https://mvc.tw Infrastructure as Code - Terraform ▪ 依環境需求產生程式碼範例 ▪ 要注意語法版本問題
▪ 給定變數結構反向生成程式碼 ▪ tfvars -> variables.tf ▪ variables.tf -> main.tf p.15
https://mvc.tw 事件報告 ▪ 提供完整的事件發生時間軸 ▪ 請 ChatGPT 產生報告大綱 ▪ 事件描述
▪ 影響範圍 ▪ 改善計畫 p.16
https://mvc.tw Mermaid p.17
https://mvc.tw 火力展示 18 https://github.com/robersonliou/playground-chatgpt
https://mvc.tw 總結 p.19 100% 完 成 度 80%
https://mvc.tw