Set up a hub cluster with nodes HUB1, HUB2, HUB3
Set up a leaf cluster with nodes LEAF1, LEAF2, LEAF3
Connect the leaf nodes as follows: (LEAF1 and LEAF2 connect to the SAME Hub - this is NOT a typo)
LEAF1 → HUB1
LEAF2 → HUB1
LEAF3 → HUB3
Start queue group listeners on LEAF1 and LEAF2
nats --context LEAF1 sub --queue=q1 foo
nats --context LEAF2 sub --queue=q1 foo
Observed behavior
Queue Groups on leaf clusters not balancing (only one subscriber receiving messages) in certain assymetrically connected leaf cluster
Expected behavior
Queue Groups always balance when all subs connection in the same leaf cluster
See also: https://github.com/nats-io/nats-server/issues/5972
Server and client version
Server 2.10.22 nat-cli from main
Host environment
Windows (Michael) - Linux (customer)
Steps to reproduce
Set up a hub cluster with nodes HUB1, HUB2, HUB3 Set up a leaf cluster with nodes LEAF1, LEAF2, LEAF3 Connect the leaf nodes as follows: (LEAF1 and LEAF2 connect to the SAME Hub - this is NOT a typo) LEAF1 → HUB1 LEAF2 → HUB1 LEAF3 → HUB3 Start queue group listeners on LEAF1 and LEAF2 nats --context LEAF1 sub --queue=q1 foo nats --context LEAF2 sub --queue=q1 foo
Publish to HUB3 nats --context HUB3 pub foo Hello