MySQLDev & Eng

Content type: Concept

5 min read

Sixta AI agent diagnoses MySQL failures using only PMM data

Percona published a test of the Sixta agent on November 23, 2026, which uses data already collected by Percona Monitoring and Management to investigate MySQL problems the way a DBA would.

Article · Dev & Eng
Reading
5 min
Tables
1

Percona published a test of the Sixta agent on November 23, 2026, which uses data already collected by Percona Monitoring and Management to investigate MySQL problems the way a DBA would.

Percona published a test report on Sixta on November 23, 2026, an artificial intelligence agent that aims to investigate database problems the way a DBA would: reading metrics, correlating events over time, and producing a conclusion with probable cause, evidence, and severity. The experiment, authored by Alok Pathak, drew attention because it doesn't depend on direct access to the database: Sixta works exclusively with what is already in Percona Monitoring and Management (PMM), an observability tool.

For those who live by execution plans and by trusting (or distrusting) metrics, the central point isn't the promise of "AI that fixes databases." It's narrower and more interesting: what can be inferred about a MySQL incident by looking only at what PMM collects, without running a single query on the affected server?

How Sixta is built

The agent runs as two processes on the PMM host itself, with nothing installed on the database servers. sixta-mcp-tools is a read-only tool server, exposed via Model Context Protocol, with functions such as pmm_get_query_analytics, pmm_query_metrics, and pmm_get_alerts. It authenticates to PMM with a viewer role token and never stores database credentials.

sixta-backend is the investigation engine: it keeps a causal memory of previous investigations on each database and triggers the model (Claude, via Anthropic's API, by default) to decide which diagnostic tools to call. A sixta-relay bridges to Slack, where Percona's team talked to the agent by mentioning @sixta. Each investigation has a ten-minute budget and ends in a fixed format: what happened, probable cause, evidence, severity, and whether action is needed.

For a DBA trained in the discipline of least-privilege access, this design matters more than the result of any single test: it's the difference between giving an AI a read token over telemetry and giving it a connection string with write privileges on the production database.

The test environment

Percona set up a dedicated environment with Percona Server for MySQL 8.0 in a primary-replica topology (db1 and db2), each server with 2 vCPUs and 4 GB of RAM, plus a monitoring server hosting PMM and the Sixta agent. Sixta could only see what PMM exposes: no direct SQL, no MySQL error log, no operating system access.

Five scenarios were deliberately triggered:

ScenarioWhat was doneObserved symptom
1Sysbench load with 8 threads on db1Spike in Threads_Running
2innodb_flush_log_at_trx_commit from 2 to 1 and sync_binlog from 1000 to 1Throughput dropped from ~6,000 to ~4,000 QPS
3Dropped the primary key of sbtest1 on the replicaGrowing replication lag
4Open transaction on db1, without commitGrowth in InnoDB's history list length
5read_only=1 in db1's my.cnf and restartError 1290 on application writes

What the agent got right

In scenario 2, Sixta identified the change in innodb_flush_log_at_trx_commit and sync_binlog by looking at the exporter's variable metrics, cross-referenced it with the spike in InnoDB fsyncs (from ~10/s to ~500/s), and with the increase in iowait alongside a drop in user CPU usage. The conclusion, that the server was bottlenecked on disk flushing rather than lacking CPU, is exactly the kind of reasoning that separates a correct diagnosis from a guess. The agent also pointed out the trade-off of reverting the configuration: up to one second of committed transactions could be lost in the event of a crash.

In scenario 3, perhaps the most revealing for anyone dealing with replication, Sixta found in the replica's Query Analytics the ALTER TABLE that removed the primary key from sbtest1, confirmed that the command only ran on db2, and explained the mechanism: without a primary key, row-based replication has to scan the entire table for every replicated change. The numbers cited (~400,000 rows read per second, the application dropping from ~300 to 7 transactions per second) support the cause pointed out, not just describe it.

Scenario 4 shows the method's elegant limit: the agent couldn't see the open transaction directly, since that would require querying information_schema.INNODB_TRX, something outside PMM's reach. Instead of guessing, it ruled out the heavy-load hypothesis (stable write rate, constant connections) and concluded, by elimination, that the purge was blocked by an old read. It handed the DBA the right query to run and confirm.

Confirmed, history list length on db1 was near zero all day, ran at a healthy 50-300 after the sysbench-style read/write workload on the sbtest* tables started at 18:37 UTC, then went into runaway growth at ~19:30 UTC.

Sixta, AI agent, in a response reproduced in Alok Pathak's report (Percona)

Where the agent stopped

The report is direct about the two situations in which Sixta didn't close the investigation on its own: identifying which specific transaction was blocking the purge, and determining whether the restart in scenario 5 was deliberate or a crash caused by lack of memory. In both cases, it pointed to the right check (querying INNODB_TRX, reviewing the error log and journalctl) instead of forcing a conclusion without sufficient evidence.

This is the point that matters most to anyone deciding whether to adopt a tool like this: Sixta was transparent about the limits of its own visibility. An agent that always has the right answer for everything is more dangerous than one that sometimes says "I don't know, check this."

What changes for database administrators

For teams already running PMM, Sixta doesn't replace execution plans or careful metric reading: it speeds up the first pass over an alert, building a timeline with evidence in minutes, something that normally consumes a good part of an incident's triage time.

The real gain is in the automatic correlation between metrics, configuration, Query Analytics, and alerts, a task that requires the DBA to open several PMM screens at the same time. The risk is treating the agent's output as a final verdict without running the check it suggests itself, especially when the answer comes marked as inference.

Percona explicitly recommends using Sixta as a "first investigator," not as the final word, and suggests formulating follow-up questions to deepen the diagnosis, since the agent keeps causal memory between investigations on the same database. It remains an open question how the model behaves in more complex topologies, with multiple replicas, sharding, or Galera clusters, and what the operational cost is of running this continuously against a production PMM monitoring many databases.

Translated from the Brazilian Portuguese original · Read the original