News for hackers. Stuff that matters.
Re:Homebrew to deprecate and add caveat for HashiCorp by speedgoose on Sunday October 08, 2023 @10:28AM (#37810773)
I would rather sink in an ocean of kubernetes YAML documents than having to deal with Docker swarm issues ever again. Thankfully Docker swarm is kinda dead so it’s unlikely to be relevant again. Kubernetes won.
Re:Homebrew to deprecate and add caveat for HashiCorp by michens on Sunday October 08, 2023 @10:35AM (#37810828)
Can you elaborate on its issues? I've never used it on production myself, but it looks like a simplified k8n, which is something I feel a lot of people desire
Re:Homebrew to deprecate and add caveat for HashiCorp by da768 on Sunday October 08, 2023 @10:40AM (#37810875)
Last used it years ago, networking would just die randomly, requiring container restarts when using multiple nodes
Re:Homebrew to deprecate and add caveat for HashiCorp by eropple on Sunday October 08, 2023 @11:10AM (#37811161)
I have heard (though haven't tried) that V2 of Compose/Swarm is significantly better.
Re:Homebrew to deprecate and add caveat for HashiCorp by drdaeman on Sunday October 08, 2023 @11:14AM (#37811196)
Anything can and will break. Symptomatically similar thing happened to me with K8s with (IIRC) Calico. And I’ve had issues with Swarm too, although of a different kind (it quietly refused to run a data channel for me over an IPv6-only network, while control channel worked just fine).

It was all quite a while (3-4 years) ago, so I don’t remember much details, except that Swarm was then not exactly capable of working in IPv6-only environments. It was significantly easier to navigate Docker’s codebase than Kubernetes’.

Ultimately, my solution was that I understood that I didn’t need any kind of orchestration there, just HA/failover.

Re:Homebrew to deprecate and add caveat for HashiCorp by raphinou on Sunday October 08, 2023 @10:47AM (#37810944)
I've been very happy with until now, though i must admit i'm using one node swarms. But i'd rather use that (1) than sticking together a custom solution using docker compose as i see it mentioned sometimes.

(1) https://dockerswarm.rocks/traefik/

Re:Homebrew to deprecate and add caveat for HashiCorp by speedgoose on Sunday October 08, 2023 @11:26AM (#37811303)
I haven’t used it for many years but in short it just didn’t work reliably. I mostly encountered network iptables issues from memory.
Re:Homebrew to deprecate and add caveat for HashiCorp by nunez on Sunday October 08, 2023 @11:44AM (#37811480)
Infinite issues with overlay networking once you scale past 30 nodes in a swarm. Weave aside, network drivers for anything not CNI are basically deprecated/dead.
Re:Homebrew to deprecate and add caveat for HashiCorp by talent_deprived on Sunday October 08, 2023 @11:52AM (#37811565)
I like what kube achieves, I don't like the power and memory hungry requirements of it, it seems ill optimized. A cluster with no pods uses 5%-15% CPU, that's a lot of electricity being used for nothing. It's really odd since Google claims to have green datacenters.
Re:Homebrew to deprecate and add caveat for HashiCorp by philipov on Sunday October 08, 2023 @12:08PM (#37811694)
Does Google use carbon swaps to conceal their emissions? Maybe that's how they reconcile the difference.

A quick search turned up this: https://www.greencentury.com/google-parent-alphabet-pledges-...

Looks like a possible case of greenwashing to me.

Re:Homebrew to deprecate and add caveat for HashiCorp by dilyevsky on Sunday October 08, 2023 @01:39PM (#37812626)
Google doesn’t use kubernetes to run anything production. They use Borg
Re:Homebrew to deprecate and add caveat for HashiCorp by tedivm on Sunday October 08, 2023 @02:36PM (#37813183)
I got into an argument with someone at google who said they don't use carbon swaps and ended up pulling up a shareholder report that said they did. Google is real big on the greenwashing.
Re:Homebrew to deprecate and add caveat for HashiCorp by nixgeek on Sunday October 08, 2023 @12:16PM (#37811765)
Google doesn’t run on Kubernetee.
Re:Homebrew to deprecate and add caveat for HashiCorp by teraflop on Sunday October 08, 2023 @12:51PM (#37812148)
I'm curious, are you seeing that on cloud instances, or what?

My experience with bare-metal Kubernetes hasn't been that bad. On my home cluster with very underpowered J4105 CPUs, I get about 5% CPU usage on the master node at idle, and 2% on workers.

Re:Homebrew to deprecate and add caveat for HashiCorp by dilyevsky on Sunday October 08, 2023 @01:41PM (#37812652)
People need to check their logs for any oddities more frequently. A lot of the setups I’ve seen have subtle misconfigurations that leak/busy loop resources needlessly
Re:Homebrew to deprecate and add caveat for HashiCorp by mdaniel on Sunday October 08, 2023 @01:09PM (#37812346)
I'd bet you're running a "stacked" control plane and if you moved etcd off to its own machines you'd localize the churn to be that. Which, if correct, doesn't exactly refute your "kubernetes is power and memory hungry" claim but would more clearly distinguish why

I had high hopes back in my earlier days of them offering pluggable KV stores so folks could make tradeoffs if etcd doesn't align with their goals and risks but as best I can tell they've declared it a non-goal

Re:Homebrew to deprecate and add caveat for HashiCorp by p_l on Sunday October 08, 2023 @02:15PM (#37813004)
That's part of what k3s does
Re:Homebrew to deprecate and add caveat for HashiCorp by tedivm on Sunday October 08, 2023 @12:18PM (#37811785)
I've actually been using docker swarm for an odroid cluster that runs a lot of services in my house. I really like it- it's extremely low overhead and the network mesh works way better than I was expecting considering I put no effort into configuring it.

That said this is a three node cluster running a handful of containers, with services accessed by my wife and I. So not exactly a large scale production experience.

Re:Homebrew to deprecate and add caveat for HashiCorp by SteveNuts on Sunday October 08, 2023 @12:26PM (#37811866)
As someone whose wife will immediately call me if the important services in our household (Plex, pihole, home assistant), I think those definitely count as production services!
Re:Homebrew to deprecate and add caveat for HashiCorp by wg0 on Sunday October 08, 2023 @01:12PM (#37812382)
Kubernetes won because of its composability. The API is the killer feature. The notion of objects, labels, pretty much an object oriented, declarative interface.

You'd have to do a lots of custom morphing if you want that kind of interface over docker swarm.

For smaller setups, simplicity of docker swarm might be useful but I am curious to know from people who are running clusters of 25 to 50 nodes.