¾ÕÀÇ °Á¿¡¼ ±âº»ÀûÀÎ ¸ð´ÏÅ͸µ ¹æ¹ý ¹× Conection, Memory Æ©´×¿¡ ´ëÇÏ¿© ¼Ò°³ÇÏ¿´½À´Ï´Ù. ±×·¯³ª show status, show variables ¸í·É¾î ¸¸À¸·Î´Â Áö¼ÓÀûÀ¸·Î MySQL DB Server »óŸ¦ ¸ð´ÏÅ͸µ Çϱ⿡´Â ºÒÆíÇÑ Á¡ÀÌ ¸¹½À´Ï´Ù.
±×·¡¼ À̹ø °Á¿¡´Â "MySQL Administrator" ÇÁ·Î±×·¥À» ÀÌ¿ëÇÏ¿© È¿°úÀûÀ¸·Î ¸ð´ÏÅ͸µÇÏ´Â ¹æ¹ý¿¡ ´ëÇÏ¿© ¼Ò°³Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù.
°¡. ¼³Ä¡
- http://www.mysql.com/products/tools/ ¿¡¼ MySQL Administrator
ÇÁ·Î±×·¥À» ´Ù¿î·Îµå ¹Þ´Â´Ù.
À̹ø °Á¿¡¼´Â ¸ð´ÏÅ͸µ¿¡ ´ëÇÑ ¼³¸íÀ̱⠿øµµ¿ì¿ëÀ» ´Ù¿î·Îµå ¹Þ¾Æ °³ÀÎ PC¿¡ ¼³Ä¡Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù. ¼¹ö¿¡ Á÷Á¢ ¼³Ä¡ÇÒ °æ¿ì´Â ¼¹ö OS¿¡ ¸Â´Â ¹öÀüÀ» ´Ù¿î·Îµå ¹Þ¾Æ ¼³Ä¡ÇÏ½Ã¸é µË´Ï´Ù. - ´Ù¿î·Îµå ¹ÞÀº mysql-administrator-x.x.x-win.msi ¸¦ ½ÇÇà½ÃŲ´Ù.
- ¼³Ä¡¸¶¹ý»ç¿¡ µû¶ó¼ ¼³Ä¡ÇÑ´Ù.
- ¼³Ä¡°¡ ¿Ï·áµÇ¸é "½ÃÀÛ > ÇÁ·Î±×·¥ > MySQL > MySQL Administrator" ¸Þ´º°¡ »ý¼ºµÇ°í À̸¦ ÅëÇØ MySQL Administrator ½ÇÇàÇÑ´Ù.
- Á¢¼ÓÇÏ·Á´Â MySQL ServerÀÇ Server Host, Username,Password¸¦ ÀÔ·ÂÇÑ´Ù.
- MySQL Administrator¸¦ ÅëÇؼ Á¢¼ÓÇÑ MySQL ¼¹ö¿¡ ´ëÇÑ Server Information, User
Administration, Health µîÀÇ Á¤º¸¸¦ º¸½Ç ¼ö ÀÖ½À´Ï´Ù.
³ª. MySQL DB Server »óÅ ¸ð´ÏƼ¸µ
MySQL Administrator´Â Health ¸Þ´º¸¦ ÅëÇØ Connection Health, Memory Health Á¤º¸¸¦ Graph·Î µ¿ÀûÀ¸·Î Á¶È¸ÇÏ¿© º¼ ¼ö ÀÖ´Â ±â´É°ú Status Variables, System Variables¸¦ °èÃþÀûÀ¸·Î ±¸¼ºÇØ ³õ¾Æ ¼Õ½±°Ô ÇØ´ç Á¤º¸¸¦ Á¶È¸ÇÏ¿© º¼ ¼ö ÀÖ½À´Ï´Ù.
1. Connection Health
- Connection Usage : ÃÖ´ë µ¿½Ã Á¢¼ÓÀÚ ´ëºñ ÇöÀç Á¢¼ÓÀ²( threads_connected / max_connections )
- Traffic : Status Áß bytes_sent °ª¿¡ ´ëÇÑ Á¤º¸
- Number of SQL Queries: Status Áß com_select °ª¿¡ ´ëÇÑ Á¤º¸
¡Ø °¢ Graph¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸´Â GraphÀ§¿¡¼ ¸¶¿ì½º ¿À¸¥ÂÊÅ°¸¦ Ŭ¸¯ ÈÄ "Edit Graph" À» ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù.
2. Memory Health
- Query Cache Hitrate : SQL ±¸¹® ¹× °á°ú¿¡ ´ëÇÑ Query CacheÀÇ Àç »ç¿ë·ü·Î½á, Hitrate°¡ ³ôÀ»¼ö·Ï ¼º´ÉÀÌ ÁÁ´Ù°í »ý°¢ÇÏ½Ã¸é µË´Ï´Ù.
- Key Efficiency : ¼öÁ÷¹Ù´Â key bufferÀÇ »ç¿ë·®( [Key_blocks_used]*[key_cache_block_size] ) À̸ç, ¼± ±×·¡ÇÁ´Â 100-(^[Key_reads]/^[Key_read_requests])*100 ·Î½á Hitrate°¡ ÀÛÀ»¼ö·Ï È¿À²ÀÌ ÁÁÀº °ÍÀÔ´Ï´Ù.
3. System Variables & System Variables
´Ù. »ç¿ëÀÚ Health ±×·¡ÇÁ ¸¸µé±â
Cache Miss Rate(%) = Threads_created / Connections * 100 À» Graph¸¦ ÅëÇؼ ¸ð´ÏÅ͸µ ÇØ º¸°Ú½À´Ï´Ù.
- "Connection Health" ÅÇÀ» ¼±ÅÃÇÑ´Ù.
- ¾Æ·¡¿Í °°ÀÌ ¸¶¿ì½º¿À¸¥ÂÊÅ°¸¦ ÀÌ¿ëÇÏ¿© "Add Group" À» ÅëÇØ ±×·ìÀ» »ý¼ºÇÑ´Ù. Group CationÀº Cache Miss
Rate·Î ÀÔ·ÂÇÑ´Ù.
- 2¹ø°ú µ¿ÀÏÇÑ ¹æ¹ýÀ¸·Î ÇØ´ç Group À§¿¡¼ ¸¶¿ì½º¿À¸¥ÂÊÅ°¸¦ ÀÌ¿ëÇÏ¿© "Add Graph" ¸¦ Ŭ¸¯ÇÑ´Ù.
- ¾Æ·¡¿Í °°ÀÌ Value formula ¿Í Max. Formula µîÀÇ °ªÀ» ¼³Á¤ÇØ ÁØ´Ù.
- Cache Miss Rate(%) °ªÀ» ¸ð´ÏÅ͸µ ÈÄ¿¡ thread_cache_size °ªÀ» ÃÖÀûÈ ½ÃŲ´Ù.