From ca41e2bfdbe5a4d437a8cd1e2e1cbb2e059f7633 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Date: Wed, 9 Apr 2025 16:39:28 +0000 Subject: [PATCH 1/2] refs #4685 Enable statistics for use by PMM --- roles/db/files/conf/z90-vn.cnf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/db/files/conf/z90-vn.cnf b/roles/db/files/conf/z90-vn.cnf index c7db964..0c77ad2 100644 --- a/roles/db/files/conf/z90-vn.cnf +++ b/roles/db/files/conf/z90-vn.cnf @@ -54,7 +54,6 @@ transaction-isolation = READ-COMMITTED idle_transaction_timeout = 60 innodb_io_capacity = 100 innodb_io_capacity_max = 100 -innodb_monitor_enable = all innodb_read_io_threads = 16 innodb_write_io_threads = 16 innodb_checksum_algorithm = crc32 @@ -89,10 +88,17 @@ query_cache_limit = 0 query_cache_type = OFF query_cache_size = 0 -#++++++++++++++++++++++++++++++++++++++++ Performance Schema + +#++++++++++++++++++++++++++++++++++++++++ Performance Schema & PMM + +innodb_monitor_enable = all performance_schema = ON performance_schema_digests_size = 20000 performance-schema-consumer-events-statements-history = ON performance_schema_consumer_events_statements_history_long = ON +performance-schema-instrument = 'statement/%=ON' +performance-schema-consumer-statements-digest = ON userstat = ON +plugin_load_add = query_response_time +query_response_time_stats = ON From 6a2018b8edff42fd628b755e601642e52088c2e2 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Date: Wed, 9 Apr 2025 17:05:00 +0000 Subject: [PATCH 2/2] refs #8408 Increase memory tables to 512M --- roles/db/files/conf/z90-vn.cnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/db/files/conf/z90-vn.cnf b/roles/db/files/conf/z90-vn.cnf index 0c77ad2..6856ddd 100644 --- a/roles/db/files/conf/z90-vn.cnf +++ b/roles/db/files/conf/z90-vn.cnf @@ -34,7 +34,7 @@ table_open_cache = 50000 table_definition_cache = 10000 table_open_cache_instances = 1 key_buffer_size = 256K -max_heap_table_size = 128M +max_heap_table_size = 512M tmp_table_size = 128M concurrent_insert = ALWAYS group_concat_max_len = 10000