Skip to content

fix(infra): multi-zone L4 placement for model MIG - #5

Merged
rryoung98 merged 2 commits into
mainfrom
feat/infra-zones
Aug 12, 2026
Merged

fix(infra): multi-zone L4 placement for model MIG#5
rryoung98 merged 2 commits into
mainfrom
feat/infra-zones

Conversation

@rryoung98

Copy link
Copy Markdown
Contributor

us-central1-a had no L4 capacity (ZONE_RESOURCE_POOL_EXHAUSTED). MIG now distributes across a/b/c. Applied: MIG+LB chain recreated, gateway unchanged.

Copilot AI lite review requested due to automatic review settings August 12, 2026 04:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the Terraform configuration for the vLLM regional MIG to place instances across multiple zones in us-central1, mitigating L4 GPU capacity exhaustion in a single zone while keeping the existing MIG + internal LB architecture intact.

Changes:

  • Introduces a new model_zones variable to define eligible zones for the model MIG.
  • Updates the regional MIG to use distribution_policy_zones from var.model_zones instead of a single var.zone.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
infra/variables.tf Adds model_zones variable to control multi-zone placement for the model MIG.
infra/model.tf Switches the regional MIG distribution policy from single-zone to multi-zone.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread infra/variables.tf
Comment on lines +16 to +20
variable "model_zones" {
description = "Zones the model MIG may use; spread wide since L4 capacity varies by zone."
type = list(string)
default = ["us-central1-a", "us-central1-b", "us-central1-c"]
}
Comment thread infra/model.tf Outdated
target_size = var.model_replicas

distribution_policy_zones = [var.zone]
distribution_policy_zones = var.model_zones
@rryoung98
rryoung98 merged commit c44ca3c into main Aug 12, 2026
1 check passed
@rryoung98
rryoung98 deleted the feat/infra-zones branch August 12, 2026 05:22
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.

2 participants