Go to file
2022-12-31 16:30:52 -06:00
go.mod first commit 2022-12-31 16:30:52 -06:00
ReadMe.md first commit 2022-12-31 16:30:52 -06:00
state_groups_state.png first commit 2022-12-31 16:30:52 -06:00
tablesize-chartjs.html first commit 2022-12-31 16:30:52 -06:00

matrix-synapse-state-groups-state-janitor

Matrix-synapse (the matrix homeserver implementation) requires a postgres database server to operate. It stores a lot of stuff in this postgres database, information about all the rooms that users on the server have joined, etc.

The problem at hand:

Matrix-synapse stores a lot of data that it has no way of cleaning up or deleting.

Specifically, there is a table it creates in the database called state_groups_state. I don't understand what this table is for, however, I can recognize fairly easily that it accounts for the grand majority of the disk space bloat in matrix-synapse:

top 10 tables by disk space used:

a pie chart showing state_groups_state using 87% of the disk space