mysql connection improvement.
This commit is contained in:
@@ -7,6 +7,7 @@ data:
|
||||
custom.cnf: |
|
||||
[mysqld]
|
||||
# Connection settings
|
||||
bind-address=0.0.0.0
|
||||
skip-name-resolve
|
||||
max_connections=200
|
||||
max_allowed_packet=64M
|
||||
|
||||
@@ -63,7 +63,7 @@ spec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- mysqladmin ping -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD}
|
||||
- mysqladmin ping -h localhost --silent
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
@@ -73,7 +73,7 @@ spec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- mysqladmin ping -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD}
|
||||
- mysql -h localhost -u root -p${MYSQL_ROOT_PASSWORD} -e "SELECT 1"
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
@@ -83,11 +83,11 @@ spec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- mysqladmin ping -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD}
|
||||
- mysqladmin ping -h localhost --silent
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 30
|
||||
failureThreshold: 40
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1000m
|
||||
|
||||
Reference in New Issue
Block a user