Skip to content

Right-size search service memory allocation from 51.6 GB to 24 GB - #9560

Open
sigurdm wants to merge 3 commits into
masterfrom
right-size-search-memory
Open

Right-size search service memory allocation from 51.6 GB to 24 GB#9560
sigurdm wants to merge 3 commits into
masterfrom
right-size-search-memory

Conversation

@sigurdm

@sigurdm sigurdm commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Reduces resources.memory_gb in search.yaml from 51.6 to 24.

Rationale

search.yaml previously requested 51.6 GB of RAM (the maximum 6.45 GB/core limit for 8 vCPUs on GAE Flex).

Cloud Monitoring telemetry (guest/memory/bytes_used with state="used") over the last 6 weeks (July 21 – September 01, 2026; 12,132 data points across all instances) shows:

  • Resting baseline: ~8.5–10.0 GB
  • 6-week average: 15.09 GB
  • 6-week peak: 19.32 GB (observed August 30 during dual-isolate index renewals)
  • Unused allocation: ~32.3 GB (62.5% of allocated memory is unused)

Sizing to 24 GB provides a +4.68 GB (+24%) safety buffer above the highest recorded index renewal peak.

@sigurdm

sigurdm commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Here is the 6-week memory chart across all production search instances.

pub.dev search 6-week memory telemetry

@sigurdm
sigurdm requested a review from jonasfj September 1, 2026 13:24
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