Skip to content

searcher: add autoCacheSize opt-in to auto-size disk cache - #917

Merged
michaellzc merged 1 commit into
mainfrom
michaellzc/searcher-cache-optin-flag
Aug 6, 2026
Merged

searcher: add autoCacheSize opt-in to auto-size disk cache#917
michaellzc merged 1 commit into
mainfrom
michaellzc/searcher-cache-optin-flag

Conversation

@michaellzc

Copy link
Copy Markdown
Member

Adds a searcher.autoCacheSize flag (default false) that, when enabled, omits the hardcoded SEARCHER_CACHE_SIZE_MB/SYMBOLS_CACHE_SIZE_MB env vars so searcher auto-sizes its cache to ~45% of the live cache volume. Today those env vars are frozen to the initial storageSize and never follow later PVC expansion, so instances whose searcher disks have been live-resized (e.g. to 2TiB) still use only ~11GB of cache; this flag lets the binary track the actual expanded disk. Existing instances are unaffected until they opt in. Also regenerates the chart README and adds a CHANGELOG entry.

Checklist

Test plan

Rendered the searcher StatefulSet both ways with helm template: default (autoCacheSize: false) still emits SEARCHER_CACHE_SIZE_MB/SYMBOLS_CACHE_SIZE_MB ("11700"), and --set searcher.autoCacheSize=true omits both env vars while leaving CACHE_DIR intact. Confirmed ./scripts/helm-docs.sh produces no further diff.

🤖 Generated with Claude Code

@michaellzc
michaellzc enabled auto-merge (squash) August 6, 2026 00:30
@michaellzc
michaellzc requested a review from a team August 6, 2026 00:30
Add a `searcher.autoCacheSize` flag (default false) that suppresses the
hardcoded `SEARCHER_CACHE_SIZE_MB`/`SYMBOLS_CACHE_SIZE_MB` env vars. When
enabled, searcher auto-sizes its cache to ~45% of the live cache volume,
tracking PVC expansion instead of staying frozen to the initial storageSize.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@michaellzc
michaellzc force-pushed the michaellzc/searcher-cache-optin-flag branch from e53b03c to ccb0243 Compare August 6, 2026 04:57
@michaellzc
michaellzc merged commit b865c7a into main Aug 6, 2026
5 checks passed
@michaellzc
michaellzc deleted the michaellzc/searcher-cache-optin-flag branch August 6, 2026 04:58
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