chore: remove initialization of Ingester RF-1 (#14814)

pull/14752/head^2
George Robinson 7 months ago committed by GitHub
parent ca06d21ece
commit ed5ea97f67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      pkg/loki/loki.go

@ -39,7 +39,6 @@ import (
"github.com/grafana/loki/v3/pkg/distributor"
"github.com/grafana/loki/v3/pkg/indexgateway"
"github.com/grafana/loki/v3/pkg/ingester"
ingester_rf1 "github.com/grafana/loki/v3/pkg/ingester-rf1"
"github.com/grafana/loki/v3/pkg/ingester-rf1/metastore"
metastoreclient "github.com/grafana/loki/v3/pkg/ingester-rf1/metastore/client"
ingester_client "github.com/grafana/loki/v3/pkg/ingester/client"
@ -355,7 +354,6 @@ type Loki struct {
TenantLimits validation.TenantLimits
distributor *distributor.Distributor
Ingester ingester.Interface
IngesterRF1 ingester_rf1.Interface
PatternIngester *pattern.Ingester
PatternRingClient pattern.RingClient
Querier querier.Querier
@ -639,15 +637,6 @@ func (t *Loki) readyHandler(sm *services.Manager, shutdownRequested *atomic.Bool
}
}
// Ingester RF1 has a special check that makes sure that it was able to register into the ring,
// and that all other ring entries are OK too.
if t.IngesterRF1 != nil {
if err := t.IngesterRF1.CheckReady(r.Context()); err != nil {
http.Error(w, "RF-1 Ingester not ready: "+err.Error(), http.StatusServiceUnavailable)
return
}
}
// Query Frontend has a special check that makes sure that a querier is attached before it signals
// itself as ready
if t.frontend != nil {

Loading…
Cancel
Save