RocketMQ 5.0.0 Namesrv是在4.9.X基础上添加了内嵌Controller实例的功能,其余功能差不多。
具体体现在配置上的差异如下总结, 大家参考。
RocketMQ 5.0 和 4.9.X 配置项差异
5.0.0 配置项 | 4.9.X 配置项 | 备注 |
---|---|---|
bindAddress | 服务IP | |
clientRequestThreadPoolNums | 处理客户端请求的线程数 | |
clientRequestThreadPoolQueueCapacity | 处理客户端请求的线程数容量 | |
clusterTest | clusterTest | |
configStorePath | configStorePath | |
defaultThreadPoolNums | 处理broker请求的线程数 | |
defaultThreadPoolQueueCapacity | 处理broker请求的线程数容量 | |
enableAllTopicList | 是否允许查询全部topic列表,默认允许 | |
enableControllerInNamesrv | 是否把congtroller嵌入namesrv部署 | |
enableTopicList | 是否允许查询集群的topicunit topic,unit sub topicunit sub unit topic | |
kvConfigPath | kvConfigPath | |
listenPort | listenPort | |
notifyMinBrokerIdChanged | 是否允许通知最小broker id变化 | |
orderMessageEnable | orderMessageEnable | |
productEnvName | productEnvName | |
returnOrderTopicConfigToBroker | 是否允许读取kv配置中顺序消息topic配置 | |
rocketmqHome | rocketmqHome | |
scanNotActiveBrokerInterval | 扫描不活跃broker的时间间隔,单位毫秒 | |
serverAsyncSemaphoreValue | serverAsyncSemaphoreValue | |
serverCallbackExecutorThreads | serverCallbackExecutorThreads | |
serverChannelMaxIdleTimeSeconds | serverChannelMaxIdleTimeSeconds | |
serverOnewaySemaphoreValue | serverOnewaySemaphoreValue | |
serverPooledByteBufAllocatorEnable | serverPooledByteBufAllocatorEnable | |
serverSelectorThreads | serverSelectorThreads | |
serverSocketBacklog | serverSocketBacklog | |
serverSocketRcvBufSize | serverSocketRcvBufSize | |
serverSocketSndBufSize | serverSocketSndBufSize | |
serverWorkerThreads | serverWorkerThreads | |
supportActingMaster | 是否支持主从切换 | |
unRegisterBrokerQueueCapacity | 处理UnRegisterBroker请求的线程池队列长度 | |
useEpollNativeSelector | useEpollNativeSelector | |
writeBufferHighWaterMark | writeBufferHighWaterMark | |
writeBufferLowWaterMark | writeBufferLowWaterMark |
二、配置默认值差异
RocketMQ Namesrv 5.0 配置以及默认值
5.0.0 配置项 | 5.0.0 配置值 |
---|---|
bindAddress | 0.0.0.0 |
clientRequestThreadPoolNums | 8 |
clientRequestThreadPoolQueueCapacity | 50000 |
clusterTest | false |
configStorePath | /root/namesrv/namesrv.properties |
defaultThreadPoolNums | 16 |
defaultThreadPoolQueueCapacity | 10000 |
enableAllTopicList | true |
enableControllerInNamesrv | false |
enableTopicList | true |
kvConfigPath | /root/namesrv/kvConfig.json |
listenPort | 9876 |
notifyMinBrokerIdChanged | false |
orderMessageEnable | false |
productEnvName | center |
returnOrderTopicConfigToBroker | true |
rocketmqHome | /usr/local/services/rocketmq-5.0.0 |
scanNotActiveBrokerInterval | 5000 |
serverAsyncSemaphoreValue | 64 |
serverCallbackExecutorThreads | 0 |
serverChannelMaxIdleTimeSeconds | 120 |
serverOnewaySemaphoreValue | 256 |
serverPooledByteBufAllocatorEnable | true |
serverSelectorThreads | 3 |
serverSocketBacklog | 1024 |
serverSocketRcvBufSize | 0 |
serverSocketSndBufSize | 0 |
serverWorkerThreads | 8 |
supportActingMaster | false |
unRegisterBrokerQueueCapacity | 3000 |
useEpollNativeSelector | false |
writeBufferHighWaterMark | 0 |
writeBufferLowWaterMark | 0 |
RocketMQ Namesrv 4.9.X 配置以及默认值(空白的是比5.0.0少的)
4.9.X 配置项 | 4.9.x 配置值 |
---|---|
clusterTest | false |
configStorePath | /data/rocketmq_home/conf/namesrv.conf |
kvConfigPath | /root/namesrv/kvConfig.json |
listenPort | 9876 |
orderMessageEnable | false |
productEnvName | center |
rocketmqHome | /data/rocketmq_home |
serverAsyncSemaphoreValue | 64 |
serverCallbackExecutorThreads | 0 |
serverChannelMaxIdleTimeSeconds | 120 |
serverOnewaySemaphoreValue | 256 |
serverPooledByteBufAllocatorEnable | true |
serverSelectorThreads | 3 |
serverSocketBacklog | 1024 |
serverSocketRcvBufSize | 0 |
serverSocketSndBufSize | 0 |
serverWorkerThreads | 8 |
useEpollNativeSelector | false |
writeBufferHighWaterMark | 0 |
writeBufferLowWaterMark | 0 |