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 laterNote: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:
-
On each node in the cluster, run:
sudo rlutil create_socket_path socket_path=/var/opt/redislabs/run
-
Identify the node with the
master
role by running the following command on any node in the cluster:rladmin status nodes
-
On the master node, change the socket file location:
sudo rlutil set_socket_path socket_path=/var/opt/redislabs/run
-
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
-
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.