]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy: implement named default-server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 9 Jul 2026 08:41:59 +0000 (10:41 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 3 Aug 2026 14:52:09 +0000 (16:52 +0200)
commit507f790af73903cd1f5f448bc78fb60038bc7cb3
tree3793f7b4eb18c6274824da2c1171e89c0b00f1d7
parent1183ca1114716111683a108e3da31a87c8bf2fa5
MEDIUM: proxy: implement named default-server

Implement the support for named default-server. In a single backend, it
is now possible to define different default-server instances identified
by a name. Along to them, it's still possible to use the anonymous
default-server.

To define a named default-server, a new "name" argument can be used just
after the "default-server" token. It is positional to ensure extra
server settings are always set after it. This is necessary to continue
to allow to define a default-server on multiple lines, concatenating the
settings with the previous line.

Named default-server are stored in a new dedicated compact tree
<defsrv_by_name> in proxy struct.

Name must not conflict with server instances already defined in the same
backend. This is necessary for the future implementation of name
addressing on both servers and default-servers without having to specify
the lookup list.
doc/configuration.txt
include/haproxy/proxy-t.h
src/cfgparse.c
src/proxy.c
src/server.c