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

   Á¶È¸ 50692   Ãßõ 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
2014-05   4973273   Á¤ÀºÁØ1
2015-12   1509563   ¹é¸Þ°¡
2023-06   23076   ´Ù·ÕÀÌ
2015-09   23122   ƼÇÇÁö±â
2018-01   23183   ¶Ç¸®±º
2010-02   23204   ¾î¸¥¾ÆÀÌ
2023-05   23222   °­³²»çÂ¥
2017-12   23257   catstyle
2014-07   23293   user
2009-02   23305   Á¤Áøȯ
2013-06   23358   ¼Û°­¹Î
2023-05   23502   °­³²»çÂ¥
2009-06   23529   ¹Ú¿ì¿­
2010-01   23567   Á¤ÀºÁØ1
2017-11   23770   ÂøÇÏ°Ô»ìÀÚ2
2023-01   23810   ¾öû³­x
2014-12   23916   ±èÀº°æ
2015-09   23931   QS¿ÕÅëÅ°¼Õ¡¦
2017-01   23956   õ¿Üõoo³ë¡¦
2014-07   24076   user
2011-04   24124   ¸¶ÀÌÄÚÄÚ
2018-03   24174   lsm3741