Skip to content

Tags

#kubernetes

Kubernetes deployments, networking, scaling and running clusters without tears.

5 posts

Posts tagged #kubernetes

  1. Article

    OOMKilled at 2am: requests, limits, and the JVM that didnt know about either

    Quick write up because I have now explained this in three separate incident channels this month and I would like to just paste a link next time. Symptom: a Java service in kubernetes restarts every few hours. No exception in the logs, no stack trace, nothing. The app just... stops. kubectl describe pod shows this: Last State: Terminated Reason: OOMKilled Exit Code: 137 137 is 128 + 9, meaning the process got…

    Marcus Johnson4likes3comments

  2. Article

    Your Go service has 600 Postgres connections and uses 6 of them

    Last month a routine scale-up took down our orders database. Not CPU, not disk. Connections. Postgres said FATAL: sorry, too many clients already and every service that touched it fell over together. How we got there 40 pods of one Go service, each with a pgx pool. Nobody had set MaxConns , so pgxpool used its default: the larger of 4 and runtime.NumCPU() . Our nodes have 16 cores. 40 times 16 is 640 possible…

    Danny Cho22likes8comments

  3. Article

    Four Pi 5s, one k3s cluster: full build log, what went wrong, and why I'd buy a mini PC next time

    G'day legends. This took three weekends, two trips to Jaycar and one very long conversation with the wife about "what exactly is a control plane". Years ago Jeff Geerling's Pi Dramble videos put the idea in my head and it never left, so if you've not seen the original, start here: This is the full log. Every command I ran, everything that went wrong, and at the end an honest answer to "should you build one". Parts…

    Matt O'Brien114likes35comments

  4. Article

    The goroutine leak that took three weeks to find (the fix was four lines)

    One of our Go services gained about 40 MB of memory a day. Nobody noticed, because we deploy every day and a deploy restarts every pod. Then came a holiday change freeze. Twelve days without a deploy. On day nine the pods started getting OOMKilled, one by one, during the busiest week of the year. Finding it The service already imported net/http/pprof on an internal port, which is the single best decision anyone made…

    Danny Cho35likes11comments

  5. Experience

    About a minute to the shelter, and coming back from reserve duty to a codebase that moved on

    Two stories. Both true. Both about deploys, kind of. One. In Haifa we have about a minute from the alert to the mamad, the safe room, sometimes less. I was in the middle of a rollout, kubectl rollout status running, new pods coming up. Alert. I grabbed the little one, my wife grabbed the big one, laptop stayed on the kitchen table. Ten minutes in the mamad, kids asking if the boom was close, me saying no with the…

    Yoni Peretz23likes13comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.