From 40fe9b4f7caec1c400ca752fd2ecdbd73e410f73 Mon Sep 17 00:00:00 2001 From: Filip Petkovski Date: Tue, 2 Aug 2022 08:21:15 +0200 Subject: [PATCH] Announce sharding in ruler and store proxy The ruler and store proxy currently support series sharding through the components that they use. However, this capability is not announced to the querier. This commit modifies their Info calls to indicate to the querier that it doesn't need to shard the response it receives from rulers and other store proxies. Signed-off-by: Filip Petkovski --- cmd/thanos/query.go | 5 +++-- cmd/thanos/rule.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/thanos/query.go b/cmd/thanos/query.go index 38c6d91882..ed9aaa5088 100644 --- a/cmd/thanos/query.go +++ b/cmd/thanos/query.go @@ -666,8 +666,9 @@ func runQuery( if httpProbe.IsReady() { mint, maxt := proxy.TimeRange() return &infopb.StoreInfo{ - MinTime: mint, - MaxTime: maxt, + MinTime: mint, + MaxTime: maxt, + SupportsSharding: true, } } return nil diff --git a/cmd/thanos/rule.go b/cmd/thanos/rule.go index 900a38bbd6..1d8667d5dc 100644 --- a/cmd/thanos/rule.go +++ b/cmd/thanos/rule.go @@ -607,8 +607,9 @@ func runRule( if httpProbe.IsReady() { mint, maxt := tsdbStore.TimeRange() return &infopb.StoreInfo{ - MinTime: mint, - MaxTime: maxt, + MinTime: mint, + MaxTime: maxt, + SupportsSharding: true, } } return nil