nimbus-db-purge: deploy to two mainnet hosts
https://github.com/status-im/infra-nimbus/issues/86 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a8b48242b0
commit
6488efd4e9
|
@ -7,6 +7,7 @@ beacon_node_repo_branch: '{{ (node.branch == "libp2p") | ternary("nim-libp2p-aut
|
|||
# TODO Drop this once all nodes have an number.
|
||||
service_number: '{{ node.get("num", False) | ternary(("-%02d"|format(node.get("num", 0))), "") }}'
|
||||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}{{ service_number }}'
|
||||
beacon_node_service_path: '/data/{{ beacon_node_service_name }}'
|
||||
# Ports
|
||||
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
|
||||
beacon_node_listening_port: '{{ 9000 + port_offset }}'
|
||||
|
@ -31,6 +32,14 @@ beacon_node_subscribe_all: true
|
|||
# HTTP RPC support is unstable
|
||||
beacon_node_web3_urls: '{{ beacon_node_web3_urls_all | reject("match", "^http://") }}'
|
||||
|
||||
# Purge node DB periodically to test syncing.
|
||||
nimbus_db_purge_node_service_name: '{{ beacon_node_service_name }}'
|
||||
nimbus_db_purge_node_service_path: '{{ beacon_node_service_path }}'
|
||||
nimbus_db_purge_node_network_name: '{{ beacon_node_network }}'
|
||||
nimbus_db_purge_timer_frequency: 'weekly'
|
||||
nimbus_db_purge_truster_node_api_url: 'http://localhost:{{ beacon_node_rest_port|int - 1 }}'
|
||||
nimbus_db_purge_trusted_node_sync_enabled: '{{ node.get("db_sync", false) }}'
|
||||
|
||||
# Split by hostname for more central location
|
||||
nodes_layout:
|
||||
'stable-small-01.aws-eu-central-1a.nimbus.mainnet':
|
||||
|
@ -76,7 +85,7 @@ nodes_layout:
|
|||
- { branch: 'stable', num: 2 }
|
||||
- { branch: 'testing', num: 1 }
|
||||
- { branch: 'testing', num: 2 }
|
||||
- { branch: 'unstable', num: 1 }
|
||||
- { branch: 'unstable', num: 1, db_purge: true }
|
||||
- { branch: 'unstable', num: 2 }
|
||||
- { branch: 'libp2p', num: 1 }
|
||||
|
||||
|
@ -85,6 +94,6 @@ nodes_layout:
|
|||
- { branch: 'stable', num: 2 }
|
||||
- { branch: 'testing', num: 1 }
|
||||
- { branch: 'testing', num: 2 }
|
||||
- { branch: 'unstable', num: 1 }
|
||||
- { branch: 'unstable', num: 1, db_purge: true, db_sync: true }
|
||||
- { branch: 'unstable', num: 2 }
|
||||
- { branch: 'libp2p', num: 1 }
|
||||
|
|
|
@ -40,3 +40,14 @@
|
|||
loop_control:
|
||||
loop_var: node
|
||||
index_var: port_offset
|
||||
|
||||
- name: Configure periodic puging of nodes DBs
|
||||
become: true
|
||||
hosts: nimbus-mainnet-metal
|
||||
tasks:
|
||||
- include_role: name=nimbus-db-purge
|
||||
when: node.get("db_purge", None)
|
||||
with_items: '{{ nodes_layout[hostname] }}'
|
||||
loop_control:
|
||||
loop_var: node
|
||||
index_var: port_offset
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
- name: infra-role-bootstrap-macos
|
||||
src: git@github.com:status-im/infra-role-bootstrap-macos.git
|
||||
version: 46ec39135a4226e1574cb8868ace52f911e97636
|
||||
version: f2dda03c8a88b5bf7151ef518ed375b185dd67d7
|
||||
scm: git
|
||||
|
||||
- name: infra-role-wireguard
|
||||
|
@ -46,12 +46,12 @@
|
|||
|
||||
- name: infra-role-beacon-node-linux
|
||||
src: git@github.com:status-im/infra-role-beacon-node-linux.git
|
||||
version: 558b4069d452ab5a58ac5a7ad79ddd6f0ca861e6
|
||||
version: 23cf9101134c30be7c07932f3be19da26363a2dd
|
||||
scm: git
|
||||
|
||||
- name: infra-role-beacon-node-windows
|
||||
src: git@github.com:status-im/infra-role-beacon-node-windows.git
|
||||
version: 5eab965d005c4f076d4c12ce8a115fc42c8cdc07
|
||||
version: fcc5fd5078431600801d2b4adc80853d884beb72
|
||||
scm: git
|
||||
|
||||
- name: infra-role-beacon-node-macos
|
||||
|
@ -66,7 +66,7 @@
|
|||
|
||||
- name: infra-role-dist-validators
|
||||
src: git@github.com:status-im/infra-role-dist-validators.git
|
||||
version: f5e6c3063ecbb475af0dba7a62e5e587af52b631
|
||||
version: 57a92fb68903127872b5926e1598d71f744de7f5
|
||||
scm: git
|
||||
|
||||
- name: infra-role-rocketpool
|
||||
|
|
Loading…
Reference in New Issue