Files
rocketmq/distribution/bin
iamgd67 2b93e1e32f Update mqbroker to use runbroker.sh instead of runserver.sh when use --enable-proxy (#7150)
Update mqbroker to use runbroker.sh instead of runserver.sh when enabling `--enable-proxy`
this allow JVM `heap` and `gc` configuration using broker's settings instead of other common serverices'(proxy,namenode, etc).
our main purpose, like the filename `mqbroker` suggest, is to start broker (which embeds a proxy), so use broker's config is reasonable

chinese version
mqbroker的--enable-proxy选项是启动内嵌了proxy的broker,而不是内嵌broker的proxy,而且broker的工作量和重要程度大于proxy,所以使用broker的gc和heap配置更合适
2023-08-17 15:31:14 +08:00
..

Operating system tuning

Before deploying broker servers, it's highly recommended to run os.sh, which is to optimize your operating system for better performance.

Notice

os.sh should be executed only once with root permission.

os.sh parameter settings are for reference purpose only. You can tune them according to your target host configurations.

Start broker

  • Unix platform

    nohup sh mqbroker &

Shutdown broker

sh mqshutdown broker

Start Nameserver

  • Unix platform

    nohup sh mqnamesrv &

Shutdown Nameserver

sh mqshutdown namesrv

Update or create Topic

sh mqadmin updateTopic -b 127.0.0.1:10911 -t TopicA

Update or create subscription group

sh mqadmin updateSubGroup -b 127.0.0.1:10911 -g SubGroupA