MySQL query cache hit rate °è»êÇϱâ

   Á¶È¸ 50693   Ãßõ 0    

MySQL의 문서를 읽어 봤는데, 아래의 문서와 같이 계산하는 것이 맞는 것 입니다.

The total number of SELECT queries is given by this formula:
  Com_select
+ Qcache_hits
+ queries with errors found by parser

Query Cache Hit Rate = Qcache_hits / ( Qcache_hits + Qcache_inserts ) * 100

2CPU 서버의 경우 = 147977 / ( 147977 + 50160 ) = 74.68% ... 이정도면 좋은거죠? ^^
 
===
SHOW GLOBAL STATUS LIKE 'Com_select'
65942

Variable_name Value
Qcache_free_blocks 665
Qcache_free_memory 130837352
Qcache_hits 147977
Qcache_inserts 50160
Qcache_lowmem_prunes 0
Qcache_not_cached 18091
Qcache_queries_in_cache 1412
Qcache_total_blocks 3587
- to be continue -
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
±è¼­¹æ 2013-04
com_select ·Î °è»êÇÏ´Â°Ô Á¤È®ÇÑ Äõ¸®¿¡ ´ëÇÑ Ä³½Ã È÷Æ®·üÀ» ã´Â °ÍÀÔ´Ï´Ù.
Qcache_inserts ´Â ¸»±×´ë·Î ij½ÃhitµÇ¼­ ij½Ã¿¡ ÀÔ·ÂµÈ °ªÀ» ÀǹÌÇÕ´Ï´Ù.
¾Æ·¡ ¸µÅ©¿¡µµ ³ª¿ÀÁö¸¸ 2¹ø°ú 3¹øÀº °ÅÀÇ °°Àº °ªÀ¸·Î ³ª¿É´Ï´Ù.
2cpu ÀÇ °æ¿ì ´ë·« 70%¿¡ °¡±î¿î ij½ÃÄõ¸®È÷Æ®·üÀ» º¸¿©ÁÝ´Ï´Ù.
¾Æ¸¶ ½Ã°£ÀÌ Áö³ª¸é ´õ ³ô¾ÆÁúµí ½Í½À´Ï´Ù.

¼ö°íÇϼ̽À´Ï´Ù.
     
ȸ¿øK 2013-04
Com_select°¡ Á¤È®Çϱâ´Â ÇÏÁö¸¸
queries with errors found by parser ...ÀÌ·±°Å´Â ¾ø´Ù°í »ý°¢ÇÏ°í ¸¾ÆíÈ÷ ´ëÃæ °è»êÇؾßÁÒ.
ÇÁ·Î±×·¥À» ¸¸µé¶§ ¿øÄ¢ÀÌ °¡´ÉÇϸé ij½³µÉ ¼ö ÀÖµµ·Ï Äڵ带 ¼³°è Çߴµ¥ È¿°úÀûÀ̳׿ä.

==
¾Æħ¿¡ °è»êÇÑ Query Cache Hit Ratio´Â 81% ÀÔ´Ï´Ù.


PDS
Á¦¸ñPage 62/77
2015-12   1509836   ¹é¸Þ°¡
2014-05   4973537   Á¤ÀºÁØ1
2023-06   23076   ´Ù·ÕÀÌ
2015-09   23123   ƼÇÇÁö±â
2018-01   23184   ¶Ç¸®±º
2010-02   23204   ¾î¸¥¾ÆÀÌ
2023-05   23222   °­³²»çÂ¥
2017-12   23259   catstyle
2014-07   23295   user
2009-02   23307   Á¤Áøȯ
2013-06   23359   ¼Û°­¹Î
2023-05   23504   °­³²»çÂ¥
2009-06   23530   ¹Ú¿ì¿­
2010-01   23569   Á¤ÀºÁØ1
2017-11   23773   ÂøÇÏ°Ô»ìÀÚ2
2023-01   23812   ¾öû³­x
2014-12   23918   ±èÀº°æ
2015-09   23932   QS¿ÕÅëÅ°¼Õ¡¦
2017-01   23958   õ¿Üõoo³ë¡¦
2014-07   24077   user
2011-04   24125   ¸¶ÀÌÄÚÄÚ
2018-03   24175   lsm3741