rocketmq故障整理

问题现象:

开发反馈说rocketmq 超时无响应,于是我就去检查了下集群状态

rocketmq架构

2主2从异步复制

集群状态

image.png

报错日志:

2022-06-14 16:54:54 ERROR BrokerControllerScheduledThread1 - SyncSubscriptionGroup Exception, ***外网ip**:10911
org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to **外网ip**:10911 failed
        at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:394) ~[rocketmq-remoting-4.7.1.jar:4.7.1]
        at org.apache.rocketmq.broker.out.BrokerOuterAPI.getAllSubscriptionGroupConfig(BrokerOuterAPI.java:382) ~[rocketmq-broker-4.7.1.jar:4.7.1]
        at org.apache.rocketmq.broker.slave.SlaveSynchronize.syncSubscriptionGroupConfig(SlaveSynchronize.java:125) [rocketmq-broker-4.7.1.jar:4.7.1]
        at org.apache.rocketmq.broker.slave.SlaveSynchronize.syncAll(SlaveSynchronize.java:52) [rocketmq-broker-4.7.1.jar:4.7.1]
        at org.apache.rocketmq.broker.BrokerController$12.run(BrokerController.java:1144) [rocketmq-broker-4.7.1.jar:4.7.1]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_241]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_241]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_241]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_241]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_241]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_241]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]

问题描述:

broker 主从之间通讯,使用的外网网卡,安全组规则是只放通了web服务的一些端口,内部服务只能公司网和内网访问(在这个问题之前确实调整了下安全组规则)
这个问题在多网卡服务器上会出现

查看服务器网卡broker 默认用的是eth1这个网卡

image.png

解决:

配置文件增加:指定borker内网地址主从配置文件都需要加,ip,写节点所在的ip就可以了

brokerIP1=10.0.0.30

加好之后

image.png

查看启动日志是内网就可以了

##

你可能感兴趣的:(rocketmq故障整理)