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

db on-disk space usage increased v1.58+ #12975

@herb

Description

@herb

Description

Since upgrading past v1.58 size of database on disk has ballooned for my usage. Specifically the device_lists_changes_in_room table.

Steps to reproduce

I suspect the problem is my specific usage of synapse: I use an automated script that creates rooms and manages adding/removing users from those rooms as needed. The scripts runs async and in parallel across hosts+processes.

The script logs in as a single administrative user (marked as 'admin' and in every room it creates) with a random device ID (to avoid collisions) and logs out after every use. This user is a member of each and every room on the system. In each environment I deploy there are 100k+ rooms.

As I understand #12321, a record of a user's rooms is kept after each 'change'. if a change were to affect my administrative user its membership in every room is recorded. I assume a 'change' is a login/logout?

Tactical question: since I'm not federating, can I safely purge rows device_lists_changes_in_room or is there some short-term, destructive approach I can use to avoid running out of disk space?

Higher level question: is the bug my usage? Is there a better way to accomplish what I want with synapse?

Version information

  • Homeserver: private, non-federated homeserver
  • Platform: debian 10/11, aws ec2 r5a.2xlarge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions