xiaoyuyao commented on a change in pull request #2092:
URL: https://github.com/apache/ozone/pull/2092#discussion_r604411551



##########
File path: hadoop-hdds/docs/content/feature/SCM-HA.zh.md
##########
@@ -0,0 +1,162 @@
+---
+title: "SCM 高可用"
+weight: 1
+menu:
+   main:
+      parent: 特点
+summary: Storage Container Manager 的 HA 设置可以避免任何单点故障。
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+Ozone包含两个元数据管理节点(用于键管理的 *Ozone Manager* 和用于块空间管理的 *Storage Container 
management* )和多个存储节点(数据节点)。通过 RAFT 共识算法实现数据在数据节点之间的复制。
+
+<div class="alert alert-warning" role="alert">
+请注意,SCM-HA 尚未准备好在安全环境中进行生产。 安全工作正在进行中,将很快完成。
+</div>
+
+为了避免任何单点故障,元数据管理器节点还应该具有 HA 设置。
+
+Ozone Manager 和 Storage Container Manager 都支持 HA。在这种模式下,内部状态通过 RAFT (使用 Apache 
Ratis )复制。
+
+本文档解释了 Storage Container Manager (SCM)的 HA 设置,请在[本页]({{< ref "OM-HA" >}})中查看 
Ozone Manager (OM)的 HA 设置。虽然它们可以独立地为 HA 进行设置,但可靠的、完全的 HA 设置需要为两个服务启用 HA。
+
+## 配置
+
+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` 中配置。
+
+大多数情况下,你只需要设置当前集群的值:
+
+```XML
+<property>
+   <name>ozone.scm.service.ids</name>
+   <value>cluster1</value>
+</property>
+```
+
+对于每个已定义的 `serviceId`,应该为每个服务器定义一个逻辑配置名:
+
+```XML
+<property>
+   <name>ozone.scm.nodes.cluster1</name>
+   <value>scm1,scm2,scm3</value>
+</property>
+```
+
+定义的前缀可以用来定义每个 SCM 服务的地址:
+
+```XML
+<property>
+   <name>ozone.scm.address.cluster1.scm1</name>
+   <value>host1</value>
+</property>
+<property>
+   <name>ozone.scm.address.cluster1.scm1</name>
+   <value>host2</value>
+</property>
+<property>
+   <name>ozone.scm.address.cluster1.scm1</name>

Review comment:
       scm1=》scm3




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to