Why a port check missed a broken UNIX socket restart, and a SIGTERM probe that catches it
A team's deploy runbook verified services by checking that the port accepted connections, which stopped working once some services moved to UNIX sockets. During rolling restarts, two processes could bind the same socket path, with only one receiving traffic until the busy one was retired and the path ended up owned by the wrong process. The author now runs a small probe that starts the service, sends SIGTERM to the parent, and reports the exit code, teardown time, and whether the socket path was left behind. Comparing teardown time against the rollout's grace period reveals whether shutdown hooks complete or get cut off. The runbook now requires running the probe and recording its output in each deploy ticket, which takes under a minute per service.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in