Closed LeoHChen closed 3 years ago
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 10221.2016 ONE (1000.94 USD @ $0.1/ONE) attached to it.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work has been started.
These users each claimed they can complete the work by 1 day, 19 hours ago. Please review their action plans below:
1) luttyyang has started work.
design and implement redundant validator setup 2) slava096 has started work.
I will try to implement the described functionality
Learn more on the Gitcoin Issue Details page.
hey guys. i have finished the develop work. let me know if there is any issue for it
PR is here: https://github.com/harmony-one/harmony/pull/3689
It can active by pass these ways:
--run.backup=true
IsBackup = false
in toml confighmy_setNodeToBackupMode
command in json-rpcthis is json-rpc example
### set node to backup mode
### curl --location --request POST 'http://127.0.0.1:9500/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0","method": "hmy_setNodeToBackupMode","params": [true],"id": 1}' | jq
POST 127.0.0.1:9500
Content-Type: application/json
{
"jsonrpc": "2.0",
"method": "hmy_setNodeToBackupMode",
"params": [true],
"id": 1
}
### get current node backup state
### curl --location --request POST 'http://127.0.0.1:9500/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0","method": "hmy_getCurrentNodeBackupState","params": [],"id": 1}' | jq
POST 127.0.0.1:9500
Content-Type: application/json
{
"jsonrpc": "2.0",
"method": "hmy_getCurrentNodeBackupState",
"params": [],
"id": 1
}
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
The funding of 10221.2016 ONE (1073.44 USD @ $0.11/ONE) attached to this issue has been cancelled by the bounty submitter
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 10221.2016 ONE (829.73 USD @ $0.08/ONE) has been submitted by:
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
The funding of 10221.2016 ONE (809.12 USD @ $0.08/ONE) attached to this issue has been approved & issued to @luttyyang.
Description
Design and implement a new feature of redundant validator mode in harmony node
Context
Currently, harmony validators can run multiple redundant validator nodes at the same time w/o being penalized by signing the same block more than once. It is allowed to keep higher uptime of the blockchain nodes. However, this setup will
NOT
be allowed in the near term once the protocol enabled double-signing detection and slashing.There is still a requirement from the validator community to allow a redundant setup of nodes in passive mode to maintain high availability and uptime just in case one validator node is offline due to unexpected reasons. So, this feature requests a design and implementation of a new mechanism to allow validators keep redundant node setup, but only run one active validator in the network.
Just to give a bit more context, there is a simple request from validators to support passive mode with manual switch, https://github.com/harmony-one/harmony/issues/3670
Noted, this is a recommendation of the design of this feature, if you have a better idea to support passive validator mode, feel free to propose a new solution and discuss with the team.
Together with the following Grafana monitoring setup, the validator can get alert on telegram/discord, this design can help validators maintain high availability and uptime. https://github.com/harmony-one/Harmony_Prometheus-Grafana-Setup
Acceptance Criteria
Reward
US$1,000 equivalent amount of Harmony ONE token