Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nomad is re-computing templates every 5s following a variable change #24638

Closed
valeriansaliou opened this issue Dec 9, 2024 · 3 comments
Closed

Comments

@valeriansaliou
Copy link

valeriansaliou commented Dec 9, 2024

Nomad version

Nomad v1.9.3
BuildDate 2024-11-11T16:35:41Z
Revision d92bf1014886c0ff9f882f4a2691d5ae8ad8131c

Operating system and Environment details

  • Debian 12
  • Running in a single-node Nomad setup, no Consul, no Vault. Simple 1 server + 1 client setup on same server.

Issue

I'm running a job with NGINX (called edge). Multiple templates are rendered in this NGINX job, one of them contains NGINX upstreams pointing to other Nomad jobs (eg. a job called web), excerpt:

template {
  data = <<EOH
upstream web {
least_conn;
keepalive 2;

{{ range nomadService "web" }}
  server {{ .Address }}:{{ .Port }} max_fails=3 fail_timeout=1s;
{{ end}}
}
  EOH

  destination = "local/nginx/upstreams.conf"

  change_mode   = "signal"
  change_signal = "SIGHUP"
}

Whenever I trigger a new allocation of the task web which is depended upon NGINX, the service port will change, triggering a template re-render on the NGINX task. NGINX traffic is effectively steered to the new web allocation. So far so good.

However, Nomad will immediately start checking for template diff every 5s on all template blocks of my edge job, inducing elevated CPU load on the Nomad client, with the CPU bursting every 5s. Nomad logs indicate that the templates are being checked for diff.

To fix this infinite template diff occurring, I can either do:

  • Either stop & delete the edge job (that contains the diffed templates), and re-submit it to Nomad from my Nomad CLI;
  • Or SSH to my server and stop the running Nomad agent, and start it again;

Reproduction steps

Expected Result

The template will be re-rendered only once, or at least it'll converge to a state where no re-rendering will occur after a few seconds.

Actual Result

  1. The NGINX edge job shows "Template re-rendered" once in the running allocation. It will only get reloaded once. This is all right & expected.
  2. In the meantime, the Nomad client Monitoring section will start showing a flood of template re-rendering related logs every 5s, inducing high CPU load on the Nomad client machine, every 5s. The log shows all template files that NGINX's edge job generate, and it seems to re-schedule a template diff check task 5s later, again and again. The diff seems to yield to difference, which is proven by what's described in 1.

Nomad Client logs

Every 5s, I am getting those logs on the Nomad client:

2024-12-10T00:06:05.393+0100 [DEBUG] agent: (runner) received template "68a8b946415a402fb2ac650d76e87fb5" from quiescence
2024-12-10T00:06:05.393+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.393+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.394+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/certs/vs.tld.key"
2024-12-10T00:06:05.510+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.510+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.511+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.513+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.514+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.514+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.515+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.515+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.516+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.516+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.517+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.517+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.517+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) enabling global quiescence for "68a8b946415a402fb2ac650d76e87fb5"
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) received template "4eee92345e3cea182d7bd808328f0e41" from quiescence
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.518+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.519+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.519+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.519+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.520+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.520+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.521+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.521+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.521+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.522+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.522+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.523+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.523+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.524+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/enforce_corp.conf"
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) enabling global quiescence for "4eee92345e3cea182d7bd808328f0e41"
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) received template "e937ea897fbed0e5168299dac66d20ef" from quiescence
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.551+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.552+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/nginx.conf"
2024-12-10T00:06:05.573+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.574+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.574+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.574+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.575+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.575+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.576+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.576+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.576+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.577+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.577+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) enabling global quiescence for "e937ea897fbed0e5168299dac66d20ef"
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) received template "5791344c57cdcdf4d98201957d410d83" from quiescence
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.578+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.579+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.579+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.579+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/enforce_security.conf"
2024-12-10T00:06:05.597+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.597+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.598+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.598+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.599+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.599+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.600+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.600+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.601+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.601+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.601+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) enabling global quiescence for "5791344c57cdcdf4d98201957d410d83"
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) received template "ea40021f9f19dd42e562692175d1c049" from quiescence
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.602+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.603+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.603+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.604+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/acme_challenge.conf"
2024-12-10T00:06:05.624+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.624+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.625+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.625+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.625+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.626+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.626+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.626+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.627+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.627+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.627+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.627+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) enabling global quiescence for "ea40021f9f19dd42e562692175d1c049"
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) received template "3f320eb6ab00ac4dd9d9257c28a9e56e" from quiescence
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.628+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.629+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.629+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.629+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/certs/vs.tld.crt"
2024-12-10T00:06:05.647+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.648+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.648+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.649+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.649+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.649+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.650+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.651+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.653+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) enabling global quiescence for "3f320eb6ab00ac4dd9d9257c28a9e56e"
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) received template "1d8048bd9baffb5e553445a2561e677d" from quiescence
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.654+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.655+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.657+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.665+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.666+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.667+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.667+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/upstreams.conf"
2024-12-10T00:06:05.718+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.718+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.719+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.719+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.719+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.720+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.720+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.720+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) enabling global quiescence for "1d8048bd9baffb5e553445a2561e677d"
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) received template "1b79d8290304318983122a9cca74087c" from quiescence
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.721+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.722+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.722+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.722+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.723+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.723+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/proxy_timeouts.conf"
2024-12-10T00:06:05.747+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.747+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.747+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.748+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.748+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.748+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) enabling global quiescence for "1b79d8290304318983122a9cca74087c"
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) received template "2bbdc6981b6cad823959b8ec5dc0bfe0" from quiescence
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.749+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.750+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.750+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.750+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.751+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.751+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.752+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.752+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/proxy_cache.conf"
2024-12-10T00:06:05.780+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.780+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.780+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.781+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.781+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.781+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) enabling global quiescence for "2bbdc6981b6cad823959b8ec5dc0bfe0"
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) received template "f6dfa3ae2066396ba7aa4d826c8b42be" from quiescence
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.782+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.783+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.783+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.783+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.784+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.784+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.785+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.785+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.785+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/corp_site.conf"
2024-12-10T00:06:05.803+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.803+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.803+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) enabling global quiescence for "f6dfa3ae2066396ba7aa4d826c8b42be"
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) received template "e360286d5ab8997109b44d399b4228a7" from quiescence
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.804+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.805+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.805+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.805+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.805+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.806+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.806+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.807+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.807+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.807+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.808+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/htpasswd/admin"
2024-12-10T00:06:05.825+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.826+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) enabling global quiescence for "e360286d5ab8997109b44d399b4228a7"
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) received template "7c6b96027445ae3fbcc52beceb237f88" from quiescence
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.827+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.828+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.828+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.828+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.829+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.829+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.829+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.830+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.830+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/sites.conf"
2024-12-10T00:06:05.850+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.850+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) enabling global quiescence for "7c6b96027445ae3fbcc52beceb237f88"
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) received template "7a914b9d852d0d6490bbe4682d4d62cc" from quiescence
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.851+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.852+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.852+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.852+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.853+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.853+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.853+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.854+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.854+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.854+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.855+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.855+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/proxy_ignores.conf"
2024-12-10T00:06:05.878+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) enabling global quiescence for "7a914b9d852d0d6490bbe4682d4d62cc"
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) received template "5cc2ce7be6ce65dc422eaa0a56d05fb0" from quiescence
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) initiating run
2024-12-10T00:06:05.879+0100 [DEBUG] agent: (runner) checking template 68a8b946415a402fb2ac650d76e87fb5
2024-12-10T00:06:05.880+0100 [DEBUG] agent: (runner) checking template e937ea897fbed0e5168299dac66d20ef
2024-12-10T00:06:05.880+0100 [DEBUG] agent: (runner) checking template 5791344c57cdcdf4d98201957d410d83
2024-12-10T00:06:05.880+0100 [DEBUG] agent: (runner) checking template ea40021f9f19dd42e562692175d1c049
2024-12-10T00:06:05.881+0100 [DEBUG] agent: (runner) checking template 3f320eb6ab00ac4dd9d9257c28a9e56e
2024-12-10T00:06:05.881+0100 [DEBUG] agent: (runner) checking template 1d8048bd9baffb5e553445a2561e677d
2024-12-10T00:06:05.881+0100 [DEBUG] agent: (runner) checking template 1b79d8290304318983122a9cca74087c
2024-12-10T00:06:05.882+0100 [DEBUG] agent: (runner) checking template 2bbdc6981b6cad823959b8ec5dc0bfe0
2024-12-10T00:06:05.882+0100 [DEBUG] agent: (runner) checking template f6dfa3ae2066396ba7aa4d826c8b42be
2024-12-10T00:06:05.883+0100 [DEBUG] agent: (runner) checking template e360286d5ab8997109b44d399b4228a7
2024-12-10T00:06:05.883+0100 [DEBUG] agent: (runner) checking template 7c6b96027445ae3fbcc52beceb237f88
2024-12-10T00:06:05.883+0100 [DEBUG] agent: (runner) checking template 7a914b9d852d0d6490bbe4682d4d62cc
2024-12-10T00:06:05.884+0100 [DEBUG] agent: (runner) checking template 5cc2ce7be6ce65dc422eaa0a56d05fb0
2024-12-10T00:06:05.884+0100 [DEBUG] agent: (runner) rendering "(dynamic)" => "/opt/nomad/data/alloc/9246bd73-c655-a203-c3d8-add0de2c6fea/vs-edge/local/nginx/proxy_headers.conf"
2024-12-10T00:06:05.902+0100 [DEBUG] agent: (runner) checking template 4eee92345e3cea182d7bd808328f0e41
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) diffing and updating dependencies
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) nomad.service(vs-journal) is still needed
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) nomad.service(vs-sentinel) is still needed
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) nomad.var.block(nomad/jobs/[email protected]) is still needed
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) nomad.var.block(certs/[email protected]) is still needed
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) nomad.service(vs-web) is still needed
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) watching 5 dependencies
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) all templates rendered
2024-12-10T00:06:05.903+0100 [DEBUG] agent: (runner) enabling global quiescence for "5cc2ce7be6ce65dc422eaa0a56d05fb0"

Job file

I made my job file for edge shorter than it is, by trimming some template contents:

job "vs-edge" {
  type = "service"

  group "vs-edge" {
    count = 1

    network {
      port "vs-edge-http-ipv4" {
        host_network = "public-v4"

        static = 80
      }

      port "vs-edge-http-ipv6" {
        host_network = "public-v6"

        static = 80
      }

      port "vs-edge-https-ipv4" {
        host_network = "public-v4"

        static = 443
      }

      port "vs-edge-https-ipv6" {
        host_network = "public-v6"

        static = 443
      }
    }

    volume "vs-edge-data" {
      type   = "host"
      source = "data-web"

      read_only = true
    }

    volume "vs-edge-cache" {
      type   = "host"
      source = "data-cache-edge"
    }

    volume "vs-journal-data" {
      type   = "host"
      source = "data-service-journal"

      read_only = true
    }

    task "vs-edge" {
      driver = "docker"

      config {
        image = "nginx:1.27-bookworm"

        ports = [
          "vs-edge-http-ipv4",
          "vs-edge-http-ipv6",
          "vs-edge-https-ipv4",
          "vs-edge-https-ipv6"
        ]

        entrypoint = ["nginx"]

        args = [
          "-c",
          "/etc/nginx/nginx.conf"
        ]

        # Required to be able to see real servers/clients IPs
        network_mode = "host"

        mount {
          type     = "bind"
          readonly = true

          source = "local/nginx/"
          target = "/etc/nginx/"
        }
      }

      template {
        data = <<EOH
# (Content hidden for brievety)
        EOH

        destination = "local/nginx/sites.conf"

        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

      template {
        data = <<EOH
upstream vs-web {
    least_conn;
    keepalive 2;

    {{ range nomadService "vs-web" }}
        server {{ .Address }}:{{ .Port }} max_fails=3 fail_timeout=1s;
    {{ end}}
}

upstream vs-journal {
    least_conn;
    keepalive 4;

    {{ range nomadService "vs-journal" }}
        server {{ .Address }}:{{ .Port }} max_fails=10 fail_timeout=1s;
    {{ end}}
}

upstream vs-sentinel {
    least_conn;
    keepalive 2;

    {{ range nomadService "vs-sentinel" }}
        server {{ .Address }}:{{ .Port }} max_fails=5 fail_timeout=1s;
    {{ end}}
}
        EOH

        destination = "local/nginx/upstreams.conf"

        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

      template {
        data = <<EOH
proxy_connect_timeout 5s;
proxy_read_timeout    10s;
proxy_send_timeout    10s;
        EOH

        destination = "local/nginx/proxy_timeouts.conf"
      }

      template {
        data = <<EOH
proxy_hide_header X-Powered-By;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
        EOH

        destination = "local/nginx/proxy_ignores.conf"
      }

      template {
        data = <<EOH
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Early-Data $ssl_early_data;
        EOH

        destination = "local/nginx/proxy_headers.conf"
      }

      template {
        data = <<EOH
proxy_cache cache_static;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
        EOH

        destination = "local/nginx/proxy_cache.conf"
      }

      template {
        data = <<EOH
add_header  Strict-Transport-Security  "max-age=31536000; includeSubDomains; preload"  always;
        EOH

        destination = "local/nginx/enforce_security.conf"
      }

      template {
        data = <<EOH
add_header  Cross-Origin-Embedder-Policy  "require-corp"  always;
        EOH

        destination = "local/nginx/enforce_corp.conf"
      }

      template {
        data = <<EOH
add_header  Cross-Origin-Resource-Policy  "same-site"  always;
        EOH

        destination = "local/nginx/corp_site.conf"
      }

      template {
        data = <<EOH
location = /.well-known/acme-challenge/ {
    return 404;
}

location ^~ /.well-known/acme-challenge/ {
    default_type "text/plain";

    root /var/www/default;

    break;
}
        EOH

        destination = "local/nginx/acme_challenge.conf"
      }

      template {
        data = <<EOH
admin:{{ with nomadVar "nomad/jobs/vs-edge" }}{{ .HTPASSWD_ADMIN }}{{ end }}
        EOH

        destination = "local/nginx/htpasswd/admin"
      }

      template {
        data = <<EOH
{{ with nomadVar "certs/vs-tld" }}{{ .CERT_KEY }}{{ end }}
        EOH

        destination = "local/nginx/certs/vs.tld.key"

        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

      template {
        data = <<EOH
{{ with nomadVar "certs/vs-tld" }}{{ .CERT_CERTIFICATE }}{{ end }}
        EOH

        destination = "local/nginx/certs/vs.tld.crt"

        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

      volume_mount {
        volume      = "vs-edge-data"
        destination = "/var/www/"

        read_only = true
      }

      volume_mount {
        volume      = "vs-edge-cache"
        destination = "/var/cache/persist/"
      }

      volume_mount {
        volume      = "vs-journal-data"
        destination = "/mnt/journal/"

        read_only = true
      }

      resources {
        cpu    = 200
        memory = 64
      }

      service {
        provider = "nomad"

        name = "vs-edge"
        port = "vs-edge-http-ipv6"

        check {
          type     = "http"
          path     = "/health/"
          interval = "60s"
          timeout  = "20s"
        }
      }
    }
  }
}
@valeriansaliou
Copy link
Author

valeriansaliou commented Dec 9, 2024

I've searched for other similar issues and found this one: #20618 — unsure if it's caused by the same root issue or if it's slightly different for similar symptoms.

@valeriansaliou
Copy link
Author

valeriansaliou commented Dec 10, 2024

I've managed to reproduce the issue on my local system, using Nomad's dev agent installed through Homebrew at version 1.9.3.

Here are the reproduction steps (reproducing it takes 1 minute).


  1. Create the job and variables files:
nano edge.hcl
job "edge" {
  group "edge" {
    count = 1

    task "edge" {
      driver = "docker"

      config {
        image = "nginx:1.27-alpine"
      }

      template {
        data = <<EOF
var={{ with nomadVar "nomad/jobs/edge" }}{{ .TEST }}{{ end }}
        EOF
        destination = "/local/first.txt"
        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

      template {
        data = <<EOF
Static template
        EOF
        destination = "/local/second.txt"
        change_mode   = "signal"
        change_signal = "SIGHUP"
      }
    }
  }
}
nano edge.nv.hcl
path = "nomad/jobs/edge"

items {
  TEST = "plop"
}

  1. Start a local Nomad agent (make sure Docker is already running):
nomad agent -dev

  1. Import the variables and run the job:
nomad var put -in hcl @edge.nv.hcl
nomad job run edge.hcl

  1. In Nomad's Web UI: http://127.0.0.1:4646/ui/clients click on the client and go to the Monitor tab, switch logs to TRACE. Observe that logs are stable w/ not much happening.

  1. Now, go to the variables we imported in the Web UI: http://127.0.0.1:4646/ui/variables/var/nomad/jobs/edge@default and modify the value from eg. plop to plop2

  1. Give a bit of time for the job templates to re-render, and confirm the job is now running fine. Go back to the Monitor tab, and you'll now be able to observe the infinite quiescence logs every 5s:
Screenshot 2024-12-10 at 8 36 03 AM

To be noted that if I remove the second template named /local/second.txt from the job file, and start again Nomad from scratch and import that job file, then modify the variable, the issue does not occur. The issue only occurs when a re-rendering is triggered in any template for a job, due to a eg. a variable change AND that job has more than 1 template, not necessarily all dynamic (my second template is fully static here).

@tgross
Copy link
Member

tgross commented Dec 10, 2024

Hi @valeriansaliou! This does indeed look like the same set of symtoms as #20618. I'm going to close this as a duplicate (just because it makes tracking easier) but cross-link this issue over there for @mismithhisler, who's actively working on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants