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

   Á¶È¸ 50670   Ãßõ 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   4947487   Á¤ÀºÁØ1
2015-12   1484147   ¹é¸Þ°¡
2019-09   5400   µö·¯´×¼­¹ö
2019-09   5356   µö·¯´×¼­¹ö
2019-10   5383   ÇãÀα¸¸¶Æ¾
2019-10   4436   µö·¯´×¼­¹ö
2019-10   6556   µö·¯´×¼­¹ö
2019-10   4521   µö·¯´×¼­¹ö
2019-10   4600   µö·¯´×¼­¹ö
2019-10   5773   PCMaster
2019-10   6276   µö·¯´×¼­¹ö
2019-11   4668   ÇãÀα¸¸¶Æ¾
2019-11   4857   Ansyncic
2019-11   5868   ½ºÄµl¹ÎÇö±â
2019-11   12307   µö·¯´×¼­¹ö
2019-11   5818   MikroTikÀÌÁø
2019-11   7817   µö·¯´×¼­¹ö
2019-12   5688   PCMaster
2019-12   6208   ocarina
2020-01   8932   µö·¯´×¼­¹ö
2020-03   8081   ½ºÄµl¹ÎÇö±â
2020-03   5661   ¼öÆÛ½ÎÀ̾ð