Overview¶
Essentials you should know about MongoDB.
Structure¶
- MongoDB is a schema-less and document-oriented NoSQL database.
- MongoDB uses documents instead of tables.
- Mongo DB combines documents to collections.
- The documents may have different structures. The structure is created during runtime.
Examples - database content
- In the case of PLOSSYS 5, MongoDB contains the data of printers and jobs.
- In the case of SEAL Operator/SEAL Print Client, MongoDB contains the complete data, e. g. documents, panels, tasks, user settings and other.
Database Backup¶
You may use different ways to back up your database, for example:
- Copy the database files
- Call the
mongodump
program
Literature - database backup
For further information, refer to the original MongoDB documentation.
Access Methods¶
You may use different ways to access your database:
- The
mongo
command line tool -
Different user interfaces offered by several software vendors.
For more information, refer to the original MongoDB documentation.
Caution - writing
Be careful when writing into the database!
Securing MongoDB¶
You may use different ways to secure MongoDB:
-
TLS encryption
-
User authentication
-
CA certificates
Hint - strongly recommended
For security reasons we strongly recommend configuring the TLS encryption.
For enhancing the security activate the user authentication for MongoDB in addition.
MongoDB in a Cluster¶
If you run MongoDB in a cluster, the data stored in the database are distributed. Therefore, a failure of a MongoDB node does not affect the integrity of the database.
For details on the configuration MongoDB in a cluster, refer to
- Configuring MongoDB in a Cluster for Windows
- Configuring MongoDB in a Cluster for Linux
Hint - automatic synchronization
The database within a cluster is synchronized automatically. Therefore you need to add or change data on one of the cluster servers only.