Christopher Faulet
52ec6f14c4
BUG/MEDIUM: resolvers: Properly stop server resolutions on soft-stop
...
When HAproxy is stopping, the DNS resolutions must be stopped, except those
triggered from a "do-resolve" action. To do so, the resolutions themselves
cannot be destroyed, the current design is too complex. However, it is
possible to mute the resolvers tasks. The same is already performed with the
health-checks. On soft-stop, the tasks are still running periodically but
nothing if performed.
For the resolvers, when the process is stopping, before running a
resolution, we check all the requesters attached to this resolution. If t
least a request is a stream or if there is a requester attached to a running
proxy, a new resolution is triggered. Otherwise, we ignored the
resolution. It will be evaluated again on the next wakeup. This way,
"do-resolv" action are still working during soft-stop but other resoluation
are stopped.
Of course, it may be see as a feature and not a bug because it was never
performed. But it is in fact not expected at all to still performing
resolutions when HAProxy is stopping. In addution, a proxy option will be
added to change this behavior.
This patch partially fixes the issue #1874 . It could be backported to 2.7
and maybe to 2.6. But no further.
2023-03-14 15:23:55 +01:00
..
2022-11-14 11:14:02 +01:00
2022-04-25 15:28:21 +02:00
2023-02-08 11:06:55 +01:00
2023-02-27 17:45:45 +01:00
2022-11-22 16:27:52 +01:00
2022-11-24 15:24:02 +01:00
2023-02-22 15:59:16 +01:00
2023-02-22 15:59:16 +01:00
2022-04-19 08:23:30 +02:00
2022-06-23 11:49:09 +02:00
2023-02-21 11:44:55 +01:00
2023-02-21 11:44:55 +01:00
2023-01-27 15:18:59 +01:00
2023-02-03 11:56:46 +01:00
2023-03-02 15:37:23 +01:00
2023-02-03 18:00:20 +01:00
2022-04-26 10:59:48 +02:00
2023-02-28 10:28:47 +01:00
2023-01-09 18:41:08 +01:00
2022-12-07 17:04:08 +01:00
2022-08-17 10:45:22 +02:00
2023-03-08 16:07:32 +01:00
2023-02-08 11:10:33 +01:00
2022-04-25 19:42:43 +02:00
2023-01-25 15:30:49 +01:00
2022-07-15 19:43:10 +02:00
2023-03-09 14:01:58 +01:00
2023-03-08 08:57:13 +01:00
2022-10-30 17:17:56 +01:00
2022-09-21 09:06:28 +02:00
2022-09-21 09:06:28 +02:00
2022-09-21 09:06:28 +02:00
2022-09-09 11:15:22 +02:00
2022-07-15 20:16:30 +02:00
2022-12-06 10:22:07 +01:00
2022-10-12 21:49:30 +02:00
2023-01-27 15:18:59 +01:00
2022-12-09 12:23:14 +01:00
2023-03-09 14:01:48 +01:00
2023-02-22 14:52:15 +01:00
2023-02-13 09:43:38 +01:00
2022-11-14 11:14:02 +01:00
2023-02-22 15:59:16 +01:00
2022-12-14 10:44:17 +01:00
2022-05-27 19:33:35 +02:00
2023-02-27 17:45:45 +01:00
2023-02-14 08:48:54 +01:00
2022-12-14 11:34:18 +01:00
2022-05-30 09:59:26 +02:00
2023-03-08 14:32:30 +01:00
2023-03-09 14:28:44 +01:00
2022-11-14 11:14:02 +01:00
2022-10-12 14:19:05 +02:00
2023-02-22 15:59:16 +01:00
2023-02-14 08:48:54 +01:00
2023-01-26 11:36:39 +01:00
2022-04-12 08:30:08 +02:00
2023-02-17 16:25:00 +01:00
2023-01-06 16:42:24 +01:00
2023-03-01 17:35:16 +01:00
2023-02-22 14:52:15 +01:00
2022-04-08 10:12:59 +02:00
2023-03-03 18:22:59 +01:00
2023-03-01 14:09:46 +01:00
2023-01-27 15:18:59 +01:00
2022-04-25 19:26:26 +02:00
2022-12-14 11:34:18 +01:00
2023-02-03 13:39:18 +01:00
2022-04-22 15:45:47 +02:00
2023-03-08 10:43:04 +01:00
2023-02-28 10:28:47 +01:00
2023-02-22 15:59:16 +01:00
2022-04-12 08:19:33 +02:00
2022-06-08 15:28:38 +02:00
2023-01-09 18:41:08 +01:00
2022-03-22 09:25:52 +01:00
2023-02-28 18:36:29 +01:00
2023-03-01 17:35:16 +01:00
2023-02-28 18:36:29 +01:00
2023-03-13 11:22:13 +01:00
2023-03-07 18:39:49 +01:00
2023-02-21 13:53:35 +01:00
2022-11-29 15:15:27 +01:00
2022-08-01 11:59:46 +02:00
2022-05-27 19:33:35 +02:00
2023-02-22 15:59:16 +01:00
2022-12-22 13:46:21 +01:00
2023-02-03 18:00:20 +01:00
2022-07-25 16:11:11 +02:00
2023-02-03 18:00:20 +01:00
2023-01-16 14:00:50 +01:00
2023-02-23 15:05:05 +01:00
2023-02-23 15:05:05 +01:00
2023-02-23 15:05:05 +01:00
2023-03-14 15:23:55 +01:00
2023-02-17 16:25:00 +01:00
2022-10-18 12:04:10 +02:00
2023-02-14 08:48:54 +01:00
2022-05-30 14:30:05 +02:00
2022-11-24 15:38:26 +01:00
2022-07-30 10:00:59 +02:00
2022-08-03 14:27:20 +02:00
2022-10-03 16:25:17 +02:00
2022-10-03 16:25:17 +02:00
2023-03-08 18:50:45 +01:00
2023-03-08 08:50:54 +01:00
2023-02-03 17:55:55 +01:00
2023-03-10 14:30:01 +01:00
2022-12-02 14:45:43 +01:00
2022-10-13 10:12:03 +02:00
2023-03-03 19:12:26 +01:00
2023-03-08 08:50:54 +01:00
2023-01-12 16:37:45 +01:00
2022-09-01 19:34:46 +02:00
2023-03-14 15:23:55 +01:00
2023-02-24 09:26:30 +01:00
2023-03-08 10:43:04 +01:00
2023-02-28 18:36:29 +01:00
2023-02-09 18:04:10 +01:00
2022-09-09 11:15:22 +02:00
2023-03-08 08:54:43 +01:00
2022-11-14 11:14:02 +01:00
2023-01-11 11:27:20 +01:00
2023-02-23 15:05:05 +01:00
2023-03-08 16:07:32 +01:00
2023-02-13 09:43:38 +01:00
2023-03-02 15:57:56 +01:00
2023-03-14 11:07:32 +01:00
2022-11-18 15:24:23 +01:00
2023-03-14 11:07:32 +01:00
2022-12-21 11:21:07 +01:00
2023-02-22 15:59:16 +01:00
2023-02-27 17:45:45 +01:00
2023-02-08 08:55:02 +01:00
2023-02-27 17:45:45 +01:00
2023-02-17 16:01:34 +01:00
2022-11-19 04:53:47 +01:00
2023-02-22 14:52:15 +01:00
2022-09-03 06:11:08 +02:00
2023-02-28 18:51:27 +01:00
2023-03-09 11:40:56 +01:00
2023-03-10 14:30:01 +01:00
2023-01-26 15:49:43 +01:00
2022-11-14 11:14:02 +01:00
2023-02-17 16:01:34 +01:00
2022-06-23 11:49:09 +02:00
2023-02-20 11:20:18 +01:00