Jerome Magnin
824186bb08
MEDIUM: stream: support use-server rules with dynamic names
...
With server-template was introduced the possibility to scale the
number of servers in a backend without needing a configuration change
and associated reload. On the other hand it became impractical to
write use-server rules for these servers as they would only accept
existing server labels as argument. This patch allows the use of
log-format notation to describe targets of a use-server rules, such
as in the example below:
listen test
bind *:1234
use-server %[hdr(srv)] if { hdr(srv) -m found }
use-server s1 if { path / }
server s1 127.0.0.1:18080
server s2 127.0.0.1:18081
If a use-server rule is applied because it was conditionned by an
ACL returning true, but the target of the use-server rule cannot be
resolved, no other use-server rule is evaluated and we fall back to
load balancing.
This feature was requested on the ML, and bumped with issue #563 .
2020-03-29 09:55:10 +02:00
..
2020-03-08 10:09:02 +01:00
2020-02-14 19:02:06 +01:00
2020-01-20 15:18:45 +01:00
2019-08-09 11:26:10 +02:00
2019-10-11 16:05:57 +02:00
2020-02-28 16:41:29 +01:00
2019-09-08 12:20:13 +02:00
2020-03-20 14:35:07 +01:00
2019-01-14 19:32:15 +01:00
2020-03-10 17:44:40 +01:00
2020-03-06 15:36:04 +01:00
2019-08-22 20:21:00 +02:00
2020-02-25 11:28:58 +01:00
2020-03-29 09:55:10 +02:00
2020-03-29 09:55:10 +02:00
2020-01-07 10:51:15 +01:00
2020-03-08 17:56:47 +01:00
2020-02-25 08:16:33 +01:00
2020-03-03 18:19:04 +01:00
2019-05-20 21:14:14 +02:00
2020-03-19 22:07:33 +01:00
2019-07-19 09:24:12 +02:00
2020-03-18 13:07:19 +01:00
2019-06-11 09:54:12 +02:00
2020-03-26 12:43:36 +01:00
2020-03-10 07:08:10 +01:00
2020-02-25 07:41:47 +01:00
2020-02-25 07:41:47 +01:00
2020-02-25 07:41:47 +01:00
2020-02-25 07:41:47 +01:00
2020-03-05 19:52:07 +01:00
2020-02-25 08:16:33 +01:00
2020-03-20 11:03:38 +01:00
2020-03-06 14:12:59 +01:00
2020-03-06 15:36:04 +01:00
2020-03-16 17:35:30 +01:00
2020-03-08 10:09:02 +01:00
2017-10-31 18:01:18 +01:00
2020-03-14 11:04:49 +01:00
2019-12-11 16:46:16 +01:00
2020-02-21 16:32:57 +01:00
2020-02-26 13:56:24 +01:00
2020-03-23 09:33:32 +01:00
2020-01-16 08:23:42 +01:00
2019-10-17 07:15:17 +02:00
2020-02-25 10:24:51 +01:00
2020-03-11 19:20:01 +01:00
2020-03-05 19:52:07 +01:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2018-11-26 19:50:32 +01:00
2020-03-06 15:36:04 +01:00
2020-03-14 11:04:49 +01:00
2019-10-31 08:47:31 +01:00
2020-03-05 20:21:58 +01:00
2020-03-05 19:52:07 +01:00
2020-02-06 14:55:34 +01:00
2020-03-05 19:52:07 +01:00
2020-03-06 14:12:59 +01:00
2019-08-01 11:35:29 +02:00
2019-07-05 14:26:15 +02:00
2019-09-06 17:13:44 +02:00
2019-05-27 10:29:59 +02:00
2019-03-11 17:02:38 +01:00
2020-03-29 05:47:29 +02:00
2020-03-13 17:26:43 +01:00
2019-08-09 11:26:10 +02:00
2020-03-18 15:55:35 +01:00
2020-03-22 23:25:51 +01:00
2020-03-25 17:06:16 +01:00
2020-03-22 23:25:51 +01:00
2020-03-17 13:38:18 +01:00
2019-07-15 16:43:16 +02:00
2019-12-11 14:26:53 +01:00
2020-02-14 04:23:08 +01:00
2020-03-18 05:17:28 +01:00
2019-07-19 09:24:12 +02:00
2020-03-16 11:32:47 +01:00
2020-01-30 09:15:37 +01:00
2020-03-04 19:29:12 +01:00
2020-03-06 15:36:04 +01:00
2019-12-10 19:09:15 +01:00
2020-03-04 19:29:12 +01:00
2019-07-24 16:45:02 +02:00
2020-03-12 15:39:37 +01:00
2020-02-14 19:02:06 +01:00
2020-03-10 07:23:41 +01:00
2019-05-07 06:58:15 +02:00
2019-11-15 15:48:12 +01:00
2020-03-08 18:04:16 +01:00
2020-03-19 22:07:33 +01:00
2020-03-19 22:07:33 +01:00
2019-04-01 07:44:56 +02:00
2020-02-21 13:45:58 +01:00
2020-03-18 13:10:05 +01:00
2019-11-15 15:48:12 +01:00
2020-03-26 12:53:53 +01:00
2020-03-12 00:34:22 +01:00
2020-02-25 08:16:33 +01:00
2020-02-25 09:41:22 +01:00
2020-03-13 17:26:43 +01:00
2020-03-29 09:55:10 +02:00
2020-03-17 18:52:33 +01:00
2020-02-14 19:02:06 +01:00
2020-02-25 07:41:47 +01:00
2019-11-25 19:47:22 +01:00
2019-10-10 11:30:07 +02:00
2020-02-25 08:16:33 +01:00
2019-10-16 09:56:57 +02:00
2020-03-18 13:07:19 +01:00
2019-10-15 10:47:31 +02:00
2020-03-05 07:46:33 +01:00
2019-04-01 07:44:56 +02:00