You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nix/workbench/backend/nomad.sh
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2323,12 +2323,23 @@ backend_nomad() {
2323
2323
# If the node in "${generator_task}" quits generators fails with:
2324
2324
# tx-generator: MuxError MuxBearerClosed "<socket: 12> closed when reading data, waiting on next header True"
2325
2325
# Service binary 'tx-generator' returned status: 1
2326
+
msg "$(yellow "WARNING: supervisord program \"generator\" (inside Nomad Task \"${generator_task}\") quit with an error exit code!")"
2327
+
# Give the node where tx-generator runs some time to quit.
2328
+
msg "$(yellow " Waiting 60s to check the status of supervisord program \"${generator_task}\" (inside Nomad Task \"${generator_task}\")")"
2329
+
sleep 30
2326
2330
if backend_nomad is-task-program-running "${dir}""${generator_task}""${generator_task}" 5
2327
2331
then
2328
2332
# This was not expected!
2329
2333
# But check it wasn't a race condition of a stopping cluster!
2330
2334
if!test -f "${dir}"/flag/cluster-stopping
2331
2335
then
2336
+
msg "$(red "ERROR: supervisord program \"generator\" (inside Nomad Task \"${generator_task}\") quit with an error exit code while supervisord program \"${generator_task}\" (inside Nomad Task \"${generator_task}\") is still running!")"
2337
+
# The tx-generator can fail because something happened with
2338
+
# the nodes (out of memory?), this gives the nodes more time
2339
+
# to shutdown properly and/or show any possible cause of
2340
+
# trouble before being killed.
2341
+
msg "$(yellow "WARNING: Waiting one minute so nodes are not killed immediately")"
2342
+
sleep 60
2332
2343
touch "${dir}"/flag/cluster-stopping
2333
2344
fatal "Generator quit unexpectedly!!!"
2334
2345
fi
@@ -2337,14 +2348,14 @@ backend_nomad() {
2337
2348
touch "${dir}"/generator/quit
2338
2349
# Show the warning and continue with the counter
2339
2350
echo -ne "\n"
2340
-
msg "$(yellow "WARNING: supervisord program \"generator\" (inside Nomad Task \"${generator_task}\" quit with an error exit code")"
2351
+
msg "$(yellow "WARNING: supervisord program \"generator\" (inside Nomad Task \"${generator_task}\") quit with an error exit code but expected when supervisord program \"${generator_task}\" (inside Nomad Task \"${generator_task}\") is not running")"
2341
2352
msg_ne "nomad: $(blue Waiting) until all pool nodes are stopped: 000000"
2342
2353
fi
2343
2354
else
2344
2355
touch "${dir}"/generator/quit
2345
2356
# Show the warning and continue with the counter
2346
2357
echo -ne "\n"
2347
-
msg "$(yellow "WARNING: supervisord program \"generator\" (inside Nomad Task \"${generator_task}\" quit with a non-error exit code")"
2358
+
msg "$(yellow "WARNING: supervisord program \"generator\" (inside Nomad Task \"${generator_task}\") quit with a non-error exit code")"
2348
2359
msg_ne "nomad: $(blue Waiting) until all pool nodes are stopped: 000000"
2349
2360
fi
2350
2361
fi# Finish generator checks.
@@ -3855,7 +3866,7 @@ client {
3855
3866
3856
3867
# Specifies an arbitrary string used to logically group client nodes by
3857
3868
# user-defined class. This can be used during job placement as a filter.
3858
-
node_class = "perf" # Using the "world.dev.cardano.org" testing class for "perf".
3869
+
node_class = "" # Make sure we are not using namespaces locally.
0 commit comments