Created
May 11, 2016 07:52
-
-
Save freddielunchbird/36fccdfa9c7e39deaf634e015081a1fe to your computer and use it in GitHub Desktop.
mongodb create cluster jog
This file contains 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
{ | |
"operation": "createJob", | |
"job": { | |
"command": "create_cluster", | |
"job_data": { | |
"type": "mongodb", | |
"ssh_user": "csjpeter", | |
"ssh_keyfile": "/home/csjpeter/.ssh/id_rsa", | |
"api_id": 1, | |
"user_id": 1, | |
"vendor": "percona", | |
"mongodb_version": "3.2", | |
"replica_sets": [{ | |
"rs": "my_rs_0", | |
"members": [{ | |
"address": "ip1:27017", | |
"arbiter_only": true, | |
"priority": 10 | |
}, { | |
"address": "ip2:27017", | |
"arbiter_only": false, | |
"priority": 1.0 | |
}, { | |
/*perhaps we also want a delayed slave (as a backup, hidden from apps) https://docs.mongodb.com/manual/tutorial/configure-a-delayed-replica-set-member/ */ | |
"address": "ip3:27017", | |
"slaveDelay": 3600, | |
"priority": 0, | |
"hidden": true | |
}] | |
}, { | |
"rs": "my_rs_1", | |
"members": [{ | |
"address": "ip4:27017", | |
"arbiter": true | |
}, { | |
"address": "ip5:27017" | |
}, { | |
"address": "ip6:27017" | |
}] | |
}], | |
"config_servers": ["ip10:27017", "ip11:27017", "ip12:27017"], | |
"mongos_servers": ["ip10:27017", "ip11:27017", "ip12:27017"], | |
"mongodb_user": "csjpeter", | |
"mongodb_password": "pwd", | |
"cluster_type": "mongod" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment