Skip to main content

()

BEST PRACTICESID: 6STATUS: PUBLISHED

Scaling to 1 Million Monitors

Author
platform_team
Date
10/15/2025
Read Time
15m 00s
Tags
SCALING

> The Journey

Growing from thousands to millions of monitors required fundamental architectural changes.

- Challenges Faced

  1. Database Scaling - Query performance degraded with dataset growth
  2. Worker Management - Scheduling millions of checks efficiently
  3. Data Storage - Billions of data points per day
  4. Cost Control - Infrastructure costs scaling linearly

- Solutions Implemented

Sharding Strategy

We implemented horizontal sharding based on monitor ID ranges.

Time-Series Database

Migrated from PostgreSQL to TimescaleDB for metrics storage.

Distributed Scheduling

Built a custom scheduler using Kafka and distributed workers.

- Performance Results

Current system handles:

  • 1.2M active monitors
  • 100K checks per second
  • 10TB of metrics data per month
  • Sub-second query performance

The architecture is now designed to scale to 10M monitors without major changes.

End of log entry.
Filed Under:
#SCALING#INFRASTRUCTURE#PERFORMANCE

Related_Articles