amazon web services - how to setup AWS/mongodb with replicas so that if an instance crashes there is nothing to do? -
the question pretty in title : how setup aws/mongodb replicas if instance crashes there nothing ?
namely, if 1 of instances of replica crashes, guess amazon instantiates new machine , starts processes running. ebs things should fine.
only problem : when restarting this, how can add new machine replica set ? instances have changing ips , im not sure how how start machine know replica set join, ip, , how tell join it.
if have encountered problem please let me know !
thanks
thomas
i guess amazon instantiates new machine , starts processes running. ebs things should fine.
downing of members can happen many reasons on network aws. recommend not create autoscaling group/cloud template replicas.
instead handle bringing new replicas manually.
with ebs things should fine.
not always, have edge case whereby storage layer dc goes down. infact more both 1 or other.
when restarting this, how can add new machine replica set
as stated in document on bringing members up, manual process. tell mongod
through --replicaset
param replica set should part of , on primary need remove member rs.config , reapply new members ip.
you can, of course, assign static ips these instances , way, aws support buying static ips them , have inteface connecting them. quite elementary stuff won't go further.
Comments
Post a Comment