Thanks. Can I use my existing, single Docker to start a new swarm, or do I have to start from scratch?
Comment on Best approach for Docker resilience with two hosts
peter@feddit.uk 1 year ago
You can use docker swarm (or a better container orchestrator) to have the containers automatically fail over to the second host
Sim@lemmy.nz 1 year ago
mhzawadi@lemmy.horwood.cloud 1 year ago
Swarm will also spread the load out over both hosts, but all your data would need to be accessible by both hosts
Sim@lemmy.nz 1 year ago
Thanks. That means I need to move all data off the hosts on to, say, a NAS - then the NAS becomes the single point of failure. Can I operate a swarm without doing that but still duplicate everything from host 1 to host 2, so host 2 could take over relatively seamlessly (apart from local DNS and moving port forwarding to nginx on the remaining host)?
mhzawadi@lemmy.horwood.cloud 1 year ago
Yes could sync the 2 hosts data, you also can use both hosts as nginx upstreams.
Still@programming.dev 1 year ago
I think you can run a ceph or glusterfs cluster for sharing files in a cluster
Mio@feddit.nu 1 year ago
I think 3 nodes are required for that