Is there a point to use Docker Swarm on a single computer?
Jashua

Jashua @jouo

About: I like chubby dogs

Location:
Mexico
Joined:
Jan 11, 2020

Is there a point to use Docker Swarm on a single computer?

Publish Date: Feb 10 '20
6 4

By now I understand the purpose of Docker itself and I've been using it for local development for quite a bit

The course I'm following introduces Docker Swarm by using it locally on a single machine, by making use of Virtual Machines (I think)

So that got me thinking, learning purposes aside, is there a benefit to use Docker Swarm on a single machine?

Thank you

Comments 4 total

  • Jashua
    JashuaFeb 10, 2020

    Would love to read that article! :D

  • Austin S. Hemmelgarn
    Austin S. HemmelgarnFeb 10, 2020

    It lets you test distributed or microservice-based applications without needing a whole network or having to pay a cloud service provider to host it for you.

    It's also a very good way to debug the clustering software itself, because it is often easier to manually induce various networking related failure modes on the virtualized network infrastructure that the VM's use than it is on real network infrastructure.

    There may also be, somewhat surprisingly, positive performance implications. Not so much with Docker Swarm using VM's, or even with minkube, but I've seen Erlang/Elixir apps that perform better when run on multiple BEAM nodes instead of just one, even if all those BEAM nodes are on the same physical hardware.

Add comment