News for hackers. Stuff that matters.
Re:Saving on egress switching from AWS to Hetzner by hughrr on Tuesday January 25, 2022 @03:00AM (#30069365)
Don’t come here speaking sense against a decade of marketing!

Realistically I wish someone would just write an orchestrator that runs Go processes and nginx and glues it all together.

Re:Saving on egress switching from AWS to Hetzner by kcartlidge on Tuesday January 25, 2022 @02:18PM (#30076614)
> Realistically I wish someone would just write an orchestrator that runs Go processes and nginx and glues it all together.

Not quite what you're asking for but you can get close, on bare metal, with:

- ssh to set up a systemd service, scp to deploy your binary, then ssh again to restart your service

- dokku (containers are optional) with its cli

For the first option, once you've set up nginx on the server you can easily automate the addition of a new systemd service for a new app with a simple shell script. That done, it is a matter of less than a minute to add a new app and even quicker to update and restart an existing one.

For the second option, it is installed with a single bash command and supports Heroku build packs which means for many systems there's virtually (or exactly) no config needed. Just run the cli from within your app folder. If you do want containers they are automatically found and deployed too.

I've done most deployment methods from the simplest (above) through to complete Terraform builds, and once they are automated all that matters is that the method you choose supports your needs. Go for the simplest option that does that.

Re:Saving on egress switching from AWS to Hetzner by forty on Tuesday January 25, 2022 @03:42AM (#30069642)
Can't a container mostly be a Go process?

"Marketing" as you said, made this concept of "container", but I think using the words "process" and "namespaces" is still ok.

Re:Saving on egress switching from AWS to Hetzner by hdjjhhvvhga on Tuesday January 25, 2022 @06:49AM (#30070779)
I don't agree "container" is marketing-speak; you could say it was appropriated, but I was using linux-containers in early 2000s when it was still a kernel patch. We all knew that bare metal offers a lot and our servers are underutilized most of the time, and VMs were considered a heavier option.
Re:Saving on egress switching from AWS to Hetzner by forty on Tuesday January 25, 2022 @12:55PM (#30075258)
I still think using "container" lose the fact that it's just a process with some tweaks :)

I'm not saying "marketing" as to say it was coined by non technical people, but rather that it's a way to "sell" the feature. Like you go see your manager and say "I'm going to containerize the application" vs saying "I'm going to add some isolation settings to the process"

Re:Saving on egress switching from AWS to Hetzner by cyberge99 on Tuesday January 25, 2022 @08:29AM (#30071527)
Consul and nomad would like a word with you.
Re:Saving on egress switching from AWS to Hetzner by hughrr on Tuesday January 25, 2022 @10:05AM (#30072550)
See my post history. No thanks :)

https://news.ycombinator.com/item?id=30020427