Polish wording on top of https://github.com/apache/incubator-rocketmq-site/pull/7
Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/commit/ef72b004 Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/tree/ef72b004 Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/diff/ef72b004 Branch: refs/heads/asf-site Commit: ef72b00448a4c0a0fd21c45f1401f655b9f9e52f Parents: c706e00 Author: Zhanhui Li <lizhan...@apache.org> Authored: Fri Feb 10 16:26:38 2017 +0800 Committer: Zhanhui Li <lizhan...@apache.org> Committed: Fri Feb 10 16:26:38 2017 +0800 ---------------------------------------------------------------------- ...four-methods-to-feed-name-server-address-list.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/ef72b004/_posts/2017-02-10-four-methods-to-feed-name-server-address-list.md ---------------------------------------------------------------------- diff --git a/_posts/2017-02-10-four-methods-to-feed-name-server-address-list.md b/_posts/2017-02-10-four-methods-to-feed-name-server-address-list.md index aa27066..23aa872 100644 --- a/_posts/2017-02-10-four-methods-to-feed-name-server-address-list.md +++ b/_posts/2017-02-10-four-methods-to-feed-name-server-address-list.md @@ -8,11 +8,11 @@ tags: --- In Apache RocketMQ, name servers are designed to coordinate each component of the distributed system -and take much of the responsibility for managing topic route information. +and fulfill much of this responsibility through managing topic route information. -The management, roughly speaking, consists two parts -- Brokers send their meta data to name servers and report on topics they have. -- Name servers are serving clients, including producers, consumers and command line clients with the freshest routing information. +The management, roughly speaking, consists two parts: +- Brokers periodically renew meta data, including topics they have, which are kept in every name servers. +- Name servers are serving clients, including producers, consumers and command line clients with the latest routing information. Therefore, before launching brokers and clients, we need to tell them how to reach name servers by feeding them with a name server address list. In Apache RocketMQ, this can be done in four ways. @@ -32,7 +32,7 @@ In Apache RocketMQ, this can be done in four ways. consumer.setNamesrvAddr("name-server1-ip:port;name-server2-ip:port");` If you use admin command line from shell, you may specify this way: - `sh mqadmin command-name -n name-server-ip1:port;name-server-ip2:port -x other-options` + `sh mqadmin command-name -n name-server-ip1:port;name-server-ip2:port -X OTHER-OPTION` a simple example is: `sh mqadmin -n localhost:9876 clusterList` @@ -66,9 +66,9 @@ In Apache RocketMQ, this can be done in four ways. You may override `jmenv.tbsite.net` by this java option: `rocketmq.namesrv.domain`, You may also override `nsaddr` part by this java option: `rocketmq.namesrv.domain.subgroup` - This method is recommended because it gives you maximum flexibility -- you can dynamically add or - remove name server node without necessity of rebooting your brokers and clients according to your name servers' - system load. + If you are running Apache RocketMQ in production, this method is recommended because it gives you maximum flexibility + -- you can dynamically add or remove name server nodes without necessity of rebooting your brokers and clients + according to your name servers' system load. * Priority