Who runs their own #Matrix server here and has some first hand experience? I would be really interested in running my own server but I'm not sure whether I have enough resources for it. I could run it on a small VServer, at the moment 30GB free space, 6GB RAM. At the moment the server runs Gitea, Prosody and a small Friendica instance (more or less just for testing). Do you think it makes sense to install Matrix on the server or will I soon run out of memory/storage? #nf
Thanks for all the great replies in this short amount of time. Not sure about the crawling, mentioned by @hrthu might be an issue as well. What I worry most at the moment is the storage as Matrix stores the whole history of all rooms forever, afaik. I will mainly join a few IRC channels, some 1:1 chats and maybe 1-2 Matrix channels. I will be the only user. But if I join for example the official Matrix or Riot room to ask some question, I could imagine that it could become a problem 🤔
@bjoern Synapse stores shared files/images in a directory, so you can move those to different drives as needed. As to memory, it really depends how you use it. It is fine among a few friends but if you join the large federated rooms, it starts to crawl.
@bjoern An important thing to keep in mind is that it's mostly room amounts/size that matters.
On my server that's in most of the big rooms (at least #matrix:matrix.org and #riot:matrix.org) I'm faring alright with a dedicated 25GB disk for postgres and 40GB for the rest of the server, including media for synapse.
However i have to prune the data quite heavily, running a script that purges old messages from #matrix:matrix.org is a necessity for me.
@swedneck Hello. Could you please share the scripts one more time? The link presented above isn't working. I am courious about how to clean the DB in order to be still fast enough. I am using SQLite for a nonfederated home #matrix server, but the manner will be the same. More important is which tables could be edited and what information could be safely deleted
@swedneck Thanks for the script! I managed to edit it for my needs. Works also with SQLite3 db and can deletes local events too.
@bjoern I’d also like to see this, specifically statistics for estimated additional storage per user per month, at least on average.
@bjoern Mine is 5.3 GB for a single user that is basically in most of the big matrix rooms + around 10 active irc channels. This is for 3.5 months now.
@bjoern like @swedneck pointed out already, how heavy Synapse is depends *entirely* on how large the rooms are your users join. If only small rooms, you'll get away with a small 2GB server for a long time. If you want to join #matrix:matrix.org (the HQ room), you'll need much more power quickly and lots of disk space.
The feneas.org server has approx 100 users who are in very big rooms. Our server is 1,5y old and just bumped it to 8GB ram from 4GB since it started to swap. DB is approx 12GB.
@bjoern 1 year and a couple days later, my 9 users homeserver has a 3.8 GB database and media disk usage.
We do not federate heavily. 2 GB of ram is plenty.
However pay attention to the cpu botteleneck. Federated rooms with a high number of participating servers hits the CPU quite bad (tls negotiation and outbound connections). Synapse is not concurrent software but workers can be split out as needed.
@beedaddy no, I haven't decided yet. Thanks for your answer, it will help me to come to a conclusion.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!