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

   Á¶È¸ 50689   Ãßõ 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   4968732   Á¤ÀºÁØ1
2015-12   1505053   ¹é¸Þ°¡
2022-08   7294   »ßµ¹À̽½ÇÄÀÌ
2020-06   7276   ¸¸¼®±º
2021-01   7276   ½ºÄµl¹ÎÇö±â
2021-08   7232   »ßµ¹À̽½ÇÄÀÌ
2019-10   7224   ¾Æ½º¶õ
2019-05   7074   ½ºÄµl¹ÎÇö±â
2020-06   7069   Noname1
2019-10   7066   ½ºÄµl¹ÎÇö±â
2019-07   7032   À̼±È£
2022-08   6995   ¾Æ½º¶õ
2019-08   6978   ¾Óµå·¹ÁØ
2019-04   6976   PCMaster
2022-08   6947   »ßµ¹À̽½ÇÄÀÌ
2022-01   6944   ½ºÄµl¹ÎÇö±â
04-03   6908   JUSTA
2019-01   6888   ºó¼¾Æ®1
2020-06   6880   »ßµ¹À̽½ÇÄÀÌ
2021-08   6792   ȲÁø¿ì
2019-12   6791   À̼±È£
2019-05   6785   JW¸¶¸£´Ï