This is an automated email from the ASF dual-hosted git repository.
jojochuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-site.git
The following commit(s) were added to refs/heads/master by this push:
new 1959d46ca7 HDDS-17134. Document OM and SCM HA with more than 3 nodes
(#580)
1959d46ca7 is described below
commit 1959d46ca788bce51d65c793544e4d3e68538e65
Author: Andy Huang <[email protected]>
AuthorDate: Wed Oct 21 07:40:39 2026 +0800
HDDS-17134. Document OM and SCM HA with more than 3 nodes (#580)
---
docs/03-core-concepts/05-high-availability/01-scm-ha.md | 14 ++++++++++++++
docs/03-core-concepts/05-high-availability/02-om-ha.md | 16 +++++++++++++++-
.../02-configuration/05-high-availability/01-scm-ha.md | 14 +++++++++-----
.../02-configuration/05-high-availability/02-om-ha.md | 6 ++++++
.../05-high-availability/04-listener-om.md | 2 +-
.../03-operations/10-leader-transfer/01-ozone-manager.md | 2 ++
.../10-leader-transfer/02-storage-container-manager.md | 2 ++
7 files changed, 49 insertions(+), 7 deletions(-)
diff --git a/docs/03-core-concepts/05-high-availability/01-scm-ha.md
b/docs/03-core-concepts/05-high-availability/01-scm-ha.md
index 277bb12fa9..e4a2770d04 100644
--- a/docs/03-core-concepts/05-high-availability/01-scm-ha.md
+++ b/docs/03-core-concepts/05-high-availability/01-scm-ha.md
@@ -12,6 +12,20 @@ Both Ozone Manager and Storage Container Manager supports
HA. In this mode the i
Please check the [OM HA documentation](om-ha) for HA setup of Ozone Manager
(OM). While they can be setup for HA independently, a reliable, full HA setup
requires enabling HA for both services.
+## Fault tolerance
+
+SCM HA group can have more than three voting members. Raft requires a majority
of voting members to elect a leader and commit requests:
+
+| Voting members | Majority required | Failures tolerated |
+| --- | --- | --- |
+| 2 | 2 | 0 |
+| 3 | 2 | 1 |
+| 4 | 3 | 1 |
+| 5 | 3 | 2 |
+| 6 | 4 | 2 |
+
+An even number of voting members works, but adds no failure tolerance compared
with the preceding odd number. Three voting members tolerate one failure; five
tolerate two, allowing one node to fail while another is down for maintenance.
Deploy voting members on independent hosts. Listener OMs do not count toward
the voting majority or increase failure tolerance.
+
## Service ID and SCM Host Mapping
To select between the available SCM nodes, a logical name (a `serviceId`) is
required for each of the clusters which can be resolved to the IP addresses
(and domain names) of the Storage Container Managers. Check out the [SCM HA
configuration
documentation](../../administrator-guide/configuration/high-availability/scm-ha)
for details on how to configure the service ID and map it to individual SCM
nodes.
diff --git a/docs/03-core-concepts/05-high-availability/02-om-ha.md
b/docs/03-core-concepts/05-high-availability/02-om-ha.md
index 60df7efc0c..db1c00a174 100644
--- a/docs/03-core-concepts/05-high-availability/02-om-ha.md
+++ b/docs/03-core-concepts/05-high-availability/02-om-ha.md
@@ -18,7 +18,21 @@ A single Ozone Manager uses
[RocksDB](https://github.com/facebook/rocksdb/) to p

-Client connects to the Leader Ozone Manager which processes the request and
schedules the replication with RAFT. When the request is replicated to all the
followers the leader can return with the response.
+Client connects to the Leader Ozone Manager which processes the request and
schedules the replication with RAFT. When the request is persisted to the Raft
logs of a majority of voting OMs, the leader can return with the response.
+
+## Fault tolerance
+
+OM HA group can have more than three voting members. Raft requires a majority
of voting members to elect a leader and commit requests:
+
+| Voting members | Majority required | Failures tolerated |
+| --- | --- | --- |
+| 2 | 2 | 0 |
+| 3 | 2 | 1 |
+| 4 | 3 | 1 |
+| 5 | 3 | 2 |
+| 6 | 4 | 2 |
+
+An even number of voting members works, but adds no failure tolerance compared
with the preceding odd number. Three voting members tolerate one failure; five
tolerate two, allowing one node to fail while another is down for maintenance.
Deploy voting members on independent hosts. Listener OMs do not count toward
the voting majority or increase failure tolerance.
## Learn More
diff --git
a/docs/05-administrator-guide/02-configuration/05-high-availability/01-scm-ha.md
b/docs/05-administrator-guide/02-configuration/05-high-availability/01-scm-ha.md
index f5ebd8d832..74fcf04da6 100644
---
a/docs/05-administrator-guide/02-configuration/05-high-availability/01-scm-ha.md
+++
b/docs/05-administrator-guide/02-configuration/05-high-availability/01-scm-ha.md
@@ -45,7 +45,7 @@ The defined prefixes can be used to define the address of
each of the SCM servic
</property>
```
-For reliable HA support choose 3 independent nodes to form a quorum.
+For a five-member group, list `scm1,scm2,scm3,scm4,scm5` in
`ozone.scm.nodes.cluster1` and configure an address for each SCM.
## Bootstrap
@@ -55,7 +55,7 @@ The initialization of the **first** SCM-HA node is the same
as a non-HA SCM:
ozone scm --init
```
-Second and third nodes should be *bootstrapped* instead of init. These
clusters will join to the configured RAFT quorum. The id of the current server
is identified by DNS name or can be set explicitly by `ozone.scm.node.id`. Most
of the time you don't need to set it as DNS based id detection can work well.
+All additional nodes should be *bootstrapped* instead of init. These clusters
will join to the configured RAFT quorum. The id of the current server is
identified by DNS name or can be set explicitly by `ozone.scm.node.id`. Most of
the time you don't need to set it as DNS based id detection can work well.
```bash
ozone scm --bootstrap
@@ -72,7 +72,7 @@ For information on manually transferring SCM leadership,
refer to the [Storage C
In some environments (e.g. Kubernetes) we need to have a common, unified way
to initialize SCM HA quorum. As a reminder, the standard initialization flow is
the following:
1. On the first, "primordial" node: `ozone scm --init`
-2. On second/third nodes: `ozone scm --bootstrap`
+2. On all additional nodes: `ozone scm --bootstrap`
This can be improved: primordial SCM can be configured by setting
`ozone.scm.primordial.node.id` in the config to one of the nodes.
@@ -107,7 +107,9 @@ So, primordial SCM has a special role in the SCM HA
cluster, as it is the only o
The primordial SCM takes a root-CA role, which signs all SCM instances with a
sub-CA certificate.
The sub-CA certificates are used by SCM to sign certificates for OM/Datanodes.
-When bootstrapping a SCM, it gets a signed certificate from the primary SCM
and starts sub-CA.
+When bootstrapping a SCM, it gets a signed certificate from the primordial SCM
and starts sub-CA.
+
+Adding more SCMs increases Raft failure tolerance but does not remove this
dependency: bootstrapping a new SCM in a secure cluster requires the primordial
SCM to issue its sub-CA certificate. A surviving Raft majority alone is not
sufficient for this operation. Plan for primordial SCM availability when
expanding the group; see
[HDDS-17128](https://issues.apache.org/jira/browse/HDDS-17128) for replacement
testing and documentation.
Sub-CA on the SCM's are used to issue signed certificates for OM/DN in the
cluster. Only the leader SCM issues a certificate to OM/DN.
@@ -164,9 +166,11 @@ This replication process is a simpler version of OM HA
replication process as it
Datanodes are sending all the reports (Container reports, Pipeline reports...)
to *all* SCM nodes in parallel. Only the leader node can assign/create new
containers, and only the leader node sends commands back to the Datanodes.
+Each additional SCM receives reports from every Datanode, increasing Datanode
report traffic and the aggregate SCM report processing load. Moving from three
to five SCMs adds two report destinations per Datanode. Size and monitor
Datanode network usage and SCM resources accordingly; total performance impact
depends on the workload.
+
## Verify SCM HA setup
-After starting an SCM-HA it can be validated if the SCM nodes are forming one
single quorum instead of 3 individual SCM nodes.
+After starting an SCM-HA it can be validated if the SCM nodes are forming one
single quorum instead of independent SCM nodes.
First, check if all the SCM nodes store the same ClusterId metadata:
diff --git
a/docs/05-administrator-guide/02-configuration/05-high-availability/02-om-ha.md
b/docs/05-administrator-guide/02-configuration/05-high-availability/02-om-ha.md
index 8a16b059e7..c139a4f525 100644
---
a/docs/05-administrator-guide/02-configuration/05-high-availability/02-om-ha.md
+++
b/docs/05-administrator-guide/02-configuration/05-high-availability/02-om-ha.md
@@ -32,6 +32,8 @@ For each of the defined `serviceId` a logical configuration
name should be defin
</property>
```
+For a five-voter group, list `om1,om2,om3,om4,om5` in
`ozone.om.nodes.cluster1` and configure an address for each OM. These IDs must
identify voting OMs; adding Listener OMs does not increase failure tolerance.
+
The defined prefixes can be used to define the address of each of the OM
services:
```xml
@@ -73,6 +75,8 @@ To convert a non-HA OM to be HA or to add new OM nodes to
existing HA OM ring, n
Before bootstrapping a new OM node, all the existing OM's on-disk
configuration file (ozone-site.xml) must be updated with the configuration
details of the new OM such as nodeId, address, port etc. Note that the existing
OMs need not be restarted. They will reload the configuration from disk when
they receive a bootstrap request from the bootstrapping node.
+Before a new OM can become leader, update every OM client configuration with
the new node IDs in `ozone.om.nodes.<serviceId>` and the corresponding
`ozone.om.address.<serviceId>.<nodeId>` entries. This includes Ozone clients,
admin tools, S3 Gateway, Recon, and HttpFS. Ensure running clients load the
updated configuration, restarting them where necessary. Updating the existing
OMs' configuration files alone is insufficient: a client cannot follow a leader
that is absent from its configur [...]
+
To bootstrap an OM, the following command needs to be run:
```bash
@@ -91,6 +95,8 @@ Note that using the *force* option during bootstrap could
crash the OM process i
The `ozone admin om transfer` command allows you to manually transfer the
leadership of the Ozone Manager (OM) Raft group to a specific OM node or to a
randomly chosen follower.
+Until [HDDS-17124](https://issues.apache.org/jira/browse/HDDS-17124) is fixed,
manual OM and SCM leadership transfer commands have taken approximately 4–13
seconds in five-node tests because of Ratis client retry waits during leader
discovery and priority reset. This is an observation, not an upper bound or a
guarantee about automatic failover latency. Account for client RPC timeouts; if
a command times out, check the current roles before deciding whether to retry.
+
### Usage
```bash
diff --git
a/docs/05-administrator-guide/02-configuration/05-high-availability/04-listener-om.md
b/docs/05-administrator-guide/02-configuration/05-high-availability/04-listener-om.md
index cc1708dada..babc000f64 100644
---
a/docs/05-administrator-guide/02-configuration/05-high-availability/04-listener-om.md
+++
b/docs/05-administrator-guide/02-configuration/05-high-availability/04-listener-om.md
@@ -18,7 +18,7 @@ Run **more than one** Listener OM if reads depend on them. If
a single listener
## Requirements and limitations
-- **Voting group size:** Raft needs an odd number of **voting** members. Use
**one or three** voting OMs (for example three for production). A
two-voting-member configuration is invalid.
+- **Voting group size:** Use an odd number of voting OMs, such as three or
five, for high availability. Two voting OMs work, but both are required for
quorum, so they tolerate no failure. Three voting OMs tolerate one failure and
five tolerate two; an even count adds no failure tolerance compared with the
preceding odd count. Listener OMs do not vote or increase failure tolerance.
See [OM HA fault
tolerance](../../../core-concepts/high-availability/om-ha#fault-tolerance).
- **Listeners are not promotable:** A Listener OM cannot become leader or
follower. Administrative leader transfer ([`ozone admin om
transfer`](./om-ha#om-leader-transfer)) applies only to voting members.
- **Read consistency:** Reads served from a Listener OM are **eventually
consistent** relative to the leader: they can lag slightly behind the latest
committed metadata. Plan for that if applications need to see writes
immediately.
diff --git
a/docs/05-administrator-guide/03-operations/10-leader-transfer/01-ozone-manager.md
b/docs/05-administrator-guide/03-operations/10-leader-transfer/01-ozone-manager.md
index ceaec61c4c..1dded76551 100644
---
a/docs/05-administrator-guide/03-operations/10-leader-transfer/01-ozone-manager.md
+++
b/docs/05-administrator-guide/03-operations/10-leader-transfer/01-ozone-manager.md
@@ -6,6 +6,8 @@ sidebar_label: Ozone Manager
The `ozone admin om transfer` command allows you to manually transfer the
leadership of the Ozone Manager (OM) Raft group to a specific OM node or to a
randomly chosen follower.
+Until [HDDS-17124](https://issues.apache.org/jira/browse/HDDS-17124) is fixed,
manual OM and SCM leadership transfer commands have taken approximately 4–13
seconds in five-node tests because of Ratis client retry waits during leader
discovery and priority reset. This is an observation, not an upper bound or a
guarantee about automatic failover latency. Account for client RPC timeouts; if
a command times out, check the current roles before deciding whether to retry.
+
## Usage
```bash
diff --git
a/docs/05-administrator-guide/03-operations/10-leader-transfer/02-storage-container-manager.md
b/docs/05-administrator-guide/03-operations/10-leader-transfer/02-storage-container-manager.md
index 0fcd188b22..eb80771bd0 100644
---
a/docs/05-administrator-guide/03-operations/10-leader-transfer/02-storage-container-manager.md
+++
b/docs/05-administrator-guide/03-operations/10-leader-transfer/02-storage-container-manager.md
@@ -8,6 +8,8 @@ The `ozone admin scm transfer` command allows you to manually
transfer the leade
Be aware of the node's status(eg. Safemode, Operational status), Ozone
currently has no ability to check the target node's status before transferring
the leadership.
+Until [HDDS-17124](https://issues.apache.org/jira/browse/HDDS-17124) is fixed,
manual OM and SCM leadership transfer commands have taken approximately 4–13
seconds in five-node tests because of Ratis client retry waits during leader
discovery and priority reset. This is an observation, not an upper bound or a
guarantee about automatic failover latency. Account for client RPC timeouts; if
a command times out, check the current roles before deciding whether to retry.
+
## Usage
```bash
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]