MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / WithMaxFailureCount

Method WithMaxFailureCount

controller/cluster.go:99–105  ·  view source on GitHub ↗
(count int64)

Source from the content-addressed store, hash-verified

97}
98
99func (c *ClusterChecker) WithMaxFailureCount(count int64) *ClusterChecker {
100 c.options.maxFailureCount = count
101 if c.options.maxFailureCount < 1 {
102 c.options.maxFailureCount = 5
103 }
104 return c
105}
106
107func (c *ClusterChecker) probeNode(ctx context.Context, node store.Node) (int64, error) {
108 clusterInfo, err := node.GetClusterInfo(ctx)

Callers 1

addClusterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected