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 4

Part 4: Celery Graceful Shutdown Process Part 1: Signals and Linux Part 2: Containers and signals Part 3: Graceful shutdown of K8S pods Part 4: Celery Graceful Shutdown [you’re here] Part 5: Prometheus Graceful Shutdown Part 6: Other frameworks and libraries [WIP] Change of the approach We’ve had enough generic theory in previous 3 articles, covering the kernel, application, container runtimes and high-level abstractions like K8S, so what’s next? I suggest to change the flow of the articles to overview of popular backend systems and how they handle graceful shutdowns, so that we have a perspective of the topic in the wild. ...

June 30, 2025 · 10 min · 2015 words · Andrei Sviridov

Anatomy of Graceful Shutdown: Part 3

[Disclaimer] I struggled a lot with writing this article, as K8S itself is way too big to grasp quickly and I had to make a lot of compromises on the structure and details for it all to make some sense. The article may feel dragged in some places, jumping from topic to topic yet I had to complete it, so sorry not sorry. GenAI has been used to generate the diagrams from the Kubernetes, Container-D and RunC codebase. ...

June 6, 2025 · 12 min · 2480 words · Andrei Sviridov

Anatomy of Graceful Shutdown: Part 6 - nginx's Master-Worker Coordination

nginx is one of the most widely deployed web servers and reverse proxies in the world, handling millions of requests per second across countless production environments. Its reputation for reliability comes not just from its performance characteristics, but from how gracefully it handles operations like configuration reloads and shutdowns. When you run nginx -s quit or send a SIGQUIT signal to nginx, you’re triggering a sophisticated coordination dance between the master process and its worker processes. Unlike simpler web servers that might just close all connections immediately, nginx implements a multi-phase graceful shutdown that ensures existing requests complete while preventing new ones from being accepted. ...

January 7, 2025 · 9 min · 1897 words · Andrei Sviridov

Book Review: Another Fine Myth Series

Heck, it’s been a while since I published any new posts. It’s not been much in terms of my activity all year round. I’ve managed to read a bunch of books, consume an enormous amount of anime content, work here and there, and did not have any capabilities to overcome my desire to write about “something worth writing about.” Yet perfect is the enemy of good, so here we are. ...

January 6, 2025 · 3 min · 519 words · Andrei Sviridov

A Rant on New Bluetooth Headphones

Disclaimer First, let me clarify: This post is not a sponsored advertisement. It’s simply a recounting of my journey and the satisfaction (or dissatisfaction) I derived from it. Any links here are not affiliated and are used only for reference. Recently, I made a significant stride in keeping up with the latest tech trends by upgrading all of my frequently used devices to the USB Type-C standard. This transition, largely influenced by EU legislation and the pressure it put on Apple, has been a game-changer in my tech setup. ...

May 19, 2024 · 5 min · 1040 words · Andrei Sviridov

Book Review: Blindsight

Blindsight is when someone is blind and cannot consciously see things, but their brain can still sense and respond to visual information without them realizing it. Even though they are blind in some areas, their brain can still detect and react to things shown in their blind spots, without the person being aware of seeing them. This shows that there are parts of the brain that can process visual information without the person consciously perceiving it. ...

March 31, 2024 · 5 min · 951 words · Andrei Sviridov

Making a Sudoku Solver: Having no Idea What I m doing.

I’m easily addicted. Addictions change, but my current ones are Call of Duty: Modern Warfare 3 multiplayer and Sudoku. Considering the latter, I have a soft spot for the mind-numbness and peace it gives me. It’s just you, numbers, and pretty evident strategies to win. At some point, I decided that I needed to quit this ugly habit that breaks the lives of millions of people and causes family splits. I had a spare weekend and not a lot of things to do, so I decided the best thing was to make a sudoku solver. I would get a screenshot or a photo of a sudoku puzzle, parse it, solve it, render a solution, get a dopamine boost in the world of excruciating nothingness, and go on with my life. ...

March 21, 2024 · 9 min · 1842 words · Andrei Sviridov

Book Review: Essentialism

I loved reading books about how to make your life better. I adored reading productivity books. There’s a dynamic in this kind of non-fiction literature, depicting a shift from being a productive machine to a fulfilled human being, living in a mindfulness state, fulfilling her sense of meaning. The book in question is on the latter side of the spectrum. The author describes the Essentialism principles and how to apply them to your life: ...

March 10, 2024 · 2 min · 232 words · Andrei Sviridov

Anatomy of Graceful Shutdown: Part 2

Part 2: Docker Containers and graceful shutdown Part 1: Signals and Linux Part 2: Containers and signals [you’re here] 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 The previous chapter was difficult, and I assumed things would get easier along the way. Little did I know. Instead of discussing the actual graceful shutdown topic, this post will focus more on the overview of the modern state of containers application. ...

March 9, 2024 · 14 min · 2895 words · Andrei Sviridov