m-lab / ndt-server

docker native ndt5 and ndt7 server with prometheus integration
https://www.measurementlab.net/
Apache License 2.0
101 stars 40 forks source link

Graceful restart of NDT server #8

Open stephen-soltesz opened 6 years ago

stephen-soltesz commented 6 years ago

The NDT server should support graceful restart. That is -- stop accepting new tests and allow all current tests to finish before restarting.

nkinkade commented 6 years ago

If it stops accepting new tests, then wouldn't that mean that it could be up to 30s before it reloads itself... meaning that clients will be rejected for up to that amount of time? That is a long time, but shorter than the interval in which mlab-ns could notice and stop sending clients there. Is is possible to simply let existing/running tests finish, and immediately reload the server?