From f20f85f4d7c5515ca7e9cd7ed0287e96c1403d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gross?= Date: Wed, 23 Aug 2023 05:49:11 -0400 Subject: [PATCH] DOC: Explanation of be_name and be_id fetches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- doc/configuration.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 73204b084..31ff1b985 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 | +---+------+------------------------------------------------------+---------+