Commit a7ff2303 authored by Francis Li's avatar Francis Li Committed by GitHub

[op-conductor] make safe check interval optional (#10321)

parent f72faa9a
......@@ -74,6 +74,7 @@ var (
Name: "healthcheck.safe-interval",
Usage: "Interval between safe head progression measured in seconds",
EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_SAFE_INTERVAL"),
Value: 1200,
}
HealthCheckMinPeerCount = &cli.Uint64Flag{
Name: "healthcheck.min-peer-count",
......@@ -103,7 +104,6 @@ var requiredFlags = []cli.Flag{
ExecutionRPC,
HealthCheckInterval,
HealthCheckUnsafeInterval,
HealthCheckSafeInterval,
HealthCheckMinPeerCount,
}
......@@ -112,6 +112,7 @@ var optionalFlags = []cli.Flag{
RPCEnableProxy,
RaftBootstrap,
HealthCheckSafeEnabled,
HealthCheckSafeInterval,
}
func init() {
......
......@@ -192,6 +192,7 @@ func (hm *SequencerHealthMonitor) healthCheck() error {
return ErrSequencerNotHealthy
}
hm.log.Info("sequencer is healthy")
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment