Files
sailing-analytics/configuration/mongo_instance_setup/README
T
Axel Uhl aca7255e71 updated README for MongoDB replica set user data parameters
Change-Id: I0c1f819f0310498c310508ab0c5ac8c80d302397
2019-07-29 18:43:45 +02:00

13 lines
536 B
Plaintext

Deploy the .mount and .service units to /etc/systemd/system.
Deploy the ephemeralvolume and the patch-mongo-replicaset-name-from-ec2-metadata script to /usr/local/bin
Deploy mongod.conf to /etc
Run with optional EC2 user detail, e.g., as follows:
REPLICA_SET_NAME=archive
REPLICA_SET_PRIMARY=dbserver.internal.sapsailing.com:10201
This will automatically patch /etc/mongod.conf such that the replSetName property
is set to the value of REPLICA_SET_NAME. Then, the instance will be added to
the REPLICA_SET_PRIMARY's replica set.