Skip to content
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

mainnet: change layout #206

Merged
merged 1 commit into from
Oct 23, 2024
Merged

mainnet: change layout #206

merged 1 commit into from
Oct 23, 2024

Conversation

yakimant
Copy link
Member

@yakimant yakimant commented Oct 8, 2024

No description provided.

Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems mostly fine to me.

ansible/vars/layout/mainnet.yml Outdated Show resolved Hide resolved
ansible/vars/addresses/update.sh Show resolved Hide resolved
ansible/mainnet.yml Show resolved Hide resolved
Comment on lines +9 to +13
# Ports used for all 3 EL nodes as they are mutually exclusive.
exec_layer_p2p_port: '{{ 30303 + 3*idx|int + 1 }}'
exec_layer_rpc_port: '{{ 8545 + idx|int + 1 }}'
exec_layer_authrpc_port: '{{ 8551 + idx|int + 1 }}'
exec_layer_metrics_port: '{{ 6060 + idx|int + 1 }}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put this at the top, below swap but above Geth settings, since it's not just for Geth.

ansible/group_vars/nimbus.mainnet.yml Outdated Show resolved Hide resolved
ansible/group_vars/nimbus.mainnet.yml Outdated Show resolved Hide resolved
@yakimant yakimant marked this pull request as ready for review October 15, 2024 10:25
@yakimant yakimant force-pushed the update_mainnet_layout branch from 3bc5be4 to 7679d21 Compare October 15, 2024 11:18
@yakimant yakimant marked this pull request as draft October 17, 2024 09:56
@yakimant
Copy link
Member Author

yakimant commented Oct 18, 2024

Change layout:

  1. stop BNs and ELs
  2. run asnible playbook
  3. (geth) stop geth, replace geth db, start
  4. start a stable BN (check ports), start new BNs and sync.sh them

Cleanup checklist:

  1. sudo rm -rvf /etc/consul/*_0* /etc/consul/service_geth_mainnet_node.json /etc/consul/service_geth_mainnet_exporter.json
  2. sudo systemctl reload consul
  3. sudo systemctl stop 'beacon.*\-0'
  4. sudo systemctl disable update-beacon-node-mainnet-unstable-02.timer update-beacon-node-mainnet-unstable-01.timer update-beacon-node-mainnet-testing-01.timer update-beacon-node-mainnet-stable-01.timer resync-beacon-node-mainnet-unstable-02.timer resync-beacon-node-mainnet-testing-01.timer beacon-node-mainnet-stable-01.service beacon-node-mainnet-testing-01.service beacon-node-mainnet-unstable-01.service beacon-node-mainnet-unstable-02.service monitor-beacon-node-mainnet-stable-01.service monitor-beacon-node-mainnet-testing-01.service monitor-beacon-node-mainnet-unstable-01.service monitor-beacon-node-mainnet-unstable-02.service
  5. sudo rm -rvf /etc/systemd/system/*beacon*-0*
  6. sudo systemctl daemon-reload
  7. docker stop geth-mainnet geth-mainnet-exporter
  8. docker system prune -a --volumes
  9. sudo rm -rvf /var/log/service/beacon-node-mainnet-*0* /var/log/docker/geth-mainnet-exporter /var/log/docker/geth-mainnet-node
  10. sudo rm -rvf /docker/geth-mainnet/ /data/beacon-node-mainnet-*0*
  11. sudo rm -rvf /etc/sudoers.d/*beacon*-0*

@yakimant
Copy link
Member Author

yakimant commented Oct 18, 2024

Issues:

  • geth-02: testing BN consul check missing - it's Ok, public_api
  • geth-02: stable graphs missing
  • geth-02: geth metrics exporter missing

@yakimant
Copy link
Member Author

yakimant commented Oct 22, 2024

  • erigon nodes are not syncing:
❯ ./rpc.sh eth_blockNumber
bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}

❯ sudo du -sh erigon-mainnet-*
14M	erigon-mainnet-stable
12M	erigon-mainnet-unstable

#211

@jakubgs
Copy link
Member

jakubgs commented Oct 23, 2024

I think we can merge the layout changes even if some nodes are not fully synced, and follow that up int he issue(which should be linked in this PR and commit).

@yakimant yakimant force-pushed the update_mainnet_layout branch 3 times, most recently from 321b2ed to 547fc64 Compare October 23, 2024 14:02
@yakimant yakimant marked this pull request as ready for review October 23, 2024 14:04
@yakimant yakimant force-pushed the update_mainnet_layout branch from 547fc64 to a0dcb9c Compare October 23, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants