diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2018-06-14 01:47:17 +0300 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2018-06-14 01:50:50 +0300 |
commit | 9e0526c485d3627c60c4fb07789165302a158ed4 (patch) | |
tree | 6fb437496c6ae4ca31d0f9b86d064c429852eb14 /scripts/murmur.ini | |
parent | e85191b28410226a5c8d4166e4ce8ff1391c952a (diff) |
Introduce channelcountlimit to limit max channels per server
Having to many channels on a server can impact performance to the point
of making the instance unusably slow. This can be a problem for hosters
that allow their users unlimited channel creation.
This patch introduces a new per-server configuration parameter
channelcountlimit which can be used to configure a maximum number of
channels that may be created on each of the virtual servers. Once the
limit is reached channel creation will be rejected with permission
denied.
To allow a translated error message we have to bump the client version
to 1.3.1 to be able to use a fallback message for older clients.
As usual dbus, ice and grpc can ignore this limit. It is only enforced
against clients.
Diffstat (limited to 'scripts/murmur.ini')
-rw-r--r-- | scripts/murmur.ini | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/murmur.ini b/scripts/murmur.ini index 6ff283d29..d1208a1ae 100644 --- a/scripts/murmur.ini +++ b/scripts/murmur.ini @@ -151,6 +151,10 @@ allowping=true ; InnoDB will fail when operating on deeply nested channels. ;channelnestinglimit=10 +; Maximum number of channels per server. 0 for unlimited. Note that an +; excessive number of channels will impact server performance +;channelcountlimit=1000 + ; Regular expression used to validate channel names. ; (Note that you have to escape backslashes with \ ) ;channelname=[ \\-=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+ |