4 ms·
I use Docker Swarm (basically multi-node Compose) in production, and am also really happy with it. It's an order of magnitude simpler than k8s, and perfect for
by GordonS 6y ago
I use Docker Swarm (basically multi-node Compose) in production, and am also really happy with it. It's an order of magnitude simpler than k8s, and perfect for small-medium scale deployments.
In terms of configuring your stack, you use regular Compose files, with a few enhancements available (such as better support for secrets). I love it!
- ga6840 6y agoI also want use docker swarm in production, but I keep hearing people say it has network bugs like after some time services cannot talk to each other. Have you experienced any such issue?
- GordonS 6y agoI haven't experienced any networking issues in production at all. I have experienced 1 networking issue, but only specifically when keepalives are disabled on Windows (where I use Docker for dev/test only)[0]. When using an overlay network, network connections to dockerised Postgres go "stale" after 15 minutes. I workaround it by publish the Postgres port in "host" mode instead of the default of "ingress" mode using `endpoint_mode: dnsrr`. [0] https://success.mirantis.com/article/ipvs-connection-timeout-issue https://success.mirantis.com/article/ipvs-connection-timeout...
- revskill 6y agoWhat's your solution to the problem of shared disk between hosts ?
- dismalpedigree 6y agoNfs volume mounts. Works quite well. Make sure the hosts can access the nfs endpoints (i run nfs on separate lan)
- GordonS 6y agoI've never actually had to use shared disk, but I'd use NFS if I did (as another commenter suggested) - I've tried it out before, just when playing, and it worked fine.