1. Home
  2. Tyk API Gateway v1.9
  3. Configuration
  4. Redis Cluster

Redis Cluster

Tyk now supports Redis cluster integration. To work with a Redis cluster, simply specify it in your tyk.conf file:

"storage": {
    "type": "redis",
    "enable_cluster": true,
    "hosts" : {
        "server1": "6379",
        "server2": "6380",
        "server23: "6381",
    },
    "username": "",
    "password": "",
    "database": 0,
    "optimisation_max_idle": 100
},

Tyk Dashboard

Tyk Dashboard also supports Redis cluster, simply update the tyk_analytics.conf to use the cluster like so:

"redis_hosts": {
    "server1": "6379",
    "server2": "6380",
    "server23: "6381",
},
"enable_cluster": true

Tyk Host Manager

Tyk host manager can also connect to the Redis cluster, update the host_manager.json file with the hosts entry, in the same way as the Tyk dashboard:

"redis_hosts": {
    "server1": "6379",
    "server2": "6380",
    "server23: "6381",
},
"enable_cluster": true