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
asked 2 years ago185 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions