GitLab.comã®ãã¼ã¿ãã¼ã¹é害ããå¦ã¶
ï¼æçµæ´æ°ï¼2017-02-15ï¼
2017/01/31ãGitLab.comã§ãã¼ã¿ãã¼ã¹é害ãçºçãããµã¼ãã¹ã®åæ¢ããã³ç´6æéåã®ãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ï¼projectsã issuesãcommentsãsnippetsãªã©ï¼ãæ¶å¤±ãã¾ããã
ãªããGitãªãã¸ããªã«é害ã¯ãªãããªãã¸ããªã®ã³ã³ãã³ãï¼Wikiãå«ãï¼ã«ãã¼ã¿æ¶å¤±ã¯ããã¾ããã§ããã
GitLab.comã¨ã¯ï¼
GitLab.comã¯GitLab社ãæä¾ãã¦ããGitHubã®ãããªGitãªãã¸ããªã®ãã¹ãã£ã³ã°ãµã¼ãã¹ã§ããç¡æã§ãã©ã¤ãã¼ããªãã¸ããªã使ãã¾ãã
ã¿ã¤ã ã©ã¤ã³
æ¥æï¼UTCï¼ | åºæ¥äº |
---|---|
2017/01/31 23:27 | GitLab.comããªãã¬ã¼ã·ã§ã³ãã¹ã«ããæ¬çªãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ãåé¤ããµã¼ãã¹åæ¢ |
2017/01/31 23:28 | ãã¼ã¿ãã¼ã¹ã®ç·æ¥ã¡ã³ããã³ã¹ä¸ã§ããæ¨ããã¤ã¼ã |
2017/02/01 00:00 | ç´6æéåã®ã¹ãããã·ã§ããããªã¹ãã¢ãããã¨ãæ±ºå® |
2017/02/01 00:44 | Google Docsã§ã®ã©ã¤ãã®ç¶æ³å ±åã«ã¤ãã¦ãã¤ã¼ã |
2017/02/01 11:42 | YouTubeã§ã®å¾©æ§ä½æ¥ã®ã©ã¤ãã¹ããªã¼ã ã«ã¤ãã¦ãã¤ã¼ã |
2017/02/01 18:14 | GitLab.comå¾©æ§ |
2017/02/10 | Postmortemï¼äºå¾åæï¼å ¬è¡¨ |
éææ§
ä»åã®GitLabã®ã¤ã³ã·ãã³ã対å¿ã§éç«ã£ããã¨ã¯ãè¿ éãªå ±åã¨éææ§ã§ãã
æãããæ©ãç¶æ³ã詳細ã«Google Docsã§å ±åããã¦ãããã¤ãã«å¾©æ§ä½æ¥ãYouTubeã§ã©ã¤ãã§æµããã¾ããã
ãã¼ã¿ããã¯ã¢ããã¯å¤±æããã®ãï¼
ãã¼ã¿ãã¼ã¹ã®æ¶å¤±ã¯ãè¤æ°ã®ã¤ã³ã·ãã³ã対å¿ä¸ã«ãªãã¬ã¼ã·ã§ã³ãã¹ãçºçããæ¬çªã®PostgreSQLãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ãã£ã¬ã¯ããªãåé¤ããããã¨ã«ããã¾ãã
GitLabã¯äºåã«ä»¥ä¸ã®ããã¯ã¢ããæ段ãè¬ãã¦ãã¾ããã
- 24æéãã¨ã®ãã¼ã¿ãã¼ã¹ãã³ãï¼pg_dumpï¼
- ãã¼ã¿ãã¼ã¹ãã³ãã®S3ã¸ã®ããã¯ã¢ãã
- 24æéãã¨ã®Azureã®ãã£ã¹ã¯ã¹ãããã·ã§ãã
- 24æéãã¨ã®LVMã¹ãããã·ã§ãã
- PostgreSQLã®ã¬ããªã±ã¼ã·ã§ã³
ããããå®éã«ã¯ã
5.ã®ã¬ããªã±ã¼ã·ã§ã³ã¯ãã¨ãã¨ãªã«ããªç®çã§ã¯ãªããã§ã¤ã«ãªã¼ãã¼ã®ããã®ãã®ã§ãããå³å¯ã«ã¯ããã¯ã¢ããã¨ã¯è¨ãã¾ãããã¾ããããããã¬ããªã±ã¼ã·ã§ã³ãåæ§ç¯ããéä¸ã§çµæçã«ä»åã®ã¤ã³ã·ãã³ããçºçãã¦ãã¾ããé害çºçæã«ã¯ã¬ããªã±ã¼ã·ã§ã³ã«ã¯ãã§ã«ãã¼ã¿ã¯ããã¾ããã§ããã
1.ã®ãã¼ã¿ãã¼ã¹ãã³ãã¯ãpg_dumpã®ãã¼ã¸ã§ã³ã9.2ã¨å¤ããå®éã®ãã¼ã¿ãã¼ã¹ã¯PostgreSQL 9.6ã ã£ããããã¨ã©ã¼ã§ãã³ããåå¾ã§ãã¦ãã¾ããã§ããããã®ããã2.ã®S3ã¸ã®ããã¯ã¢ãããå½ç¶ç©ºã§ããã
3.ã®Azureã®ãã£ã¹ã¯ã¹ãããã·ã§ããã¯NFSãµã¼ãã§ã¯åå¾ããã¦ãã¾ãããããã¼ã¿ãã¼ã¹ãµã¼ãã§ã¯åå¾ããã¦ãã¾ããã§ãããã¾ããä»®ã«ã¹ãããã·ã§ããããã£ãã¨ãã¦ãããã£ã¹ã¯ã¹ãããã·ã§ããããä¸é¨ã®ãã¡ã¤ã«ï¼ãã¼ã¿ãã¼ã¹ãã¡ã¤ã«ï¼ããªã¹ãã¢ãããã¨ã¯ç°¡åã§ã¯ããã¾ããã
4.ã®LVMã¹ãããã·ã§ããã¯æ©è½ãã¦ãã¾ããããé害ã®6æéåã«æåã§åå¾ãããå¥ã®ã¹ãããã·ã§ãããããã¾ããããã®ãããä»åã¯6æéåã®ã¹ãããã·ã§ãããããªã¹ãã¢ããã¾ããã
ã¤ã¾ããããããã¨ããã¯ã¢ããã«ä¸å ·åã¯ããã¾ããããããã§ãææª24æéåã®ç¶æ ã«ã¯LVMã¹ãããã·ã§ããããæ»ããã¨ãããã¨ã«ãªãã¾ãã
ä»®ã«ãã¹ã¦ã®ããã¯ã¢ããæ段ãæ£å¸¸ã«æ©è½ãã¦ããã¨ãã¦ãããã¼ã¿ãã¼ã¹ãã³ãã¯æ大24æéåã®ãã®ã§ããããã£ã¹ã¯ã¹ãããã·ã§ãããæ大24æéåã§ãã
ãã®ãã¨ããããªã«ããªè¦ä»¶ã¯æ大24æéã®ãã¼ã¿ãã¹ãåæã¨ãã¦ããã¨èãããã¾ããããã¦ãå°ãªãã¨ã24æéåã®LVMã¹ãããã·ã§ããããã£ããã¨ããããã®æç¹ã¸ã®å¾©æ§ã¯å¯è½ã§ããã
çµè«ã¨ãã¦ã¯ãä»åã®ã¤ã³ã·ãã³ãã«é¢ãã¦ã¯ãããã¯ã¢ããã¯è¦ä»¶ãæºããã¦æ©è½ãã¦ãããã¨ã«ãªãã¨æãã¾ãã
éè¦ãªã®ã¯ãªã«ããªè¦ä»¶
ããã24æéã®ãã¼ã¿ãã¹ã許容ã§ããªãã®ã§ããã°ãããã¯ãªã«ããªè¦ä»¶ãééã£ã¦ããã¨ãããã¨ã«ãªãã¾ãã
ã¾ãããªã«ããªè¦ä»¶ã«ã¯å¾©æ§æéãããã¾ãã®ã§ããã¡ãã®è¦ä»¶ã¯ãã¶ãæºããã¦ããªãã£ãã®ã§ããããPostmortemã«ã¯ã復æ§ã«18æé以ä¸ããã£ããã¨ãåé¡ã§ããã¨ããã¦ãã¾ãã
Postmortemï¼äºå¾åæï¼
äºåã«äºåããã¦ããéããGitLabããPostmortemã02/10ã«å ¬è¡¨ããã¾ããã
æ ¹æ¬åå åæï¼ãªããªãåæï¼ããªã«ããªæé ã®æ¹åãªã©ãé常ã«èå³æ·±ãå 容ãå«ã¾ãã¦ãã¾ããæ¯éããèªã¿ä¸ããã
ãã¼ã¿ãã£ã¬ã¯ããªãåé¤ãããåå ã¯ãã¬ããªã±ã¼ã·ã§ã³ã®åæ§ç¯æé ãèªååããã¦ããããã¾ããä½æ¥ã®ããã¥ã¡ã³ãããã¡ãã¨ä½æããã¦ããªãã£ãããã¨ããã¦ãã¾ãã
ããã¯ã¢ããæé ãæ¤è¨¼ããã¦ããªãã£ãåå ã«ã¤ãã¦ã¯ã責任è ã決ã¾ã£ã¦ããªãã£ããã¨ãããããã¦ãã¾ãã
ã¾ã¨ã
ãããã¦è¦ãã¨ãä»åã®é害ã¯ãªã«ããªè¦ä»¶ã®å®ç¾©ãããã¯ã¢ããããªã¹ãã¢æé ã®è¨è¨ã«ããæ ¹æ¬çãªåé¡ããã£ããã¨ããããã¾ããè¦ããã«äºåã®åææ¤è¨ãæºåè¨ç»ãä¸ååã ã£ãã¨ãããã¨ã§ãã
- ãªã«ããªè¦ä»¶ãä¸æã誤ã£ã¦ã
- ããã¯ã¢ããã®è²¬ä»»è ãããªã
- ããã¯ã¢ãããããªã¹ãã¢ã§ãããæ¤è¨¼ããã¦ããªã
- ããã¯ã¢ãããæ£å¸¸ã«åå¾ã§ãã¦ãããã®ç£è¦ããªã
- ã¬ããªã±ã¼ã·ã§ã³åæ§ç¯ã®æé æ¸ãä¸åå
- è¤éãªä½æ¥ãä¸äººã§è¡ãéç¨
- ééããããããªä¼¼ããããªãµã¼ãåï¼db*.cluster.gitlab.comï¼
é害ã®ç´æ¥ã®åå ã¯ãæ
å½è
ã誤ã£ã¦ãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ãã£ã¬ã¯ããªãrm
ãã¦ãã¾ã£ããã¨ã§ãããããã¯åãªããã£ããã«ãããªããã¨ããããã¾ãã
åè
GitLabããã®ãã¼ã¿ãã¼ã¹é害ã«é¢ããå ±åï¼
- Postmortem of database outage of January 31 | GitLab
- GitLab.com Database Incident | GitLab
- GitLab.com Database Incident - 2017/01/31
GitLabã®ç·æ¥å¯¾å¿ããã¥ã¢ã«ï¼
PostgreSQLã®ã³ããã¿ããã®ã¢ããã¤ã¹ï¼
ãã®é害ã«é¢ããè¨äºï¼
- âãããããã¡ã¤ã«å½åã«ã¼ã«âã§ãã¼ã¿æ¶å¤±ã®å±æ©ï¼ (1/2) - ITmedia ã¨ã³ã¿ã¼ãã©ã¤ãº
- ãã¼ã¿æ¶å¤±äºæ ãèµ·ãããGitLabãITéç¨æ¦ç¥ãå°é家ãçåè¦ (1/2) ï¼ TechTargetã¸ã£ãã³ ã·ã¹ãã éçº
- GitLab.comãæä½ãã¹ã§æ¬çªãã¼ã¿ãã¼ã¹åªå¤±ã5ã¤ãã£ãã¯ãã®ããã¯ã¢ããæ段ã¯å½¹ç«ãããé ¼ã¿ã®ç¶±ã¯6æéåã«å¶ç¶åã£ãã¹ãããã·ã§ãã ï¼ Publickey
Date: 2017/02/14