From: Sébastien Gross Date: Wed, 23 Aug 2023 09:49:11 +0000 (-0400) Subject: DOC: Explanation of be_name and be_id fetches X-Git-Tag: v2.9-dev4~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f20f85f4d7c5515ca7e9cd7ed0287e96c1403d96;p=thirdparty%2Fhaproxy.git DOC: Explanation of be_name and be_id fetches The be_name and be_id fetches contain data related to the current backend and can be used in frontend responses. Yet, in cases where no backend is used due to a local response or backend selection failure, these fetches retain details of the current frontend. This patch enhances the clarity of the values provided by these fetches. Signed-off-by: Sébastien Gross --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 73204b084c..31ff1b9850 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -19959,13 +19959,16 @@ bc_src_port : integer be_id : integer Returns an integer containing the current backend's id. It can be used in - frontends with responses to check which backend processed the request. It can - also be used in a tcp-check or an http-check ruleset. + frontends with responses to check which backend processed the request. If + used in a frontend and no backend was used, it returns the current + frontend's id. It can also be used in a tcp-check or an http-check ruleset. be_name : string Returns a string containing the current backend's name. It can be used in - frontends with responses to check which backend processed the request. It can - also be used in a tcp-check or an http-check ruleset. + frontends with responses to check which backend processed the request. If + used in a frontend and no backend was used, it returns the current + frontend's name. It can also be used in a tcp-check or an http-check + ruleset. bc_rtt() : integer Returns the Round Trip Time (RTT) measured by the kernel for the backend @@ -23663,7 +23666,8 @@ Please refer to the table below for currently defined variables : | | %ac | actconn | | | | | %[act_conn] | numeric | +---+------+------------------------------------------------------+---------+ - | | %b | backend_name | string | + | | %b | backend_name | | + | | | %[be_name] | string | +---+------+------------------------------------------------------+---------+ | | %bc | beconn (backend concurrent connections) | numeric | +---+------+------------------------------------------------------+---------+