Change Location of Socket Files
There are two default locations for the socket files:
/tmp- In clean installations of RS version lower than 5.2.2
/var/opt/redislabs/run- In clean installations of RS version 5.2.2 and higher
We made this change because some customers have maintenance procedures that delete the
When you upgrade from a RS version lower than 5.2.2 to 5.2.2 and higher, the socket files are not moved to the new location by default. During installation you can specify a custom location for the socket files, but after installation you must use this procedure to move the socket files.
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 master node:
- On any node in the cluster, run:
rladmin status nodes
- Find the node that has the master role.
- On the master node, run:
sudo rlutil set_socket_path socket_path=/var/opt/redislabs/run
Now the master node points to the new socket file location. To update the location for all other nodes, you must restart RS on each node.
To restart RS, on each node in the cluster one at a time run:
sudo service rlec_supervisor restart
Now all nodes point to the new socket file location. To update the location for the databases in the cluster, you must restart each database.Warning -Database restart can cause interruptions in data traffic.
- To restart the databases, for each database in the cluster run:
rladmin restart db <db name>