Yogiyo Automates DB Performance Checks and Detects Risky Queries in Advance

YogiyoYogiyo·Original
Operator Bae ChangHyun

Key point

A Yogiyo DBA automated performance checks and risky-query detection across all DB clusters.

1 / 15

Details

  • A Yogiyo DBA built performance-management automation into the existing DB operations portal to check query load and execution plans across all clusters and analyze causes.
  • Daily check time was reduced from 1 hour to 15 minutes, and the system also finds risky queries and stale statistics before incidents occur and turns them into work items.
  • Automated analysis validates candidate causes against data, accesses production DBs in read-only mode, and leaves final decisions and actions to the DBA.

Daily Checks and Root-Cause Analysis

  • The system stores and compares the previous day's query load, execution plans, and DB metrics, and groups items requiring review into one Slack report per day.
  • When an alert arrives, it automatically organizes related metrics and top queries in a Slack thread, then checks operational announcements, deployment records, and other sources to identify the cause.
  • Root-cause analysis was changed to validate AI-proposed candidates against actual data; in a test of 10 cases reviewed by people, all 10 conclusions were correct, compared with 7 using the previous method. The sample is still small.

Prechecking Risky Queries and Statistics

  • Based on internal query-tuning cases, the system finds risky patterns among recent queries and uses EXPLAIN to check whether the problem can be reproduced and whether proposed improvements are safe.
  • It also checks whether statistics for index columns used by a query are missing or outdated, while the DBA decides whether to refresh actual statistics on the production DB.
  • In one query case, processing time fell from 12 seconds to 0.006 seconds after statistics were recalculated, and a table with more than 100 million rows in a similar state was found on another shard.

Event Monitoring and Future Plans

  • Before an event, the system checks the status of read-instance scaling; during the event, it flags major risk indicators for CPU, connections, and memory; after the event, it compares traffic and query records with those from previous events.
  • Records are retained for each event and used to determine the scale-up size for the next one, while check results are managed so they lead to DBA work without duplicate work items.
  • Yogiyo plans to further shorten the collection interval and gradually introduce automated responses, starting with cases where the cause is clear and the response is established.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.