Key Metrics Track to Ensure the Health and Performance of a Distributed System

CK CK 3788 
Created at  
181 0 0

The Four Golden Signals (User-Facing Performance)

Originally defined in the Google SRE Handbook, these metrics provide a high-level view of system health from the perspective of the end-user.

 

 

1) Latency

The time it takes to service a request. It is critical to measure the latency of successful requests separately from failed requests.

  • Key Percentiles (p50, p90, p95, p99): Do not rely on averages, as they mask outliers. A p99 latency of 2 seconds means 1% of your users (which could be millions) are experiencing severe delays.
  • Database Query Latency: Time taken to execute read/write operations.
  • Downstream Dependency Latency: Time spent waiting for third-party APIs or internal microservices to respond.

 

2) Traffic

A measure of how much demand is being placed on your system.

  • Throughput (RPS/QPS): Requests Per Second or Queries Per Second.
  • Concurrent Connections: The number of active sessions or open TCP connections.
  • Data Bandwidth: Input/output bytes per second moving through the network.

 

3) Errors

The rate of requests that fail, either explicitly (e.g., HTTP 500), implicitly (e.g., HTTP 200 but with an empty/wrong payload), or by policy (e.g., a request that took longer than a specified SLA timeout).

  • Error Rate: Percentage of total requests that result in errors.
  • HTTP Status Codes: Monitoring the distribution of 4xx (client-side) and 5xx (server-side) errors.
  • Exception Count: Frequency of unhandled exceptions logged by the application.

 

4) Saturation

A measure of how "full" your service is. It points to the most constrained system resources and acts as a leading indicator of performance degradation.

  • Thread/Worker Pool Saturation: The percentage of available execution threads currently in use.
  • Database Connection Pool Utilization: The ratio of active DB connections to the maximum limit.
  • Memory/Disk Saturation: How close the system is to running out of physical limits.

 

Key Metrics Track to Ensure the Health and Performance of a Distributed System


 

Infrastructure & Resource Metrics (The USE Method)

The USE Method (Utilization, Saturation, and Errors) focuses on system hardware and OS-level resources to identify bottleneck causes.

 

1) CPU Metrics

  • CPU Utilization: The percentage of CPU capacity currently being used.
  • CPU Steal Time: In virtualized/cloud environments, the time a virtual CPU waits for a physical CPU (indicates "noisy neighbors").
  • CPU Throttling: Especially relevant in containerized environments (like Kubernetes), where CPU limits can cause container execution to be intentionally slowed down.

 

2) Memory Metrics

  • Memory Utilization: Percentage of RAM utilized.
  • Swap Usage: Indicates that physical RAM is fully utilized and the system is reading/writing to slower disk space.
  • OOM (Out Of Memory) Kills: Events where the OS kernel terminates processes to free up memory.

 

3) Disk and Storage I/O

  • IOPS (Input/Output Operations Per Second): The number of read/write operations.
  • Disk Queue Length: The number of outstanding I/O requests waiting to be serviced.
  • Disk Space Utilization: Remaining storage capacity. Running out of disk space often causes database and logging writes to fail immediately.

 

4) Network Metrics

  • Bandwidth Usage: Network interface throughput (In/Out bytes).
  • Packet Loss and Retransmissions: High retransmissions indicate network congestion or faulty hardware.
  • Socket Allocation: Number of open sockets in states like TIME_WAIT or ESTABLISHED.

 

Key Metrics Track to Ensure the Health and Performance of a Distributed System

 


 

Distributed System Specific Metrics

These metrics focus on the complexities unique to distributed architectures, such as state synchronization, messaging, and consensus.

 

1) Replication Lag

  • Database Replication Lag: The time delay between data being written to the primary/leader node and being copied to replica/follower nodes. High lag compromises read-your-own-writes consistency.
  • Kafka/Messaging Consumer Lag: The gap between the latest produced message and the last processed message by a consumer group. High lag indicates processing bottlenecks.

 

2) Queue and Message Broker Metrics

  • Queue Depth / Message Backlog: The number of messages waiting to be processed in queues (e.g., RabbitMQ, SQS).
  • Dead Letter Queue (DLQ) Size: The rate of messages failing processing and being routed to the DLQ.
  • Message Processing Duration: The time it takes for a worker to successfully process a single message from the queue.

 

3) Consensus and Clustering Metrics

  • Leader Elections: The frequency of leader changes in systems using consensus protocols (e.g., Raft, Paxos, ZooKeeper). Frequent elections signal network instability or node crashes.
  • Cluster Membership (Node Count): Number of active, healthy nodes vs. dead nodes in a cluster.
  • Network Partition Events (Split-Brain): Detection of cluster fragmentation where sub-clusters lose contact with each other.

 

4) Garbage Collection (GC)

  • GC Pause Time (Stop-the-World): The duration for which application execution is halted to free memory (crucial for JVM, Go, and .NET applications). Long pauses mimic node crashes and trigger false-positive failovers.
  • GC Frequency: How often garbage collection cycles occur.

 

Key Metrics Track to Ensure the Health and Performance of a Distributed System



 

Resiliency and Reliability Metrics

These metrics measure how well the distributed system handles faults, self-heals, and conforms to service agreements.

 

1) Circuit Breaker States

  • Tripped/Open Circuits: How often circuit breakers open to stop traffic to failing downstream dependencies.
  • Half-Open Duration: The frequency of attempts to probe if a failed downstream dependency has recovered.

 

2) Retry and Rate Limiting Rates

  • Retry Storms: The volume of automatic retries. High retry rates can act as a self-inflicted Distributed Denial of Service (DDoS) on downstream components.
  • Throttled Requests (HTTP 429 / Rate Limit Hits): The number of requests rejected by API gateways or rate limiters to protect system capacity.

 

Key Metrics Track to Ensure the Health and Performance of a Distributed System

 

Service Level Objectives (SLOs) and Error Budgets

  • Service Level Indicators (SLIs): The quantifiable compliance rate of your service (e.g., "99% of requests responded to in < 200ms").
  • Error Budget Consumption Rate: How fast the system is burning through its allowed unreliability quota over a 30-day window. This dictates whether to prioritize feature development or stability.

Key Metrics Track to Ensure the Health and Performance of a Distributed System

Tags Application Performance Cloud Monitoring Distributed Systems Latency And Throughput Microservices Monitoring Observability Performance Monitoring SLO SRE Metrics Service Level Objectives System Health System Metrics Facebook X
Comments 0
Similar posts
  1. Collecting Proof-of-Play from 100,000 Screens
    152
  2. Ad Tech Idempotency: Engineering for Reliability and Scale
    367
  3. Predictable Ad Spend: Architecting Pacing at Hyperscale
    427
  4. Ad Indexing at Hyperscale: 100,000 Campaigns in Under 5ms
    295
  5. Real-Time Inventory & WMS System Design
    250
  6. Enterprise-Scale 100k+ TPS Order Tracking System Architecture
    210
  1. Cloud-Native Capital Markets: Architecture, Compliance, and Innovation
    218
  2. Add New Address to gmail without SMTP (forwarding-only-address)
    1,698
  3. Registering an App on the Google Play Store
    1,480
  4. AGENT.md: AI's Blueprint for Robust Software and Vibe Coding
    563
  5. Tailscale: Zero-Config Remote Access to Your Home PC, Firewall-Free
    538
  6. Markdown's Visual Revolution: Meet Mermaid.js
    417
  7. Viewing Git Graph in ASCII
    600
  8. Vibe Coding: Harmonizing Intent with AI Productivity
    505
  9. How do I change the theme for code block in Confluence Cloud?
    1,395
  10. FIPS - Federal Information Processing Standards
    1,402
  11. Simplify Your Workflow: Switching Git Profiles Automatically by Folder
    759
  12. How to Control External Monitor Brightness, Sound Volume on a Mac with MonitorControl (Even Over HDMI)
    2,407
  13. Building Multilingual Applications with i18n
    1,207
  14. Kiro versus Cursor AI - Spec-Driven? or Chat-Driven?
    408
  15. How to use multiple RSA (SSH) keys for GitHub
    337
  16. REST API Vs. GraphQL
    413
  17. Project Libre similar to MS Project
    532
  18. Learning about Firestore: Architecture, Pros, Cons, and Real-World Deployments
    172
  19. Building Privacy-First Infrastructure: Network Isolation + Zero Trust for GDPR Compliance
    298
  20. Why supabase is not safe for the Fintech project?
    862
  21. The Ultimate Data Engineering Roadmap
    1,082
  22. Nine Types of Testing while we develop APIs
    519
  23. Apache Kafka - a distributed, fault-tolerant, high-throughput streaming platform
    618
  24. Comprehensive Software Development Flow : How Companies Ship Code To Production
    2,334
  25. DeepSeek v3 offers of ChatGPT's performance at 1/10 the price!
    639
  26. Difference between CPU and GPU - Why GPU is faster than CPU?
    809
  27. gRPC - Open-source Universal RPC Framework developed by Google
    770
  28. Exploring the Depths of Data Transfer: sendfile vs. kTLS
    1,326
  29. How Netflix Ensures Smooth Streaming with Open Connect CDN
    2,134
  30. Public DNS (Domain Name Service) based on IPv4, IPv6 widely used
    1,247
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    29
  2. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    55
  3. Why SPF and DKIM Are Essential for Linux Email Servers?
    49
  4. How do I create animated background for Google Meet?
    22,874
  5. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    271
  6. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    103
  7. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    168
  8. Array of arguments passed to script in PHP
    97
  9. Invalid Auction Storms in Ad Tech
    106
  10. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    207
  11. The Two Clocks of Ad Server Architecture
    77
  12. Frequency Cap Architecture Overview
    526
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    302
  14. What is RedisVL?
    114
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    246
  16. TPU & GPU Cluster Management Tools
    257
  17. The Concept of Scaffolding in AI Agents
    244
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    596
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    267
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    353
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    206
  22. Machine Learning: Training vs. Ranking
    229
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    228
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    202
  25. Designing a Data Curation System Around a Vector Database
    230
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    671
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    200
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    232
  30. Understanding Data Lineage
    271