Advisor & optimization
Jarwis looks at your clusters for you and tells you what to improve: schema problems, risky configuration, slow queries, disks that will fill up, and an overall health score for the whole fleet. Advisors only advise. Nothing is changed until you review it and confirm, and anything destructive goes through an administrator approval.
| Feature | Where to find it | Engines |
|---|---|---|
| Schema advisor | Cluster → Advisor → Schema | MySQL/MariaDB, PostgreSQL, MongoDB |
| Config advisor | Cluster → Advisor → Config | All engines |
| EXPLAIN plan visualizer | Query Analytics → Plan | MySQL/MariaDB, PostgreSQL, MongoDB |
| Online schema change | Cluster → Schema | MySQL/MariaDB, PostgreSQL |
| Apply from the advisor and the before/after report | Schema advisor → Schema changes | MySQL/MariaDB, PostgreSQL |
| Capacity forecast | Cluster → Overview | All engines |
| Fleet health score | Dashboard and each cluster page | All engines |
Schema advisor
Open a cluster, choose the Advisor tab and then Schema. Jarwis scans table and index definitions and lists findings such as duplicate indexes. Counters show Critical, Warning and Info findings plus the number of tables (or collections) and indexes scanned. Use Re-scan now to refresh the results, and filter by severity or rule. Ten rules cover tables without a primary key, duplicate, redundant, unused and invalid indexes, MyISAM tables, mixed collations, table and index bloat, and MongoDB collection scans.
- Each finding shows a suggested statement with a Copy button. The statement is advice only; copying it does not run anything.
- For MySQL/MariaDB and PostgreSQL, a finding can also offer Apply via online schema change. See below.
- MongoDB findings are advice only and have no apply action.
- Other engines show the Config sub-tab only.
Config advisor
The Config sub-tab compares each node’s live engine settings against recommended values and lists the findings by severity, grouped into categories such as durability, memory, connections, replication, security, capacity, performance, maintenance and availability.
| You see | Meaning |
|---|---|
| Current / Suggested | The value in use and the value Jarwis recommends |
| Restart required | The setting only takes effect after the engine restarts |
| Drifted | The value differs from the baseline you accepted earlier |
| Apply… | Opens the parameter editor pre-filled with the suggestion. Nothing is changed until you save there |
| Change manually | Shown for settings Jarwis cannot edit for you |
EXPLAIN plan visualizer
In Query Analytics, click Plan on a query row to see its execution plan as a tree. A Raw JSON tab shows the original output.
- The costliest step is marked, and the header counts critical findings.
- Warning badges flag common problems: Full scan, Full index scan, Filesort, Temporary table, Spills to disk, In-memory sort, Join buffer, High row estimate, Estimate off, Many rows filtered out and Low selectivity.
- Only read-only statements can be explained. A statement that changes data is refused.
SELECT statements only, and you must tick a confirmation box first. Viewers cannot run it. MySQL/MariaDB and MongoDB show the estimated plan only.Online schema change
The cluster Schema tab changes tables without blocking applications. Enter the database and table, then an ALTER clause or a Full statement, and choose a tool. Press Dry run to preview, or Start to run. Past and running changes are listed under Schema changes.
| Setting | Meaning |
|---|---|
| Tool | Auto, gh-ost or pt-osc. Galera clusters use pt-osc. PostgreSQL uses CONCURRENTLY and accepts only lock-safe changes; anything else is rejected |
| Postpone cut-over | Copy the table first, then switch over when you click Cut over now (status Waiting for cut-over) |
| Pause on replica lag | Pauses the copy while replication lag exceeds the threshold (ms) |
| Pause on Threads_running | Pauses the copy while the server is busy |
| Dry run | Shows the plan, the chosen tool and pre-flight checks without changing anything |
Approval flow. Destructive changes (DROP TABLE, DROP COLUMN, DROP PRIMARY KEY and any index drop that came from the advisor) are created with the status awaiting approval and start only after an administrator approves them on the Approvals page (Open approvals jumps there). A rejected change never runs.
A change moves through awaiting approval, pending, running, optionally postponed, and ends as completed, failed, cancelled or rejected. You can Cancel a change that has not finished.
- Only one such job runs per cluster at a time; backups wait for it to finish.
- On MySQL/MariaDB the table needs a primary key or a unique key.
Apply from the advisor and the before/after report
On a schema finding that supports it, choose Apply via online schema change. Jarwis first runs a dry run and shows the plan; you confirm to create the change. A message tells you whether it started (Schema change #N started) or is waiting for admin approval. The change then appears on the Schema tab like any other.
When the change completes, its entry shows a query impact report: the average latency of the affected queries before and after, taken from Query Analytics. Where the agent collects them, rows examined per execution (and PostgreSQL buffers touched) are shown next to the latency.
Capacity forecast
The Overview tab of a cluster has a capacity card that estimates when each node’s disk will be full, based on its growth over the last 24 hours and 7 days.
- Per node: estimated days until full, with a 7-day trend line.
- Lists the fastest-growing databases and tables.
- Sample now and refresh takes a fresh measurement immediately.
The Disk Full Forecast alarm uses the same estimate: warning at 14 days and critical at 3 days. It uses your normal alert channels, silences and maintenance windows. Without enough history there is no forecast and no alarm.
Fleet health score
The Dashboard shows a Fleet health card: one score, a grade from A to F, and the clusters that need attention first. While advisors are still collecting after a start, the card shows Collecting advisors; reload a minute later.
Each cluster page has a health badge that expands into its components, each with a How to fix hint.
| Component | Weight |
|---|---|
| High availability | 25 |
| Backup | 25 |
| Open critical alarms | 15 |
| Security | 10 |
| Engine support (end of life) | 10 |
| Advisor findings | 10 |
| Config drift | 5 |
Production clusters count twice as much in the fleet score. The Dashboard also has a What changed timeline for the last 24 hours, 7 days or since your last sign-in, grouped into jobs, parameters, approvals, alarms, nodes and audit events.
API
Everything above is available to scripts with a read-scope token on /api/v1. Tokens and scopes are described in API v1 and scoped tokens.
GET /api/v1/clusters/:id/advisor/config
GET /api/v1/clusters/:id/health-score
GET /api/v1/fleet/health
GET /api/v1/fleet/changes?since=&limit=
GET /api/v1/clusters/:id/capacity