msimonin / ombt-orchestrator

Framework to evaluate different message buses using oslo.messaging (via ombt)
GNU General Public License v3.0
3 stars 4 forks source link

Sharding leads (sometime) to unbalance distribution of agents #127

Closed msimonin closed 6 years ago

msimonin commented 6 years ago

Considering the case where we have 10 machines, 4 shards, 20 servers to start.

The first shard starts 5 servers on machine01-machine05 The second shard starts 5 servers on machine02-machine06 etc leading to 1-2-3-4-4-3-2-1-0-0 servers being started on the machines.

This was because we only shift the machines using the shard_index whose values was 0,1,2,3