Skip to content

Commit

Permalink
feat: add basica and default heaptracking to all nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Sep 28, 2023
1 parent ef8079f commit dc41bb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions resources/ansible/roles/node/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
is_genesis: False
node_service_pre_cmd:
otlp_endpoint: http://dev-testnet-infra-f2016fb1217aaf30.elb.eu-west-2.amazonaws.com:4317
node_archive_filename: safenode-latest-x86_64-unknown-linux-musl.tar.gz
node_archive_url: https://sn-node.s3.eu-west-2.amazonaws.com/{{ node_archive_filename }}
Expand Down
6 changes: 4 additions & 2 deletions resources/ansible/roles/node/templates/sn_node.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
Description=Safe Node %I

[Service]
WorkingDirectory=/home/safe
{% if is_genesis %}
ExecStart={{ node_archive_dest_path }}/safenode \
ExecStart=heaptrack {{ node_archive_dest_path }}/safenode \
--port {{ node_port }} \
--rpc {{ node_rpc_ip }}:{{ node_rpc_port }}
{% else %}
ExecStart={{ node_archive_dest_path }}/safenode \
ExecStart=heaptrack {{ node_archive_dest_path }}/safenode \
--peer {{ genesis_multiaddr }}
{% endif %}
User=safe


[Install]
WantedBy=multi-user.target

0 comments on commit dc41bb5

Please sign in to comment.