]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: management: add a paragraph about the limitations of the '@' prefix
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Apr 2025 09:36:59 +0000 (11:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Apr 2025 14:09:17 +0000 (16:09 +0200)
The '@' prefix permits to execute a single command at once in a worker.
It is very handy but comes with some limitations affecting rare commands,
which is better to be documented (one command per session, input closed)
since it can seldom have user-visible effects.

doc/management.txt

index 3430b5f05e33cfd33e35f556faa548a818f1545c..e026cb6c52012ac17d1ab7b4ece7d071032d5efb 100644 (file)
@@ -4354,6 +4354,14 @@ Example:
     $ echo '@1; show info; show stat; @2; show info; show stat' | socat /var/run/haproxy-master.sock -
     [...]
 
+  Note about limitations: a few rare commands alter a CLI session's state
+  (e.g. "set anon", "set timeout") and may not behave exactly similarly once
+  run from the master CLI due to commands being sent one at a time on their own
+  CLI session. Similarly, a few rare commands ("show events", "wait") actively
+  monitor the CLI for input or closure and are immediately interrupted when the
+  CLI is closed. These commands will not work as expected through the master
+  CLI because the command's input is closed after each command.
+
 expert-mode [on|off]
   This command activates the "expert-mode" for every worker accessed from the
   master CLI. Combined with "mcli-debug-mode" it also activates the command on