threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

[relay] better distribution of relay connections between workers #131

Open muhamadazmy opened 1 year ago

muhamadazmy commented 1 year ago

Right now workers get assigned workloads completely random (they ask for new connection based on scheduled POPing of waiting messages) this cause the connection to be distributed in a non fair way

Some workers may end up with way more connections than others.

Suggested solutions is that wokers should be part of a ring where connections are fed to them in a round-robin manner