当前位置:   article > 正文

RocketMQ(四)Broker配置文件详解_rocketmq brokerip1

rocketmq brokerip1
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # broker所属集群的名称
  16. brokerClusterName = DefaultCluster
  17. # broker的名称
  18. brokerName = broker-a
  19. # broker的ID, 0表示Master,非0表示Slave
  20. brokerId = 0
  21. # 删除文件时间点,默认是凌晨4
  22. deleteWhen = 04
  23. # 文件保留时间,默认保留48小时
  24. fileReservedTime = 48
  25. # broker的角色
  26. # ASYNC_MASTER: 异步复制Master
  27. # SYNC_MASTER: 同步双写Master
  28. # SLAVE: slave
  29. brokerRole = ASYNC_MASTER
  30. # 刷盘方式
  31. # ASYNC_FLUSH: 异步刷盘
  32. # SYNC_FLUSH: 同步刷盘
  33. flushDiskType = ASYNC_FLUSH
  34. # NameServer的地址,如果有多个的话,使用分号分隔开
  35. namesrvAddr=10.0.90.59:9876
  36. # 当前broker监听的IP地址
  37. brokerIP1=10.0.90.59
  38. # 在发送消息时,自动创建服务器不存在的topic,默认创建4个队列
  39. defaultTopicQueueNums=4
  40. # 是否允许broker自动创建Topic
  41. autoCreateTopicEnable=true
  42. #是否允许broker自动创建订阅组
  43. autoCreateSubscriptionGroup=true
  44. # broker对外服务的监听端口
  45. listenPort=10911
  46. # 每个commitLog文件的大小默认是1G
  47. mapedFileSizeCommitLog=1073741824
  48. # ConsumeQueue每个文件默认存30W条
  49. mapedFileSizeConsumeQueue=300000
  50. # store的存储路径
  51. storePathRootDir=/rocketmq/rocketmq-4.9.2/store
  52. # commitLog的存储路径
  53. storePathCommitLog=/rocketmq/rocketmq-4.9.2/store/commitlog
  54. # 消费队列的存储路径
  55. storePathConsumeQueue=/rocketmq/rocketmq-4.9.2/store/consumequeue
  56. # 消息索引的存储路径
  57. storePathIndex=/rocketmq/rocketmq-4.9.2/store/index
  58. # checkpoint文件的存储路径
  59. storeCheckpoint=/rocketmq/rocketmq-4.9.2/store/checkpoint
  60. # abort文件的存储路径
  61. abortFile=/rocketmq/rocketmq-4.9.2/store/abort
  62. # 限制的消息大小,默认为4M
  63. maxMessageSize=65536
  64. # 检测物理文件磁盘空间
  65. diskMaxUsedSpaceRatio=75
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/257030
推荐阅读
相关标签
  

闽ICP备14008679号