Introducing Onehouse Autopilot to run your data platform for you. Check out the demos

Core capabilities

Autonomous operations with Autopilot

Onehouse Autopilot automates the operational work around your data platform by going on missions. It learns the tables, flows, jobs, clusters and engines in a project, watches them, and takes on monitoring, maintenance, optimization and migration work. For each mission it lays out a plan, asks for approval before it changes anything, watches the result and reports a verdict. This chapter describes how that works.

Threads and missions

Autopilot has two ways of working. A thread is a chat. A mission is long-running work that Autopilot creates and carries through.

Thread Mission
What it is Interactive. You sit at the keyboard and take turns with Autopilot. Long-running. Autopilot plans the work, rolls it out and keeps checking the result.
Who creates it You Autopilot
How long it runs One sitting Hours or longer. Planning and rollout can take a few hours, and checking that the change holds continues after that.
Example “Why did this flow fail last night?” Optimize a table, then check for hours afterwards that the optimization gives the gain it promised.

On a thread you can ask questions, mention Onehouse tables and sources by name, and ask for one-off work such as a new flow from a Kafka topic. Autopilot asks for what it needs and does the work in the thread.

How a mission starts

There is no button to create a mission. A mission starts in one of two ways:

  1. Autopilot decides it needs one. It is notified of events on the platform and also checks the platform periodically. On each event and each check it judges whether a new mission is warranted or whether an existing mission should take its next step. Looking for tables with too many small files is an example.
  2. You ask on a thread. When an ask is bigger than a chat turn, such as a daily report or moving a Spark job to another engine, Autopilot turns it into a mission.

An ask can also be a standing one, such as “create a flow whenever a new table shows up in this source”. Autopilot saves a standing ask to memory, looks for matching work on its periodic checks, and goes on a mission when it finds some.

Autopilot plans one thing for a cluster, flow or table at a time. It does not create duplicate missions, and a maintenance mission and an optimization mission do not work on the same table or flow at the same time.

Mission types

Every mission has exactly one type. A type names one responsibility Autopilot has, and Autopilot writes the mission’s name from what the specific mission is for.

Type What it covers
Learning The knowledge Autopilot needs for its other missions, kept current as the platform changes
Monitoring Watching the platform around the clock, alerting the engineer on call and suggesting what to check
Maintenance Routine work your team does on the platform every day, one-off or recurring
Optimization Changes that make flows, jobs, clusters and tables cheaper or faster
Migration Moving a workload to another engine, platform or version, with evidence first

Each type has its own section below, with examples of when Autopilot starts a mission of that type and what the mission does.

The lines between the types are fixed:

  • Learning and monitoring missions change nothing on the platform. When one of them finds something worth changing, it proposes a maintenance, optimization or migration mission.
  • A monitoring mission only watches and alerts. A fix belongs to the engineer or to a maintenance mission. If a monitoring mission finds a flow that keeps falling behind, it can suggest a larger cluster, and the change to the cluster is separate work.
  • Rewriting a table into a better layout is optimization. Migration is for a change of engine, platform or version.
  • A root-cause analysis you want now is a thread. Analysis over a longer period, such as grouping failures across days, is a monitoring mission.

Learning missions

Learning missions keep what Autopilot knows about the project current. They read the platform and the connected tools, save what they find to memory, and propose rules for you to confirm. They change nothing on the platform. One runs at onboarding, and another starts whenever something changes: a new source or flow, a new kind of cluster, or a shift in workload.

Situation What the mission does
A source is connected or a flow is created Records how the source behaves: topic retention, schema registry format, binlog settings, and how its owner handles breaking changes. Monitoring uses this when a flow stalls.
A catalog or a query engine is connected Records which engines, jobs and dashboards read each table, so a later plan can say who is affected before anything changes.
You mention a backfill or a busy period on a thread Records the date and size, so capacity is checked before the load starts.
You state a maintenance window, a change freeze or a freshness target Proposes it as a rule for you to confirm. Every later plan follows it.

Monitoring missions

Monitoring missions watch flows, Spark jobs, table services and SQL queries, and report what they find. They need read access only. When a problem needs a person, the mission pages the engineer on call and suggests what to check. When a change is needed, it proposes a maintenance or optimization mission, and the approval happens there.

Situation What the mission does
A flow’s lag is rising against the table’s freshness target Checks the trend and whether the cluster is at its limit, and reports before the target is missed. If the flow is not catching up, it pages the engineer on call and suggests a larger cluster.
An upstream schema change breaks a flow, or a new schema version that is not backward compatible appears Reports the fields that changed and who owns the source. Where it can, it warns before the next sync fails.
A Spark job fails Compares the failed run with the last good run in Spark history, including input size, shuffle, spill and skew, and names the cause.
A flow’s checkpoint is close to falling outside the topic’s retention Warns with the time left before data ages out.

A daily readout of the platform is also a monitoring mission.

Maintenance missions

Maintenance missions make routine changes to the platform. Autopilot starts one when its own checks find work, or when a standing ask in memory matches. Each plan states what changes, why, and what Autopilot watches afterwards.

Situation What the mission does
A cluster is about to hit its memory limit, or sits at its maximum size while lag grows Proposes expanding the cluster, with an end time if the increase is temporary, then watches lag and cost and returns to the earlier setting.
A new table or Kafka topic appears in a source Checks that the table name is free, reads the schema, and after approval creates the flow and watches it until it is verified.
A flow, source or cluster has been idle and nothing reads it Lists what is idle and what it costs, and proposes stopping it.

Optimization missions

Optimization missions make flows, jobs, clusters and tables cheaper or faster. Autopilot looks for candidates continuously and ranks them. A mission records a baseline, tests one change after the owner approves, and measures the result against the baseline before it proposes a wider or recurring change.

Situation What the mission does
A growing table is made of many small files Proposes one clustering run as a test, measures queries before and after, then proposes clustering on a schedule.
A table is over-partitioned Compares layouts, states the trade-offs, and builds a parallel flow that shadows the original table into a new one to prove the result.
A cluster stays well below its maximum for weeks Proposes a smaller limit or a cheaper instance type, and measures the saving after the change.
Snowflake or Databricks also query your tables Reads the query patterns in each engine through AI Gateway and proposes a layout that fits all of them, so optimization happens in one place.

Migration missions

Migration missions help you move a workload to another engine, platform or version. You start one by asking on a thread, and Autopilot can also tell you when a newer version is available. The mission assesses the expected saving, runs the workload on the new target beside the existing one, and reports the comparison. It does not cut a workload over. What moves, and when, is your decision.

What you want to do How the mission helps
Move Spark jobs from another Spark platform, such as Amazon EMR or Databricks Runs Cost Analyzer for Apache Spark to assess what each job would save. It then replays a job on Onehouse against a clone of its output table and compares output, runtime and compute. For reference, Quanton is 3.2x faster than EMR 8.1 and 28% faster than Databricks Photon on TPC-DS at 10 TB.
Move SQL queries from Amazon Athena, BigQuery, Snowflake or Databricks SQL Moves the queries to Onehouse, for example interactive queries to Lakegres. It rewrites them where the SQL dialect differs and compares the results with the original before you switch.
Upgrade to a newer Spark version Runs your pipelines on the old and the new version side by side, for example Spark 3.5 and Spark 4, and reports any difference. Autopilot can also tell you when a newer version is out.
Upgrade to a newer Hudi or Iceberg library version Tests the upgrade in the same way, starting with one table.

How a mission runs

A mission that changes the platform goes through the same steps each time.

  1. Objective and plan. The mission states what it is trying to achieve and how. A plan includes the checks it will make first, what it will measure, how long it will watch, and the result that would make it stop.
  2. Plan approval. Nothing in the plan runs until an owner approves it.
  3. Approval of each write. Before a call that changes data or the platform, Autopilot shows the exact change and asks. You can allow it once or for the rest of the mission. A step that cannot be undone is marked as such.
  4. Rollout. Autopilot makes the change, for example by creating a flow or a clustering table service.
  5. Watch. The mission keeps reading the result. A maintenance mission that creates a flow checks its sync, commits, lag, failures, heartbeat and schema. An optimization mission compares queries against the baseline it recorded.
  6. Verdict and close. The mission writes up what happened and whether the change did what the plan said. If a measure crosses the line the plan set, Autopilot investigates and makes a recommendation, and the owner decides. The owner then closes the mission.

The mission page shows the mission’s type, its list of tasks and how far along it is, such as 4 of 5 done, and it marks a task that is blocked. Missions waiting for your input are listed together, so approvals do not get lost.

Onboarding

Only a project admin can turn Autopilot on, and Autopilot needs admin access to the project. Autopilot runs in your data plane. The admin picks the model it uses and the tools it can reach through the project’s AI Gateway, so everything operates inside your own environment.

Enabling Autopilot creates the first mission by itself: an onboarding mission of type learning. It reads only, and it does the following:

  • Lists the lakes, tables, flows, sources, clusters, Spark jobs and catalogs in the project.
  • Asks which engines, orchestrator and services you use, and checks each one with read-only calls through AI Gateway.
  • Asks for the rules it should follow. A rule is written in plain language, and an admin owner confirms it.
  • Asks for the tools it should connect. Notion, wiki pages, task trackers and PagerDuty give it context on how your team works. AWS, Databricks and Snowflake show it the rest of your data estate, including the query patterns in each engine. A tool can be left for later.
  • Offers a daily readout of the platform at a time you choose.

Threads and missions become available when the onboarding mission closes. Autopilot starts creating missions on its own only after that point.

Settings: rules, memory and tools

Autopilot Settings controls what it knows and what it may do.

Tab What it holds
General The model Autopilot uses, chosen from the models published on AI Gateway
Rules What Autopilot must follow, written in plain language and applied across the project
Memory What Autopilot has remembered, including your standing asks. You can read and edit it.
Tools The built-in tools, then the AI Gateway tools, with a control for which of them Autopilot may use
Models The AI Gateway models Autopilot is eligible to use

The built-in tools read the Onehouse project: Spark history, connector status and metrics, and the Onehouse APIs. Autopilot reaches every other tool through AI Gateway and reuses the governance already set there. Amazon Athena, AWS Glue, Databricks, Snowflake, PagerDuty and ClickUp are examples.

Identity and approvals

Autopilot acts as its own principal on the platform, with its own group, and its access is controlled the same way as any other principal’s. Each mission runs as a separate service principal and asks for the role grants it needs, so a mission can do only what it was granted for.

Approval applies to every change. The exception is an outside tool: a project admin can set an AI Gateway app, such as PagerDuty, so that Autopilot may use it without asking each time. That is how a monitoring mission pages the engineer on call in the middle of the night. Changes to clusters, tables, flows and jobs stay behind approval, and a project rule that blocks a change still applies.

Example missions

Each example follows one mission from start to finish. The figures come from a single run and will differ on your tables.

  • Monitoring. An ingestion flow fell behind during a burst of traffic. Autopilot started a mission and paged the engineer on call. As the lag grew, it suggested three things to check. The engineer raised the cluster’s maximum size, and Autopilot detected the change and kept watching. The mission closed with a summary after the lag had stayed at zero, about 80 minutes after it started. It took under three minutes of the engineer’s time.
  • Maintenance. A standing ask in memory said to create a flow whenever a new topic appears on a Kafka source. When a new topic appeared, Autopilot made sure the table name was free, read the schema from the schema registry and wrote a plan. After approval it created the flow and watched it for 30 minutes before reporting it as verified.
  • Optimization, small files. Autopilot found a table of 66 small files and proposed one clustering run as a test. The run left 10 files, and a full count used about 6 times less compute. Autopilot then proposed clustering on a schedule and watched write times against the line in its plan.
  • Optimization, table layout. An orders table was partitioned by customer, which left 2,000 partitions and 11,600 small files. Autopilot compared twelve layouts, recommended dropping the partitions, and said that single-customer lookups could get slower. It built a parallel flow that shadows the original table into a new one and watched the new table for three hours. Broad queries used 97 to 98% less task time, and a single-customer lookup used about 47 times more. Storage roughly doubles while both tables exist, and nothing is cut over: the original table stays in place.
  • Migration. A standing ask said to check the Spark jobs on Amazon EMR for ones that would run faster or cheaper on Onehouse. Autopilot assessed the jobs and suggested one to test. It cloned the job’s output table so the test never wrote to the original, replayed the same code on Onehouse, and compared row counts, contents, runtime and machine hours for both runs. It did not cut the job over. The Spark jobs chapter has the steps for moving a job.