MINOR: server: fix doc/trace on lb algo for dynamic server creation

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.
This commit is contained in:
Amaury Denoyelle 2021-04-29 14:59:42 +02:00
parent 7e702d13f4
commit eafd701dc5
2 changed files with 5 additions and 6 deletions

View 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 :

View 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;
}