[フレーム]
Docs Pricing
Login Book a meeting Try Redis

Upgrade a Redis Software cluster

Upgrade a cluster to a later version of Redis Software.

Redis Enterprise Software

Before you upgrade a cluster to a later Redis Software version, review the supported upgrade paths and prerequisites.

To upgrade a cluster's Redis Software version, use one of the following methods:

Supported upgrade paths

Supported – You can upgrade directly from the current Redis Software cluster version.

Not supported – You cannot upgrade directly from the current Redis Software cluster version. You must first upgrade to a supported intermediate version.

Current Redis Software cluster version Upgrade to Redis Software 6.4.x Upgrade to Redis Software 7.2.x Upgrade to Redis Software 7.4.x Upgrade to Redis Software 7.8.x Upgrade to Redis Software 7.22.x Upgrade to Redis Software 8.0.x
6.0.x
6.2.4
6.2.8
6.2.10
6.2.12
6.2.18
6.4.x
7.2.x
7.4.x
7.8.x
7.22.x

See the Redis Enterprise Software product lifecycle for more information about release numbers and the end-of-life schedule.

Note:
Redis Enterprise for Kubernetes has its own support lifecycle, which accounts for the Kubernetes distribution lifecycle. For details, see Supported Kubernetes distributions.

Upgrade prerequisites

Before upgrading a cluster:

In-place upgrade

Starting with the primary node, follow these steps for every node in the cluster. To ensure cluster availability, upgrade each node separately.

  1. Complete all prerequisites before starting the upgrade.

  2. Verify node operation with the following commands:

    $ rlcheck
    $ rladmin status extra all
    
    Warning:
    Do not proceed if any shard, node, or endpoint is not OK.
  3. Download the Redis Enterprise Software installation package to the machine running the node from the Download Center on https://cloud.redis.io.

  4. Extract the installation package:

    tar vxf <tarfile name>
    
    Note:
    You cannot change the installation path or the user during the upgrade.
  5. Run the install command. See installation script options for a list of command-line options you can add to the following command. You cannot use options marked as "new installs only" during an in-place upgrade.

    sudo ./install.sh
    

    The installation script automatically recognizes the upgrade and responds accordingly.

    The upgrade replaces all node processes, which might briefly interrupt any active connections.

  6. Verify the node was upgraded to the new version and is still operational:

    $ rlcheck
    $ rladmin status extra all
    
  7. Visit the Cluster Manager UI.

    If the Cluster Manager UI was open in a web browser during the upgrade, refresh the browser to reload the console.

Rolling upgrade

To perform a rolling upgrade of the cluster, use one of the following methods:

Extra node upgrade method

  1. Complete all prerequisites before starting the rolling upgrade.

  2. Install a later version of Redis Software on a new node.

  3. Add the new node to the cluster.

  4. If the cluster uses DNS, add the new node’s IP address to the DNS records.

  5. Promote the first new node to become the primary node.

  6. Remove one node running the earlier Redis Software version from the cluster.

  7. Repeat the previous steps until all nodes with the earlier Redis Software version are removed. If the final node to remove from the cluster is the primary node, demote it to a secondary node before you remove it.

Replace node upgrade method

  1. Complete all prerequisites before starting the rolling upgrade.

  2. Remove a node with the earlier Redis Software version from the cluster.

  3. Uninstall Redis Enterprise Software from the removed node:

    sudo ./rl_uninstall.sh
    
  4. Install a later version of Redis Software on the removed node or a new node.

  5. Add the new node to the cluster.

    If you want to reuse the removed node's ID when you add the node to the cluster, run rladmin cluster join with the replace_node flag:

    rladmin cluster join nodes <cluster_member_ip_address> username <username> password <password> replace_node <node_id>
    
  6. If the cluster uses DNS, add the new node’s IP address to the DNS records.

  7. Promote the first new node to become the primary node.

  8. Verify node health:

    1. Run rlcheck on all nodes:

      rlcheck
      

      The output lists the result of each verification test:

      ##### Welcome to Redis Enterprise Cluster settings verification utility ####
      Running test: verify_bootstrap_status
       PASS
      ...
      Running test: verify_encrypted_gossip
       PASS
      Summary:
      -------
      ALL TESTS PASSED.
      

      For healthy nodes, the expected output is ALL TESTS PASSED.

    2. Run rladmin status on the new node:

      rladmin status extra all
      

      The expected output is the OK status for the cluster, nodes, endpoints, and shards:

      CLUSTER:
      OK. Cluster master: 2 (<IP.address>)
      Cluster health: OK, [0, 0.0, 0.0]
      failures/minute - avg1 0.00, avg15 0.00, avg60 0.00.
      ...
      
  9. Repeat the previous steps until all nodes with the earlier Redis Software version are replaced. If the final node to remove from the cluster is the primary node, demote it to a secondary node before you remove it.

After cluster upgrade

After all nodes are upgraded, the cluster is fully upgraded. Certain features introduced in the new version of Redis Software only become available after upgrading the entire cluster.

After upgrading from version 6.0.x to 6.2.x, restart cnm_exec on each cluster node to enable more advanced state machine handling capabilities:

supervisorctl restart cnm_exec
RATE THIS PAGE
Back to top ↑

On this page

AltStyle によって変換されたページ (->オリジナル) /