mirror of
https://github.com/grafana/loki.git
synced 2026-03-13 09:33:58 +08:00
This PR adds the functionality to add a client-side shuffle sharding for index gateway requests. The per-tenant configuration index_gateway_max_capacity defines a fraction (0.0 to 1.0) of index gateways that become available for each tenant. The client uses the jumphash of the tenant ID to achieve greatest possible consitant hashing without using a server-side, statefule hash ring. This will allow to distribute workloads from different tenants across all index gateway instances and prevent individual tenants from overloading all index gateways. Signed-off-by: Christian Haudum <christian.haudum@gmail.com>