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

   Á¶È¸ 50696   Ãßõ 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   4974319   Á¤ÀºÁØ1
2015-12   1510554   ¹é¸Þ°¡
2019-07   6601   µö·¯´×¼­¹ö
2019-07   7887   µö·¯´×¼­¹ö
2019-07   5556   µö·¯´×¼­¹ö
2019-07   5637   µö·¯´×¼­¹ö
2019-07   4982   ±èȲÁß
2019-07   5037   µö·¯´×¼­¹ö
2019-07   5063   µö·¯´×¼­¹ö
2019-07   11734   µö·¯´×¼­¹ö
2019-08   4621   µö·¯´×¼­¹ö
2019-07   4046   µö·¯´×¼­¹ö
2019-07   4320   µö·¯´×¼­¹ö
2019-07   4719   µö·¯´×¼­¹ö
2019-08   5491   µö·¯´×¼­¹ö
2019-08   5253   µö·¯´×¼­¹ö
2019-08   8223   µö·¯´×¼­¹ö
2019-08   4925   ÇãÀα¸¸¶Æ¾
2019-08   3569   ÇãÀα¸¸¶Æ¾
2019-08   4034   ÇãÀα¸¸¶Æ¾
2019-08   4082   »ßµ¹À̽½ÇÄÀÌ
2019-08   8951   µö·¯´×¼­¹ö