This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Spread ushards load to more nodes
In some cases, notably q=1 databases, the current ushards algorithm will always choose the same replica (because of the lists:sort and order-preserving orddict). This causes a severely skewed load profile if you have lots of these cases. This patch rotates each group of nodes using the crc32 of the database name, spreading out the load pretty evenly. The patch is a little obscure because ushards still has remnants of previous work (breaking nodes into the local, same zone, different zone, but then deliberately merging local and same zone back together because that was a silly idea). BugzID: 17801
- Loading branch information