Difference between revisions of "Monitoring Solution"

Jump to navigation Jump to search
 
Line 127: Line 127:
Open with a text editor mongod.cfg file located in mongodb folder, default : "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg".
Open with a text editor mongod.cfg file located in mongodb folder, default : "C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg".


We need to enable zstd compression, find wiredTiger block and edit it as followed :
We need to enable zstd compression, find wiredTiger block and edit it as followed :<br>
<code>
 


storage:
<pre>storage:
dbPath: C:\Program Files\MongoDB\Server\6.0\data
  dbPath: C:\Program Files\MongoDB\Server\6.0\data
   journal:
   journal:
     enabled: true
     enabled: true
Line 137: Line 137:
   wiredTiger:
   wiredTiger:
     collectionConfig:
     collectionConfig:
       blockCompressor: zstd
       blockCompressor: zstd</pre>
</code>
 


Configure the net part as needed, example with port 27017 and allowing any external IP address :<code>
Configure the net part as needed, example with port 27017 and allowing any external IP address :<pre>
   # network interfaces
   # network interfaces
   net:
   net:
Line 146: Line 146:
     bindIpAll: true
     bindIpAll: true
     #  bindIp: 127.0.0.1"
     #  bindIp: 127.0.0.1"
</code>
</pre>


If you want to secure the connection to MongoDB, only allow know IP address.
If you want to secure the connection to MongoDB, only allow know IP address.
Line 221: Line 221:
We need to enable zstd compression, find wiredTiger block and edit it as followed :
We need to enable zstd compression, find wiredTiger block and edit it as followed :


<code>
<pre>


storage:
storage:
Line 231: Line 231:
     collectionConfig:
     collectionConfig:
       blockCompressor: zstd
       blockCompressor: zstd
</code>
</pre>


Configure the net part as needed, example with port 27017 and allowing any external IP address :<code>
Configure the net part as needed, example with port 27017 and allowing any external IP address :<pre>
   # network interfaces
   # network interfaces
   net:
   net:
Line 239: Line 239:
     bindIpAll: true
     bindIpAll: true
     #  bindIp: 127.0.0.1"
     #  bindIp: 127.0.0.1"
</code>
</pre>


Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/
Documentation is available on official website: https://www.mongodb.com/docs/manual/reference/configuration-options/
223

edits

Navigation menu