Backup mongodb without stop replicaset

Description

Server Setup Information

  • Version of Rocket.Chat Server: latest
  • Operating System: RHEL 8
  • Deployment Method: Docker
  • Number of Running Instances: 20
  • DB Replicaset Oplog: true
  • NodeJS Version: 14.21.3
  • MongoDB Version: 5.0.9
  • Proxy: haproxy
  • Firewalls involved:

Any additional Information

I have a replicaset and during a backup (fsyncLock then mongodump), sent messages are greyed out and only sent if the page is reloaded.

One of the mongodb instances is hidden:true with priority: 0 and during the backup it is blocked and rocket chat stops working correctly.

How to implement backup without problems with sending messages are grey out?