question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do we need a docker swarm setup?

See original GitHub issue

@1ubuntuuser do you really need a swarm setup?

Does the community really need the swarm setup?

  • docker is being replaced by more free and open source alternatives in many places.
  • Docker has built-in docker swarm. The alternatives don’t. e.g. podman doesn’t have swarm mode.
  • When things need to be distributed Kubernetes is where everyone is focusing on.
  • Storage is also a challenge: docker volumes by default are mounted on the hosts where the containers run.
  • For shared volumes across nodes, NFS is needed and any other alternative is also a challenge.
  • There is no dedicated loadbalancer, we choose one of our manager node as loadbalancer and tie the stacks to that node only using labels. In case of kubernetes there variety of ingress-controller/loadbalancer alternatives available which are dedicated loadbalancers

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
1ubuntuusercommented, Mar 22, 2022

I hope to use this system up to a point where swarm mode is required. For quick setups, I use docker-compose but I have migrated a few services to swarm for the following reasons:

  • Better reliability. Docker swarm keeps containers running more reliably in my experience and handles things like power outages etc very well out of the box. I haven’t experience with compose v2 but v1 isn’t production-grade in my opinion.
  • Cost-effective compute. AWS etc offer instances tailored to different kinds of loads. Being able to split the services up between instances reduces the need to run one massive instance

You are right about the pain of file storage. I have used AWS EFS with NFS between nodes. Rock solid for years.

I suggest focusing on making the docker compose experience very quick and easy, and removing complications related to swarm. If anyone wants to use swarm mode, they’ed better know what they are doing.

1reaction
1ubuntuusercommented, Apr 12, 2022

If someone want’s to get a start on swarm, they can review the removed and obsolete files here. https://github.com/frappe/frappe_docker/commit/b83938c0b89617fb8eb618fe42bd8a0019e89a09

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a swarm - Docker Documentation
Open a terminal and ssh into the machine where you want to run your manager node. This tutorial uses a machine named manager1...
Read more >
What is Docker Swarm: Modes, Example and Working [Updated]
We can use Docker Swarm to make Docker work across multiple nodes, allowing them to share containers with each other.
Read more >
How to Install and Configure Docker Swarm on Ubuntu
Provides Docker Engine CLI to create a swarm of Docker Engines where you can deploy application services. · Install one of the service...
Read more >
What is Docker Swarm Mode and When Should You Use It?
Here's how you can use Swarm mode to set up simple distributed workloads across a fleet of machines. You should use Swarm if...
Read more >
Docker Swarm Rocks
Set up swarm mode. In Docker Swarm Mode you have one or more "manager" nodes and one or more "worker" nodes (that can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found