Kuadrant / limitador

Rate limiter
Apache License 2.0
60 stars 21 forks source link

[distributed storage] support re-syncing counters after a peer is partitioned. #343

Closed chirino closed 6 months ago

chirino commented 6 months ago

This likely needs more thought put into it. A peer only resyncs when it goes from having zero active connections to 1 active connection.

chirino commented 6 months ago

Trying to avoid doing too many re-sync on every connect to a peer, but I think we could end up in scenarios where you have peers A, B, C, D and peer A and B start up and connect and sync, then C and D start up and connect and sync, then C,D and A,B connect and don't sync anymore as they thought they were already synced with the cluster.

chirino commented 6 months ago

Switched to a more simplified strategy of syncing with every peer session. It should work better in the face of complex network partitions.