0

At the moment I have a mongo cluster with two slaves and a master runing on docker host1:27017, host2:27018, host3:27018 the current version is 3.4.1

My idea was to add one replicaset into my k8s infra, wait for sync, add a second one, wait for sync, add a third one and then kill the old ones.

Not seems that simple, first of all can I do this migrating from 3.4.1 to 4.0.9 or will I have problems with the replication ?

I made some tests in local doing

docker run -p 27017:27017 mongo:4.0 mongod --replSet rs0  --bind_ip localhost,host1

But I have the folowing error

Failed to set up listener: SocketException: Cannot assign requested address

If you have any idea how to do that, or just let me know if I am going into the good direction :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.