åè : https://sre.google/sre-book/table-of-contents/
SREã£ã¦ä½?
SREèªçã®çµç·¯
æ´å²çã«ãä¼æ¥ã¯è¤éãªã³ã³ãã¥ã¼ãã£ã³ã° ã·ã¹ãã ãå®è¡ããããã«ã·ã¹ãã 管çè ãéç¨ãã¦ãã¾ããã ã·ã¹ã¢ãã¨ãå¼ã°ãããã®å½¹è·ã¯ããµã¼ãã¹ãéç¨ããã¤ãã³ããçºçããããã¤ãã³ãã«å¿ãã¦ã¢ãããã¼ããå¿ è¦ã«ãªããã³ã«å¯¾å¦ãã¾ãã
ã·ã¹ãã 管çè ã®å½¹å²ã«ã¯ã製åã®éçºè ã«æ±ããããã¹ãã« ã»ããã¨ã¯èããç°ãªãã¹ãã« ã»ãããæ±ãããããããéçºè ã¨ã·ã¹ãã 管çè ã¯ãéçºãã¨ãéç¨ãã¾ãã¯ãopsãã¨ããå¥ã ã®ãã¼ã ã«åå²ããã¦ããç¶æ ã§ãã
ãããããã®éçºè ã¨ã·ã¹ãã 管çè ã¨ããå½¹å²åæ ã¯ã大ããªåé¡ãããã¾ãã
ä¸ã¤ã¯ãã·ã¹ãã 管çè ã¯æä½æ¥ãä¸å¿ã¨ãªã£ã¦ãããããã·ã¹ãã ã大ãããªãã«ã¤ãã¦ãå¿ è¦ã¨ãªã人æ°ãå¢ãã¦ããã¨ãããã¨ã§ãã ããä¸ã¤ã¯ãéçºè ã¨ã·ã¹ãã 管çè ã®éã«çºçããå¿çç/æè¡çãªæºã§ãã
- éçºè ã¯ããã¤ã§ããæ¯éãªãä½ã§ããªãªã¼ã¹ããããã¨ããè¦æ±ãæã£ã¦ãã¾ã
- ã·ã¹ãã 管çè ã¯ãããã£ããã·ã¹ãã ãæ©è½ãããã絶対ã«ä½ãå¤æ´ããããªããã¨ããè¦æ±ãæã£ã¦ãã¾ã
ã»ã¨ãã©ã®é害ã¯ãæ°ããæ§æãæ°æ©è½ã®ãªãªã¼ã¹ãæ°ããã¿ã¤ãã®ã¦ã¼ã¶ã¼ ãã©ãã£ãã¯ãªã©ãä½ããã®å¤æ´ã«ãã£ã¦çºçããããã2 ã¤ã®ãã¼ã ã®ç®æ¨ã¯æ ¹æ¬çã«å¯¾ç«ãã¦ãã¾ãã®ã§ãã
Googleã¯ã©ã®ããã«ãã®åé¡ã«å¯¾å¿ããã®ãï¼
SRE ã¨ã¯ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã«éç¨ãã¼ã ã®è¨è¨ãä¾é ¼ããã¨ãã«èµ·ãããã¨ã§ãã
GOogleã®éç¨ãã¼ã ã¯ã以ä¸ã®å²åã§æ§æããã¦ãã¾ããã
- 50ï½60% 㯠Google ã½ããã¦ã§ã¢ ã¨ã³ã¸ãã¢ãããæ£ç¢ºã«ã¯ Google ã½ããã¦ã§ã¢ ã¨ã³ã¸ãã¢ã®æ¨æºæé ã§æ¡ç¨ããã人ã ã§ãã
- 40ï½50% ã¯ãGoogle ã½ããã¦ã§ã¢ ã¨ã³ã¸ãã¢ãªã³ã°ã®è³æ ¼ (å¿ è¦ãªã¹ãã« ã»ããã® 85ï½99%) ã«é常ã«è¿ãåè£è ã§ãããããã«SRE ã«ã¯å½¹ç«ã¤ãã®ã®ã»ã¨ãã©ã®ã½ããã¦ã§ã¢ ã¨ã³ã¸ãã¢ã«ã¯çããæè¡ã¹ãã« ã»ãããæã£ã¦ãã¾ãã(UNIXã·ã¹ãã ã®å é¨ã¨ãããã¯ã¼ã¯ã®è©³ç´°)
SRE ã«å ±éããã®ã¯ãè¤éãªåé¡ã解決ããã½ããã¦ã§ã¢ ã·ã¹ãã ãéçºããã¨ãã信念ã¨é©æ§ã§ãã
SRE ã®æ¡ç¨ã«å¯¾ããå½ç¤¾ã®ã¢ããã¼ãã®çµæã(a) æä½æ¥ã§ã¿ã¹ã¯ãå®è¡ãããã¨ã«ããã«é£½ãã¦ãã¾ãã(b) è¤éãªã½ãªã¥ã¼ã·ã§ã³ã§ãã£ã¦ãã以åã®æä½æ¥ã«ä»£ããã½ããã¦ã§ã¢ãä½æããããã«å¿ è¦ãªã¹ãã«ã»ãããæã¤äººã ã§æ§æããããã¼ã ãèªçãã¾ããã
SREã¯ä½ããã¦ããã®ã?
- ãã¹ã¦ã® SRE ã®ãéç¨ãä½æ¥ (ãã±ããããªã³ã³ã¼ã«ãæåã¿ã¹ã¯ãªã©) ã®åè¨ã« 50% ã®ä¸éãè¨ãã¦ãã¾ãããã®ä¸éã«ãããSRE ãã¼ã ã¯ãµã¼ãã¹ãå®å®ãã¦éç¨å¯è½ã«ããã®ã«ååãªæéãã¹ã±ã¸ã¥ã¼ã«ã«ç¢ºä¿ã§ãã¾ãã
- SRE ãã¼ã ã¯æ®ãã® 50% ã®æéãå®éã®éçºã«è²»ããå¿ è¦ãããã¾ãã
ãã®ããã«ãSREãã¼ã ã¯éç¨ä½æ¥ãå®è¡ãã¤ã¤ãéç¨ãèªååããããã®éçºãè¡ããã¨ã§ããµã¼ãã¹ãæ¡å¤§ããå ´åã§ã人æ°ãå¢ãããã«å¯¾å¿ãã§ããã®ã§ãã
SREã®ç®æ¨
ã¨ã³ã¸ãã¢ãªã³ã°ã¸ã®æ³¨å
åæã¨ãã¦ãSREãè¡ãéç¨ä½æ¥ã®éã¯ã常ã«ã¢ãã¿ãªã³ã°ããã¦ãã¾ãã ããã¦ãå ¨ä½æ¥ã®å²åã®ãã¡50%以ä¸ã«ãªãããã«ç®¡çããã¦ãã¾ãã
SREãå¤åãã8æéãã12æéã®ãã¡ãä¸åº¦ã®ãªã³ã³ã¼ã«ã·ããã®éã«åããã¤ãã³ãã¯å¹³åãã¦2ã¤ã§ãã ãã®éãç®å®ã¨ããã¨ãã¤ãã³ãã®æ£ç¢ºãªå¦çã«å ãã¦ã¯ãªã¼ã³ã¢ããã¨ãµã¼ãã¹ã®ãªã¹ãã¢ããã¹ãã¢ã¼ãã ã¸ã®åãçµã¿ã¸ã®æéã®ç¢ºä¿ãå¯è½ã§ãã
ãµã¼ãã¹ã®SLOã確ä¿ãã¤ã¤ãå¤æ´ã®é度ãæ大åãã
DevOpsã«ã¯ä¸¡è ã®éã«å¯¾ç«ãããã¾ããããããã¯ã¤ããã¼ã·ã§ã³ã®ãã¼ã¹ã¨è£½åã®å®å®æ§ã®ãã¬ã¼ããªããçºçãããã¨ã«ãããã®ã§ãã SRE ã§ã¯ããã®å¯¾ç«ã ã¨ã©ã¼ãã¸ã§ãã ãå°å ¥ãã¦è§£æ±ºãã¾ãã
ã¨ã©ã¼ ãã¸ã§ããã¯å¯ç¨æ§ç®æ¨ãã 1 ãå¼ããå¤ã«ãªãã¾ãã 99.99% ã®å¯ç¨æ§ããããµã¼ãã¹ã¯ã0.01%ãã¨ã©ã¼ãã¸ã§ããã§ãã äºç®ã使ãéããªãéããSREãã¼ã ã¯ãã®ã¨ã©ã¼ãã¸ã§ããã好ããªãã¨ã«ä½¿ããã¨ãã§ãã¾ãã
éçºãã¼ã ã¯ãæ©è½ããªãªã¼ã¹ãã¦æ°ããã¦ã¼ã¶ã¼ãå¼ãä»ãããã¨èãã¦ãã¾ããã ãªãªã¼ã¹ãã製åã«ãªã¹ã¯ãè² ã£ã¦ã¨ã©ã¼ ãã¸ã§ããã®ãã¹ã¦ã使ããã¨ãçæ³ã§ãã
ã¾ããSREãã¼ã ã«ã¨ã£ã¦ããã®æ´»åããã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦å°å
¥ãã¦ãããã¨ã§ãã¨ã©ã¼ãã¸ã§ãããç¯ç´ãããã¨èãå§ãã¾ãã
ãã®èããã段éçãã¼ã«ã¢ã¦ãã 1%experiment
ã«ã¤ãªããã®ã§ãã
ã¢ãã¿ãªã³ã°
- ç£è¦ã®å¾æ¥åã§ä¸è¬çãªã¢ããã¼ãã¯ãç¹å®ã®å¤ã¾ãã¯ç¶æ ãç£è¦ãããã®å¤ãè¶ ããããã®ç¶æ ãçºçãããããã¨ãã«é»åã¡ã¼ã« ã¢ã©ã¼ããããªã¬ã¼ãããã¨ã§ãã ãããããã®ã¿ã¤ãã®é»åã¡ã¼ã« ã¢ã©ã¼ãã¯å¹æçãªã½ãªã¥ã¼ã·ã§ã³ã§ã¯ããã¾ããã人éãé»åã¡ã¼ã«ãèªãã§ãããã«å¿ãã¦ä½ããã®ã¢ã¯ã·ã§ã³ãå®è¡ããå¿ è¦ããããã©ãããå¤æããå¿ è¦ãããã·ã¹ãã ã«ã¯ãæ ¹æ¬çãªæ¬ é¥ãããã¾ãã
- SREã«ãããã¢ãã¿ãªã³ã°ã§ã¯ãã½ããã¦ã§ã¢ã解éãè¡ãã人éã¯ã¢ã¯ã·ã§ã³ãå®è¡ããå¿ è¦ãããå ´åã«ã®ã¿éç¥ãåããå¿ è¦ãããã¾ãã
æå¹ãªã¢ãã¿ãªã³ã°ã®ã¢ã¦ããããã«ã¯æ¬¡ã® 3 種é¡ãããã¾ãã
- ã¬ãã« hight : ã¢ã©ã¼ã
- ç¶æ³ãæ¹åããããã«ãç¾å¨èµ·ãã£ã¦ãããã¾ãã¯ããããèµ·ãããã¨ãã¦ããä½ãã«å¯¾ãã¦äººéãç´ã¡ã«è¡åãèµ·ããå¿ è¦ããããã¨ã示ãã¾ãã
- ã¬ãã« middle : ãã±ãã
- 人éãè¡åãèµ·ããå¿ è¦ãããããããã«è¡åãèµ·ããå¿ è¦ã¯ãªããã¨ã示ãã¾ããã·ã¹ãã ã¯ç¶æ³ãèªåçã«å¦çãããã¨ã¯ã§ãã¾ãããã人éãæ°æ¥ä»¥å ã«è¡åãèµ·ããã°ã被害ã¯çºçãã¾ããã
- ã¬ãã« low : ãã°
- ãã®æ å ±ãè¦ãå¿ è¦ã®ãã人ã¯ãã¾ãããã診æãæ³å»å¦ã®ç®çã§è¨é²ããã¾ããä½ãä»ã®çç±ã§ãã°ãèªãããã«æ示ãããªãéãã誰ããã°ãèªã¾ãªããã¨ãäºæ³ããã¾ãã
ã¤ã³ã·ãã³ã対å¿
以ä¸ã®ãµã¤ãã«ããã¨ãå¯ç¨æ§ã¯ä»¥ä¸ã®é¢æ°ã§è¡¨ããã¨ãã§ãã¾ãã
https://orangematter.solarwinds.com/2015/12/21/the-factors-that-impact-availability-visualized/
MTBFã¨MTTRã® MT㯠mean time
ã®ãã¨ã§ãæ¥æ¬èªã ã¨å¹³åæéã«è©²å½ãã¾ããããããã®å®ç¾©ã¯ä»¥ä¸ã®éãã§ãã
- MTBF (å¹³åæ ééé) : æ£å¸¸ã«åãã¦ããæé
- MTTR (å¹³å復æ§æé) : æ£å¸¸ã«åãã¦ããªãæé
SREã®ã¤ã³ã·ãã³ã対å¿ã«é¢ä¿ãããã®ã¯ãMTTR(å¹³å復æ§æé)ã§ããããã®æ°åãå°ãªãã»ã©å¯ç¨æ§ãé«ãã¨è¨ãã¾ãã
SREã¯MTTRï¼å¹³å復æ§æéï¼ã«å¯¾ãã¦ã次ã®äºã¤ã®ã¢ããã¼ããè¡ããæ°å¤ãæ¸å°ããã¦ã¾ãã
- 人éãå¿ è¦ãªãèªååãããã¤ã³ã·ãã³ã対å¿ãæ¨é²ããã
- 人éãå¿ è¦ãªå ´åãäºåã«ãã¹ããã©ã¯ãã£ã¹ãæ¤è¨ãã¦ããã¬ã¤ããã¯ãã«è¨é²ãã¦ããã¨ããå³èã§å¯¾å¿ãããæ¦ç¥ã¨æ¯è¼ã㦠MTTR ãç´3ååä¸ãããã¨ãããã£ã¦ãã¾ãã
CICD
ãã¦ã³ã¿ã¤ã ã®åå ã®ãã¡ãç´ 70% ã稼åä¸ã®ã·ã¹ãã ã®å¤æ´ã«ãããã®ã§ãã ãã®åéã®ãã¹ã ãã©ã¯ãã£ã¹ã§ã¯ãèªååã使ç¨ãã¦æ¬¡ã®ãã¨ãå®ç¾ãã¾ãã
- 段éçãªå±éã®å®æ½(èªåãããã¤)
- åé¡ãè¿ éãã¤æ£ç¢ºã«æ¤åº(èªåãã¹ãããã«ã¹ãã§ãã¯?)
- åé¡ãçºçããå ´åã«å ã«æ»ã(èªåãã¼ã«ããã¯)
ã¤ã¾ããCICD?
éè¦äºæ¸¬ã¨ãã£ãã·ãã£ãã©ã³ãã³ã°
å¤ãã®ãµã¼ãã¹ã¨ãã¼ã ããå¿ è¦ãªã¨ãã«å¿ è¦ãªãã£ãã·ãã£ã確ä¿ãããããã«ããããã«å¿ è¦ãªæé ãå®è¡ãã¦ãã¾ããã ãã£ãã·ã㣠ãã©ã³ãã³ã°ã§ã¯ãäºæ³ããã¦ãã以ä¸ã«ãããã¤ãã®æé ãå¿ é ã§ãã
- çç£è½åã®ç²å¾ã«å¿ è¦ãªãªã¼ãã¿ã¤ã ãè¶ ããæ£ç¢ºãªææ©çéè¦äºæ¸¬
- éè¦äºæ¸¬ã«éææ©çãªéè¦æºãæ£ç¢ºã«çµã¿è¾¼ã
- ã·ã¹ãã ã®å®æçãªè² è·ãã¹ããå®æ½ãã¦ãçã®å®¹éï¼ãµã¼ãã¼ããã£ã¹ã¯ãªã©ï¼ã¨ãµã¼ãã¹å®¹éãç¸é¢ããã
page:https://minegishirei.hatenablog.com/entry/2025/01/06/075315