From e9bbb589e52f78fa289f8b78f669f29ac2cd8edd Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 17 Sep 2018 12:14:52 -0400 Subject: [PATCH] Typos and typos --- content/post/patroni-and-haproxy-agent-checks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/post/patroni-and-haproxy-agent-checks.md b/content/post/patroni-and-haproxy-agent-checks.md index dd09959..9ba73dd 100644 --- a/content/post/patroni-and-haproxy-agent-checks.md +++ b/content/post/patroni-and-haproxy-agent-checks.md @@ -119,7 +119,7 @@ Restart=on-failure WantedBy=multi-user.target ``` -This is a really straightfoward unit with one deviation - `StartLimitInterval=15` is used to prevent the daemon from restarting immediately on failure. In my experience (probably a n00b error), Python doesn't properly clean up the socket immediately, leading to the daemon blowing through its ~5 restart attempts in under a second and failing every time. This interval gives some breathing room for the socket to free up. And luckily, HAProxy won't change the stage if the agent check becomes unreachable, so this should be safe. +This is a really straightfoward unit with one deviation - `StartLimitInterval=15` is used to prevent the daemon from restarting immediately on failure. In my experience (probably a n00b error), Python doesn't properly clean up the socket immediately, leading to the daemon blowing through its ~5 restart attempts in under a second and failing every time with an "Address already in use" error. This interval gives some breathing room for the socket to free up. And luckily, HAProxy won't change the state if the agent check becomes unreachable, so this should be safe. ### Conclusion