-
Notifications
You must be signed in to change notification settings - Fork 0
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
add band liveliness logic #23
base: main
Are you sure you want to change the base?
Conversation
@@ -8,5 +8,6 @@ penalty_exponential_factor = 1.0 | |||
[bandchain] | |||
rpc_endpoints = ['http://localhost:26657'] | |||
timeout = 3000000000 | |||
liveliness_checking_interval = 900000000000 |
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.
I think the liveliness internal should be quite fast at most (<=5m / <=1m) for both the band side and the chain side because we don't have the logic to switch nodes if it fails. the program will stuck until the next interval.
@tanut32039 @nkitlabs what do you think?
anyway, please test on fast intervals as well. to make sure that we don't have an issue if the node switches in the middle of the process.
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 default interval can be reduced.
relayer/band/client.go
Outdated
if err := c.connect(timeout); err != nil { | ||
c.Log.Error("Liveliness check: unable to reconnect to any endpoints", zap.Error(err)) |
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.
Selected rpc from startLivenessCheck should be active.
- suggest solution check status inside the connect function if required.
Fixed: #XXXX
Implementation details
Please ensure the following requirements are met before submitting a pull request:
CHANGELOG_UNRELEASED.md
Files changed
tab in the Github PR explorer)