Netbox Restarts in Nomad #1186
Replies: 3 comments
-
I've actually found that this also happens in a completely separate environment, being run with
|
Beta Was this translation helpful? Give feedback.
-
The behavior that I'm seeing seems to be normal (I see it in every deployment) so I've decreased my task resources to something reasonable and then increased the service check timeout from 3s to 10s and that seems to have taken care of the issue. There's still a delay when the process restarts but it's not bad enough to cause the service to fail the check. If I continue to have problems working with netbox I'll increase this timeout up to 30s before trying something else. |
Beta Was this translation helpful? Give feedback.
-
This is intended and caused by nginx unit. See: https://unit.nginx.org/configuration/#application-processes https://unit.nginx.org/configuration/#request-limits I recommend setting max and spare processes to the same number and optionally setting a request limit to avoid any potential memory leaks. Having the processes exit makes the first request very slow if it has to spawn a new one, so I always disable the behavior. |
Beta Was this translation helpful? Give feedback.
-
Current Behavior
In nomad, using the docker driver, the "netbox" application exits (0) and is started again, constantly. I think the process is being killed due to resource (over) utilization but I can't seem to give it enough resources to keep it from restarting. The task or allocation associated with the netbox application isn't being killed or HUP'd by nomad, the process within the allocation/container is exiting and starting again.
The result is a momentary pause when working with netbox or worse, a 3 second http 503 from the reverse proxy, if it happens to coincide with a healthcheck.
The
netbox-worker
andnetbox-housekeeping
containers from the docker-compose haven't been implemented in my jobspec yet so this might be part of the problem.Expected Behavior
The process starts once and doesn't exit.
Docker Compose Version
NA
Docker Version
The git Revision
NA
The git Status
Startup Command
nomad job run
NetBox Logs
Content of docker-compose.override.yml
Beta Was this translation helpful? Give feedback.
All reactions