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 Print Client, MongoDB contains the complete data, e. g. documents, panels, tasks, user settings and other.
Windows - Directories and Files¶
MongoDB uses the following directories and files:
- Installation directory:
C:\Program Files\MongoDB\Server\4.4 - Configuration file:
C:\ProgramData\SEAL Systems\config\mongod.conf - Data directory:
C:\ProgramData\SEAL Systems\data\seal-mongodb - Log file:
C:\ProgramData\SEAL Systems\log\mongod.log
Linux - Directories and Files¶
MongoDB uses the following directories and files:
- Installation directory:
/usr/bin - Configuration files:
- seal-specific:
/opt/seal/etc/mongod.conf - original from MongoDB:
/etc/mongod.conf.orig
- seal-specific:
- Data directory:
/opt/seal/data/seal-mongodb - Log file:
/var/log/seal/mongod.log
Database Backup¶
You may use different ways to back up your database, for example:
- Copy the database files
- Call the
mongodumpprogram
Literature - database backup
For further information, refer to the original MongoDB documentation.
Access Methods¶
You may use different ways to access your database:
- The
mongocommand 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.