Replica Load Balancing with Delayed Feedback

Compare a uniform request rule with sampling current load and explain how delayed measurements affect admission.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Equal destinations need not see equal work
  2. Capacity and freshness can conflict

Equal destinations need not see equal work

Choose a replica uniformly for each independent request. Counts can vary by chance and request costs can vary even at equal counts. A policy sampling two replicas and selecting the one with a shorter observed queue can avoid some local buildup. Its decision depends on how accurate that observation is and whether requests are comparable enough for queue length to predict delay.

Capacity and freshness can conflict

If many dispatchers use the same stale measurement, all may favor a server that was briefly idle. Fresh bounded feedback, randomized selection and admission limits can reduce this synchronization. A replica also needs to be eligible for the requested data version. Consistent hashing organizes membership and partition ownership. Little’s law relates mean load and time for the measured boundary.[1][2]

References

  1. Giuseppe DeCandia et al., Dynamo: Amazon’s Highly Available Key-Value Store ↩
  2. MIT 6.5840, Distributed Systems: Course Readings ↩