Category Archives: Scripting/coding

AI: writing an MCP server for VictoriaLogs
0 (0)

22 May 2025

In the previous article, we figured out what an MCP is in general, and created a basic MCP server that was connected to Windsurf – see AI: What is the MCP? Now, let’s try to create something more useful, for example, an MCP server that will connect to VictoriaLogs and receive some data. In fact,… Read More: AI: writing an MCP server for VictoriaLogs0 (0) »

Loading

Python: introduction to the Celery, and its monitoring configurations
0 (0)

20 May 2025

To put it very simply, Celery is something we can use to perform tasks outside of our main service. For example, there is a Backend API that has some kind of endpoint to which mobile devices send information that the user has created a new whatever in the application. The task of the Backend is… Read More: Python: introduction to the Celery, and its monitoring configurations0 (0) »

Loading

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

AWS: Lambda – copy EC2 tags to its EBS, part 1 – Python and boto3
0 (0)

13 October 2021

We have an AWS Elastic Kubernetes Service cluster, which has a few WorkerNode Groups that were created as AWS AutoScaling Groups by using the eksctl, see the AWS Elastic Kubernetes Service: a cluster creation automation, part 2 – Ansible, eksctl for more details. The WorkerNode Group configuration for the eksctl keeps a set of Tags,… Read More: AWS: Lambda – copy EC2 tags to its EBS, part… »

Loading

Git: scan repositories for secrets using Gitleaks
5 (1)

16 August 2021

A confidential data leak such as RDS keys or passwords to a Git repository, even if it is a private Github repository, is a very bad thing and it’s good to check your repositories to know if any developer pushed a commit with such data. Scanning utilities To check Git repositories for a leak, at… Read More: Git: scan repositories for secrets using Gitleaks5 (1) »

Loading

Jenkins: Redis deployment, and Helm subchart values
0 (0)

1 November 2020

The task is to create a Jenkins job to deploy Redis to Dev/Stage/Prod Kubernetes clusters. In the Redis: running Master-Slave replication in Kubernetes we did it manually to see how it’s working, now it’s time to automate it. The main question is how to pass parameters for different environments during the deployment? I’d like to… Read More: Jenkins: Redis deployment, and Helm subchart values0 (0) »

Loading

Linux: processes core dumps, systemd-coredump and Debian
0 (0)

14 March 2020

Need to get a dump from fro ma PHP process on Debian 9. In this post will take a Linux kernel mechanism to create and manage processes dumps. Kernel’s dumps are created in another way, check Kdump на Arch Wiki. Linux Core Dump The kernel will create a process dump if it performed an invalid… Read More: Linux: processes core dumps, systemd-coredump and Debian0 (0) »

Loading

Linux: PHP-FPM, Docker, STDOUT and STDERR – no an application’s error logs
0 (0)

24 February 2020

We have a Docker image with NGINX, PHP-FPM, and Supervisor. In the same image, we have our PHP application included, which outputs its errors to the /dev/stderr as per its php.ini file: … [global] error_log=/dev/stderr … The problem is, that if run kubectl logs –  there will be no error output from the application. So,… Read More: Linux: PHP-FPM, Docker, STDOUT and STDERR – no an application’s… »

Loading

PHP: PHP-FPM ignores environment variables – solutions
0 (0)

19 February 2020

We have a PHP-based application running in Kubernetes and uses settings from a /app/.env file plus environment variables. The problem is that application running in a Docker container can’t see an $TEST_VAR variable although it’s present in the Deployment: … containers: – name: application-dev-web image: bttrm-application:119 … – name: TEST_VAR valueFrom: secretKeyRef: name: bttrm-app-secret key:… Read More: PHP: PHP-FPM ignores environment variables – solutions0 (0) »

Loading