Fix formatting for _metrics.tpl and add nice -n <int> option in _waku_container_command.tpl.

This commit is contained in:
Pearson White
2025-06-23 13:19:18 -04:00
parent 7df88e6845
commit 5b96cf19bd
3 changed files with 11 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
{{- define "waku.nodes.readiness-probe.metrics" -}}
- /bin/sh
- -c
- >
- |
curl_output=$(curl -s http://127.0.0.1:8008/metrics);
curl_status=$?;
if [ $curl_status -ne 0 ]; then

View File

@@ -1,11 +1,9 @@
name: nodes-0
namespace: zerotesting
serviceName: zerotesting-service
app: zerotenkay
waku:
nodes:
name: nodes-0
namespace: zerotesting
serviceName: zerotesting-service
app: zerotenkay
numNodes: 10
getEnr:
repo: "soutullostatus/getenr"
@@ -14,6 +12,7 @@ waku:
serviceName: "zerotesting-bootstrap.zerotesting"
command:
type: "regression"
nice: 19
args:
maxConnections: 200
readinessProbe:

View File

@@ -16,12 +16,15 @@
echo ENRs are{{- range $i, $ := until (int $includes.getEnr.numEnrs) }} $ENR{{ add1 $i }}{{- end }}
{{- end }}
{{- if ($command.full).waku }}
{{- if ($command.full).waku }}
{{- $command.full.waku | indent 1 }}
{{- else }}
{{- else }}
{{- if $command.sleep }}
sleep 10
{{- end }}
{{- if $command.nice }}
{{ printf "nice -n %d \\" (int $command.nice) }}
{{- end }}
/usr/bin/wakunode \
{{- $preset := $command.type | default "basic" -}}
{{- include "command.genArgs" ( dict