ã»ããã¼æ¦è¦
2019-01-24ï¼æ¨ï¼16:00 - 18:30
ãã¼ã¿ãã¼ã¹ã®HAã®è©±ãããMySQL5.7ãã使ç¨å¯è½ãªãã«ããã¹ã¿ã¼åHAã®MySQL InnoDB Clusterã«ã¤ãã¦ã®èª¬æãããã³å®éç¨ã§ã®è©±ãLOCONDO.jpã®æå±±ããããèãã
è³æã«ã¤ãã¦ã¯å¥éå ¬éäºå®
ã¤ãã³ãç´¹ä» https://osslabo.doorkeeper.jp/events/85105
- Amazonã§ç´1æéã®DBé害ãçºçãã100åå以ä¸ã®æ©ä¼æ失ãçºç
- åãããã°æããªãï¼ã ãå¾æ¥ã®åé·æ§æã§ã¯ãã¦ã³ã¿ã¤ã ãçºçï¼ï¼
- æè¡è ä¸è¶³ã人件費ããããããªãã¨ããåé¡ã
- MySQLã¦ã¼ã¶ã¼ã«æé©ãªçãã¨ã¯
- ä½ã³ã¹ãã§å®ç¾ã§ãããMySQL InnoDB Clusterã解説
ç¥ã£ããã¨(åºæ¬çã«ã¯MySQL InnoDB Clusterã®è©±)
è¦ä»¶çãªãã¨
- æ§æå¯è½å°æ°ã¯æ大9(å¥æ°ã«ããå¿ è¦ãããã®ã§3,5,7,9ã®ããããã«ããå¿ è¦ããã)
- ãã¼ãªã³ã°ã¢ããã°ã¬ã¼ãããéã¯ã·ã³ã°ã«ãã©ã¤ããªã¼ã¢ã¼ãã§ãããã¨ãå¿ é
- AUTO INCREMENTã¯ããã©ã«ãã§7ãã¤é£ã¶(å¢ããæ¹åã§ã¯æ°å¤ã¯å¤æ´å¯)
- é常ã®ã¬ããªã«æ¯ã¹å¦çãè¤éã§ããã®ã§ãCPUãã¡ã¢ãªã¯å¼·åããå¿ è¦ãã
- super-read-onlyã«ãã¦ããã¨ãæ®æ®µèª¤ã£ã¦ã»ã«ã³ããªã«æ¸ãè¾¼ãã¨ããäºæ ã¯ãªããªãããã¢ããã°ã¬ã¼ãæã¯å¤ãå¿ è¦ããã
ã¡ãªããçãªãã¨
- ãããã¸(å°æ°)å¤åã«å¯¾ããMySQL Routerã¯èªåã§å¯¾å¿ããè³¢ããã¤
- performance_schemaã«
replication_group_xxx
ã¨ãããã¼ãã«ç¾¤ãä½ãããã®ã§ããã§ç¶æ ç£è¦ã§ãã - READã®ã¹ã³ã¢ã¯Group Replicationãæ®éã®æºåæã¬ããªãå·®ã¯ãªã
- éãã§ãããµã¼ããç¡ãç¶æ ãä½ãã(ããã¾ããã¡ã§ã¯ã¡ãªããã«ãªããããª)
- LOCONDO.jpã§ã®éç¨ã§ã¯MySQL InnoDB Clusterèªä½ã®è´å½çãªãã°ã«ã¯ã¾ã ééãã¦ãªã
- ãã¼ã¸ã§ã³ã¢ããã«ããå®è¡è¨ç»ã®å¤åã«ããå¦çé度ã®å£åã®ã»ããã¤ããã£ãããã
- MySQL Routerã«ãã£ãã·ã¥ãæããããã¨ãã§ãã
- MySQL Routerã¨APãµã¼ãçãåå±
ãããLB使ããã«å¦çåæ£ã§ããã(以ä¸ã®ãããªã¤ã¡ã¼ã¸)
- ãããããã¾ã§CPUã®è² è·é«ããªãããã(ProxySQLã¯æ¯ãåãã«ã¼ã«ãä½ãã°ä½ãã»ã©CPUãã«é£ãããããã)
- ä½ããAll In Oneã®ããã±ã¼ã¸ã§ãããã¨ãããOracleã«ãé¡ãããã°ç´ãã¨ãã
ãã¡ãªããçãªãã¨
- Zabbixã«ãã³ãã¬ã¼ãç¡ãã®ã§ãç£è¦ããããªãèªä½å¿ é (MySQL Enterprise Monitor使ãã°è¦ãããâ¦)
- WRITEã®ã¹ã³ã¢ã¯Group Replicationãæ®éã®æºåæã¬ããªã«æ¯ã¹2å²ã»ã©é
ããªã
- åå ã¨ãã¦ã¯ç«¶åæ¤ç¥ã¨åæå½¢æã®ããã»ã¹ãä½åã«çºçãããã¨ãã
- ã¯ã¨ãªã«ããæ¯ãåãã¯MySQL Routerã«ã¯ã§ããªã(ProxySQLãªãã§ãã)
- MySQL8ã¸ã®ãã¼ã¸ã§ã³ã¢ããã¯ãã®ãã°ã®ããã§ã§ãã¦ãªããâä»å¹´ä¸ã«ã¯ããããã
- MySQL Routerã®ãã¹ãå解決ããã¾ããããªãã£ãã®ã§ãIPã¢ãã¬ã¹ã§ãã£ã¦ã
- MySQL InnoDB Clusterã®ãã°FIXã¯5.7ã«é©ç¨ãããªãæ¹éãªã®ã§å¯è½ãªéã8ã«ä¸ããã¹ã
ãã®ä»(主ã«LOCONDO.jpæå±±ããã¨å£é ã§è©±ããå 容)
- innodbackupex(Percona xtrabackupã¯ããã) ãmysqldumpï¼5æéâinnodbackupexï¼30å
- LOCONDO.jpã®ãããã§çºè¡ãããã¯ã¨ãªã¯SQLæã1000è¡ãããã§ã§ãã¦ããã®ããããããã
- ãã¼ãã«ã®æ£è¦åã»ã¤ã³ããã¯ã¹ãéã«ä½ããã¦ã
- ãã¼ã¸ã§ã³ã¢ããæã«å®è¡è¨ç»ã大ããå¤åããã®ãããããï¼
- ãããç¨20ã表ç¨40åè¨60ã®APãµã¼ãå ã«MySQL Routeråå± ããã¦ãã©ã³ã·ã³ã°ãã¦ããã©ç¹ã«ããã§åé¡ãèµ·ãããã¨ãªãã
- MySQL Bugsè¦ãã®ãæ¥èª²
- MySQL InnoDB Clusterèªä½ã¯3å°ã§æ§æãã¦ã(MySQL5.7.20â25ã«ä¸ããã ã£ãããªï¼)
- ä¸çªå¤§ããªãã¼ãã«ã¯5åè¡(ããã¯ã¢ããã«ããã¨æ°åGBããã)
MySQL InnoDB Clusterãæã£ãããè¯ããï¼
å°ãPercona XtraDB Clusterã«ãããæ°æã¡ããå¼ãæ»ãããæããããã
追è¨ï¼è³æã«ã¤ãã¦ï¼
å æ¥ã®EC Tech Group #1 - ECã§ä½¿ããã¦ãããã¯ããã¸ã¼ ã§æå±±(@RDBMS)ãããã»ã¨ãã©åãè³æããã¦ãã®ã§è²¼ã£ã¨ã https://www.slideshare.net/ShinyaSugiyama/locondo-20190215ec-techgroup