I need a database for backends (for iOS apps). Those are mostly low-load demand applications and I like mongo for it's schemaless-ness. I'm looking to host both db and app server on a small digital-ocean instances.
I plan to:
- run it under systemctl on debian probably
- have periodic backups (not sure yet how)
- make sure it's only accessible to localhost
Anything else I need to do, like maybe enable journaling? (if yes, how do I do it?). What else do I need to do so that my single-server mongod production deployment is decent?
Best Answer
I understand you want to deploy single instance of MongoDB for production. This is the the recommendation from MongoDB.
Details about installing MongoDB community edition here.
Details about backup here.
To enable journaling, start mongod with the
--journal
command line option. For 64-bit builds of mongod, journaling is enabled by default.Details about journaling here and here.