以å LVS + Ultra Monkey で負荷分散 (設定編) - 酒日記 はてな支店 ã§æ¸ããããã«ãApache ã LVS ã§è² è·åæ£ããã®ã§ããããã®éã«ã¢ã¯ã»ã¹ãã°ãä¸ã¤ã« (æç³»åãä¿ã£ã¦) ã¾ã¨ããã«ã¯ã©ãããã°ããããã¡ãã£ã¨æ©ã¿ã¾ããã
çµå± Apache ãããã¤ãçµç±ã§ logger ã³ãã³ããèµ·åã㦠syslogd ã§ãã°åå¾ãã¹ãã«é£ã°ããã¨ãããã¨ãããã®ã§ãããããã¤ãåé¡ãã
- ãã°ã®å é ã« syslogd ã®æ¥ä» (Jan 24 18:33:30 www1 logger: ) ãä»ã â éè¨ã®éªé
- syslog 㯠1ã¡ãã»ã¼ã¸ 1024 byte ã¾ã§ããè¨é²ã§ããªãã®ã§ãå°»åãã«ãªãè¡ã (ç¨ã«ã ãã©) çºçãã
- Linux ã® syslogd ã¯æ¸ãè¾¼ã¿ã®éã«é »ç¹ã« sync ããã®ã§ãDISK IO ã大éã«çºçãã¦éã
ç¹ã«æå¾ã®ã¯ãç§éæ°ç¾ãªã¯ã¨ã¹ããè¶ ãããããªå ´åã«çµæ§è² è·ã¨ãã¦å¹ãã¦ããããã§ããªãã¨ãããããªã¨ã
ã¾ãæãã¤ããã®ã¯ãsyslogd ãã syslog-ng ã«ä¹ãæãããã¨ã
ãã ãéç¨ä¸ã®ãµã¼ãã® syslog ãå ¥ãæ¿ããã®ã¯ã¡ãã£ã¨åå«ãç¾å¨ syslog ã§åã£ã¦ãããã°ããã¹ã¦åãæ¿ããã®ã¯é¢åã ããApache 以å¤ã®ãã°ã¯ããã»ã©å¤§éã«çºçããããã§ã¯ãªããã
ã§ãã¹ã±ã¼ã©ãã«WEBãµã¤ã ãèªãã§ããããThe Spread toolkit ã使ãã¨ããã! ã¿ãããªãã¨ãæ¸ãã¦ãã£ãã®ã§å®é¨ãã¦ã¿ãã
ããããæè¿åºã¦ããæè¡ã§ããªãã®ã«ãã°ã°ã£ã¦ãæ¥æ¬èªã®æ å ±ããã£ã±ãè¦ã¤ãããªãã®ã¯ä½æ ãªãã ããã
ãããã£ã±ã«è¨ãã¨ãããªæãã®æ§æã«ãªãã¾ãã
- ãã¹ã¦ã®ãã¹ãã« spread ãã¼ã¢ã³ãèµ·åãä¸ã¤ã®ã¯ã©ã¹ã¿ãæ§æãã
- Apache 㯠mod_log_spread (ã¾ãã¯ãã¤ãçµç±ã§å¤é¨ããã°ã©ã ) ã使ç¨ããlocalhost ã® spread ã«ãã°ãã¡ãã»ã¼ã¸ã¨ãã¦åºå
- spread ã¯ãã«ããã£ã¹ã (ã¾ãã¯ããã¼ããã£ã¹ã) ã§ãã¯ã©ã¹ã¿ã«ã¡ãã»ã¼ã¸ãæµã
- spreadlogd (ãã¼ã¢ã³) 㯠localhost ã® spread ããã¡ãã»ã¼ã¸ãåä¿¡ãããã¡ã¤ã«ã«æ¸ãè¾¼ã
ä¸è¨ãlocalhost ã®ãã®é¨åã¯å®ã¯ localhost ã§ãªãã¦ãæ§ããªãã®ã ãã©ã話ãåç´ã«ãããããããã¾ãã
ã¯ã©ã¹ã¿å ã«ä½å°ã®ãã¹ãããã£ã¦ãããã®éã® spread ã®ã¡ãã»ã¼ã¸ã¯ãã«ã(ããã¼ã)ãã£ã¹ãã§æµãããããéä¿¡éãå°ãªãã¦æ¸ããã¨ããã¡ãªããããããããªã