Saurav Singh Karmwar

Saurav Singh Karmwar

Site Reliability Engineer

I run a self-hosted Temporal platform and the PostgreSQL fleet behind it. I like finding the real cause of an incident, fixing it so it stays fixed, and writing it down.

Bengaluru, India

Projects

All projects

VPSLAB

Oct 2026

Disposable Ubuntu 24.04 servers in Docker that behave like fresh VPSes — systemd as PID 1, sshd, sudo, cron, and journald with static private IPs — for deploying and testing DevOps/SRE automation over SSH without renting machines.

DockerDocker ComposeUbuntu+4

TenantFlow

Aug 2026

Multi-tenant SaaS control plane where every tenant lifecycle operation — provision, upgrade, migrate, backup, restore, delete — runs as a durable Temporal workflow with saga compensation and a retryable DLQ.

GoTemporalPostgreSQL+6

Active-passive HA lab with nginx, keepalived (VRRP), a Go backend, and a full observability stack (Prometheus, Grafana, Loki, Alertmanager) — single-command Docker Compose deploy with an automated failover test suite.

GoNginxKeepalived+6

PatchOps

Jul 2026

A self-contained Linux patch governance platform — Aptly mirror/snapshot promotion, a custom-built AWX standalone install orchestrating everything on a schedule, and Grafana dashboards backed by a Postgres governance DB.

AnsibleAWXAptly+4

Experience

AMOGAJun 2025 – Present
    • Took workflow scheduling latency from seconds to milliseconds, and a core flow to under a second at higher load, by re-sharding the multi-node Temporal cluster with a near-instant cutover and fixing the rate limits and Go memory settings that were starving it.
    • Ended a memory and load leak in the automation worker: every script ran through exec() in a shell and was orphaned on timeout or restart. Replaced it with spawn in its own process group, a hard kill-after deadline, and group kill on cancel and shutdown.
    • Built tenctl, an internal CLI that runs Node workers as systemd services instead of PM2, with per-app cgroup CPU and memory limits, per-instance logs, OOM attribution, and restarts only for apps whose config changed.
    • Built nightly PostgreSQL maintenance as Temporal workflows: VACUUM and ANALYZE ordered by anti-wraparound risk, bounded by a time window, load and WAL guards, plus policy-driven TimescaleDB retention, every run verified and charted.
    • Moved dashboards off production databases onto scheduled snapshot tables, cutting chart loads from minutes to seconds, and led postmortems for OOM and slowdown incidents, from missing indexes to a Superset memory leak.
    TemporalPostgreSQLTimescaleDBsystemdNode.jsPythonPrometheusGrafanaApache SupersetLinux
    • Built and operate a production PostgreSQL 17 primary-replica HA cluster with async WAL streaming replication across three machines, automated failover runbooks, zero-data-loss backup/restore, and fleet-wide multi-tenant data retention via dblink and pg_cron.
    • Built an Ansible automation platform running in containerized Execution Environments (ansible-builder/ansible-navigator) with a custom-built AWX deployment, Vault-encrypted secrets, and playbooks for server bootstrap, GitHub provisioning, Elastic Agent rollout, and patch governance.
    • Deployed and maintain a custom Dockerized Apache Superset analytics platform with Hive Metastore/Trino integration, Celery background workers, and an MCP server enabling AI assistant access to dashboards.
    PostgreSQLAnsibleAWXDockerPrometheusGrafanaELK StackApache SupersetAzureLinux
    • Built "run", a schema-driven CLI (Ink/Pastel/TypeScript) for provisioning and maintaining Ubuntu dev servers with dependency-aware package installs, dry-run planning, and self-update, adopted fleet-wide via Ansible.
    • Built the monitoring stack for a Temporal + PostgreSQL deployment: Prometheus scraping PostgreSQL exporter metrics remotely from a separate replica host, visualized in Grafana with alerting.
    TypeScriptNode.jsTemporalPostgreSQLDockerPrometheusGrafanaLinuxBash

Writing

All posts

Stack

Languages
GoPythonTypeScriptBash
Platform
TemporalPostgreSQLPgBouncerTimescaleDBApache Superset
Infrastructure
LinuxsystemdDockerAnsibleAWXNginx
Observability
PrometheusGrafanaElastic Stack

Open source

GitHub
NovDecJanFebMarAprMayJunJulAugSepOct
2410 contributions in the last year
LessMore

Get in touch

Questions about reliability, Temporal or PostgreSQL, or a role you think I'd fit. Write here, or use your own mail.

sauravchp2@gmail.com