@shibuya.pm#17
@shibuya.pm#17
æ¬è¨äºã®å ¬éå¾ã®2016å¹´7æã«ã¯ã¦ãªã«ããããã¥ã¼ãã³ã°äºä¾ãç´¹ä»ããã ã¯ã¦ãªã«ãããLinuxãããã¯ã¼ã¯ã¹ã¿ãã¯ããã©ã¼ãã³ã¹æ¹å / Linux network performance improvement at hatena - Speaker Deck HAProxy ã nginx ãªã©ã®ã½ããã¦ã§ã¢ãã¼ããã©ã³ãµããªãã¼ã¹ãããã·ãmemcached ãªã©ã® KVS ã®ãããªé«ãã±ããã¬ã¼ãã«ãªãããããããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãåä¸ã® CPU ã³ã¢ã«è² è·ãåãããã«ãã³ã¢ã¹ã±ã¼ã«ããªããã¨ãããã¾ãã ä»åã¯ããã®ãããªãããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ãã㦠CPU è² è·ããã«ãã³ã¢ã¹ã±ã¼ã«ããªãçç±ã¨ããã«ãã³ã¢ã¹ã±ã¼ã«ãããããã® Linux ã«ã¼ãã«ã®ãããã¯ã¼ã¯ã¹ã¿ãã¯ã®ãã¥ã¼ãã³ã°ææ³ã¨ã㦠RFS (Receive Flow Steering) ã
long_query_time = 0.5 ã¨ãé¾å¤ãå°ããã«ãã¦ãã¹ãã¼ã¯ã¨ãªãåºãªããªã£ããã©ãCPU(user)使ç¨çé«ãã¨ãããªãã足å¼ã£å¼µã£ã¦ãã¯ã¨ãªãããã£ã½ããªãã¨ããå ´åã®ã話ã§ãã ãå®é²ãã®éããç¾å¨çµ¶è³é²è¡ä¸ã§ãã®ã§ãé次åãããã£ããæ¸ã足ãã¦ããã¤ããã§ãã ããããè¦ãæ¹ããããã¨ããããããã¼ããæ¹ããããã¨ãããã°ãã³ã¡ã³ããTwitter㧠@hirose31 ã¾ã§ãç¥ããããã ããã¨ããããã§ãï¼ ä½¿ç¨ãã¦ããã®ã¯ãMySQL 5.1.41 ã§ãã åæ: ãµã¼ãã¼ãªã½ã¼ã¹ã®ã°ã©ã Gangliaã§ãCactiã§ãMuninã§ããªãã§ããããã§ããããµã¼ããªã½ã¼ã¹ã®ã°ã©ãåã¯å¿ é ã§ãããã¥ã¼ãã³ã°ããéã®å¹æ測å®ãããããããªã½ã¼ã¹é£ãæ½°ãã¦ãã°ãã¨ãã®äºæ¸¬ã«ã使ãã¾ãã èªåã¯DBãµã¼ãã®å ´åãã®ããããã°ã©ãåãã¦ã¾ãã CPU使ç¨ç (user,
MySQLãé«éåãã10ã®æ¹æ³ã¨ããè¨äºãã¨ã¦ã好è©ã ã£ãããã§ãããè¨äºãèªãã§é ããçããããããã¨ãã ãã®è¨äºã«å¯¾ãã便ä¹ï¼ï¼ï¼ã§Webå±ã®ãã¿å¸³: PostgreSQLãé«éåãã16ã®ãã¤ã³ãã¨ããè¨äºãæ¸ãã¦é ããããã ãããã¡ãã®æ¹ãããªã人æ°ã ã£ãããã§ãããä»äººãä½ã£ãã½ããã¦ã§ã¢ã«æ¹è¯ãå ããã¨ããããªã¼ã½ããã¦ã§ã¢ããªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ã®ç²¾ç¥ãåºæ¬ã¯ä¾¿ä¹ã§ããã®ã§ã便ä¹ã«ã¤ãã¦ã¯å¤§ãã«è³æãããã¨ããããããåãä¸ãã¦ããã¦ãããã¨ãï¼ï¼ã¨æãããã§ããããããã§ããã«ä¿ºã¯ããèããã ã¨ã Webå±ã®ãã¿å¸³ããã®è¨äºã§ã¯16ã®ãã¤ã³ããç´¹ä»ããã¦ããããæ¼¢ï¼ãªãã³ï¼ã®ã³ã³ãã¥ã¼ã¿éã®è¨äºã¯10ã®æ¹æ³ã ã£ãã®ã§ãã¨6ã¤è¶³ããªãããªãã³ã¯æ°ã§åè² ï¼ï¼ã¨ããããã§ä»æ¥ã¯ãã¿ãæ¯ãçµã£ã¦ããã«7ã¤ã®MySQLé«éåãã¯ããã¯ãç´¹ä»ãããã 1. ã¤ã³ãã«ã³ã³ãã¤ã©
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}