Repository: redis/redis

Issue:
number of clients has to be the same or higher than the amount of nodes
https://github.com/redis/redis/blob/56a802057e90ea482702dbd5191bc397caf0f596/src/redis-benchmark.c#L684

It should be corrected or documented that the number of clients has to be the same or higher than the amount of nodes.


Discussion:
@DanEidelman Do you want to open a PR for that?

Patch:
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c
index 2eb689e9f38..1ee562f20ca 100644
--- a/src/redis-benchmark.c
+++ b/src/redis-benchmark.c
@@ -1614,7 +1614,9 @@ int parseOptions(int argc, char **argv) {
 " -a <password>      Password for Redis Auth\n"
 " --user <username>  Used to send ACL style 'AUTH username pass'. Needs -a.\n"
 " -u <uri>           Server URI.\n"
-" -c <clients>       Number of parallel connections (default 50)\n"
+" -c <clients>       Number of parallel connections (default 50).\n"
+"                    Note: If --cluster is used then number of clients has to be\n"
+"                    the same or higher than the number of nodes.\n"
 " -n <requests>      Total number of requests (default 100000)\n"
 " -d <size>          Data size of SET/GET value in bytes (default 3)\n"
 " --dbnum <db>       SELECT the specified db number (default 0)\n"