Skip to content

Add feature flag to send Batch jobs to an alternative region - #5573

Draft
PauloVLB wants to merge 1 commit into
masterfrom
batch-regions-ff
Draft

PauloVLB wants to merge 1 commit into
masterfrom
batch-regions-ff

Conversation

@PauloVLB

@PauloVLB PauloVLB commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

b/568415381

Problem

The Batch region only comes from batch.yaml, which ships with the release. Changing it needs a prod deploy, and every deploy recreates all long-lived VMs. During a stockout that's exactly what we can't do, since some of those VMs may not come back.

Solution

New feature flag, batch_alternative_region:

  • string_value: the region, e.g. us-east1.
  • value: share of new Batch jobs to send there, from 0 to 1. Required.

When it's enabled, _get_subconfig sends that share of jobs to the region. The network and subnetwork come from a new alternative_region section in batch.yaml, with {region} filled in. The region is load-checked like the others. If it's full or the section is missing, jobs wait. There's no automatic fallback. The flag is cached for a minute.

With the flag off (the default), nothing changes.

Config side: go/clusterfuzz-config-pr/412

Validation

TODO

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant