MySQL/MariaDB Transactd è¶ é«å¯ç¨éç¨ ï¼THAï¼
MySQL/MariaDBç¨ NoSQLãã©ã°ã¤ã³ Transactdã§ã®é«å¯ç¨éç¨ï¼Transactd High Availabilityï¼ãã¼ã«ãTHAãã¨ã対å¿ãããã©ã°ã¤ã³ï¼Version 3.5ï¼ã®æä¾ãéå§ãã¾ããã
MySQL/MariaDBã®HAãã¼ã«ã¯æ¢ã«ããã¤ãããã¾ãããTHAã¯Transactdã«åããã¦æé©åãããã¨åæã«ãä»ã«ã¯ãªã工夫ãããã¦ãã¾ãã
å ã Transactdã¯ãããã·ã§ã³ã¯ãªãã£ã«ã«ã§ã¬ã¹ãã³ã¹ã追åããã¨ã³ã¿ã¼ãã©ã¤ãºã¢ããªã±ã¼ã·ã§ã³ã®ããã«éçºããã¾ãããé«å¯ç¨éç¨ã¯ã¨ã¦ã大äºãªèª²é¡ã§ãããä»åãããããã®èª²é¡ãéæã§ãã¾ããã
ãã¼ã¿ã¢ã¯ã»ã¹ã«Transactd APIã¯ä½¿ç¨ããªãã¦ããHAã®ããã ãã«Transactdãã©ã°ã¤ã³ã使ç¨ãããã¨ãå¯è½ã§ãã
THAã«ã¤ãã¦ã¯ãTransactdããã¥ã¡ã³ãã®高可用運用ã«è©³ããæ¸ããã¦ãã¾ãã®ã§è©³ç´°ã¯ãã¡ããã覧ãã ããã
ããã§ã¯ä¸»ãªå 容ãç´¹ä»ãã¾ãã
- THAã®ä¸»ãªæ©è½
- THAã®ç¹å¾´
- THAã«å¿ è¦ãªãã®
- æå°éã®ã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼ã¨æç¶æ§
- ãã¼ã ãªã¾ã«ãã¼ï¼THNRï¼
- ãã§ã¤ã«ãªã¼ãã¼
- THAã®ç¶æ æ¤æ»
- ã¾ã¨ã
THAã®ä¸»ãªæ©è½
- ãã¹ã¿ã¼æ»æ´»ç£è¦
- èªåãã§ã¤ã«ãªã¼ãã¼ï¼åæ¿æé æ°ç§ä»¥å ï¼
- ä»®æ³ãã¹ãåã¢ã¯ã»ã¹ã¨å®ãã¹ãå解決
- ã¹ã¤ãããªã¼ãã¼
- THAã®ç¶æ æ¤æ»
THAã®ç¹å¾´
- é害æ¤ç¥ãããã¹ã¿ã¼åæ¿ã»åå解決ã¾ã§ããã§ã¤ã«ãªã¼ãã¼ã«å¿ è¦ãªå¦çããã¹ã¦ç¶²ç¾
- é害æã®æå°éã®ã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼
- OSãå¤é¨æ©å¨ãDNSãªã©ã«ããæ¯æ´ãä¸è¦
- æ°è¡ã®ã¢ããªã±ã¼ã·ã§ã³ããã°ã©ã å¤æ´ã§å©ç¨å¯è½
- MySQL/MariaDBãLinux/Windows/Mac OS XãC++/PHP/Ruby/COMãªã©å¹ åºãåä½ç°å¢
- Transactd Pluginã¨Transactd client以å¤ã®ã©ã¤ãã©ãªã¯ä¸è¦
THAã«å¿ è¦ãªãã®
- Transactd Pluginï¼MySQL 5.6ä»¥ä¸ MariaDB 10.0.13以ä¸ï¼
- Transactd ã¯ã©ã¤ã¢ã³ãï¼C++/PHP/Ruby/COMã®ãããã対å¿ãã¦ãã¾ãï¼
- THA管çããã¼ã¸ã£ï¼haMgrï¼ï¼Client utilities ã«å«ã¾ããã³ãã³ãã©ã¤ã³ããã°ã©ã ï¼
ããã ãã§THAãéå§ã§ãã¾ãã
æå°éã®ã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼ã¨æç¶æ§
ä¸è¬çã«ãã§ã¤ã«ãªã¼ãã¼ã®ããªã¬ã¼ã¯ãå°ç¨ã®ç£è¦ãã¼ã¢ã³ãheartbeatãªã©ã使ç¨ãã¾ãããTHAã§ã¯ãã®ãããªãã®ã¯ããã¾ããã代ããã«ãã¢ããªã±ã¼ã·ã§ã³å
ã®Transactd ã¯ã©ã¤ã¢ã³ãããåãåã£ãã¨ã©ã¼ã®å
容ãããµã¼ãã¼ã®åé¡ã§ããããå¤æãããã§ã¤ã«ãªã¼ãã¼ãéå§ãã¾ãã
ã¾ããã¯ã©ã¤ã¢ã³ãã«ã¯ããããã¯ã¼ã¯ã¨ã©ã¼ãçºçããéã«ãµã¼ãã¼åæ¥ç¶ããæ©è½ãçµã¿è¾¼ã¾ãã¦ãã¾ãã åæ¥ç¶ã§ããå ´åãã«ã¬ã³ãã¬ã³ã¼ããããã¯ç¶æ
ãªã©ã復å
ããã¾ãã
ããã«ãã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã©ã¼ãè¿ãåã«ãã¹ã¿ã¼ãåæ¿ããããåæ¥ç¶ãããã¨ã§ä½äºããªãã£ãããã«å¦çãç¶ç¶ã§ãã¾ããï¼ãã ãããã©ã³ã¶ã¯ã·ã§ã³ä¸ã®ã¨ã©ã¼ã¯ãããã®å¦çãè¡ãã¾ããããã©ã³ã¶ã¯ã·ã§ã³ãã¢ãã¼ãããã¦ããè¡ããã¾ããï¼
å°ç¨ã®ç£è¦ãã¼ã¢ã³ãªã©ã®å ´åã¯ç£è¦ãµã¤ã¯ã«ï¼30ç§ãªã©ï¼ãããã®ã§ãé害çºçããæ¤åºã¾ã§ã®éã®ã¢ã¯ã»ã¹ã¯ãã¹ã¦ã¨ã©ã¼ã«ãªãã¾ããTHAã®å ´åã¯ãã©ã³ã¶ã¯ã·ã§ã³ä¸ã«éãï¼ã¯ã©ã¤ã¢ã³ãã¨ã®æ¥ç¶ãã¨ã«ï¼ãã®1ã¤ã ããã¨ã©ã¼ã«ãªãã¾ãã
ãã©ã³ã¶ã¯ã·ã§ã³ä¸ã®ã¢ã¯ã»ã¹ã¨ã©ã¼ãæ£ããï¼ã¢ãã¼ãï¼å¦çããã°ã¢ããªã±ã¼ã·ã§ã³ã¯ãã®ã¾ã¾æç¶ãã¦å®è¡ãç¶ãããã¨ãã§ãã¾ãã
ã¢ããªã±ã¼ã·ã§ã³ã®æç¶æ§ã§è¨ãã°ããã¹ã¿ã¼ãã¦ã³ã«ãããã¦ã³ã¿ã¤ã ã¯ã¼ãã§ãã
ããããè¶
é«å¯ç¨ãã¨é¡ããçç±ã§ãã
ãã¼ã ãªã¾ã«ãã¼ï¼THNRï¼
ã¯ã©ã¤ã¢ã³ãã«ã¯HAã®ããã®ãã¼ã ãªã¾ã«ãã¼ï¼THNRï¼ãå
èµããã¾ãããã¢ããªã±ã¼ã·ã§ã³ã¯æ¥ç¶å
ã®ãã¹ãåããå®ãã¹ãåã§ãªãä»®æ³åã§æå®ãã¾ããTHNRã¯æå®ãããä»®æ³ãã¹ãåããå®ãã¹ãåã«åå解決ãã¦ã¢ã¯ã»ã¹ãè¡ãã¾ããããã«ãã£ã¦ããã¹ã¿ã¼ãåæ¿ãã«ä»éããVIPã®å¤æ´ãARPãã£ãã·ã¥ã®ã¯ãªã¢ã¨ãã£ãOSããããã¯ã¼ã¯æ©å¨ãªã©ã«å¯¾ãã追å å¦çã¯ä¸åä¸è¦ã§ãã
解決ãããååã¯ãã£ãã·ã¥ããã¾ãã®ã§ãåå解決ã®ããã®ãªã¼ãã¼ãããã¯ã»ã¨ãã©ããã¾ããã
ãªã³ãã¬ãã¹ããã¯ã©ã¦ããLinux/Windows/Macãªã©ãã¾ãã¾ãªç°å¢ã§å ¨ãåãããã«ä½¿ç¨ã§ãã¾ãã
ãã§ã¤ã«ãªã¼ãã¼
ãã§ã¤ã«ãªã¼ãã¼ã¯MySQL/MariaDBã®GTIDã¬ããªã±ã¼ã·ã§ã³ã使ç¨ãã¦ã¹ã¬ã¼ã群ã®ä¸ãã1å°ããã¹ã¿ã¼ã«ææ ¼ããã¾ããããã¦æ®ãã®ã¹ã¬ã¼ãã®ã¬ããªã±ã¼ã·ã§ã³å
ãæ°ãã¹ã¿ã¼ã«åãæ¿ãã¾ãã
ãã§ã¤ã«ãªã¼ãã¼ã¯ã¯ã©ã¤ã¢ã³ãã«ã¤ã³ã¹ãã¼ã«ãããhaMgrãTHNRããæ令ãåãã¦éå§ãã¾ãããã§ã¤ã«ãªã¼ãã¼ã«ãããæéã¯ã¹ã¬ã¼ãã®å°æ°ã«ãããã¾ããæ¦ã1ç§ä»¥å
ã«ãã¹ã¦å®äºãã¾ãã
THAã®ç¶æ æ¤æ»
ãã§ã¤ã«ãªã¼ãã¼ã¯é »ç¹ã«èµ·ãããã®ã§ã¯ããã¾ãããããã¨ããã¨ãã«å©ãã«ãªãä»çµã¿ã§ããã¨ããããããã¨ããã¨ãã«æ£ããåä½ãããã®ã¯ä»¥å¤ã¨é£ããã£ãããã¾ãã
ããã§ãhaMgrã«ã¯ãã§ã¼ã«ãªã¼ãã¼ãæ£ããã§ããç¶æ
ã«ãããã©ããããã§ãã¯ããæ©è½ãããã¾ããå®æçãªã¿ã¹ã¯ã§ãã§ãã¯ãè¡ããã¨ã§åé¡æã«ç¢ºå®ã«ãã§ã¤ã«ãªã¼ãã¼ã§ããããã«ã¾ãã