Last active
August 29, 2015 14:12
-
-
Save hachi-eiji/7d32ef99054c95a00645 to your computer and use it in GitHub Desktop.
yaml format
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/arbiter.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: false | |
smallFiles: true | |
dbPath: "/data/arb" | |
processManagement: | |
fork: true | |
net: | |
port: 30000 | |
replication: | |
oplogSizeMB: 10 | |
replSetName: rs |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongoc.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: true | |
smallFiles: true | |
dbPath: "/data/configdb" | |
processManagement: | |
fork: true | |
pidFilePath: "/opt/mongodb/mongoc.pid" | |
net: | |
port: 27019 |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongod-s1.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: true | |
smallFiles: true | |
dbPath: "/data/s1" | |
processManagement: | |
fork: true | |
pidFilePath: "/opt/mongodb/mongod-s1.pid" | |
net: | |
port: 27017 |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongod-s2.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: true | |
smallFiles: true | |
dbPath: "/data/s2" | |
processManagement: | |
fork: true | |
pidFilePath: "/opt/mongodb/mongod-s2.pid" | |
net: | |
port: 27018 |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongod-s3.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: true | |
smallFiles: true | |
dbPath: "/data/s3" | |
processManagement: | |
fork: true | |
pidFilePath: "/opt/mongodb/mongod-s3.pid" | |
net: | |
port: 27019 |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongod.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: true | |
smallFiles: true | |
dbPath: "/data/db" | |
processManagement: | |
fork: true | |
pidFilePath: "/opt/mongodb/mongod.pid" | |
net: | |
port: 27017 | |
replication: | |
oplogSizeMB: 10 | |
replSetName: rs |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongos.log" | |
logAppend: true | |
processManagement: | |
fork: true | |
pidFilePath: "/opt/mongodb/mongos.pid" | |
sharding: | |
configDB: "" | |
chunkSize: 1 |
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
use test; | |
var bulk = db.test_collection.initializeUnorderedBulkOp(); | |
people = ["Marc", "Bill", "George", "Eliot", "Matt", "Trey", "Tracy", "Greg", "Steve", "Kristina", "Katie", "Jeff"]; | |
for(var i=0; i<1000000; i++){ | |
event_id = 2; | |
user_id = i; | |
name = people[Math.floor(Math.random()*people.length)]; | |
number = Math.floor(Math.random()*10001); | |
bulk.insert( {"event_id": event_id, "user_id":user_id, "name":name, "number":number }); | |
} | |
bulk.execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment