MCPcopy Index your code
hub / github.com/cortexproject/cortex / initRing

Method initRing

pkg/cortex/modules.go:153–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func (t *Cortex) initRing() (serv services.Service, err error) {
154 t.Cfg.Ingester.LifecyclerConfig.RingConfig.KVStore.Multi.ConfigProvider = multiClientRuntimeConfigChannel(t.RuntimeConfig)
155 t.Ring, err = ring.New(t.Cfg.Ingester.LifecyclerConfig.RingConfig, "ingester", ingester.RingKey, util_log.Logger, prometheus.WrapRegistererWithPrefix("cortex_", prometheus.DefaultRegisterer))
156 if err != nil {
157 return nil, err
158 }
159
160 t.API.RegisterRing(t.Ring)
161
162 return t.Ring, nil
163}
164
165func (t *Cortex) initRuntimeConfig() (services.Service, error) {
166 if t.Cfg.RuntimeConfig.LoadPath == "" {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
RegisterRingMethod · 0.80

Tested by

no test coverage detected