I get the following errors when trying to start my redis instance using tyk :
ERRO[0000] Could not EXPIRE key: could not complete command
ERRO[0005] Multi command failed: could not complete command
I did set the following parameters in redis.conf in both the master and the slave :
port 6379 - cluster-enabled yes - cluster-config-file nodes.conf - cluster-node-timeout 5000 - appendonly yes
I’ve also tried to set maxmemory-policy to any parameter but it doesn’t change anything.
Here is the storage section of my tyk.conf :
“storage”: {
“type”: “redis”,
“enable_cluster”: true,
“hosts” : {
“127.0.0.1”: “6379”,
“192.168.50.41”: “6379”
},
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 500,
“optimisation_max_active”: 800
},
Here is a part of the content of my tyk_analytics.conf file :
“enable_cluster”: true,
“redis_hosts”: {
“127.0.0.1”: “6379”,
“192.168.50.42”: “6379”,
},
“redis_password”: “”,
“force_api_defaults”: false,
“notify_on_change”: true,
“license_owner”: “Your Name”,
“hash_keys”: true,
“email_backend”: {},
“hide_listen_path”: false,
“use_sentry”: false,
“sentry_code”: “”,
“sentry_js_code”: “”,
“show_org_id”: true,
“enable_duplicate_slugs”: true,
“host_config” : {
“override_hostname”: “tyk2”,
“disable_org_slug_prefix”: true,
“enable_host_names”: true,
“hostname”: “192.168.50.41”,
“portal_domains”: {},
“portal_root_path”: “/portal”
},
The local IP in the “redis_hosts” section of the master is the slave IP and same for the other way around.
Anyone who has already configured redis-server with cluster mode for Tyk?
Running Redis server v=3.0.7 on Ubuntu 14.04.3 LTS and Tyk v1.9