]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: fix doc/trace on lb algo for dynamic server creation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 29 Apr 2021 12:59:42 +0000 (14:59 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 29 Apr 2021 12:59:42 +0000 (14:59 +0200)
The text mentionned that only backends with consistent hash method were
supported for dynamic servers. In fact, it is only required that the lb
algorith is dynamic.

doc/management.txt
src/server.c

index 1e79eb788b239b3c2bf67fade37653b8d4a0e004..ce8f86c79f2d4e077ffa5bcc20a29bcb33b107a8 100644 (file)
@@ -1433,11 +1433,10 @@ add server <backend>/<server> [args]*
   This method is still in development and may change in the future.
 
   The <server> name must not be already used in the backend. A special
-  restriction is put on the backend which must used a compatible load-balancing
-  algorithm with consistent hashing method. A subset of keywords from the
-  server config file statement can be used to configure the server behavior.
-  Also note that no settings will be reused from an hypothetical
-  'defaut-server' statement in the same backend.
+  restriction is put on the backend which must used a dynamic load-balancing
+  algorithm. A subset of keywords from the server config file statement can be
+  used to configure the server behavior. Also note that no settings will be
+  reused from an hypothetical 'default-server' statement in the same backend.
 
   Here is the list of the currently supported keywords :
 
index 6728e111866fa04e5e4aaf8b078c3c3f77b929d6..60e76a6ba048731ce1492ebc9d05da50575ba528 100644 (file)
@@ -4352,7 +4352,7 @@ static int cli_parse_add_server(char **args, char *payload, struct appctx *appct
                return cli_err(appctx, "No such backend.");
 
        if (!(be->lbprm.algo & BE_LB_PROP_DYN)) {
-               cli_err(appctx, "Backend must use a consistent hashing method for load balancing to support dynamic servers.");
+               cli_err(appctx, "Backend must use a dynamic load balancing to support dynamic servers.");
                return 1;
        }