9. åä½ç¢ºèª åºæ¬æ å ± â ã¯ã©ã¤ã¢ã³ã - curl â dagon - 10.0.214.215 â keepalived+LVS â cthulhu(MASTER) - 10.0.214.216 â hastur(BACKUP) - 10.0.214.217 â ããã¯ã¨ã³ã - httpd â nyar - 10.0.214.218 â yog - 10.0.214.219 â VIP â 192.168.200.16 10. åä½ç¢ºèª äºåæºå â LVSã»ããã¯ã¨ã³ãã®ENIã®Source/Dest Check ãdisabledã«ãã â ããã¯ã¨ã³ãã§iptablesã®è¨å® sudo iptables -t nat -A PREROUTING -d 192.168.200.16 -j REDIRECT 12. åä½ç¢ºèª - keepalived.cnf(cthulhu)
KLab Advent Calendar 2011 ãDSAS for Social ãæ¯ããæè¡ã ã®16æ¥ç®ãæçµæ¥?ã§ãã ä»æ¥ã¯ã14æ¥ç®ã®ç¶ãã«ãªãã¾ããååã¯ããããã¯ã¼ã¯éä¿¡ã«ããã¦è² è·åæ£æ©ãããã«ããã¯ã«ãªã£ã¦ããã®ã解æ¶ããããã«ãDSRæ§æãã¨ãããã®è¨å®é ç®ãããã¦ãããããã«é¢ãã¦èª¬æããã¨ããã§çµãã£ã¦ãã¾ãããä»æ¥ã¯å ·ä½çãªè¨å®ã«ã¤ãã¦èª¬æãã¦ããã¾ãã DSRæ§æã®ã¬ã·ã ã¾ãã¯ãè¨å®é ç®ããããããã¦ããã¾ãããã次ã®6ã¤ã§ããã LVS ã®è² è·åæ£ã®è¨å®ãDSRã«å¤æ´ãã(ipvs ã®è¨å®) Webãµã¼ãããDSRãªãªã¯ã¨ã¹ããã±ãããæ±ããããã«ãã(iptables ã®è¨å®) Webãµã¼ãããouter VLAN ã«åå ããã(L2 ã¹ã¤ããã®è¨å®) Webãµã¼ãããouter VLAN ã«ããã¦éä¿¡ã§ããããã«è¨å®ãã(VLAN ç¨ã¤ã³ã¿ãã§ã¼ã¹ã®
KLab Advent Calendar 2011 ãDSAS for Social ãæ¯ããæè¡ã ã®14æ¥ç®ã§ãã ãã®ã·ãªã¼ãºããåãã¯å°ãã¢ããªã±ã¼ã·ã§ã³å¯ãã®è©±é¡ã§ããããããäºåã»ã©ã¯ã¤ã³ãã©å¯ãã®è©±é¡ã§ãããä»æ¥ã¯ããã«(OSIã®7é層ã¢ãã«ã«ãã¦ãã¨)ä¸å¯ãã®è©±é¡ã«ãªãã¾ãâ¦ãã§ããã ãåãããããæ¸ãã¤ããã§ãã®ã§ããä»ãåãé ããã°ã¨æãã¾ãã è² è·åæ£æ©ãããã«ãã㯠ãã¦ãDSAS for Social ã§ã¯ããã¤ãã®ã¢ããªã±ã¼ã·ã§ã³ãåãã¦ããããã§ãããã§ã¯1ã¤ã®ã¢ããªã±ã¼ã·ã§ã³ããã¼ã¯æã«ä½¿ã帯åã¯ã©ããããã«ãªãããçããæ³åãã¤ãã¾ãã§ãããããçãã¯ãã¡ããã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦å ¨ãå¤ããã®ã§ãããä»ã¾ã§è¨é²ããä¸ã§ã®æ大å¤ã¯ã2Gbps ãè¶ãã¾ãããããã¯ããµã¼ãã«æè¼ããã¦ãã NIC ã®è½åãè¶ãã¦ãã¾ãããã¡ããã1å°ã® web ãµã¼ãã§ãã®
大è¦æ¨¡ãµã¤ãã§ã¯L4ã¹ã¤ãããDSR(Direct Server Return)æ§æã§çµããã¨ã¯ãã¯ã常èã§ãããããå½å ã«ã¯å¤§è¦æ¨¡ãµã¤ããå°ãªããããDSRæ§æã«ã¤ãã¦ã®æ å ±ãä¸è¶³ãã¦ããã®ãç¾ç¶ã§ããL4ã¹ã¤ãããæ±ã£ã¦ãããã³ãã¼ãããDSRæ§æã§ãããã¯ã¼ã¯ãæ§ç¯ããã¨ããä¾ãã»ã¨ãã©èããªãã¨ã®ãã¨ã§ããããã§ä»åã¯DSRæ§æã®ç´¹ä»ã¨ã¡ãªããï¼ãã¡ãªããããç´¹ä»ãã¾ãã ãä¸è¬çãªæ§æã¨DSRæ§æã®éãã ä¸è¬çãªæ§æã§ã¯ã¹ã¤ããã¨ãµã¼ãã®éã«L4ã¹ã¤ãããæã¿è¾¼ãæ§æãåãã¾ããããã«å¯¾ãã¦DSRæ§æã§ã¯ã¹ã¤ããã«ç´æ¥L4ã¹ã¤ãããæ¥ç¶ãã¾ãã ãããè¸ã¾ãã¦ãã±ããã®æµããè¦ã¦ã¿ã¾ããããä¸è¬çãªæ§æã§ã¯è¡ãã®ãã±ãããL4ã¹ã¤ãããæµããµã¼ãã«å°éãã帰ãã®ãã±ãããL4ã¹ã¤ãããæµãã¦ããã¾ããããã«å¯¾ãã¦DSRæ§æã§ã¯è¡ãã®ãã±ããã¯L4ã¹ã¤ãããéãã¾ããã帰ãã®ãã±
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}