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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠