Skip to content

Commit

Permalink
feat: use new health-check for vega
Browse files Browse the repository at this point in the history
  • Loading branch information
ehh-why-its-so-hard committed Oct 29, 2024
1 parent 134eecd commit 56c42c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/vega_core/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ vega_core_data_node_settings: {}

vega_core_with_health_check: true
vega_core_health_check_repository: "nebula-dex/vega-health-check"
vega_core_health_check_version: "v0.1.0"
vega_core_health_check_version: "v0.2.0"
1 change: 1 addition & 0 deletions roles/vega_core/tasks/health-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
url: "https://github.com/{{- vega_core_health_check_repository -}}/releases/download/{{- vega_core_health_check_version -}}/vega-health-check-linux-amd64"
dest: /usr/local/bin/vega-health-check
mode: '0755'
notify: "Restart vega-health-check"

- name: Install health-check systemd
ansible.builtin.template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Requires=network-online.target
User=vega
Group=vega
{% if vega_core_with_block_explorer | default(false) %}
ExecStart=/usr/local/bin/vega-health-check blockexplorer --blockexplorer-api-url "http://localhost:1515" --core-url "http://localhost:3003" --http-port 8080
ExecStart=/usr/local/bin/vega-health-check blockexplorer --blockexplorer-api-url "http://localhost:1515" --core-url "http://localhost:3003" --http-port 8080 --check-interval 2s
{% elif vega_core_with_data_node | default(false) %}
ExecStart=/usr/local/bin/vega-health-check data-node --api-url "http://localhost:3008" --core-url "http://localhost:3003" --http-port 8080
ExecStart=/usr/local/bin/vega-health-check data-node --api-url "http://localhost:3008" --core-url "http://localhost:3003" --http-port 8080 --check-interval 2s
{% else %}
ExecStart=/usr/local/bin/vega-health-check vega --core-url "http://localhost:3003" --http-port 8080
ExecStart=/usr/local/bin/vega-health-check vega --core-url "http://localhost:3003" --http-port 8080 --check-interval 2s
{% endif %}
TimeoutStopSec=10s
ProtectSystem=full
Expand Down

0 comments on commit 56c42c0

Please sign in to comment.