MongoDB strange growth

Description

Hi all,
I’m facing the problem that my rocketchat mongo db keeps growing uncontrollably.
from one day to the other, without any know changes, the db keeps growing.
From orginaly ~ 5GB to ~300 GB.

ls -la /data/db shows me that I’m having files from
rocketchat.0 upto rocketchat.139

strange enough the files rocketchat.5 to rocketchat.139 are all the same size.

-rw------- 1 mongodb root 67108864 Mar 31 11:02 rocketchat.0
-rw------- 1 mongodb root 134217728 Mar 31 11:03 rocketchat.1

-rw------- 1 mongodb root 2146435072 Mar 30 08:24 rocketchat.5

-rw------- 1 mongodb root 2146435072 Mar 30 09:40 rocketchat.139

ls -la on my mongodb dump path /dump/rocketchat

I notice this huge file
-rw-r–r-- 1 root root 276060MB Mar 31 09:20 rocketchat_userDataFiles.chunks.bson

thats 276 GB…

what is this file for any why is keeping to grow?
Any suggestions on what to check / to do ?

Server Setup Information

  • Version of Rocket.Chat Server: 3.11.1
  • Operating System: debian / rocketchat docker image
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: 128
  • NodeJS Version: v12.18.4
  • MongoDB Version: 4.0.20 / mmapv1 (oplog active)
  • Proxy: nginx
  • Firewalls involved: no

my docker-compose file:
version: “3.5”

networks:
rocketchat:
name: rocketchat

volumes:
rocketchat-mongo-data:
name: rocketchat-mongo-data
rocketchat-mongo-config:
name: rocketchat-mongo-config
rocketchat-uploads:
name: rocketchat-uploads

services:
rocketchat:
container_name: rocketchat
image: rocketchat/rocket.chat:3.11.1
hostname: “chat.xxx.d”
command: >
bash -c
“for i in seq 1 30; do
node main.js &&
s=$$? && break || s=$$?;
echo “Tried $$i times. Waiting 5 secs…”;
sleep 5;
done; (exit $$s)”
restart: always
volumes:
- rocketchat-uploads:/app/uploads
environment:
- PORT=3000
- ROOT_URL=https://chat.xxx.de
- MONGO_URL=mongodb://mongo:27017/rocketchat
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
depends_on:
- mongo
ports:
- “9500:3000”
networks:
- rocketchat

mongo:
container_name: rocketchat-mongo
image: mongo:4.0
restart: always
volumes:
- rocketchat-mongo-data:/data/db
- rocketchat-mongo-config:/data/configdb
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
# labels:
# - “traefik.enable=false”
networks:
- rocketchat

looking into the mondob collection shows rocketchat_userDataFiles.chunks is indeed about ~ 260 GB in size.

How did you solve the problem? I have the same db growing rocketchat_userDataFiles.chunks