wlliqipeng commented on a change in pull request #654: [RIP-9]Add the operation 
part
URL: https://github.com/apache/rocketmq/pull/654#discussion_r250059092
 
 

 ##########
 File path: docs/cn/operation.md
 ##########
 @@ -0,0 +1,1408 @@
+## 运维管理(operation)
+
+### 1   集群搭建
+
+#### 1.1 单Master模式
+
+这种方式风险较大,一旦Broker重启或者宕机时,会导致整个服务不可用。不建议线上环境使用,可以用于本地测试。
+
+##### 1)启动 NameServer
+
+```bash
+### 首先启动Name Server,例如机器IP为:192.161.1:9876
+$ nohup sh mqnamesrv &
+ 
+### 验证Name Server 是否启动成功
+$ tail -f ~/logs/rocketmqlogs/namesrv.log
+The Name Server boot success...
+```
+
+##### 2)启动 Broker
+
+```bash
+### 启动Broker,例如机器IP为:192.161.1:9876
+$ nohup sh bin/mqbroker -n localhost:9876 &
+### 验证Name Server 是否启动成功
+$ tail -f ~/logs/rocketmqlogs/Broker.log 
+The broker[%s, 172.30.30.233:10911] boot success...
+```
+
+#### 1.2 多Master模式
+
+一个集群无Slave,全是Master,例如2个Master或者3个Master,这种模式的优缺点如下:
+
+- 
优点:配置简单,单个Master宕机或重启维护对应用无影响,在磁盘配置为RAID10时,即使机器宕机不可恢复情况下,由于RAID10磁盘非常可靠,消息也不会丢(异步刷盘丢失少量消息,同步刷盘一条不丢)。性能最高;
+
+- 缺点:单台机器宕机期间,这台机器上未被消费的消息在机器恢复之前不可订阅,消息实时性会受到受到影响。
 
 Review comment:
   “受到”重复

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to