Incident Library
Applied filters Root causeConfiguration changeComponentDatabase failover managerOrganisationHatenaClear allEvery case under the filters, with no sentence; newest first.
Suggested filters Search, and the values found in your words appear here.

Graph

  • Root cause
  • Component
  • Symptom
  • Contributing factor
  • Case

Cases1 case

1 to 1 of 1

  1. Symptoms

    On 26 September 2018 at 10:51 JST the whole Mackerel monitoring service stopped working properly and its alive monitoring stopped. The application servers could not connect to Redis, which stores Mackerel's monitoring data, and could not return correct responses.

    Trigger

    Redis memory use had been growing, so operators set up replication in order to scale Redis up. Building the replication took a long time and Redis stopped answering for a while, and keepalived treated this as a node failure and started a failover nobody intended.

    Root cause
    Component
    Contributing factor
    Remediation
    • Switched back to the correct Redis and briefly saw the application return
    • Restarted the application servers one after another, which did not improve the symptoms
    • Detected the organizations posting inappropriate metrics and blocked their requests
    • Adjusted the timeout interval of the application servers
    • Temporarily added capacity to Diamond, the TSDB
    • Increased the number of Kinesis shards and Redis Cluster shards
    • Scaled out the API application servers
    • Put Mackerel in maintenance mode, checked it internally and let outside requests back gradually
    Action items
    • Raise the number of keepalived health checks for Redis so a brief load increase does not trigger a failover
    • Scale Redis up
    • Add more application servers
    • Change the application to store only the monitoring data it needs in Redis, reducing Redis memory use
    • Build a way to detect inappropriate API requests quickly and show them on a dashboard
    • Build a function to block organizations making inappropriate requests quickly
    • Keep improving the accuracy of detecting inappropriate requests and consider adding features such as an API limit
    • Strengthen monitoring of the application servers' internal processing so problems are handled before they become outages
    Lessons

    Hatena did not find why recovery took so long, but expects that keeping failover from reacting to short load spikes and giving the application more performance headroom would prevent an outage this long. It also aims to keep problems contained to a small part of the service when a failure does happen.

Check your cluster for this

This case involves In-memory cache and Database replication. kubegap audits a Kubernetes cluster for gaps like these, read-only, from Claude Code or Codex; its checks cite public reports like the ones in this library.

By root cause1