Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a7ff2303
Unverified
Commit
a7ff2303
authored
Apr 29, 2024
by
Francis Li
Committed by
GitHub
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[op-conductor] make safe check interval optional (#10321)
parent
f72faa9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
flags.go
op-conductor/flags/flags.go
+2
-1
monitor.go
op-conductor/health/monitor.go
+1
-0
No files found.
op-conductor/flags/flags.go
View file @
a7ff2303
...
@@ -74,6 +74,7 @@ var (
...
@@ -74,6 +74,7 @@ var (
Name
:
"healthcheck.safe-interval"
,
Name
:
"healthcheck.safe-interval"
,
Usage
:
"Interval between safe head progression measured in seconds"
,
Usage
:
"Interval between safe head progression measured in seconds"
,
EnvVars
:
opservice
.
PrefixEnvVar
(
EnvVarPrefix
,
"HEALTHCHECK_SAFE_INTERVAL"
),
EnvVars
:
opservice
.
PrefixEnvVar
(
EnvVarPrefix
,
"HEALTHCHECK_SAFE_INTERVAL"
),
Value
:
1200
,
}
}
HealthCheckMinPeerCount
=
&
cli
.
Uint64Flag
{
HealthCheckMinPeerCount
=
&
cli
.
Uint64Flag
{
Name
:
"healthcheck.min-peer-count"
,
Name
:
"healthcheck.min-peer-count"
,
...
@@ -103,7 +104,6 @@ var requiredFlags = []cli.Flag{
...
@@ -103,7 +104,6 @@ var requiredFlags = []cli.Flag{
ExecutionRPC
,
ExecutionRPC
,
HealthCheckInterval
,
HealthCheckInterval
,
HealthCheckUnsafeInterval
,
HealthCheckUnsafeInterval
,
HealthCheckSafeInterval
,
HealthCheckMinPeerCount
,
HealthCheckMinPeerCount
,
}
}
...
@@ -112,6 +112,7 @@ var optionalFlags = []cli.Flag{
...
@@ -112,6 +112,7 @@ var optionalFlags = []cli.Flag{
RPCEnableProxy
,
RPCEnableProxy
,
RaftBootstrap
,
RaftBootstrap
,
HealthCheckSafeEnabled
,
HealthCheckSafeEnabled
,
HealthCheckSafeInterval
,
}
}
func
init
()
{
func
init
()
{
...
...
op-conductor/health/monitor.go
View file @
a7ff2303
...
@@ -192,6 +192,7 @@ func (hm *SequencerHealthMonitor) healthCheck() error {
...
@@ -192,6 +192,7 @@ func (hm *SequencerHealthMonitor) healthCheck() error {
return
ErrSequencerNotHealthy
return
ErrSequencerNotHealthy
}
}
hm
.
log
.
Info
(
"sequencer is healthy"
)
return
nil
return
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment