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

Option to refuse federation with large rooms #2255

Closed
ara4n opened this issue Jun 4, 2017 · 6 comments
Closed

Option to refuse federation with large rooms #2255

ara4n opened this issue Jun 4, 2017 · 6 comments

Comments

@ara4n
Copy link
Member

ara4n commented Jun 4, 2017

If you're running synapse on limited hardware, we should give server admins the option to stop their users from being able to join rooms with more than N state events or Y participating servers or something, to avoid a user innocently crippling the server

@matlag
Copy link

matlag commented Jul 9, 2017

That sounds like a wrong solution to a real problem. Should we (well, being not a dev myself, it's a bit presomptuous to write "we" here, but I gladly give my 2 cents as a user...) not rather look for a solution for limited servers to access large rooms? Restraining rooms access goes against the idea of decentralization. It's a strong incentive to join a very large server rather than self-hosting. Who knows how large the largest rooms will eventually be?

@Kordump
Copy link

Kordump commented Dec 6, 2017

It might be interesting to have a common limit (at protocol level, in the form of a recommendation) on the number of state events or participating servers in a room.

This limit would be lifted once a number of special servers – specialized in « broadcasting state events » to participants – declare themselves to alleviate the overall cost – at the network level – of redundancy and consistency.

Another solution could be a spontaneous hierarchy between servers for the distribution of state events according to their measured capacity - pay attention to plausible non-trivial attacks here. In the event of a loss of hierarchy (faults or unavailability), the nominal functioning of "classic matrix" could be adopted as a fallback until structure emerges again.

Nothing trivial to implement, sadly – just my 2 cents here, as an interested observer.

@herula
Copy link

herula commented Apr 14, 2019

That's why I have disabled federation with matrix.org until there is an option to set an allowed room size and a max. number of messages to be stored on the server.

@neilisfragile
Copy link
Contributor

@herula we are currently working on a feature to do exactly this, so you will not have to wait too much longer.

@herula
Copy link

herula commented Apr 15, 2019

@neilisfragile This is good news. Thank you!

@jaywink
Copy link
Member

jaywink commented Mar 2, 2021

This has been implemented via #5783

@jaywink jaywink closed this as completed Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants