Skip to content

Slave HA prerequisites #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2020
Merged
Changes from all commits
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
14 changes: 9 additions & 5 deletions content/rs/administering/database-operations/slave-ha.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ RS replicates your data to a slave node to make sure that your data is highly av
If the slave node fails or if the master node fails and the slave is promoted to master,
the remaining master node is a single point of failure.

You can configure high availability for slave shards (slave HA) so that the cluster automatically migrates the slave shards to another available node.
You can configure high availability for slave shards (slave HA) so that the cluster automatically migrates the slave shards to an available node.
An available node is a node that:

1. Meets slave migration requirements, such as [rack-awareness]({{< relref "/rs/concepts/high-availability/rack-zone-awareness.md" >}}).
1. Has enough available RAM to store the slave shard.
1. Does not also contain the master shard.

In practice, slave migration creates a new slave shard and replicates the data from the master shard to the new slave shard.
For example:

Expand All @@ -20,12 +26,10 @@ For example:
- Node:2 fails and the slave shard on node:3 is promoted to master.
- Node:3 fails and the master shard is no longer replicated to the slave shard on the failed node.

1. If slave HA is enabled, a new slave shard is created on an available node that does not hold the master shard.

All of the constraints of shard migration apply, such as [rack-awareness]({{< relref "/rs/concepts/high-availability/rack-zone-awareness.md" >}}).

1. If slave HA is enabled, a new slave shard is created on an available node.
1. The data from the master shard is replicated to the new slave shard.


## Configuring High Availability for Slave Shards

Using rladmin or the REST API, slave HA is controlled on the database level and on the cluster level.
Expand Down