更新 prod mysql cfg
parent
f2bc885676
commit
a61d9e68d3
|
@ -17,6 +17,11 @@ data:
|
||||||
max_allowed_packet=16M
|
max_allowed_packet=16M
|
||||||
character-set-server=utf8mb4
|
character-set-server=utf8mb4
|
||||||
collation-server=utf8mb4_unicode_ci
|
collation-server=utf8mb4_unicode_ci
|
||||||
|
|
||||||
|
# slow_query_log
|
||||||
|
slow_query_log=ON
|
||||||
|
slow_query_log_file=/var/lib/mysql/data/slow-query.log
|
||||||
|
long_query_time=3
|
||||||
|
|
||||||
# Extended
|
# Extended
|
||||||
max_connections=5000
|
max_connections=5000
|
||||||
|
@ -136,4 +141,4 @@ spec:
|
||||||
targetPort: 3306
|
targetPort: 3306
|
||||||
selector:
|
selector:
|
||||||
app: mysql-0
|
app: mysql-0
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
|
@ -21,7 +21,7 @@ data:
|
||||||
# Extended
|
# Extended
|
||||||
max_connections=5000
|
max_connections=5000
|
||||||
binlog_format=row
|
binlog_format=row
|
||||||
binlog_expire_logs_seconds=2592000
|
binlog_expire_logs_seconds=1209600
|
||||||
sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
|
sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
|
||||||
innodb_buffer_pool_size=4G
|
innodb_buffer_pool_size=4G
|
||||||
innodb_log_file_size=1G
|
innodb_log_file_size=1G
|
||||||
|
@ -136,4 +136,4 @@ spec:
|
||||||
targetPort: 3306
|
targetPort: 3306
|
||||||
selector:
|
selector:
|
||||||
app: mysql-2
|
app: mysql-2
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
|
@ -21,7 +21,7 @@ data:
|
||||||
# Extended
|
# Extended
|
||||||
max_connections=5000
|
max_connections=5000
|
||||||
binlog_format=row
|
binlog_format=row
|
||||||
binlog_expire_logs_seconds=2592000
|
binlog_expire_logs_seconds=1209600
|
||||||
sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
|
sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
|
||||||
innodb_buffer_pool_size=4G
|
innodb_buffer_pool_size=4G
|
||||||
innodb_log_file_size=1G
|
innodb_log_file_size=1G
|
||||||
|
@ -136,4 +136,4 @@ spec:
|
||||||
targetPort: 3306
|
targetPort: 3306
|
||||||
selector:
|
selector:
|
||||||
app: mysql-3
|
app: mysql-3
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
Loading…
Reference in New Issue