← Back to Blog

A cold build of Chromium's chrome binary throws about 55,000 actions at your cluster. If nobody has tuned that cluster, you pay twice: your engineers sit around waiting, and so do the workers you're renting.

We build the bits that fix this. There are open-source Helm charts for Buildbarn and for Hermetiq itself, an operator that autoscales your worker pools, and Barn Owl, which reads each build's record and points at the setting that's costing you time. We aimed all of it at Chromium on our test cluster, then packed what worked into a Chromium example you can apply to your own.

Yes, this post is selling something. It's for teams that ship one big codebase and never stop changing it. Build time creeps up with every test they add, and engineers quietly burn real hours tuning tests to win it back. Nobody puts that work on a roadmap. Hermetiq offers agent and build event (BEP) query services that help maintain a codebase like that. They show where each build's time went and whether last week's change helped, and Barn Owl or your agents suggest the next change.

This is a field report, not a benchmark. The numbers come from spot nodes in a GKE test cluster on Google Cloud, with the build client on a VM in the same cloud. With the example as it ships, a cold build of chrome took about 20 minutes when the large pool started from zero and about 13 minutes when the pools were warm, over three runs each. A fully cached build took about 2 minutes, and a rebuild after a one-line change took 2 to 3 minutes.

Don't read those as Buildbarn's top speed, either. We tuned the workers until the example was solid and then stopped, well short of squeezing out the last drop. There's plenty of room left in the pool sizes, the concurrency and the node types. That's how it goes with every deployment: your builds, your nodes and your budget aren't ours, so some tuning always comes with the territory. The useful part is knowing which knob to turn next, and that's what Hermetiq and Barn Owl are for.

Horizontal bar chart of Chromium chrome build wall times on GKE spot nodes: about 20 minutes cold starting from zero large workers (including about 7 minutes of spot-node ramp-up), about 13 minutes cold with warm pools, 2 to 3 minutes for a one-line edit, and about 2 minutes fully cached.
Measured chrome wall time (~55,000 cold actions) on GKE spot nodes; the ~7-minute gap is node ramp-up.

What you get

CapabilityThe question it answersWhat you get
Buildbarn Helm chartHow do I run a remote cache and remote execution without assembling Buildbarn by hand?Frontend, scheduler, sharded storage and Browser rendered from one model, with checks that reject a bad storage layout before it deploys.
CDC storageWhy should one 736 MB binary decide how my cache is built?Since chart 1.0.0, Buildbarn stores blobs as content-defined chunks. Caches are sized for chunks, and identical chunks are stored once.
BB Worker OperatorHow many workers do I need right now?Each pool is one RbeWorker resource. The operator maintains its Deployment, its configuration and a KEDA autoscaler that follows the queue, down to zero.
HermetiqWhere did this build's time go?Every build and every remote action, with queue, input-fetch, execution and upload time by worker and pool.
Barn OwlWhich setting should I change next?Answers drawn from the build's own record and the cluster's telemetry, with the evidence attached.
BB Config EditorWhat does this Buildbarn setting do, and is my change valid?Buildbarn's Jsonnet as source or as forms, rendered and validated before it deploys, saved as Git commits you can review.
siso-bepCan I see a build that isn't Bazel?An open-source wrapper that reports a Siso build to Hermetiq the way Bazel reports its own.
Chromium exampleWhere do I start?The worker pools, Buildbarn values and client config from this post, ready to apply.

Chunks, not blobs

Chromium builds with Siso, not Bazel. Siso speaks the same Remote Execution API, so Buildbarn runs its actions without caring who sent them. What Buildbarn does notice is how big Chromium's outputs are. The chrome binary alone is 736 MB.

Buildbarn used to store every output whole, and its block-based stores can't hold a blob bigger than one block. So one fat link output got to dictate the geometry of every cache it passed through.

Version 1.0.0 of our Buildbarn chart moves storage to content-defined chunking (CDC), using Buildbarn's RepMaxCDC algorithm. Storage cuts each blob into chunks at boundaries picked from the bytes themselves, so the same stretch of data comes out as the same chunk wherever it lands in a file. Chunks go in one store, and a second, much smaller store records which chunks make up which blob. With our settings no chunk is bigger than 512 KiB.

Here's what that changed for us:

  • Caches are sized for chunks. The biggest thing a block has to hold is now a chunk, not a browser. Our 8 GiB frontend read cache runs on blocks of about 216 MiB with room to spare.
  • Workers got a new knob. A worker reads inputs chunk by chunk, and each read decompresses the chunk and checks its digest. Without a cache, that was 83% of a Chromium worker's CPU. The chart gives each worker an in-memory cache of decoded chunks, so it does that once per chunk. The default is 2,048 entries, about 0.9 GiB of a Chromium worker's heap when full. The example raises it to 4,096, which can take 2 GiB, so leave room for it.
  • Siso never noticed. Not one flag changed: the frontend reassembles blobs for clients that ask for them whole.
  • The chart won't let you mix eras. It refuses pre-CDC image tags and leftover pre-CDC files on disk, and Hermetiq's Buildbarn dashboards chart chunks and chunk mappings separately.

Chunks also make a rebuild cheaper to store. After a one-line edit, the relinked chrome shared about a third of its chunks with the old one, so storage took in about 490 MB, not 736 MB. Most of the machine code still comes out as new chunks, because the linker lays the file out again. A change that leaves the binary alone costs almost nothing: a comment in web_contents.h sent about 3,500 actions to the cluster, and storage took in 18 MB. That's two edits to one binary, so we're not going to wave a dedup ratio around.

Two-panel engineering diagram of RepMaxCDC storage and rebuild writes: the 736 MB chrome binary splits into chunks up to 512 KiB across a chunk store and chunk-mapping store with a 4,096-entry worker decoded-chunk cache, while new CAS bytes drop from 736 MB on a full link to about 490 MB on a one-line edit and 18 MB on a header comment change.
RepMaxCDC decouples cache blocks from the 736 MB binary and trims new storage writes on rebuilds.

Two pools and an autoscaler with opinions

Chromium's remote actions expect the tools in Google's public siso-chromium image, so the example declares two worker pools that run it. Each pool is one RbeWorker resource, and the BB Worker Operator turns it into a Deployment, the worker's configuration and a KEDA ScaledObject. One resource in, three out.

  • A small pool: 24 concurrent actions per pod, 1 to 12 pods, for short actions.
  • A large pool: 9 concurrent actions per pod, 0 to 28 pods, for the heavy compiles and links.

Nobody has to tell Buildbarn which actions are heavy. It finds out the hard way: the scheduler tries an action it hasn't seen in the small pool with a 60-second limit. An action that blows through the limit is rerun in the large pool, and the scheduler remembers for next time.

KEDA scales each pool on the work queued or running for it, not on CPU. A queued action uses no CPU at all, and that's exactly when you need more workers. The thresholds sit below a pod's capacity (18 of 24, and 4 of 9), so a pool asks for pods before the ones it has are full. It can add 8 pods or double every 15 seconds, and it waits five minutes before scaling down. That's deliberate: queued work blocks an engineer, and a pod that arrives early costs a few node-minutes. The large pool drops to zero between builds, and a predeclared queue in the Buildbarn chart lets a build start while the large pool is still at zero.

The example is the base. Our test environment layers one kustomize patch on top: put the pods on spot nodes with local SSD, tolerate the spot taint, cap the worker volume at 64 GiB and point the autoscaler at our metrics store. We'd split yours the same way: the example describes the pools, and your overlay says where they land.

Architecture diagram of Siso and siso-bep sending up to 800 remote jobs to Buildbarn Frontend and Scheduler, which routes unseen actions to a Small pool (class 1, 1 to 12 pods, 24 slots each) with a 60-second limit and retries longer actions on a Large pool (class 4, 0 to 28 pods, 9 slots each) scaled by KEDA on queue depth, while siso-bep and worker action logs feed Hermetiq and Barn Owl.
Size-class routing via ISCC, queue-driven KEDA scaling, and joined Siso + worker telemetry for Barn Owl.

Ask Barn Owl

Every Siso build reaches Hermetiq through siso-bep. The workers log every action they run, with its queue and execution time. So by the time you ask, Barn Owl has the whole record to read.

The question that pays best is also the laziest one. On a build that started from zero:

You: Where did this build's time go?

Barn Owl: “…the ~7-minute worker ramp-up at the start.”

We hadn't told it about the pools. It was right: new spot nodes take minutes to arrive, and the build waits for them. Most of the gap between 20 minutes and 13 is that wait.

It's no substitute for measuring. It tells you where to look, so check the answer against the timeline and the pod counts before you touch a setting.

Here are the eight slowdowns we'd check first on a Chromium build. Each row is what you'll see in the build's record, the setting that fixes it and where that setting lives, from a pool's RbeWorker to Siso's own flags.

What the record showsWhat to changeWhere it lives
The build waits at the start while pods arriveKeep a warm floor: raise minReplicas before a build, or add a KEDA cron window for working hours.RbeWorker
A pool's slots are full but its CPU isn'tRaise concurrency, and the FUSE background-task limit with it. We use 128 per slot; the kernel's default of 12 for the whole mount stalls reads under load.RbeWorker
A pool's CPU is busy and work is queued behind itAdd pods: raise maxReplicas, then check your node quota.RbeWorker, cloud quota
Too many first-time actions land in the large poolGive actions longer to prove they're small: minimumExecutionTimeout of 60 seconds, not the default 10.Buildbarn chart values
Workers idle while the build crawlsThe work is on your workstation: Siso's defaults run thousands of Chromium's actions locally. With default-remote and googlechrome, fewer than 600 do.Siso config
An action hits a deadline it never came close to running intoChromium's 2-minute remote timeout counts time in the queue, so a busy pool fails actions that run in a second. Add no-remote-timeout.Siso config
Slots sit empty in the middle of a buildSet --remote_jobs above the pools' total slots. Ours have 540, so we use 800.Siso flag
The build finishes, then spends minutes downloadingThe client fetches the outputs, and chrome alone is 736 MB. Build from a machine with a fast link to the cluster: a VM in the same cloud fetched it in under half a minute, a workstation on Wi-Fi in 3 to 8.Where the client runs

Read the config before you change it

Some of those settings live in Buildbarn's own configuration: Jsonnet spread across storage, frontend, scheduler and worker files. CDC changed its shape. A CAS used to be one backend, and now it's a chunk store, a chunk-mapping store and a parameter cache. This is not a config you want to edit from memory at 5pm on a Friday.

We work on it in the BB Config Editor. Load the cluster's ConfigMaps, or the Git repo they come from, and you get the files side by side, as Jsonnet or as forms generated from Buildbarn's schemas. From there we do three things:

  • Ask. Barn Owl has indexed Buildbarn's protobuf schemas, so a question about a field gets an answer about the config that's open.
  • Audit. Its storage audit checks block geometry, spare blocks and key-location maps, and cites the file and path behind each finding.
  • Edit. Changes render and validate before anything reaches the cluster, with errors next to the source. Then they're saved as a Git commit, with a PR review if you want one.
storage.jsonnet in the BB Config Editor. The chunk store's source is in the middle, and the Type Explorer on the right explains the field you've selected. Click to enlarge.

Why it's different

  • Build dashboards show that a build was slow. Hermetiq also has the workers' side of the story: how long each action queued, fetched inputs, ran and uploaded, and on which pod. That's what lets Barn Owl name a cause.
  • Hosted remote-execution services tune the cluster for you, in their cloud. These Helm charts are Apache-2.0 and run on your nodes, with your images and your quota. Hermetiq itself needs a license.
  • Buildbarn from the upstream examples leaves the Jsonnet, the Deployments and the autoscaling for you to assemble. The chart renders them from one model and rejects a mismatched config at install time, and a worker pool is a single resource.
  • CPU-based autoscalers react once workers are already busy. The operator scales each pool on its queue, from zero.
  • Bazel-only tools stop at Bazel. With siso-bep, a Siso build shows up in the same views.

We didn't check any vendor's current features for this post, so we haven't named one.

What it takes

  • A cluster. Kubernetes 1.32 or newer. We tested on GKE, but the charts run on any modern, conformant Kubernetes. At full size the Chromium pools want up to 40 nodes with 16 vCPUs and local SSD, so check your quota before you blame the scheduler.
  • Three Helm charts from oci://ghcr.io/hermetiq, at the versions released together: hermetiq 1.0.2, buildbarn 1.0.2 and bb-worker-operator 1.0.0, as of November 30, 2026. They sit on KEDA and the shared services the install guide lists, including PostgreSQL and a metrics store. The Buildbarn Helm chart page has the details.
  • For Chromium: merge the example's Buildbarn values, add its worker pools to your kustomize overlay and set your node pool's label.
  • On the build machine: a Chromium checkout pointed at your Buildbarn (three settings in .gclient), an output folder for a remote release build, and siso-bep so the build shows up in Hermetiq. Then one command builds chrome. The example's README has each step.
  • For Barn Owl and the BB Config Editor: both run in the Hermetiq dashboard. Barn Owl is off by default in the chart, so turn on assistant.enabled and give it a model API key.
  • What you don't need: patches to Chromium or Siso, client flags for chunked storage, an autoscaler config (the operator writes each pool's KEDA ScaledObject) or a license key to start. A 30-day trial is issued on first boot when you give a contact email.
  • One catch: a Buildbarn release from before 1.0.0 can't be converted in place. CDC storage starts empty, so plan a maintenance window, or from 1.0.1 stage fresh storage beside the old, and read the migration guide.

Or skip the list: Managed Buildbarn is the same stack with us running the barn.

Want to try it on your own cluster? The Chromium example has the worker pools, Buildbarn values and client config from this post. To see your own builds the same way, Hermetiq records Siso and Bazel builds alike, and Barn Owl will read them with you.

Related reading: