3 ms·
Do you care about availability? Do you care about rolling upgrades? Do you want to practice any of those two? Then it might be time to make the switch. Yes, Do
by Nullabillity 7y ago
Do you care about availability? Do you care about rolling upgrades? Do you want to practice any of those two? Then it might be time to make the switch.
Yes, Docker has Swarm Mode. And yes, it is easier to get started with than K8s.
The problem is that it locks you into a lot of choices when you first spin up each (Docker) Service, that can't be changed without taking down the Service and then recreating it with the new option. Want to change how upgrades are rolled out? Too bad!
Kubernetes still has a few settings like that, but since (K8s) Services are just responsible for routing traffic to separately-managed Pods, you can always fall back to rolling the upgrade manually, or doing a blue-green deployment.
- MuffinFlavored 7y agoI do blue-green deploys with Docker and I deploy the services as “app-1”, “app-2”, “app-3”, etc.
- Nullabillity 7y agoHow do you route dependencies to the correct service? If you're using a stack then you end up needing to blue-green the whole thing, if you're not then you still need to blue-green the whole dependent subset of the dependency graph. And for anything exposed outside of the swarm you'd need to use some reverse proxy, since only one service (in the whole swarm) can bind a port at any one time.
- MuffinFlavored 7y ago> How do you route dependencies to the correct service? Reload the nginx config with proxy_pass switch from blue -> green or green -> blue.