Change socket file locations

Change socket file locations.

Default socket file locations

There are two default locations for the socket files in Redis Enterprise Software:

  • /tmp - In clean installations of Redis Enterprise Software version earlier than 5.2.2

  • /var/opt/redislabs/run - In clean installations of Redis Enterprise Software version 5.2.2 and later

    Note:
    The default location was changed in case you run any maintenance procedures that delete the /tmp directory.

When you upgrade Redis Enterprise Software from an earlier version to 5.2.2 or later, the socket files are not moved to the new location by default. You need to either specify a custom location for the socket files during installation or use the following procedure after installation.

Change socket file locations

To change the location of the socket files:

  1. On each node in the cluster, run:

    sudo rlutil create_socket_path socket_path=/var/opt/redislabs/run
    
  2. Identify the node with the master role by running the following command on any node in the cluster:

    rladmin status nodes
    
  3. On the master node, change the socket file location:

    sudo rlutil set_socket_path socket_path=/var/opt/redislabs/run
    
  4. To update the socket file location for all other nodes, restart Redis Enterprise Software on each node in the cluster, one at a time:

    sudo service rlec_supervisor restart
    
  5. Restart each database in the cluster to update the socket file location:

    rladmin restart db <db name>
    
    Warning:
    Restarting databases can cause interruptions in data traffic.
RATE THIS PAGE
Back to top ↑