[SERVER-43955] Cleanup all data from Cluster Created: 11/Oct/19  Updated: 11/Oct/19  Resolved: 11/Oct/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Florian Hulliger Assignee: Carl Champain (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Hi

I wonder if you have a functionality that completely resets the data from a MongoDB cluster.
I ask especially for the data which is stored in the "config" database.
Since version 4 the metadata of deleted databases is also deleted but many of the collections still contain data although all databases have been deleted from the cluster.
Therefore it would be nice to have a script to delete all data/locks/action logs/chunks etc. properly.

Is there such a possibility without having to perform a new installation?

As I have seen, if I simply delete the entries from the config database, the "tags", for example, will not be cleanly deleted on all shards. Or is it safe to just flush out these collections? 

Thank you very much!



 Comments   
Comment by Carl Champain (Inactive) [ 11/Oct/19 ]

Hi florian.hulliger@gmail.com,

The only recommended way to reset the data from a MongoDB cluster is to create a new cluster. Importantly, deleting sharding metadata will likely cause the cluster to start failing in strange ways.

That said, the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need further assistance, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Kind regards,
Carl

Generated at Thu Feb 08 05:04:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.