Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Backups that havn't been tested and verified should always be assumed to not exist.
-
It's my understanding that MongoDB isn't intended to be a primary datastore, and is more suited to caches.
If that's the case, can you re-send the data from the authoritative data source? -
@Fiftyseven we use it as primary data store. So no there's no way to get back the data.
-
@GamerFac3 If your data is worthless enough to be stored in mongo then losing it shouldn't be a big issue.
-
@ItsNotMyFault Why shouldn't we use it as database? In my understanding it is a database and it calls itself a database. Where is the reason to not use it as database?
Furthermore we didn't have data loss because of the database, we had it because a developer failed. -
@GamerFac3 MongoDB can lose data quite easily, it has become better in recent versions but i wouldn't trust it.
Basically any write can be lost unless it has been ack:ed by a majority of nodes in the DB cluster (use write concern majority), anything else might be lost if the primary node goes down (even if it has claimed that the write was successful)
Using the default write concern (Safe) your data is still in RAM when the DB claims a successful write, (fast yes, reliable, not at all)
Related Rants
Okay karma, why?!
I made some backup scripts, it should dump our MongoDB every 30 Minutes... Nope I didn't test if there's something in the tar and yes it's my fault but now we needed this backup AND THE ONLY BACKUP SCRIPT WHICH DIDN'T WORK WAS THE ONE WHICH BACKUPS THE DATABASE...
COME OOOOON
undefined
karma
stupid
backup