1
データベースのパフォーマンスを向上させる必要がありますが、私はそれを行うことはできません。誰かが助けてくれますか? 最近は非常に遅く、この方法を続けることができないため、解決が必要です。 あなたはより多くの情報が必要な場合は、パフォーマンスメトリクスによるmysqlデータベースのパフォーマンスの向上
が列に適切なインデックスを追加すると、問題の半分を解決する必要がありますあなたの
-------- Performance Metrics -------------------------------------------------
[--] Up for: 1d 12h 31m 21s (174M q [1K qps], 357K conn, TX: 1706B, RX: 23B)
[--] Reads/Writes: 36%/64%
[--] Binary logging is disabled
[--] Total buffers: 34.1G global + 56.2M per thread (350 max threads)
[OK] Maximum reached memory usage: 47.3G (75.17% of installed RAM)
[OK] Maximum possible memory usage: 53.4G (84.87% of installed RAM)
[OK] Slow queries: 0% (593/174M)
[OK] Highest usage of available connections: 68% (239/350)
[OK] Aborted connections: 0.13% (465/357547)
[OK] Query cache efficiency: 70.6% (79M cached/112M selects)
[!!] Query cache prunes per day: 194481
[OK] Sorts requiring temporary tables: 0% (72 temp sorts/105K sorts)
[!!] Joins performed without indexes: 6417
[OK] Temporary tables created on disk: 1% (7K on disk/727K total)
[OK] Thread cache hit rate: 99% (242 created/357K connections)
[OK] Table cache hit rate: 98% (2K open/2K opened)
[OK] Open file limit used: 0% (330/819K)
[OK] Table locks acquired immediately: 99% (99M immediate/99M locks)
-------- MyISAM Metrics ------------------------------------------------------
[!!] Key buffer used: 18.3% (24M used/134M cache)
[OK] Key buffer size/total MyISAM indexes: 128.0M/343.0K
[OK] Read Key buffer hit rate: 100.0% (290K cached/42 reads)
[!!] Write Key buffer hit rate: 42.0% (128K cached/74K writes)
-------- InnoDB Metrics ------------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool/data size: 32.0G/95.3G
[OK] InnoDB buffer pool instances: 32
[OK] InnoDB Used buffer: 100.00% (2097127 used/ 2097136 total)
[OK] InnoDB Read buffer efficiency: 99.99% (61258009301 hits/ 61262710249 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits/53278760 writes)
-------- ThreadPool Metrics --------------------------------------------------
[--] ThreadPool stat is disabled.
-------- AriaDB Metrics ------------------------------------------------------
[--] AriaDB is disabled.
-------- TokuDB Metrics ------------------------------------------------------
[--] TokuDB is disabled.
-------- Galera Metrics ------------------------------------------------------
[--] Galera is disabled.
-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Restrict Host for [email protected]% to [email protected]
Enable the slow query log to troubleshoot bad queries
Increasing the query_cache size over 128M may reduce performance
Adjust your join queries to always utilize indexes
Variables to adjust:
query_cache_size (> 1G) [see warning above]
join_buffer_size (> 32.0M, or always use indexes with joins)
innodb_buffer_pool_size (>= 95G) if possible.
インデックスを最適化しましたか? – Jeroen
チューニングを行い、 'query_cache_size'と' query_cache_limit'を変更するために 'my.cnf'を交互に実行する前に、' 'インデックスなしで実行された結合 'ビットを調べてください。 – phreakv6
インデックスなしで実行された結合を解決するにはどうすればよいですか?それを見つける方法? @ phreakv6 – Yasser