From: Amaury Denoyelle Date: Thu, 29 Apr 2021 12:59:42 +0000 (+0200) Subject: MINOR: server: fix doc/trace on lb algo for dynamic server creation X-Git-Tag: v2.4-dev18~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eafd701dc55f299a131dd207b6a458ed8ad7b1f7;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/doc/management.txt b/doc/management.txt index 1e79eb788b..ce8f86c79f 100644 --- a/doc/management.txt +++ b/doc/management.txt @@ -1433,11 +1433,10 @@ add server / [args]* This method is still in development and may change in the future. The 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 : diff --git a/src/server.c b/src/server.c index 6728e11186..60e76a6ba0 100644 --- a/src/server.c +++ b/src/server.c @@ -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; }