ãããã¤ã³ã¿ã¼ããã移è¡è¨#2 VPNè¶ãã®MySQLã¬ããªã±ã¼ã·ã§ã³
ååãããiDCã«ç§»è»¢ãå§ãããã¨ãããã¨ãæ¸ããã®ã§ãããããããä¸ã¶æã¡ãã£ã¨ãçµéãã¾ãã¦ãã®å¾ãé 調㫠iDC ã¸ã®ç§»è»¢ãé²ãã§ãã¾ãããã§ã«ã©ãã¯ãããã¤ãåãã¦ããµã¼ãã¼ãæ°åå°ãããã iDC ã§ç¨¼åãã¦ãã¾ããåç·ãããã¾ã§ãããé«éãªããã¯ãã¼ã³ã«æ¥ç¶ããã¤ã¤ã帯åå¹ ã大ãããªã£ããã¨ããã移転ãããµã¼ãã¹ã«ãã£ã¦ã¯ããã¾ã§ãããããã©ã¼ãã³ã¹ãåºã¦ãããµã¼ãã¹ãããã¾ãããã¡æ¯è¼ç大ããªãã¼ã¿ãæ±ããã©ãã©ã¤ãã移転ãå®äºãã¦ãã¾ãããããããã¾ã§ç»åã®èªã¿åºããããªãéããªã£ãã®ãä½æã§ãããããã¹ã«ã¼ããããåä¸ãã¾ããã
æ¢åãµã¼ãã¹ã移転ããã«ããã£ã¦ãã©ããã£ãæ§æã§ãããè¡ã£ã¦ããããã¡ãã£ã¨ç´¹ä»ãã¦ã¿ããã¨æãã¾ãã
移転å½åã¯ãæ¢åã®ã¯ã¦ãªã®ãµã¼ãã¹ã¨ã¯ãã¾ãé¢ä¿ãã¦ããªããµã¼ãã¼ç¾¤ããæãä»ãã¾ãããä¾ãã°åºåã®ã·ã¹ãã ã¨ãã£ããã¯ã¦ãªã®ãã¼ã¿ãã¼ã¹ãç´æ¥è¦ãããããªãé¡ã®ãã®ã§ãããããã¯æ¢åã®ãµã¼ãã¼ç¾¤ã¨ã®ãããã¯ã¼ã¯ãã»ã¨ãã©å©ç¨ãã¾ãããä¸æ¹ãã©ãã©ã¤ãã®ãããªãµã¼ãã¹ã®å ´åãå¤ããµã¼ãã¼ã«ã¼ã ã«ãããã¼ã¿ãã¼ã¹ã«å¯¾ãã¦ããç¨åº¦ä¾åããã¾ã¾ iDC ã移転ããå¿ è¦ãåºã¦ãã¾ãããã®ããããããã¤ã³ã¿ã¼ãããã®æè¡ãã¼ã ã®ååãå¾ã¦æ§ãµã¼ãã¼ã«ã¼ã ã¨ãããiDCã®éã VPN ã§æ¥ç¶ãã¦ããã¾ãã
ç¡çããçµµã«ããã¨ãããªæãã§ããããã
æ§ãµã¼ãã¼ã«ã¼ã ã¨ãããiDCã®éã¯ã¤ã³ã¿ã¼ããããçµç±ãã¦ãã¾ããããµã¼ãã¼ç®¡çè ããè¦ãå ´åã¯åä¸ã®ãããã¯ã¼ã¯ã«æ¥ç¶ããã¦ããããã«è¦ãã¾ããå¾ã£ã¦æ§ãµã¼ãã¼ã«ã¼ã ããç´æ¥ãããiDCã«ç½®ããæ°ãããµã¼ãã¼ã¸ãããã¯ã¼ã¯æ¥ç¶ã§ãã¾ããã¾ãããã® VPN ã®åç·ãä½ããã®åå ã§åãã¦ãã¾ãã¨å°ãã®ã§ãäºåç·ã使ã£ã¦åé·åãã¦ããã¾ããVPN ã§æ¥ç¶ãããã¨ãã§ããã®ã§ãæ°ãããµã¼ãã¼ã®ãã°ã¤ã³ã¢ã«ã¦ã³ãçã ã¯æ§ãµã¼ãã¼ãããã¯ã¼ã¯ã§å©ç¨ãã¦ãã LDAP ã¨åããã¡ã¤ã³ã§ä¸å 管çãããã®ã使ããã®ã§ãæ°ããã¢ã«ã¦ã³ããä½ãç´ãããã§ãã¨ã ssh ã®éµãé ç½®ããªããããã§ãã¨ãããã®è¾ºã®ããããããä½æ¥ãå¿ è¦ããã¾ããã
ãã® VPN ã¯ã¤ã³ã¿ã¼ãããè¶ããªã®ã§ãããã«ãããã¯ã¼ã¯ã®é度ã¯é ãã§ãã管çç³»ã®éä¿¡ã«ã¯ãã® VPN ãçµç±ãã¦ãåé¡ã«ãªãã¾ããããå®éã®ãµã¼ãã¹ã¨ãªãã¨è©±ã¯å¥ã§ããä¾ãã°æ°ãããã¼ã¿ã»ã³ã¿ã¼å´ã«ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ããã£ã¦ãæ§ãµã¼ãã¼å´ã® DB ãµã¼ãã¼ã« VPN çµç±ã§ SQL ãæããããªãã¦ãã¨ããã¦ããã¨ããã©ã¼ãã³ã¹ãè½ã¡ã¾ãããVPN ã®å¸¯åããã£ã¨ããéã«ä½¿ãæããã¦ãã¾ãã¾ãã
äºã¤ã®ãã¼ã¿ã»ã³ã¿ã¼ã«ç½®ããããããã®ã¢ããªã±ã¼ã·ã§ã³ããåä¸ã®ãã¼ã¿ãã¼ã¹ã«æ¥ç¶ãã«ãããã (ä¾ãã°ã¦ã¼ã¶ã¼ã¢ã«ã¦ã³ãã®ããã®ãã¼ã¿ãæ ¼ç´ãããã¼ã¿ãã¼ã¹ãªã©)ãã¨ããå ´åã«ã©ãããããã©ã¡ããã®ãã¼ã¿ã»ã³ã¿ã¼ã«ãã DB ããªãå ´å VPN ãçµç±ããéä¿¡ãå¿ è¦ã«ãªã£ã¦ãã¾ãã¾ããããã§ãMySQL ã®ã¬ããªã±ã¼ã·ã§ã³ã使ãã¾ããããããä¸æ¹ã®ãããã¯ã¼ã¯ã«ãã¹ã¿ãç½®ãã¦ãããVPN ãçµç±ãã¦ã¹ã¬ã¼ããç«ã¦ã¦ãåã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã¯åã èªåã®ãããã¯ã¼ã¯ã«ããã¹ã¬ã¼ãã¸æ¥ç¶ãã«ãããã¨ããæ§æã§ãã
MySQL ã¹ã¬ã¼ãã® Slave I/O ã¹ã¬ãããããã¹ã¿ã¸ã® polling ã§ä¸é¨ VPN ã§ã®éä¿¡ãçºçãã¾ãããã¢ããªã±ã¼ã·ã§ã³ããåã¹ã¬ã¼ãã«æ¥ç¶ãã«ããæ¥ç¶ã«æ¯ã¹ãã¨ãã¼ã¿éãæ¥ç¶åæ°ã¨ãã«æå°éã§æ¸ã¿ã¾ããã¾ããã® polling ã«ã¯ããã¾ã§ã·ãã¢ãªã¬ã¹ãã³ã¹ã¿ã¤ã ã¯è¦æ±ããã¾ããã大ããªé 延ãªãã«ãã¹ã¿ã¨åæããã§ããã° OK ã§ããä¸æ¹ãã¹ã¿ã®é ç½®ã§ããããã®æ¹æ³ã§ã¯åæ£ã§ããªã CRUD ã® CUD ã®ã¯ã¨ãªãã©ãããçºçãã¦ã©ã®ãããã®å²åããããã§ãã©ã¡ãã® iDC ã«ãã¹ã¿ãç½®ããã決ãã¾ããä¾ãã°ãã©ãã©ã¤ãã®ãã¹ã¿DBãæ´æ°ããã®ã¯ãã©ãã©ã¤ãã¢ããªã±ã¼ã·ã§ã³ã®å½¹å²ã§ãããã¯ãããiDCå´ã«ããã®ã§ãã¹ã¿ããããiDCã«ããã©ãã©ã¤ãã®ãã¼ã¿ãå¼ãå¿ è¦ã®ããæ¢åã®ãµã¼ãã¼ç¨ã«æ§ãµã¼ãã¼ã«ã¼ã ã«ããã©ãã©ã¤ãDBã®ã¬ããªã«ãç½®ãã¦ãããã¨ããå ·åã§ãã
ãã®æ¹æ³ã§å¾ã ã«ç§»è»¢ãé²ãã¦ãããä»æä¸ã«ã¯ã¯ã¦ãªããã¯ãã¼ã¯ã®ãµã¼ãã¼æ°åå°ããããiDCã«æã£ã¦ãããããªã¨æã£ã¦ãã¾ãã移転ã«ä¼´ã£ã¦ããç¨åº¦ã¤ã³ãã©ã®å·æ°ãè¡ããããã¾ã§ãããé«éãªãµã¼ãã¼ãé«éãªåç·ä¸ã§ãµã¼ãã¹ãæä¾ã§ããããã«ãªãäºå®ã§ãã
ã¨ããã§ããã® MySQL ã¹ã¬ã¼ãã VPN è¶ãã«ä½ã£ã¦äºã ãã¨ããã®ã¯ã¡ãã£ã¨ã¢ããªã±ã¼ã·ã§ã³ã®è¨è¨ãæªãã¨ããã®ãããããããã¾ãããã®ããã«ç©ççã«åæ£ããç°å¢ã§ãµã¼ãã¹ãæä¾ãããã¨ãæ³å®ããã¨ããã¯ããµã¼ãã¹éå士ã®ã¤ã³ã¿ãã§ã¼ã¹ã¯ç´æ¥ãã¼ã¿ãã¼ã¹ã«æ¥ç¶ãã«ãã£ããã¨ããå¯çµåãçºçãããã«ãWeb API ãªã©ã§ã©ããã³ã°ãã¦ççµåã«ãã¦ããã¹ãã§ãã