We are running a mongo on single EC2 instance, we were not able to connect to it , upon debugging we saw CPU usage was spiking , this was the problem we faced previously we then restarted the instance and all connections were restored.
Now after two days same problem occurred, we tried to restart the instance and after that we found out our database is missing. Others database are as it is, only one got affected.
We saw mongo logs and it shows nothing about it , is there a way to find out what went wrong and to recover the data ?
What O/S and version are you running?
Ubuntu 16 LTS
What is your version of MongoDB server and what security options have you enabled?
Mongo 3.4.9 , Security Password Protection
Was your instance restarted cleanly or did you force it to restart?
Do you know what operations were running when the CPU was spiking?
Top Process Showed Mongod
Can you confirm whether there is a database missing (per the current description) or a collection (as per the current question title)?
A Database I think it had many collections now I can only see one