by code_sloth · 5y ago · 0 comments
> Are you really sure that everything works exactly the same on different versions of GoLang? ...
He mentions he does have a build server which runs a 10 line shell script to download code and build the binary.
Builds happen on that server, and I assume it handles deploying the compiled binary (and systemd script?) to the target as well.
The build server would also have a "blessed" golang version. New guy code that uses new not-yet-blessed features would not compile.
> That VM with systemd died at 1am...
Your docker host died. All your containers die along with it. Docker alone cannot solve this category of issues anyway.
We seem to be obsessed with producing the most complex machines we can instead of creating simple, understandable machines.
It's not solving "your system went down", it's adding more layers of system that can go down.
Are you really trying to suggest that people can't use Kubernetes to increase their reliability?
One can certainly create an HA cluster over some infrastructure set up by kubernetes, just as well as one can take a bunch of physical servers, set them up by hand, and create an HA cluster with them. K8s isn't adding anything to the availability.
Docker does comes with an orchestrator out of the box, it's called Docker Swarm. You may not use it, but it's there and it's up to you to use it or not. It's extremely simple to setup, a single command on the manager and another one on the worker. It support healthcheck, replication, etc.... all super simples to setup too.
Sure doing all theses will takes, what 30 minutes? Instead of the 5 he took for his deployment, but it does solve that issue, natively, out of the box.
Oh and my docker image always have the "blessed" [insert environment here] version, thus everyone always use it while testing locally. If you need to update it, anyone can do it easily, without any knowledge of the build server environment, nor any special access to it.