BDCN Unit 2 Learning Outcome 2
BDCN Unit 2 Learning Outcome 2
Subject Page
Introduction ......................................................................................................... 1
Installation ....................................................................................................... 1
Authentication.................................................................................................. 3
Revoking roles................................................................................................. 5
Steps ............................................................................................................... 6
i
Performance tests ............................................................................................... 8
Conclusion .......................................................................................................... 9
ii
Index of figures
Figure Page
iii
Introduction
NoSQL databases have gained popularity due to their flexibility, scalability, and
ability to handle large volumes of unstructured data. This report focuses on the
installation, configuration, and performance testing of a NoSQL database server,
specifically MongoDB, which is a widely used NoSQL database.
MongoDB configuration
Installation
1
storage:
dbPath: /var/lib/mongo
systemLog:
destination: file
path: /var/log/mongodb/mongod.log
logAppend: true
net:
bindIp: 127.0.0.1
port: 27017
Starting MongoDB
2
User access configuration
Creating users
• mongo
• use admin
Authentication
3
Figure 4 Enable authentication
Assigning roles
4
Revoking roles
Enabling profiling
5
Figure 8 Set profiling level
Cluster configuration
Components:
• Shard Servers
• Config Servers
• Query Routers (mongos)
Steps
6
Figure 9 Step 1
Figure 10 Step 2
Figure 11 Step 3
Figure 12 Step 4
7
Figure 13 Step 5
Figure 14 Step 6
Performance tests
Benchmarking tools:
Load data:
8
Figure 15 Loading data
Run workload:
Metrics to Consider
Conclusion