Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Option to disable rate limiting for a specific user #6286

Closed
turt2live opened this issue Oct 30, 2019 · 11 comments · Fixed by #9648
Closed

Option to disable rate limiting for a specific user #6286

turt2live opened this issue Oct 30, 2019 · 11 comments · Fixed by #9648
Labels
A-Docs things relating to the documentation good first issue Good for newcomers T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@turt2live
Copy link
Member

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

@richvdh
Copy link
Member

richvdh commented Oct 30, 2019

you can poke things into the ratelimit_override table for this.

@richvdh richvdh closed this as completed Oct 30, 2019
@turt2live
Copy link
Member Author

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

@turt2live turt2live reopened this Oct 30, 2019
@neilisfragile neilisfragile added A-Docs things relating to the documentation z-p2 (Deprecated Label) labels Nov 6, 2019
@Cadair
Copy link
Contributor

Cadair commented Jan 22, 2020

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

@refi64
Copy link

refi64 commented Jun 20, 2020

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.

@clokep clokep added the Z-Help-Wanted We know exactly how to fix this issue, and would be grateful for any contribution label Jun 22, 2020
@clokep
Copy link
Member

clokep commented Jun 22, 2020

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...

@refi64
Copy link

refi64 commented Jul 6, 2020 via email

@cremesk
Copy link
Contributor

cremesk commented Jul 21, 2020

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);

@clokep clokep added good first issue Good for newcomers T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. and removed Z-Help-Wanted We know exactly how to fix this issue, and would be grateful for any contribution z-p2 (Deprecated Label) labels Mar 19, 2021
@K1D77A
Copy link

K1D77A commented Mar 26, 2021

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

@K1D77A
Copy link

K1D77A commented Mar 28, 2021

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

@richvdh
Copy link
Member

richvdh commented Mar 29, 2021

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

@richvdh
Copy link
Member

richvdh commented Apr 9, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Docs things relating to the documentation good first issue Good for newcomers T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants