From 6f5007fad31d24738299096e465ecb33090699c3 Mon Sep 17 00:00:00 2001 From: outductor Date: Sun, 17 Dec 2023 21:00:52 +0900 Subject: [PATCH] use tmpfs --- .../templates/mariadb/configmap.yaml | 1 + .../templates/mariadb/mariadb.yaml | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) 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 62f3e95f2..a1ab2a32f 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,3 +9,4 @@ data: innodb_log_file_size = 256M innodb_flush_log_at_trx_commit = 2 innodb_write_io_threads = 8 + max_allowed_packet = 512M diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml index 3d1dc8b91..4dae42bdf 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml @@ -25,8 +25,8 @@ spec: imagePullPolicy: IfNotPresent resources: requests: - cpu: 2 - memory: 2Gi + cpu: 4 + memory: 7Gi env: - name: MYSQL_TCP_PORT value: "3306" @@ -68,6 +68,8 @@ spec: name: mariadb protocol: TCP volumeMounts: + - mountPath: /var/lib/mysql + name: storage - mountPath: /docker-entrypoint-initdb.d name: sqldump-volume - name: mariadb-config @@ -78,8 +80,8 @@ spec: imagePullPolicy: IfNotPresent resources: requests: - cpu: 1 - memory: 1Gi + cpu: 2 + memory: 4Gi env: - name: DB_PASSWORD valueFrom: @@ -96,6 +98,10 @@ spec: name: sqldump-volume restartPolicy: Always volumes: + - name: storage + emptyDir: + medium: Memory + sizeLimit: 5Gi - name: sqldump-volume - name: mariadb-config configMap: