5 ms·
I am using systemd + go binary deploy. Running 10 years+ in production. Meanwhile docker based setup fail every now and then. And kubernetes? well forget about
by faangguyindia 6mo ago
I am using systemd + go binary deploy. Running 10 years+ in production. Meanwhile docker based setup fail every now and then. And kubernetes? well forget about it.
- marginalia_nu 6mo agoWhat I'd like is systemd-compose. Maintaining several dozens of .service-files is not my idea of fun.
- ctippett 6mo agoIt's not quite what you suggested, but you can use podman with systemd. https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html https://docs.podman.io/en/latest/markdown/podman-systemd.uni...
- trey-jones 6mo agoOr more simply just wrap some orchestrator in a single service file. Could just be a bash script used for ExecStart.
- faangguyindia 5mo agoi don't have dozens of services. My complex SaaS has total 6 services and each one is running on its own server. Service file lives in the mono repo where all 6 services live. Makes it trivial to make changes and redeploy.
- eb0la 5mo agoKeeping your sanity in tech is underrated.
- vincentkriek 5mo agoHow does this work? Can you show it?
- throw5 5mo agoI mean no disrespect. This is more of a rant at how things are today. It is telling that over-complicated solutions have become so common that, for the current generation of devs, Kubernetes is the obvious way of doing stuff and a simple systemd service is the obscure one. I am sure there are good reasons for this, but it still feels like a loss when simplicity is no longer obvious.
- sofixa 5mo agoThat's like comparing you being able to make a salad from tomatoes and an industrial tomato sauce making facility. Both take tomatoes and end up with food, but the scale is completely different. Yes, you can deploy a Go binary easily with systemd. Could you reliably do this across a fleet of machines? Including managing its configuration, persistent storage, database, network setup, etc.? Maybe, just need Ansible or equivalent config management. What if it were multiple Go binaries? And what if some of them needed to scale up some days because they hit more traffic than the others? And on and on. Yes, not everyone needs Kubernetes, Nomad or other advanced orchestrators. But comparing them to running a Go binary with systemd is an unfair comparison.
- davidatbu 5mo agoDo you do rolling deploys?