From cf10347939da37020feb0c24d7214587eb2f4a34 Mon Sep 17 00:00:00 2001 From: wujiawei <12345678> Date: Tue, 11 Feb 2025 11:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91=20=E6=8E=A7=E5=88=B6mysql?= =?UTF-8?q?=E5=8D=A0=E7=94=A8=E5=86=85=E5=AD=98=E5=9C=A8150mb=E5=B7=A6?= =?UTF-8?q?=E5=8F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-k8s.yaml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/client-k8s.yaml b/client-k8s.yaml index 162b42ce..eb1ce28f 100644 --- a/client-k8s.yaml +++ b/client-k8s.yaml @@ -122,10 +122,10 @@ spec: resources: limits: cpu: 500m - memory: 512Mi + memory: 256Mi requests: cpu: 500m - memory: 512Mi + memory: 256Mi volumeMounts: - name: mysql-data mountPath: /var/lib/mysql @@ -437,9 +437,22 @@ data: skip-name-resolve - max_connections=1000 + max_connections=100 + + thread_cache_size=10 + innodb_buffer_pool_chunk_size=64M #效果不明显 + innodb_buffer_pool_size=64M #效果不明显 + lower_case_table_names=0 + + table_open_cache=64 + + query_cache_type=0 + + query_cache_size=0 + + key_buffer_size=0 default-time-zone='+08:00' @@ -447,6 +460,10 @@ data: log_timestamps='SYSTEM' + performance_schema_max_table_instances=400 #设置效果不明显 + table_definition_cache=400 + performance_schema=off #效果明显 + slow_query_log=ON @@ -454,5 +471,5 @@ data: innodb_flush_log_at_trx_commit=2 - group_concat_max_len=1024 + group_concat_max_len=512