Streams - cluster in minority for several minutes

181 views
Skip to first unread message

Borut Komac

unread,
Aug 8, 2022, 9:31:38 AM8/8/22
to rabbitmq-users

Hi,
I have a cluster of 3 nodes on 3 different host in docker containers.
I have a stream (+2) with leader and two replicas.
When I restart one broker (docker restart) it takes several minutes, hours to reach back +2.
In config I have the properties set:
stream.advertised_host=node host name
stream.advertised_port=docker exposed port 5552

On the network FW I can see RabbitMQ trying to connect to docker IP addresses and strange ports like 58270, 6101, 6182 ...
In the log I get:
"level":"warning","msg":"rabbit_stream_coordinator: Error while starting replica for...
{{{case_clause,{error,{connection_refused,{child,...}}}},[{osiris_replica,init,1,[{...}|...]},
...

Am I missing something?

Regards,
BK

kjnilsson

unread,
Aug 9, 2022, 8:06:08 AM8/9/22
to rabbitmq-users
You need to open up the stream replication port range (6000-6500).


Cheers
Karl

Borut Komac

unread,
Aug 10, 2022, 8:25:55 AM8/10/22
to rabbitmq-users
That's right, thank you.
Regards,
BK

torek, 9. avgust 2022 ob 14:06:08 UTC+2 je oseba kjnilsson napisala:
Reply all
Reply to author
Forward
0 new messages