Redis: setting ‘maxclients’ on the fly

configurationredis

How do you set maxclients to X in redis? I know that it should look something like this:

config set maxclients X

but I keep getting the follow errors

(error) ERR Unsupported CONFIG parameter: maxclients

I even checked to make sure that maxclients is supported by config set by running config get * and maxclients is listed, its number 55 in the huge list printed out by config get *

Best Answer

Apparently, despite the fact that the official Redis documentation says that anything supported by config get is supported by config set, config set does, in fact, not support the maxclients parameter, and will not support it until version 2.8, I believe.