Anatomy of Graceful Shutdown: Part 5

Part 5: Prometheus Graceful Shutdown Part 1: Signals and Linux Part 2: Containers and signals Part 3: Graceful shutdown of K8S pods Part 4: Celery Graceful Shutdown Part 5: Prometheus Graceful Shutdown [you’re here] Part 6: Other frameworks and libraries [WIP] AI usage disclaimer Disclaimer: this article is very experimental in the way that it relies heavily on the AI agent to do the heavy-lifting of data extraction, following the article structure and proof-reading as the articles are getting pretty procedural. Here’s the prompt. It would require tinkering around and verification, as it tends to provide wrong code links sometimes and building the narrative structure that does not make a lot of sense for the human reader. ...

July 1, 2025 · 10 min · 2121 words · Andrei Sviridov

Anatomy of Graceful Shutdown: Part 1

Part 1: Signals and Linux Part 1: Signals and Linux [you’re here] Part 2: Containers and signals Part 3: Graceful shutdown of K8S pods Part 4: Celery Graceful Shutdown Part 5: Prometheus Graceful Shutdown Part 6: Other frameworks and libraries [WIP] Intro There’s been quite a lot of issues surrounding application shutdowns in my line of work. Connections not being correctly closed, incoming requests being processed when they shouldn’t have been, various quirks around how new deployments affect customers during busy hours. I’ve decided to familiarize myself more with the topic and that’s quite a lot going on there. ...

March 3, 2024 · 25 min · 5230 words · Andrei Sviridov

Blog Updates: 19.02.2024

It’s not been quite long enough since I’ve wrote my first article about blog deployment and I already to change quite a lot. OrangePI 5 is not stable enough At first, the idea of doing a reliable, always accessible website on the small computer under your TV was stupid. I’ve stumbled upon the power management issues with my USB-attached SSD drive. All of a sudden filesystem became read-only and the whole infrastructure went south. Static deployments were unavailable, as well as analytics. I had to swap the USB-drive in favour of the M2 small NVMe which made the system a lot stabler but still, too unpredictable. ...

February 19, 2024 · 2 min · 306 words · Andrei Sviridov

How This Blog Is Built

I did not really put a lot of effort into making this project and composed it out of scraps I literally had at home and with the help of tools I already knew and some new things I wanted to try out more in the past. Hardware I have a server rack under my TV with a terabyte of storage, 8-core ARM CPU, a neural processing unit, and the network switch. ...

December 28, 2023 · 4 min · 837 words · Andrei Sviridov