Python: introduction to @decorators using FastAPI as an example
0 (0)

19 May 2025

The last time I’ve used decorators in Python about 10 years ago, in Python 2, and I want to refresh my memory a bit, because now I’ve started using them quite actively, so want to see how it works under the hood, and what it is in general. The post turned out a bit… weird?… Read More: Python: introduction to @decorators using FastAPI as an example0 (0) »

Loading

Kubernetes: find a directory with a mounted volume in a Pod on its host
0 (0)

18 May 2025

We have an AWS Elastic Kubernetes Service with the VictoriaMetrics stack deployed (see VictoriaMetrics: deploying a Kubernetes monitoring stack). I need to migrate the data from the old VMSingle Pod to the new one on the new cluster, and to do this, I need to find VMSingle’s data on an EC2. Note: regarding the migration… Read More: Kubernetes: find a directory with a mounted volume in a… »

Loading

Nexus: Configuring Docker proxy repository, and ContainerD in Kubernetes
0 (0)

17 May 2025

I wrote about launching Nexus in the Nexus: launch in Kubernetes, and PyPI caching repository configuration post, now I want to add Docker image caching to PyPI, especially since Docker Hub introduces new limits from April 1, 2025 – see Docker Hub usage and limits. We’ll do it as usual: first run manually locally on… Read More: Nexus: Configuring Docker proxy repository, and ContainerD in Kubernetes0 (0) »

Loading

Nexus: launch in Kubernetes, and PyPI caching repository configuration
0 (0)

17 May 2025

In Kubernetes, we run GitHub Runner for the build and deploy of our Backend API, see GitHub Actions: Running Actions Runner Controller in Kubernetes. But over time, we noticed that there was too much traffic on the NAT Gateway – see VictoriaLogs: a Grafana dashboard for AWS VPC Flow Logs – migrating from Grafana Loki.… Read More: Nexus: launch in Kubernetes, and PyPI caching repository configuration0 (0) »

Loading

Arch Linux: mount LVM partitions and run mkinitcpio
0 (0)

15 April 2025

It’s not often, but sometimes I need to boot the system from a USB and rebuild initramfs-linux.img. This post is more of a quick note to myself on how, what, and where to mount on my laptop to run mkinitcpio, as I have LVM partitions, separate disk partitions for /boot, and swap. iwctl and WiFi… Read More: Arch Linux: mount LVM partitions and run mkinitcpio0 (0) »

Loading

PostgreSQL: using EXPLAIN and setting up “auto_explain” in AWS RDS
0 (0)

12 February 2025

I have already mentioned the EXPLAIN feature in the PostgreSQL: AWS RDS Performance and monitoring blog post, but this is such an interesting and useful thing that it’s worth talking about it separately. In addition, AWS RDS for PostgreSQL has the ability to enable Execution Plans logging with EXPLAIN, which is also useful for monitoring… Read More: PostgreSQL: using EXPLAIN and setting up “auto_explain” in AWS RDS0… »

Loading

PostgreSQL: AWS RDS Performance and monitoring
0 (0)

10 February 2025

We are migrating our Backend API from DynamoDB to AWS RDS PostgreSQL, and several times RDS crashed. Actually, given that we took db.t3.small with two vCPUs and two gigabytes of memory to save money, it was quite expected, but I wondered why everything was crashing. A few days later, I started to debug the issue,… Read More: PostgreSQL: AWS RDS Performance and monitoring0 (0) »

Loading

VictoriaLogs: creating Recording Rules with VMAlert
0 (0)

11 January 2025

We continue the migration from Grafana Loki to VictoriaLogs, and the next task is to transfer Recording Rules from Loki to VictoriaLogs and update the alerts. Recording Rules and integration with VMAlert were brought to VictoriaLogs relatively recently, and I haven’t tested this scheme yet. Therefore, we will first do everything by hand to see… Read More: VictoriaLogs: creating Recording Rules with VMAlert0 (0) »

Loading

Kubernetes: a single AWS Load Balancer for different Kubernetes Ingresses
0 (0)

21 December 2024

One day, we looked at our AWS costs on AWS Load Balancers, and understood that we needed to decrease the spends a bit. What we wanted was to have one LoadBalancer, and through it to route requests to different Kubernetes Ingresses and Services in different Namespaces. The first thing that came to mind was either… Read More: Kubernetes: a single AWS Load Balancer for different Kubernetes Ingresses0… »

Loading

Nexus: running in Kubernetes, and setting up a PyPI caching repository
0 (0)

21 December 2024

We run GitHub Runners in Kubernetes to build and deploy our Backend API, see GitHub Actions: running the Actions Runner Controller in Kubernetes. But over time, we noticed that there was too much traffic on the NAT Gateway – see VictoriaLogs: a Grafana dashboard for AWS VPC Flow Logs – migrating from Grafana Loki. The… Read More: Nexus: running in Kubernetes, and setting up a PyPI caching… »

Loading