-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 support for graceful halt via server config #4059
Changes from all commits
f0dfe4b
5cdc24b
6df9d5a
4bc4bdd
ce9f866
f742aaf
dd4aa15
cb58d71
4d67a8e
158b9f9
34dd6ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#3981 Add support to gracefully halt a node at a given height | ||
via the node's `halt-height` config or CLI value. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,15 @@ You should also be able to see your validator on the [Explorer](https://explorec | |
To be in the validator set, you need to have more total voting power than the 100th validator. | ||
::: | ||
|
||
## Halting Your Validator | ||
|
||
When attempting to perform routine maintenance or planning for an upcoming coordinated | ||
upgrade, it can be useful to have your validator systematically and gracefully halt. | ||
You can achieve this by either setting the `halt-height` to the height at which | ||
you want your node to shutdown or by passing the `--halt-height` flag to `gaiad`. | ||
The node will shutdown with a zero exit code at that given height after committing | ||
the block. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be set only at boot time right? Do you think will be possible to undo this at runtime, or to set/change this flag at runtime, let's say a governance proposal that proposed to update at height X got downvoted but I started a node with this this --halt-height X Probably even if it's true it makes sense to do it in a separate PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question @sabau. This value can be set at any time really but the node would have to be restarted for it to take effect. There currently isn't a way to do this at runtime. I think there is some crossover functionality between this and the software upgrade module/process we plan to have. Essentially, to do this at runtime, it would have to be parameter somewhere. |
||
## Common Problems | ||
|
||
### Problem #1: My validator has `voting_power: 0` | ||
|
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.
👍