MCPcopy Create free account
hub / github.com/cortexproject/cortex / IsInstanceInStateHealthy

Method IsInstanceInStateHealthy

pkg/ring/ring.go:1030–1032  ·  view source on GitHub ↗

IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state.

(s InstanceState)

Source from the content-addressed store, hash-verified

1028
1029// IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state.
1030func (op Operation) IsInstanceInStateHealthy(s InstanceState) bool {
1031 return op&(1<<s) > 0
1032}
1033
1034// ShouldExtendReplicaSetOnState returns true if given a state of instance that's going to be
1035// added to the replica set, the replica set size should be extended by 1

Callers 1

IsHealthyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected