ãLinuxãã¼ããã©ã³ãµæ§ç¯ã»éç¨ãã¦ãã¦ããå ¬éãã¾ãï¼ ããã¯WEB+DB PRESS Vol.37ã®ç¹éè¨äºã¨ãã¦DSASãã¼ã ãå·çãããã®ã§ãæè¡è©è«ç¤¾æ§ã®è¨±å¯ãå¾ã¦ä»åå ¬éããã¯ãã³ã¨ãªãã¾ããã ä¸å£ã§ããã¨ããLinuxï¼IPVSï¼keepalivedã使ã£ã¦ãåé·æ§æ(Active/Backup)ã®ãã¼ããã©ã³ãµãä½ãã¾ã§ãã®è§£èª¬è¨äºã§ã ãµã¼ãè² è·åæ£ä¸è¬ã«ã¤ãã¦ã®ã¯ãªã Linuxã§ãã¼ããã©ã³ãµãä½ã£ã¦ã¿ã ãã¼ããã©ã³ãµãåé·å ã¨ãã£ãæ§æã«ãªã£ã¦ãã¾ãã ã¿ãªãããLinuxãã¼ããã©ã³ãµãå°å ¥ã»æ§ç¯ã»éç¨ããéã®ä¸å©ã«ãªãã°ãDSASãã¼ã ã¨ãã¦ãããããéãã§ãã®ã§ãæ¯éãã覧ã«ãªã£ã¦ãã ããï¼ ç¬¬1ç« ãµã¼ãè² è·åæ£æ¦è« ç¹éã®ã¯ããã« ãªããµã¼ãè² è·åæ£ãããã®ãï¼ ãµã¼ãè² è·åæ£ã®å®ç¾æ¹æ³ ãã¼ããã©ã³ãµã®ããæ§æ ãã¼ããã©ã³ãµã¯ãªã«ãå ã«åæ£ã
ååã¯keepalivedã使ã£ã¦Webãµã¼ããåé·åãã¦ã¿ã¾ããã ä»åã¯keepalivedã®ããä¸ã¤ã®æ©è½ã§ããVRRPã使ã£ã¦ããã¼ããã©ã³ãµèªèº«ãåé·æ§æã«ãã¦ã¿ããã¨æãã¾ãã âââââââ â client â ââââ¬âââ â[10.10.31.200] â ââââââââ¯âââââ·ââââââ¯âââââââââ 10.10.31.0/24 â â â â â â(10.10.31.10) â â â â{10.10.31.100}â â [10.10.31.11]â â[10.10.31.12] âââ´ââ âââ´ââ â lv1 â â lv2 â âââ¬ââ âââ¬ââ [192.168.31.11]â â[192.168.31.12] â â(192.168.31.10)ââ â â âââââââ¯â·âââââââââââ·â¯ââââââââ 192.168.3
ååã¾ã§ã§ã è¤æ°ã®Webãµã¼ãã«ãã¼ããã©ã³ã¹ãã ã¨ããã¨ããã¾ã§ã¯ã§ãã¾ããã ããã§ãªã¢ã«ãµã¼ãã¸è² è·åæ£ãããã¨ãã§ããã®ã§ãããåé·æ§ãããã¾ããã§ãããã¤ã¾ãããªã¢ã«ãµã¼ãããã¦ã³ãã¦ãããã¼ããã©ã³ãµã¯ãããèªèã§ããããã¦ã³ãã¦ãããªã¢ã«ãµã¼ããªã®ã«ãã±ãããéã£ã¦ãã¾ã£ã¦ãã¾ããã ãã®ã¨ããã¯ã©ã¤ã¢ã³ãããè¦ãã¨ããã¾ã«ãµã¼ãããå¿çããªãããã«è¦ãã¦ãã¾ãã¾ãã ã¨ããããã§ä»åã¯åé·åã®ã話ã ãªã¢ã«ãµã¼ãã®ãã«ã¹ãã§ã㯠ãç´¹ä»ãããã¨æãã¾ãã ä»åã¯keepalivedã使ãã¾ãã ãããã£ã±ã«ããã¨ãkeepalivedã¯2ã¤ã®æ©è½ãæä¾ãã¾ãã 1. ãã«ã¹ãã§ãã¯æ©æ§ã¨é£æºããIPVSã§ã®ãªã¢ã«ãµã¼ãã®ç®¡ç (--check) ååipvsadmã³ãã³ãã使ã£ã¦è¡ã£ããããªããã¼ãã£ã«IPã¢ãã¬ã¹ (VIP) ããªã¢ã«ãµã¼ãã®ç®¡çãè¨å®ãã¡ã¤ã«ã«è¨è¿°ã
id:hirose31ããããã¼ããã©ã³ãµã«ã¤ãã¦ããããæ¸ãã¦ã. ãããªããããªãï¼DNS RRã¯ãã¼ããã©ã³ãµã®åº§ã奪ãè¿ããã ãã®éå½¼ããæãã¦ããã£ããã ãã©LVS(LinuxVirtualServer)ã¯çµæ§ãããã¨ãã話. ãã§ãå®å®æ§ãããã¨ããASICã«ã¯åã¦ãªããããã¨ãããããã¤ã¯ãã¾ãã¯è©¦ãã¦ã¿ã¦ã¿ã¼ããã£ã¨ã³ã£ããããããã ãã¼ããã©ã³ãµã®1éç¨å½¢æ ã§ããDSR(Direct Server Return)ãç¥ããªã人ã ã¨ãã½ããã¦ã§ã¢ã§ãã¼ããã©ã³ãµ?ããããã¼ãã¨ãæã£ã¦ã¦ãããããªãã¨æã.DSRãç¥ããªãã¨ãã¤ã¾ã§ããã³ãã¼ã«é«ããéãæããã¨ã«ãªãã®ã§ãã§ããã§ãæ¸ãã¦ã¿ã. DSRãç¥ããªã人ããã¼ããã©ã³ãµã¼ã«æã£ã¦ããã¤ã¡ã¼ã¸ã¯å³ã®1ã®éãã ã¨æã.ã¤ã¾ã HUBãéãã¦ãªã¯ã¨ã¹ãããã¼ããã©ã³ãµã«å±ã(1,2) ãã¼ããã©ã³ãµã¯é©å½ã«ãã©ã³ã·ã³
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}