Skip to content

Commit 09256c9

Browse files
committed
DOC-4192 RS: New procedure for change socket file location without rlutil
1 parent 77d567e commit 09256c9

File tree

2 files changed

+19
-39
lines changed

2 files changed

+19
-39
lines changed

content/operate/rs/databases/import-export/replica-of/create.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ To create a replica connection, you define a database as a replica of a source d
1515

1616
Sources databases can be:
1717

18-
- Located in the same Redis Enterprise Software cluster
19-
- Located in a different Redis Enterprise cluster
18+
- Located in the same Redis Software cluster
19+
- Located in a different Redis Software cluster
2020
- Hosted by a different deployment, e.g. Redis Cloud
2121
- Redis Community Edition databases
2222

@@ -33,9 +33,9 @@ When you change the replica status of a database by adding, removing, or changin
3333

3434
You can configure a database as a Replica Of, where the source database is in one of the following clusters:
3535

36-
- [Same Redis Enterprise cluster](#same-cluster)
36+
- [Same Redis Software cluster](#same-cluster)
3737

38-
- [Different Redis Enterprise cluster](#different-cluster)
38+
- [Different Redis Software cluster](#different-cluster)
3939

4040
- [Redis Community Edition cluster](#source-available-cluster)
4141

@@ -47,9 +47,9 @@ For best results when using the [Multicast DNS](https://en.wikipedia.org/wiki/Mu
4747
As long as Replica Of is enabled, data in the target database will not expire and will not be evicted regardless of the set [data eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy.md" >}}).
4848
{{< /note >}}
4949

50-
### Same Redis Enterprise cluster {#same-cluster}
50+
### Same Redis Software cluster {#same-cluster}
5151

52-
To configure a Replica Of database in the same Redis Enterprise cluster as the source database:
52+
To configure a Replica Of database in the same Redis Software cluster as the source database:
5353

5454
1. [Create a new database]({{< relref "/operate/rs/databases/create" >}}) or select an existing database from the **Databases** screen.
5555

@@ -67,9 +67,9 @@ To configure a Replica Of database in the same Redis Enterprise cluster as the s
6767

6868
1. Select **Save**.
6969

70-
### Different Redis Enterprise cluster {#different-cluster}
70+
### Different Redis Software cluster {#different-cluster}
7171

72-
To configure a Replica Of database in a different Redis Enterprise cluster from the source database:
72+
To configure a Replica Of database in a different Redis Software cluster from the source database:
7373

7474
1. Sign in to the Cluster Manager UI of the cluster hosting the source database.
7575

content/operate/rs/installing-upgrading/configuring/change-location-socket-files.md

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,44 +21,24 @@ There are two default locations for the socket files in Redis Enterprise Softwar
2121
The default location was changed in case you run any maintenance procedures that delete the `/tmp` directory.
2222
{{</note>}}
2323

24-
When you upgrade Redis Enterprise Software from an earlier version to 5.2.2 or later, the socket files
25-
are not moved to the new location by default. You need to either specify a custom location
26-
for the socket files during [installation]({{< relref "/operate/rs/installing-upgrading" >}}) or use the [following procedure](#change-socket-file-locations) after installation.
24+
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 specify the socket file location [during installation](#during-install) or change the location [after cluster setup](#after-cluster-setup).
2725

28-
## Change socket file locations
26+
## Specify socket file location during install {#during-install}
2927

30-
To change the location of the socket files:
28+
To specify the socket file location during a new installation, follow the [Install Redis Enterprise Software on Linux]({{<relref "/operate/rs/installing-upgrading/install/install-on-linux">}}) instructions, but use the `-s` [installation script option]({{<relref "/operate/rs/installing-upgrading/install/install-script">}}):
3129

32-
1. On each node in the cluster, run:
30+
```sh
31+
sudo ./install.sh -s </path/to/socket/files>
32+
```
3333

34-
```sh
35-
sudo rlutil create_socket_path socket_path=/var/opt/redislabs/run
36-
```
37-
38-
1. Identify the node with the `master` role by running the following command on any node in the cluster:
39-
40-
```sh
41-
rladmin status nodes
42-
```
34+
## Change socket file location after cluster setup {#after-cluster-setup}
4335

44-
1. On the master node, change the socket file location:
36+
To change the socket file location for an existing cluster:
4537

46-
```sh
47-
sudo rlutil set_socket_path socket_path=/var/opt/redislabs/run
48-
```
49-
50-
1. To update the socket file location for all other nodes, restart Redis Enterprise Software on each node in the cluster, one at a time:
38+
1. Create a new cluster with the new socket file path. To do so, follow the [Install Redis Enterprise Software on Linux]({{<relref "/operate/rs/installing-upgrading/install/install-on-linux">}}) instructions, but use the `-s` [installation script option]({{<relref "/operate/rs/installing-upgrading/install/install-script">}}):
5139

52-
```sh
53-
sudo service rlec_supervisor restart
5440
```
55-
56-
1. Restart each database in the cluster to update the socket file location:
57-
58-
```sh
59-
rladmin restart db <db name>
41+
sudo ./install.sh -s </path/to/socket/files>
6042
```
6143
62-
{{< warning >}}
63-
Restarting databases can cause interruptions in data traffic.
64-
{{< /warning >}}
44+
1. Use Replica Of to migrate your databases from the original cluster to the new cluster. For detailed steps, see the procedure to [configure Replica Of with different Redis Software clusters]({{<relref "/operate/rs/databases/import-export/replica-of/create#different-cluster">}}).

0 commit comments

Comments
 (0)