Skip to content

Collected statistics are not automatically rotated / cleaned #36003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
omgold opened this issue May 15, 2025 · 1 comment
Open

Collected statistics are not automatically rotated / cleaned #36003

omgold opened this issue May 15, 2025 · 1 comment

Comments

@omgold
Copy link

omgold commented May 15, 2025

Description:

The mongo collection which contains the server statistics can run quite large over time. After several years, for me it is the largest table now, exceeding the size of the message collection:

-rw-r--r-- 1 mongodb daemon 454M May  7 00:02 rocketchat_message.bson
-rw-r--r-- 1 mongodb daemon 496M May  7 00:02 rocketchat_statistics.bson

Looking inside, it seems the all entries since the installation in 2017 have been kept. Apparently there is no auto-rotation.

Expected behavior:

Statistics entries older than a configured retention time get removed.

Actual behavior:

Statistics entries are kept forever. There is no retention to be configured currently.

Server Setup Information:

  • Version of Rocket.Chat Server: 7.5.1
  • License Type: free
  • Deployment Method: tar
  • Operating System: Arch
  • Number of Running Instances: 1
  • NodeJS Version: 20.19.0
  • MongoDB Version: 8.0.4-1
@Gummikavalier
Copy link

I confirm this. For our oldest RC instance from 2017 rocketchat_statistics.bson size is now 864 MB. The first entries are from 2017, and the latest one today.

So it grows, but it seems quite linear, ~100 MB per year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants