matrix-org/synapse

Option to disable rate limiting for a specific user

turt2live opened this issue · 11 comments

Moderation bots shouldn't be rate limited because they might have to deal with high volumes of spam.

you can poke things into the ratelimit_override table for this.

That should be documented somewhere. It's not even a footnote in the synapse docs.

It would also be nice if this was exposed either in the config, or even better through the admin API.

For a nice TLDR answer for those of us that were a bit confused what exactly to do: you need the full user name (e.g. @mjolnir:my-homeserver.chat) of Mjolnir's user. Then enter synapse's database table that you configured and run:

insert into ratelimit_override values ("@mjolnir:my-homeserver.chat", 0, 0);

where @mjolnir:my-homeserver.chat is the full username mentioned above.

Thanks @refi64! Any chance you'd want to add some of this information to the documentation? I didn't find anywhere off-hand to add it quickly though...

For a nice TLDR answer for those of us that were a bit confused what exactly to do: you need the full user name (e.g. @mjolnir:my-homeserver.chat) of Mjolnir's user. Then enter synapse's database table that you configured and run:

insert into ratelimit_override values ("@mjolnir:my-homeserver.chat", 0, 0);

where @mjolnir:my-homeserver.chat is the full username mentioned above.

the insert into needs single quotes!

@tulir double quotes in SQL means column, single quotes mean string value

insert into ratelimit_override values ('@mjolnir:my-homeserver.chat', 0, 0);

This worked for me but afterwards the server required a restart for the changes to take place.

This seems to have disabled the rate limiting for sending messages but it hasn't removed the rate limiting for sending invites.

This seems to have disabled the rate limiting for sending messages but it hasn't removed the rate limiting for sending invites.

this will be fixed by #9711

... and the lack of documentation will be fixed by #9648