Iaroslav Kozlov Русский

Iaroslav Kozlov

Database reliability engineer

I run MySQL, Greenplum, PostgreSQL and ClickHouse clusters and build tools for AI agents: MCP servers, alert triage, a shared memory, and a second model that checks the first.

About me

I am a database reliability engineer. At work I look after databases and infrastructure and build AI tools for the team: MCP servers, bots, automatic alert triage.

Outside work I build the environment my agents work in. A second brain: a knowledge base where verified decisions are kept and found again. And a tandem: Claude writes the code, Codex checks it independently, and a dispute is settled by an experiment, not by a vote.

I live in Limassol and work in English and Russian.

  • 5+ years in infrastructure
  • 4+ years on data platforms
  • 2+ years of AI integrations

Databases

The engines I run and automate: deployment, tuning, backups, upgrades.

  • MySQL OLTP · InnoDB

    A Percona Server for MySQL cluster (8.0, then 8.4) behind ProxySQL with Orchestrator: automatic failover, reads split from writes, lagging replicas taken out of reads, asynchronous GTID-based replication. The grants and the ProxySQL rules for writes and reads are in Salt; MySQL and ProxySQL are installed through Terraform.

    Inside MySQL
  • PostgreSQL OLTP · WAL

    A PostgreSQL cluster on Patroni with etcd and HAProxy. Monitoring of vacuum and resources is automated.

    Inside PostgreSQL
  • Greenplum MPP analytics · Arenadata DB

    A Greenplum 6 cluster: PgBouncer, a standby master, resource groups, expansion with gpexpand, a standby cluster, vacuum on a schedule from CI. Rolled out by Ansible, backed up with WAL-G; tuning queries and I/O took load off the cluster.

    Inside Greenplum
  • ClickHouse Columnar · MergeTree

    An asynchronous ClickHouse cluster and ingestion into it from Kafka and RabbitMQ; part of the analytics moved here from Greenplum, from which data went to ClickHouse through external tables.

    Inside ClickHouse
  • ScyllaDB Wide-column · shard-per-core

    Provisioned on GCP with Terraform and Terragrunt; watched by the ScyllaDB Monitoring Stack, built on Prometheus and Grafana.

    Inside ScyllaDB
  • Aerospike Key-value · index in RAM

    A cluster deployed in the cloud: namespaces and their storage set up, cross-datacenter replication with XDR.

    Inside Aerospike

Data integration

Data moved between systems: MySQL changes streamed into Greenplum, changes from Kafka into MySQL, and data for analytics into ClickHouse.

  • Streaming into Greenplum CDC · Debezium · Kafka · GPSS

    I designed streaming ingestion from MySQL into Greenplum on Kafka, Debezium and GPSS.

    How the loading works
  • From Kafka into MySQL CDC · Kafka · MySQL

    A CDC connector that writes changes from Kafka topics into MySQL tables.

  • Analytics moved to ClickHouse Asynchronous ingestion

    I built asynchronous ingestion into ClickHouse from Kafka and RabbitMQ and moved part of the analytics there from Greenplum. Data went from Greenplum into ClickHouse through writable external tables of Greenplum.

    Inside ClickHouse
  • Kafka
  • Debezium
  • GPSS
  • ClickHouse
  • RabbitMQ

Infrastructure as code

Changes to infrastructure and databases go through code and validation.

  • MySQL access and ProxySQL rules SaltStack · ProxySQL

    The MySQL grants and the ProxySQL rules for writes and reads are kept in Salt.

    How the access is kept
  • Infrastructure on GCP Terraform · Terragrunt

    IAM, service accounts, networking, MySQL, ProxySQL and ScyllaDB on GCP are in Terraform and Terragrunt, including the installation of MySQL and ProxySQL.

    How the infrastructure is changed
  • Deployments to Kubernetes Argo CD · GitOps

    I deployed applications to Kubernetes through Argo CD.

    How a rollout goes
  • Deploying Greenplum 6 Ansible

    I automated the deployment of Greenplum 6 clusters with Ansible.

    Deep dive: Deploying Greenplum 6 with Ansible
  • Greenplum authentication through LDAP LDAP · TLS

    I automated LDAP authentication for a Greenplum cluster: users were put into LDAP groups by department, and the TLS certificates were issued by the admins.

  • Vault access policies

    I set up Vault policies for services and new databases.

  • Greenplum backups to S3 WAL-G · S3

    Backups of a Greenplum cluster to S3 with WAL-G.

    Deep dive: Greenplum backups to S3
  • Terraform
  • Terragrunt
  • GCP
  • Kubernetes
  • Argo CD
  • SaltStack
  • Ansible
  • Vault
  • Docker
  • Linux

Observability

Database monitoring, first-pass triage of alerts for the engineers on call, and anomaly detection with AI.

  • Automated alert triage Alertmanager · VictoriaMetrics · PMM

    I automated first-pass alert triage based on the data and configuration of Alertmanager and on metrics from PMM or VictoriaMetrics, depending on the database.

    How the triage works
  • Greenplum metrics for Prometheus Prometheus exporters

    Exporters of my own put the queries, locks and resource use of Greenplum into Grafana.

    The chapter on collection
  • Anomaly detection with AI Rolling out · statistics + LLM

    I am rolling out anomaly detection on the metrics of databases: each series is checked against its own past, findings are followed as episodes, and a language model suggests a likely cause.

    How the detection works
  • Prometheus
  • Grafana
  • VictoriaMetrics
  • PMM
  • Alertmanager
  • Zabbix

LLM integrations

I build what agents work with on infrastructure: MCP servers, a knowledge base, skills.

  • MCP tools for diagnostics MCP · Python

    I designed and wrote MCP servers and tools that let agents troubleshoot databases and infrastructure: mostly for metrics, read-only database queries, and logs from Datadog and Coralogix.

    How the tools work
  • Backstage modules Developer portal

    I implemented modules for Backstage.

  • Bots for recurring questions

    Bots answer recurring questions.

  • Knowledge base and agent skills

    A knowledge base serves diagnostics, and common techniques are packaged as agent skills.

  • MCP
  • Code mode
  • Backstage
  • Datadog
  • Coralogix
  • Claude Code
  • Codex
  • Python

Second brain

An agent forgets everything between sessions. The second brain is where what it learned stays: verified, linked, and found by the next one.

  • Notes with a status, not a chat log

    Markdown with typed front matter: project, feature and case contexts, verified knowledge, episodes of what worked and what failed.

  • Search that survives losing its vectors

    Vector and keyword results are fused by reciprocal rank. When embeddings are unavailable, keyword search answers alone.

  • An episode becomes knowledge, knowledge becomes a skill

    What worked is recorded with its evidence. What repeats is promoted to a verified note, and then to a skill agents load on demand.

  • MCP
  • Python
  • Markdown
  • Embeddings

Tandem

Claude is the coordinator and the only author of code. Codex works read-only: it researches, challenges, reviews and verifies.

  • The checker answers first

    Codex gives its own position before it sees the solution. Shown the answer first, a model tends to agree with it.

  • Read-only by construction

    Codex runs in a read-only sandbox behind a local MCP server and cannot change a file. Every change to the code has one author.

  • Evidence beats confidence

    A dispute stops after two rounds without new evidence. What can be tested is settled by an experiment.

  • Claude Code
  • Codex
  • MCP
  • Node.js

Contact

Open to work and projects in data infrastructure and tooling for AI agents. Limassol, Cyprus.

Write to me