User Guide Cancel

Create a Redis cluster

  1. ColdFusion Tools User Guide
  2. Performance Monitoring Toolset
    1. Overview of ColdFusion Performance Monitoring Toolset
    2. Auto-discovery of ColdFusion nodes and clusters
    3. Code profiler in ColdFusion Performance Monitoring Toolset
    4. Configure ColdFusion Performance Monitoring Toolset settings
    5. Install ColdFusion Performance Monitoring Toolset
    6. View cloud metrics
    7. Monitor GraphQL in Performance Monitoring Toolset
    8. Configure TLS/SSL and Authentication for Elasticsearch 8.x  in Performance Monitoring Toolset
    9. View cluster and node metrics
    10. View data source metrics
    11. View external services
    12. View incoming services
    13. View list of sites and busy connections
    14. View topology of sites
    15. Datastore Health Monitoring
    16. Performance Monitoring Toolset Update 1
    17. Secure Performance Monitoring Toolset with HTTPS/SSL
    18. Performance Monitoring Toolset deployment guide
  3. Use ColdFusion Builder
    1. About ColdFusion Builder
    2. System requirements | ColdFusion Builder
    3. Install ColdFusion Builder
    4. Edit code in ColdFusion Builder
    5. Manage servers in ColdFusion Builder
    6. Manage projects in ColdFusion Builder
    7. What's new in Adobe ColdFusion Builder (2018 release)
    8. Frequently Asked Questions (FAQ) | Adobe ColdFusion Builder (2018 release)
    9. Debug applications in ColdFusion Builder
    10. ColdFusion Builder workbench
    11. ColdFusion Builder extensions
    12. Debugging Perspective in ColdFusion Builder
    13. Build mobile applications using ColdFusion Builder
    14. Bundled ColdFusion Server
    15. Debug mobile applications in ColdFusion Builder
    16. Use extensions in ColdFusion Builder
  4. Coldfusion API Manager
    1. Overview of Adobe ColdFusion API Manager
    2. Features in ColdFusion API Manager
    3. Get started with ColdFusion API Manager
    4. Install ColdFusion API Manager
    5. Authentication types
    6. Create and publish APIs
    7. Administrator
    8. Subscriber
    9. Throttling and rate limiting
    10. Notifications
    11. Connectors
    12. Set up cluster support
    13. Integrate ColdFusion and API Manager
    14. Metrics and Logging in API Manager
    15. Generate Swagger documents
    16. Configure SSL
    17. Known issues in this release
    18. Policies in ColdFusion API Manager
    19. Create a Redis cluster
    20. Multitenancy in API Manager
    21. Docker images for ColdFusion API Manager

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.

Add-on services
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.

  1. Download Ruby installer for Windows from http://rubyinstaller.org/downloads/. For non-Windows platforms, compile the installer from source.

    Download redis.gem from https://rubygems.org/.

    Syntax: gem install <path-to-gem-file>

  2. Execute the Ruby script redis-trib.rb located at <APIM_AddOn_Home>\datastore\ruby-script.

    You can execute this script in any machine that has Ruby pre-installed and redis.gem added. 

  3. Execute the following command to configure Redis cluster with three master nodes and no slave nodes:

    ruby redis-trib.rb create <machine-ip>:<port> <machine-ip>:<port> <machine-ip>:<port>

  4. Execute the following command to configure Redis cluster with three master nodes and three slave nodes:

    ruby redis-trib.rb create --replicas 1 <machine-ip>:<port> <machine-ip>:<port> <machine-ip>:<port> <machine-ip>:<port> <machine-ip>:<port> <machine-ip>:<port>

For more information, refer the Redis cluster documentation at http://redis.io/topics/cluster-tutorial.

Providing the Redis cluster information to API Manager

To provide the Redis cluster information to API Manager during installation:

  1. Uncheck the Datastore check-box.

    Uncheck datastore
    Uncheck datastore

  2. 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.

    Choose Redis cluster
    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.

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online