-
Notifications
You must be signed in to change notification settings - Fork 22
DF-23489 Bump chainlink-framework for multinode & metrics #432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -14,6 +14,10 @@ func (n *NodePoolConfig) PollFailureThreshold() uint32 { | |||||||||||
| return *n.C.PollFailureThreshold | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| func (n *NodePoolConfig) PollSuccessThreshold() uint32 { | ||||||||||||
|
||||||||||||
| func (n *NodePoolConfig) PollSuccessThreshold() uint32 { | |
| func (n *NodePoolConfig) PollSuccessThreshold() uint32 { | |
| if n.C.PollSuccessThreshold == nil { | |
| return 0 | |
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,5 @@ FeeCapDefault = '1000 gwei' | |
|
|
||
| [NodePool] | ||
| PollFailureThreshold = 2 | ||
| PollSuccessThreshold = 0 | ||
| PollInterval = '3s' | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -425,6 +425,10 @@ GasEstimator.PriceMax = '79 gwei' # Example | |||||
| # | ||||||
| # Set to zero to disable poll checking. | ||||||
| PollFailureThreshold = 5 # Default | ||||||
| # PollSuccessThreshold indicates how many consecutive polls must succeed in order to mark a node as alive once it has been marked as unreachable. | ||||||
| # | ||||||
| # Set to zero to require no successful polls (previous behavior). | ||||||
|
||||||
| # Set to zero to require no successful polls (previous behavior). | |
| # Set to zero to disable the success-threshold check; in this case, the node is marked alive again after the first successful poll (previous behavior). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
PollSuccessThresholddocs here have the same ambiguity asdocs.toml: “Set to zero to require no successful polls” can be interpreted as immediately marking a node alive. Consider clarifying what 0 actually does (e.g., “mark alive after the first successful poll / disable the consecutive-success requirement”) so operators don’t accidentally choose an unsafe value.