How to increase mysql_connect_error on mysqlrouter?
-
16-03-2021 - |
Domanda
I have an problem with mysqlrouter. I try to increase the max_connect_errors variable on mysqlrouter but is still value 100 in the file log.
2021-03-02 14:30:59 routing INFO [7f31a73f3700] [routing:neonCluster_rw] fd=99 Pre-auth socket failure xx.xx.xx.xx:xxxxx: client auth timed out
2021-03-02 14:30:59 routing INFO [7f31a73f3700] [routing:neonCluster_rw] 1 connection errors for xx.xx.xx.xx:xxxxx (max 100)
2021-03-02 14:31:03 routing INFO [7f31a6cec700] [routing:neonCluster_rw] fd=79 Pre-auth socket failure xx.xx.xx.xx:xxxxx: client auth timed out
2021-03-02 14:31:03 routing INFO [7f31a6cec700] [routing:neonCluster_rw] 2 connection errors for xx.xx.xx.xx:xxxxx (max 100)
I've add the max_connect_errors variable with the value 512 in the config file but nothing change. I have restart the mysqlrouter service after the change.
The configuration file:
[DEFAULT]
logging_folder=/var/log/neonCluster
runtime_folder=/etc/mysqlrouter/neonCluster/run
data_folder=/etc/mysqlrouter/neonCluster/data
keyring_path=/etc/mysqlrouter/neonCluster/data/keyring
master_key_path=/etc/mysqlrouter/neonCluster/mysqlrouter.key
connect_timeout=15
read_timeout=30
dynamic_state=/etc/mysqlrouter/neonCluster/data/state.json
[logger]
level = INFO
[metadata_cache:neonCluster]
cluster_type=gr
router_id=1
user=mysql_router1_p1apqt5eo8fl
metadata_cluster=neonCluster
ttl=0.5
use_gr_notifications=0
[routing:neonCluster_rw]
bind_address=0.0.0.0
bind_port=3306
destinations=metadata-cache://neonCluster/?role=PRIMARY
routing_strategy=first-available
protocol=classic
max_connections=1024
max_connect_errors=512
[routing:neonCluster_ro]
bind_address=0.0.0.0
bind_port=3307
destinations=metadata-cache://neonCluster/?role=SECONDARY
routing_strategy=round-robin-with-fallback
protocol=classic
max_connections=1024
max_connect_errors=512
[routing:neonCluster_x_rw]
bind_address=0.0.0.0
bind_port=3308
destinations=metadata-cache://neonCluster/?role=PRIMARY
routing_strategy=first-available
protocol=x
max_connections=1024
max_connect_errors=512
[routing:neonCluster_x_ro]
bind_address=0.0.0.0
bind_port=3309
destinations=metadata-cache://neonCluster/?role=SECONDARY
routing_strategy=round-robin-with-fallback
protocol=x
max_connections=1024
max_connect_errors=512
How can I do to increase this variable. I do an error somewhere ?
Thanks for your help.
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a dba.stackexchange