News for hackers. Stuff that matters.
Re:Nomad vs. Kubernetes by proxysna on Friday October 15, 2021 @06:33AM (#28876273)
> I rarely hear anything about the Hashicorp alternative for service discovery and such though, so it would be interesting how that compares.

Consul is used for service discovery. Fast, reliable and easily extensible. Yet to have a serious issue with it.

Re:Nomad vs. Kubernetes by pronoiac on Friday October 15, 2021 @11:21AM (#28878692)
Consul is usually very reliable; when it breaks it can be very painful and mystifying. I've worked on removing it both from internal systems due to outages, and products, based on feedback.
Re:Nomad vs. Kubernetes by mijoharas on Friday October 15, 2021 @04:19PM (#28882670)
Could you expand a little on your problems with Consul? (I have no experience with it myself).
Re:Nomad vs. Kubernetes by pronoiac on Friday October 15, 2021 @10:00PM (#28884974)
It's been a while, so I'm fuzzy on some details:

* in a legacy system, a server, perhaps with the leader node, filled up disk space and became unhealthy, the consul agent kept reporting it and itself as healthy, and failover and gossip generally wedged

* in a dev environment, after we replaced some servers in the cluster, the other nodes noted cert changes and refused to work with the new servers

* second-hand, in self-hosted installations, it caused a number of hard-to-troubleshoot outages

* something about circular dependencies and going by "wait _n_ seconds" rather than by healthiness

It was reliable enough that it could gather a really significant blast radius, and it had different gnarly failure modes, so documentation could be irrelevant from case to case.

Re:Nomad vs. Kubernetes by proxysna on Saturday October 16, 2021 @12:51PM (#28889193)
I don't want to sound bad, but to me all of these sound like a misconfiguration and lack of understanding how consul works tbh. But i don't know the full context so eh, these things happen.
Re:Nomad vs. Kubernetes by still_grokking on Friday October 15, 2021 @10:16PM (#28885033)
And what is the replacement for it?
Re:Nomad vs. Kubernetes by pronoiac on Saturday October 16, 2021 @01:10AM (#28885706)
We rearchitected. At one workplace, we built and distributed our own service. At another, we shifted to semi-automated more static lists of servers for roles; those servers were much less dynamic.
Re:Nomad vs. Kubernetes by still_grokking on Saturday October 16, 2021 @12:25PM (#28888947)
There are exceptions but most of the time replacing an off the shelf std. solution with something self made looks like NIH syndrome to me.

The exceptions are the few cases where you know you will forever only need some strict set of features and your own solution can provide them by way more simple means than the in comparison "fat" off the shelf solution.

I'm not sure service discovery in a cluster is one of those cases.

Re:Nomad vs. Kubernetes by shaklee3 on Saturday October 16, 2021 @01:13AM (#28885721)
etcd
Re:Nomad vs. Kubernetes by still_grokking on Saturday October 16, 2021 @12:26PM (#28888960)
Never heard that someone moved form Consul to etcd. It's always the other way around.
Re:Nomad vs. Kubernetes by kerblang on Friday October 15, 2021 @06:50PM (#28884041)
Not OP, but go look at the consul documentation. In fact, just look at "Configuration" page alone: https://www.consul.io/docs/agent/options - it goes FOREVER. Maybe you don't need most of that, but whatever you do need, you're going to have to find it somewhere in there.

And yes, the error messages can be utterly cryptic.

One thing: Don't ever let junior devs try to create a cluster out of their own laptops (yes they will think it sounds like a good idea) as this will be a never-ending nightmare.