sharding - MongoDB two member replica-set -
i have 2 member replica set (within sharded cluster), no arbiter. know recommended design have 3 servers (or odd number) right have stick design.
the problem when primary down, secondary doesn't elected temporary master (since priority both servers 1 , have no arbiter).
is there way automatic failover (slave becomes primary -> primary online -> default primary gets previous state)?
thank you!
you must have @ least 3 members in replicaset, having 2 members worse having single node (never ever this!!). problem worst think, main problem if secondary goes down, primary demote secondary , go down because have no more primary. don't know why 'have stick configuration', can not solution.
the solution create , arbiter, node, lightweight member of replicaset has no actual data , there take part in election new primary if 1 of other members goes down.
Comments
Post a Comment