Last active
January 6, 2025 12:01
-
-
Save k0emt/5545694 to your computer and use it in GitHub Desktop.
Helper batch file for starting up a replica set named m101.
Drop the --logpath option if you want to enjoy the log text flying by in the console.
The --oplogSize option is the magic sauce to avoid creation of numerous 512MB+ files up to 5% of disk space.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir \data\rs1 \data\rs2 \data\rs3 | |
start mongod --replSet m101 --logpath "1.log" --dbpath \data\rs1 --port 27017 --smallfiles --oplogSize 64 | |
start mongod --replSet m101 --logpath "2.log" --dbpath \data\rs2 --port 27018 --smallfiles --oplogSize 64 | |
start mongod --replSet m101 --logpath "3.log" --dbpath \data\rs3 --port 27019 --smallfiles --oplogSize 64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you! :D