unified-storage: setup distributor module option A (#104737)

* setup distributor module

* move lifecycler into resource server provider

* remove ring/client pool setup from distributor module and use the same ring/client pool between storage server module and distributor module

* implement resourcestore server methods

* make healthcheck fail if ring is not running
This commit is contained in:
Will Assis
2025-05-19 08:46:03 -03:00
committed by GitHub
parent 98c9bc5028
commit bdae4424e8
17 changed files with 458 additions and 541 deletions
@@ -12,6 +12,7 @@ import (
"github.com/grafana/authlib/authn"
"github.com/grafana/authlib/types"
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/services"
"github.com/grafana/grafana/pkg/infra/db"
@@ -157,7 +158,7 @@ func TestClientServer(t *testing.T) {
features := featuremgmt.WithFeatures()
svc, err := sql.ProvideUnifiedStorageGrpcService(cfg, features, dbstore, nil, prometheus.NewPedanticRegistry(), nil, nil, nil, nil)
svc, err := sql.ProvideUnifiedStorageGrpcService(cfg, features, dbstore, nil, prometheus.NewPedanticRegistry(), nil, nil, nil, nil, kv.Config{})
require.NoError(t, err)
var client resourcepb.ResourceStoreClient