From eafd701dc55f299a131dd207b6a458ed8ad7b1f7 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 29 Apr 2021 14:59:42 +0200 Subject: [PATCH] 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. --- doc/management.txt | 9 ++++----- src/server.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/management.txt b/doc/management.txt index 1e79eb7..ce8f86c 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 6728e11..60e76a6 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; } -- 1.7.10.4