Karl Matthias

Some good discussion followed my last post. Several people cited experience that they have not seen the issues I described. My experience tells me that it's a real issue.

It turns out that Google also released a paper about it when they added the CFS implementation to support CPU throttling

Karl Matthias

I was recently reading this post telling everyone (strenuously) to turn off CPU limits in #Kubernetes. I could not disagree more, for most production environments.

There are a few caveats where I do think it makes sense. If you have all your teams:

  • That are extremely aware of the performance characteristics of all of their services.
  • Have benchmarks that will show a CPU performance degradation before it ships.
  • Have monitoring and alerting when their services are regularly running over their requested CPU, and have the processes in place to take action on that.

I doubt that most people are in that situation. Maybe in a large company where a team has 1-2 services to manage. 

The problem for 95% of everyone else is that allowing services to use "free CPU" means you don't really have any forcing function when a change hogs up a bunch of CPU. You also end up with Heisenbugs that only happen when a certain set of services happen to be co-deployed on the same nodes and a certain situation occurs.

27 years in the industry–many of them in ops–tells me that the money saved from widely over-subscribing CPUs is not worth the developer and ops time required to debug and support these things. And most organizations don't have the built-in maturity to have that make sense. CPU is expensive. But dev time is much more so.

So, "for the love of God" as they say in the post, please use both requests and limits unless you can check off all those points above.

Karl Matthias

Needed to write some tooling to deal with a big pile of YAML. I still reach for #Ruby when stuff like this comes along. This is one of the things that my other regular languages (Go, Elixir, C, Crystal) don't do as easily.

Karl Matthias

I feel pretty strongly that these new Go built-ins in 1.21 should not have been built in. Seems actually surprising to me that it is coming from the Go team, as well.

Karl Matthias

I still have mixed feelings about Protobuf. Picking it to back our event bus and event store was still the right choice and I think it's still the thing I would pick again. But I still don't love it. The equivalence of zero value and null is a PITA that has caused a number of bugs. Working around this requires loading a lot of Google schemas and making everything structs. I know this and we do this. But it doesn't stop occasional bugs. And, it just feels like a big kludge to not have that be inherent in the encoding.

Karl Matthias

If you are using the awesome Benthos framework in #Golang for stream processing, you might like to know that writing custom bloblang functions is very low hanging.

Karl Matthias

This is a very good, mostly on-point post about the power of writing things down. 4.5 years at Community building a culture around writing things down qualifies me to say that he is right about almost all of it.

Karl Matthias

Going to get the #RC2014 back out this weekend and mess around with Turbo Pascal some more. Have not had enough time to play with it recently. My dungeon game needs some love: https://github.com/relistan/z80stuff/tree/master/pascal/adventure

Screen animation showing game play
Karl Matthias

People often ask me which Docker runtime I use on macOS. The answer is that I don't. I run Docker on Ubuntu on a VMWare Fusion instance locally, have the `docker` CLI installed from Homebrew on macOS and run a local `nginx` proxy on macOS to pass all the ports I regularly use to the Linux box, simulating Docker Desktop. I almost never use volume mounts and if I do, I just ssh into the VMWare Linux box and run stuff there.

Why do I do that? Because it's much more like a real Docker install than Docker Desktop with all the weird localhost-is-not-localhost issues that it exposes.

Karl Matthias

The problem with your service architecture is not the services. It's the synchronous calls you make between them. If you operate a services architecture like a monolith that has been exploded into parts, it's not going to work—as a lot of people can tell you. Right-sized services, events, and async-first design are the solution.