harmony-one / harmony-ops

Harmony Ops Master Repository.
MIT License
35 stars 25 forks source link

stop using node.sh in all mainnet nodes #595

Closed LeoHChen closed 4 years ago

LeoHChen commented 4 years ago

myip.opendns.com is not available to use now, it will stop node.sh from running due to the ip checking failure.

Now it is time to stop using node.sh on harmony's mainnet nodes. Instead, we can just run harmony binary directory in systemd service.

The command to use is harmony --run.legacy --http.ip 0.0.0.0

Please update all harmony.service file on all nodes, to use harmony binary directly.

Also, our terraform scripts need to be updated for this change as well.

Noted, on GCP node, I've noticed sometimes harmony is failed to start in systemd because the selinux prevent the user process from running. Need to disable selinux permanently on those nodes and disable selinux in current running process.

mindstyle85 commented 4 years ago

@LeoHChen just to notify.. there are a lot of users that still use node.sh and didnt/dont want to go to using the binary yet. Wht is the solution for them, other than going to the binary?

jhd2best commented 4 years ago

all validator node(except explorer and leader) already change to use binary on AWS and GCP. will change explorer node now

jhd2best commented 4 years ago

all explorer node already change to use binary

jhd2best commented 4 years ago

pushed change node to start by binary Ansible script. see https://github.com/harmony-one/ansible/pull/6

LeoHChen commented 4 years ago

@LeoHChen just to notify.. there are a lot of users that still use node.sh and didnt/dont want to go to using the binary yet. Wht is the solution for them, other than going to the binary?

node.sh will be depreciated. @mindstyle85 thanks for the inquiry. Can you lead a community discussion and proposal on the retirement of node.sh?

LeoHChen commented 4 years ago

looks good @jhd2best , have you made changes on the terraform scripts?

jhd2best commented 4 years ago

pushed change node to start by binary Terraform script. see https://github.com/harmony-one/terraform/pull/5

LeoHChen commented 4 years ago

nice work

LeoHChen commented 4 years ago

seems everything is stable. we can do the leader update tonight. @jhd2best

LeoHChen commented 4 years ago

Fixed node.sh, https://github.com/harmony-one/harmony/pull/3403

LeoHChen commented 4 years ago

node.sh deprecation proposal https://talk.harmony.one/t/node-sh-deprecation/949

jhd2best commented 4 years ago

all leader nodes changed successful