Skip to content

Instantly share code, notes, and snippets.

@k0emt
Last active January 6, 2025 12:01
Show Gist options
  • Select an option

  • Save k0emt/5545694 to your computer and use it in GitHub Desktop.

Select an option

Save k0emt/5545694 to your computer and use it in GitHub Desktop.

Revisions

  1. k0emt revised this gist May 14, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions create_replica_set.bat
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    mkdir \data\rs1 \data\rs2 \data\rs3
    start mongod --replSet m101 --logpath "1.log" --dbpath \data\rs1 --port 27017 --smallfiles --oplogSize 10
    start mongod --replSet m101 --logpath "2.log" --dbpath \data\rs2 --port 27018 --smallfiles --oplogSize 10
    start mongod --replSet m101 --logpath "3.log" --dbpath \data\rs3 --port 27019 --smallfiles --oplogSize 10
    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
  2. k0emt revised this gist May 14, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions create_replica_set.bat
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    mkdir \data\rs1 \data\rs2 \data\rs3
    start mongod --replSet m101 --logpath "1.log" --dbpath \data\rs1 --port 27017 --smallfiles
    start mongod --replSet m101 --logpath "2.log" --dbpath \data\rs2 --port 27018 --smallfiles
    start mongod --replSet m101 --logpath "3.log" --dbpath \data\rs3 --port 27019 --smallfiles
    start mongod --replSet m101 --logpath "1.log" --dbpath \data\rs1 --port 27017 --smallfiles --oplogSize 10
    start mongod --replSet m101 --logpath "2.log" --dbpath \data\rs2 --port 27018 --smallfiles --oplogSize 10
    start mongod --replSet m101 --logpath "3.log" --dbpath \data\rs3 --port 27019 --smallfiles --oplogSize 10
  3. k0emt created this gist May 9, 2013.
    4 changes: 4 additions & 0 deletions create_replica_set.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    mkdir \data\rs1 \data\rs2 \data\rs3
    start mongod --replSet m101 --logpath "1.log" --dbpath \data\rs1 --port 27017 --smallfiles
    start mongod --replSet m101 --logpath "2.log" --dbpath \data\rs2 --port 27018 --smallfiles
    start mongod --replSet m101 --logpath "3.log" --dbpath \data\rs3 --port 27019 --smallfiles