LVSã®æ¦è¦
ãLVSï¼Linux Virtual Serverï¼ã¯ãLinux Virtual Server Projectã¨ããããã¸ã§ã¯ããéçºããæ©è½ã§ãLinuxä¸ã§Layer 4ã®è² è·åæ£è£ ç½®ã¨åæ§ã®æ©è½ãå®ç¾ãã¾ããLVSã¯ãæè¿ã§ã¯Linuxã«ã¼ãã«ã«çµã¿è¾¼ã¾ãã¦ãã¾ãã®ã§ãã»ã¨ãã©ã®Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ä½¿ç¨ãããã¨ãã§ãã¾ããLVSã§ã¯æ¬¡ã®ãããªæ©è½ãæä¾ãã¾ãã
- ãµã¼ãã¹ç¨ã®IPã¢ãã¬ã¹ã«å±ãããã±ãããå¿ è¦ã«å¿ãã¦ãå¥ã®ãµã¼ãã«è»¢éãã¾ãã
- 転éå ã¨ãã¦è¤æ°ã®ãµã¼ããæå®ãããã¨ãã§ãã¾ãã
- ãã±ããã®è»¢éã§ã¯ãåãµã¼ãã«åçã«åæ£ãããã¨ããéã¿ä»ãããã¦åæ£ãããã¨ãã§ãã¾ãã
ãLVSã使ãã¨ãè¤æ°å°ã®å®ãµã¼ããçµã¿åããã¦ãããããä¸ã¤ã®ãµã¼ãã§ãµã¼ãã¹ãã¦ãããã®ããã«è¦ãããã¨ãã§ãã¾ãã
ldirectord
ãLinuxã«ã¼ãã«ã®æä¾ããLVSã§ã¯ããã±ãããåæ£ããæ©è½ã ããæä¾ãã¾ãããããã次ã®ãããªçç±ã§å¿ ããã使ããããã¨ã¯ããã¾ããã
- è¨å®ã¯ã
ipvsadm
ã¨ããã³ãã³ãã§è¡ãã¾ãããæ¯è¼çè¤éãªæ¸å¼ã§è¨å®ãè¡ããªããã°ãªãã¾ããã - LVSã§ã¯å®ãµã¼ãã®ç¨¼åç¶æ ãç£è¦ããªãããããµã¼ããåæ¢ãã¦ãã¦ããã±ããã転éãããã¨ãã¾ãã
ããã®åé¡ã解決ããããã«ä½¿ãããã®ãldirecotrdã§ããldirectordã¯ãheartbeatã«ä»å±ãã¦ããè² è·åæ£ã·ã¹ãã ã管çããããã®ãã¼ã«ã§ããldirectordã§ã¯ãæ§ã ãªãããã³ã«ã®ç¨¼åç¶æ³ãç£è¦ããå¿ è¦ã«å¿ãã¦ãµã¼ãã追å ãåé¤ããæ©è½ãæä¾ãã¾ããã¾ããldirectordã使ãã°ipvsadmã使ã£ãè¤éãªè¨å®ãè¡ããªãã¦ãæ¯è¼ç容æã«è² è·åæ£æ©è½ãæ§ç¯ãããã¨ãã§ãã¾ãã