Documentation ¶
Index ¶
- Constants
- func New(cfg Config, schedulerAddress string, lookupPeriod time.Duration, ...) (services.Service, error)
- func NewRingClient(cfg util.CommonRingConfig, component string, logger log.Logger, ...) (*ring.Ring, error)
- func NewRingLifecycler(cfg util.CommonRingConfig, logger log.Logger, reg prometheus.Registerer) (*ring.BasicLifecycler, error)
- type Config
Constants ¶
View Source
const ( ModeFlagName = "query-scheduler.service-discovery-mode" ModeDNS = "dns" ModeRing = "ring" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config, schedulerAddress string, lookupPeriod time.Duration, component string, receiver servicediscovery.Notifications, logger log.Logger, reg prometheus.Registerer) (services.Service, error)
func NewRingClient ¶
func NewRingClient(cfg util.CommonRingConfig, component string, logger log.Logger, reg prometheus.Registerer) (*ring.Ring, error)
NewRingClient creates a client for the query-schedulers ring.
func NewRingLifecycler ¶
func NewRingLifecycler(cfg util.CommonRingConfig, logger log.Logger, reg prometheus.Registerer) (*ring.BasicLifecycler, error)
NewRingLifecycler creates a new query-scheduler ring lifecycler with all required lifecycler delegates.
Types ¶
Click to show internal directories.
Click to hide internal directories.