mirror of
https://github.com/vacp2p/10ksim.git
synced 2026-01-09 22:27:57 -05:00
Fix formatting for _metrics.tpl and add nice -n <int> option in _waku_container_command.tpl.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user