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

Method WithPingInterval

controller/cluster.go:91–97  ·  view source on GitHub ↗
(interval time.Duration)

Source from the content-addressed store, hash-verified

89}
90
91func (c *ClusterChecker) WithPingInterval(interval time.Duration) *ClusterChecker {
92 c.options.pingInterval = interval
93 if c.options.pingInterval < 200*time.Millisecond {
94 c.options.pingInterval = 200 * time.Millisecond
95 }
96 return c
97}
98
99func (c *ClusterChecker) WithMaxFailureCount(count int64) *ClusterChecker {
100 c.options.maxFailureCount = count

Callers 3

TestCluster_LoadAndProbeFunction · 0.95
TestCluster_MigrateSlotFunction · 0.95
addClusterMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestCluster_LoadAndProbeFunction · 0.76
TestCluster_MigrateSlotFunction · 0.76