#devops
CI/CD, infrastructure as code, monitoring, deployments and incident response.
Posts tagged #devops
Blameless review: the 'quick' migration that blocked every write to our orders table
Short incident review, because the lesson is more useful than the embarrassment. What happened A normal Tuesday deploy at 08:12 ran two migrations generated by our migration tool: ALTER TABLE orders ADD COLUMN priority int NOT NULL DEFAULT 0; CREATE INDEX orders_priority_idx ON orders (priority); Both look harmless. Since Postgres 11, adding a column with a constant default does not rewrite the table, so the ALTER…
How are you versioning prompts together with their eval results?
A practical question rather than an opinion, for once. We have about 30 prompts in production across six features, and each has an eval set. Today the prompts live in the application repo as text files, eval results go into a spreadsheet, and the link between "this prompt version" and "these scores" is a commit hash someone pastes into a cell. It works until it does not: last week nobody could tell me which version…
reminder that "its a one line change" is how every…
reminder that "its a one line change" is how every postmortem i have ever written starts. deploy on friday if you want, im not your dad. but i am the one getting paged
yaml is just json that went to art school and came back…
yaml is just json that went to art school and came back with opinions about whitespace and a drinking problem
I took our UPI collect flow down for 14 minutes on a Friday evening
Every Friday deploy story starts with "it was just a config change". So here is mine. Our partner bank rotates the public key they use to sign payment callbacks once a year. They emailed us the new key, I updated the config and deployed at 6pm on Friday because the old key was expiring on Saturday. Felt responsible. Was not. We run the callback service on 2 pods. The config came from a mounted secret, one pod picked…
Airflow catchup ran 400 DAG runs at once and killed our warehouse, how to prevent this?
Deployed new DAG yesterday with start_date=datetime(2025, 9, 1) and schedule='@daily' . Did not set catchup. Airflow scheduled ~400 runs for all past days, they start in parallel and warehouse queue full for 2 hours, other team jobs stuck. Very embarrassing. with DAG( dag_id='orders_daily_snapshot', start_date=datetime(2025, 9, 1), schedule='@daily', ) as dag: ... I paused the DAG and marked the runs failed…
How does your team handle secrets in CI?
terraform state surgery without losing a finger
Every terraform codebase eventually needs refactoring. You rename a resource, move stuff into a module, split one giant root into three. And the first time you do it terraform helpfully offers to DESTROY your production database and create a new one at the new address. Fun. Here's the order I do things in now. Mostly learned by almost doing it wrong. 0. back up the state. every time. terraform state pull >…
Este sketch de Kai Lentit es mi semana de guardia completa, neta. Lo pusimos en la daily y nadie se rió porque a todos nos dolió 🤣
how does your team actually do on-call?
Docker was supposed to kill "works on my machine". Now it works on my container.
Bon. Story of my Tuesday, because I need to complain and also because maybe it saves someone 3 hours. New colleague, new MacBook with an M3. He builds our Symfony image on his machine, tests it, everything works, and he pushes the image to the registry from his laptop because "CI is slow" (it is, but this is not the point). Deploy on our servers. Container starts and dies directly: exec…
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…
The Friday deploy a power cut saved (and the idempotency key that saved us the next time)
Howzit. Two stories, one lesson, and the lesson is not "don't deploy on Friday", sorry. Story one A few years back, Friday 16:30, I'm about to push a change to how we retry failed card authorisations. Tests green, reviewer happy, I'm feeling lekker. I type the command and the power goes. Whole block. The inverter was smaller back then, so the laptop is fine but the fibre box is not. No internet, no deploy. I sulked,…
the DNS change that took 24 hours to finish breaking things
this one is a classic and i still feel it in my bones. We were moving our customer API from an old load balancer to a new one. Plan was simple: point the CNAME at the new LB, watch traffic move over, decommission the old one at the end of the day. We did the change on a Thursday afternoon (I know, I know, at least it wasnt friday). Traffic moved... mostly. Like 85% within an hour. We waited, graphs looked great,…
if your .env.example has a real-looking secret in it…
if your .env.example has a real-looking secret in it, someone will deploy it to production unchanged. use CHANGE_ME and make the app refuse to start when it sees it. ask me how i know
Since 3 years I ask my team to not deploy on friday. Today…
Since 3 years I ask my team to not deploy on friday. Today is friday, 17h. Guess what we deploy ? A "small migration" on the users table. Putain. If you don't hear from me on monday, tell my wife the backup is in the S3 bucket with the stupid name.
gm. launching $DEPLOY 🚀 every time you push to prod you…
gm. launching $DEPLOY 🚀 every time you push to prod you earn $DEPLOY. every time prod goes DOWN you earn MORE because volatility is a feature. incidents are now yield. devs are early ser. few understand 📈💎🙌
Norway became false
Config had a list of Nordic country codes for a region filter. FI, SE, DK, NO, IS. Service read it with PyYAML. Norway was missing from the filter. countries: - FI - SE - DK - NO - IS PyYAML follows YAML 1.1, where NO , no , off , yes and friends are booleans. Python got ['FI', 'SE', 'DK', False, 'IS'] . Filter compared strings. Norway silently gone. Two hours. Fix: countries: - "FI" - "SE" - "DK" - "NO" - "IS" Also…
Write runbooks for the person who just got woken up at 3am
I have been on call for about nine years now across three companies and I can tell you the single biggest thing that decides if an incident takes 12 minutes or 3 hours is not the monitoring stack, its not kubernetes, its not how smart your team is. its whether the runbook was written for a person who is half asleep. Most runbooks I've inherited were written by someone who was wide awake, had full context, and was…
me after deploying on friday at 4:59pm
my parents' dry cleaner opened at 7am every day for 31…
my parents' dry cleaner opened at 7am every day for 31 years. no status page, no retros, my dad just showed up. your 99.9% monthly SLA allows 43 minutes of downtime and somehow you still need a war room
was about to deploy the fix. light don go. generator no get…
was about to deploy the fix. light don go. generator no get fuel. laptop battery 9%. pushed nothing, broke nothing. NEPA has done more for production stability this year than our whole QA team 😂
Re-reading this for the fifth time. Every team gets about three innovation tokens. Most teams I have joined spent theirs on the database and the deploy pipeline, then wondered why the product was late.