Why does the documentation suggest to set randomize to true for active/standby?

0

The default connection string is used with failover without any parameter where randomize parameter by default is “true”, Apache documentation suggests to set this to false if you want to connect to primary first and connect to secondary only when primary fails

I consider to set the “randomize” parameter to “false”, because only one/first broker is active in active/standby case.

AWS doc suggests to set randomize=true for Active/Standby , could you explain why? Shouldn't it be set to false ?

profile pictureAWS
已提问 2 年前194 查看次数
1 回答
1

Hi Muhammad_S, The active broker can be any of the two brokers in the active/standby pair. You cannot assume that it will be the first broker every time. Either of the two can be the “active” at any time, neither one is more likely than the other to be active so random=true is a good idea.

Thanks, Mithun

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则