客户端采用endpoint方式访问2节点Dledger controller+local proxy时,当其中一个节点宕机后,主从切换正常后,发送消息失败 #6993
onejimmyboy
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
版本RocketMQ5.1.1版本
集群模式:DLedger controller + local proxy
节点:2节点
客户端:java
访问方式:endpint连接:ip1:8081;ip2:8081
现象:
宕机一个节点后,发送消息失败,这时候如果使用namesrv连接访问是可以的,能发送成功。有时过了一段时间,大概几十秒,采用endpoint的方式就ok了,
疑问:请问这种现象正常吗?感觉连接proxy没有直接量namesrv好用(考虑节点宕机的情况下),
`@Bean(name="MyProducer")
public Producer createProducer(){
ClientServiceProvider provider = ClientServiceProvider.loadService();
ClientConfigurationBuilder builder = ClientConfiguration.newBuilder().setEndpoints(“ip1:8081;ip2:8081”);
ClientConfiguration configuration = builder.build();
Beta Was this translation helpful? Give feedback.
All reactions