From d95c543affacfe558928917bb2dd9490925a8eb9 Mon Sep 17 00:00:00 2001 From: outductor Date: Mon, 1 Jan 2024 21:52:43 +0900 Subject: [PATCH] configure mariadb --- .../templates/mariadb/configmap.yaml | 3 ++- .../apps/seichi-debug-minecraft/mariadb/mariadb.yaml | 9 +++++++++ .../apps/seichi-minecraft/mariadb/mariadb.yaml | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml index ffc1057bc..6460eac71 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml @@ -9,7 +9,8 @@ data: innodb_log_file_size = 256M innodb_flush_log_at_trx_commit = 2 innodb_write_io_threads = 8 + innodb_io_capacity = 1000 max_allowed_packet = 256M slow_query_log = true slow_query_log-file = /var/log/mysql/mysql-slow.log - long_query_time = 0 + long_query_time = 0.01 diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mariadb/mariadb.yaml index 43e0a2247..971234020 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mariadb/mariadb.yaml @@ -27,6 +27,15 @@ spec: accessModes: - ReadWriteOnce + myCnf: | + [mariadb] + innodb_buffer_pool_size = 1G + innodb_log_file_size = 256M + innodb_flush_log_at_trx_commit = 2 + innodb_write_io_threads = 8 + innodb_io_capacity = 1000 + max_allowed_packet = 256M + livenessProbe: exec: command: diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml index 6cef68e77..a097e16de 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/mariadb/mariadb.yaml @@ -27,6 +27,15 @@ spec: accessModes: - ReadWriteOnce + myCnf: | + [mariadb] + innodb_buffer_pool_size = 1G + innodb_log_file_size = 256M + innodb_flush_log_at_trx_commit = 2 + innodb_write_io_threads = 8 + innodb_io_capacity = 1000 + max_allowed_packet = 256M + livenessProbe: exec: command: