Redis disconnected or error received, attempting to reconnect: EOF


#1

Hi,

I setup tyk-gatway and redis in the different servers, connection to redis going through VIP address of HA proxy. Intially, tyk-gateway able to connect to redis and after some time tyk-gateway give "Redis disconnected or error received, attempting to reconnect
“template_path”: “/opt/tyk-gateway/templates”,
“tyk_js_path”: “/opt/tyk-gateway/js/tyk.js”,
“use_db_app_configs”: true,
“db_app_conf_options”: {
“connection_string”: “”,
“node_is_segmented”: false,
“tags”: []
},
“disable_dashboard_zeroconf”: false,
“app_path”: “/opt/tyk-gateway/apps”,
“middleware_path”: "/opt/tyk-gateway
“username”: “”,
“password”: “test”,
“database”: 0,
“optimisation_max_idle”: 2000,
“optimisation_max_active”: 4000
},
“enable_analytics”: true,
“analytics_config”: {
“type”: “mongo”,
“pool_size”: 100,
“csv_dir”: “/tmp”,
“mongo_url”: “”
“mongo_db_name”: “”,
“mongo_collection”: “”,
“purge_delay”: 100,
“ignored_ips”: [],
“enable_detailed_recording”: true,
“enable_geo_ip”: false,
“geo_ip_db_path”: “”,
“normalise_urls”: {
“enabled”: true,
“normalise_uuids”: true,
“normalise_numbers”: true,
“custom_patterns”: []
}
},
“health_check”: {
“enable_health_checks”: true,
“health_check_value_timeouts”: 60


#2

Does your HAProxy config have any mandatory timeouts?


#3

Below configuration for the timeout

log     global
mode    http
option  httplog
option  dontlognull
option  httpclose
option  log-health-checks
timeout connect 5s
timeout client 50s
timeout server 50s

#4

Below configuration for the timeout

log global
mode http
option httplog
option dontlognull
option httpclose
option log-health-checks
timeout connect 5s
timeout client 50s
timeout server 50s