Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions content/operate/rs/databases/import-export/replica-of/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ To create a replica connection, you define a database as a replica of a source d

Sources databases can be:

- Located in the same Redis Enterprise Software cluster
- Located in a different Redis Enterprise cluster
- Located in the same Redis Software cluster
- Located in a different Redis Software cluster
- Hosted by a different deployment, e.g. Redis Cloud
- Redis Community Edition databases

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

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

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

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

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

Expand All @@ -47,9 +47,9 @@ For best results when using the [Multicast DNS](https://en.wikipedia.org/wiki/Mu
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" >}}).
{{< /note >}}

### Same Redis Enterprise cluster {#same-cluster}
### Same Redis Software cluster {#same-cluster}

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

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

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

1. Select **Save**.

### Different Redis Enterprise cluster {#different-cluster}
### Different Redis Software cluster {#different-cluster}

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,24 @@ There are two default locations for the socket files in Redis Enterprise Softwar
The default location was changed in case you run any maintenance procedures that delete the `/tmp` directory.
{{</note>}}

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]({{< relref "/operate/rs/installing-upgrading" >}}) or use the [following procedure](#change-socket-file-locations) after installation.
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).

## Change socket file locations
## Specify socket file location during install {#during-install}

To change the location of the socket files:
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">}}):

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

```sh
sudo rlutil create_socket_path socket_path=/var/opt/redislabs/run
```

1. Identify the node with the `master` role by running the following command on any node in the cluster:

```sh
rladmin status nodes
```
## Change socket file location after cluster setup {#after-cluster-setup}

1. On the master node, change the socket file location:
To change the socket file location for an existing cluster:

```sh
sudo rlutil set_socket_path socket_path=/var/opt/redislabs/run
```

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:
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">}}):

```sh
sudo service rlec_supervisor restart
```

1. Restart each database in the cluster to update the socket file location:

```sh
rladmin restart db <db name>
sudo ./install.sh -s </path/to/socket/files>
```

{{< warning >}}
Restarting databases can cause interruptions in data traffic.
{{< /warning >}}
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">}}).
Loading