Skip to content
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

HDDS-12030. Update SCM-HA.zh.md #7669

Merged
merged 6 commits into from
Jan 21, 2025
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
10 changes: 2 additions & 8 deletions hadoop-hdds/docs/content/feature/SCM-HA.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@ This document explains the HA setup of Storage Container Manager (SCM), please c

## Configuration

HA mode of Storage Container Manager can be enabled with the following settings in `ozone-site.xml`:
As of Apache Ozone 2.0, SCM HA is always enabled. Test deployments can continue to use single node Ratis for SCM if needed.
jojochuang marked this conversation as resolved.
Show resolved Hide resolved

```XML
<property>
<name>ozone.scm.ratis.enable</name>
<value>true</value>
</property>
```
One Ozone configuration (`ozone-site.xml`) can support multiple SCM HA node set, multiple Ozone clusters. To select between the available SCM nodes a logical name is required for each of the clusters which can be resolved to the IP addresses (and domain names) of the Storage Container Managers.

This logical name is called `serviceId` and can be configured in the `ozone-site.xml`
Expand Down Expand Up @@ -234,7 +228,7 @@ bin/ozone debug ldb --db=/tmp/metadata/scm.db scan --column-family=containers

## Migrating from existing SCM
jojochuang marked this conversation as resolved.
Show resolved Hide resolved

SCM HA can be turned on on any Ozone cluster. First enable Ratis (`ozone.scm.ratis.enable`) and configure only one node for the Ratis ring (`ozone.scm.nodes.serviceId` should have one element).
SCM HA is turned on for any Ozone cluster after upgrade to 2.0.0 or later. First configure only one node for the Ratis ring (`ozone.scm.nodes.serviceId` should have one element).

Start the cluster and test if it works well.
jojochuang marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
16 changes: 2 additions & 14 deletions hadoop-hdds/docs/content/feature/SCM-HA.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,8 @@ Ozone Manager 和 Storage Container Manager 都支持 HA。在这种模式下,

## 配置

> &#x26a0;&#xfe0f; **注意** &#x26a0;&#xfe0f;
>
> SCM HA 目前仅支持新初始化的集群。
> SCM HA 必须在 Ozone 服务首次启动前开启。
> 当某个 SCM 以非 HA 的模式启动后,不支持将其改为 HA 模式。
从 Apache Ozone 2.0 开始,SCM HA 默认启用。测试部署如果需要,仍然可以继续使用单节点 Ratis 来运行 SCM。

Storage Container Manager 的 HA 模式可以在 `ozone-site.xml` 中进行以下设置:

```XML
<property>
<name>ozone.scm.ratis.enable</name>
<value>true</value>
</property>
```
一个 Ozone 配置(`ozone-site.xml`)可以支持多个SCM HA节点集,多个 Ozone 集群。要在可用的 SCM 节点之间进行选择,每个集群都需要一个逻辑名称,可以将其解析为 Storage Container Manage 的 IP 地址(和域名)。

这个逻辑名称称为 `serviceId`,可以在 `ozone-site.xml` 中配置。
Expand Down Expand Up @@ -218,7 +206,7 @@ bin/ozone debug ldb --db=/tmp/metadata/scm.db scan --column-family=containers

## 从现有的SCM迁移

可以在任何 Ozone 集群上打开 SCM HA。 首先启用 Ratis(`ozone.scm.ratis.enable`)并为 Ratis ring 配置一个节点(`ozone.scm.nodes.serviceId` 应该有一个元素)。
在升级到 2.0.0 或更高版本后,任何 Ozone 集群的 SCM HA都会启用。 首先为 Ratis ring 配置一个节点(`ozone.scm.nodes.serviceId` 应该有一个元素)。

启动集群并测试它是否正常工作。

Expand Down
Loading