grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
308 stars 14 forks source link

Shard query splitting: limit group size to be less than the remaining shards #829

Closed matyax closed 1 month ago

matyax commented 1 month ago

After trying different alternative approaches, such as rate of change between the last 2 requests, or rate of change between the last query and the worst performing query, I settled on the current approach which works and is simple, with just an added constrain to the maximum group size, which now cannot be longer than a % of the remaining shards.

Before:

big big group

After:

smaller groups

Additionally: