Creating a Redis cluster in ColdFusion API Manager
In ColdFusion 2021 API Manager, you can use a Redis cluster as your datastore.
Using the Redis cluster, you can scale API Manager by adding or removing Redis nodes and manage automatic failover by creating slaves.
This is independent of your API Manager cluster.
A Redis cluster requires at least three master nodes. We recommend creating three corresponding slave nodes for better availability and reliability.
Creating a Redis cluster involves installing individual Redis nodes that will become a part of the cluster. The next step involves adding the nodes to the cluster and providing the Redis cluster information to API Manager.
Installing a Redis node
You can install a Redis node using the API Manager add-on installer.
Enable the Enable Cluster Configuration check-box when installing each Redis node.
Figure: Add-on services
Each Redis node requires two open TCP connections.
The first port is the Datastore port (provided during installation), for example 6379, plus the port obtained by adding 10000 to the datastore port, so 16379 in this case.
This second port is used for the cluster bus, which is a node-to-node communication channel using a binary protocol.
The cluster bus port must be reachable from all the other cluster nodes. If you do not open both TCP ports, your cluster will not work as expected.
Creating a Redis cluster
You can create a Redis cluster by adding individual Redis nodes to the cluster and establishing communication between the nodes.
Providing the Redis cluster information to API Manager
To provide the Redis cluster information to API Manager during installation:
Uncheck the Datastore check-box.
Figure: Uncheck datastore
In the Datastore and API Manager Cluster configuration dialog, choose Redis Cluster as Yes, and enter the details of any one node in the Redis cluster.
Figure: Choose Redis cluster
You can also move to a Redis Cluster after installation by providing the details at API Manager Administrator > Server > API Datastore
You can also migrate all the data from single node to Redis Cluster from here by enabling the Perform Migration check-box.
Redis Cluster to a single node or cluster to cluster configuration is not supported.
When you start Redis from the command line, there is no logging. Logging gets redirected to redis.log file that can be found in datastore folder.
Share this page
Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.