Skip to content

Add opt-in indexed search continuity - #1027

Draft
eseliger wants to merge 1 commit into
mainfrom
indexed-search-continuity
Draft

eseliger wants to merge 1 commit into
mainfrom
indexed-search-continuity

Conversation

@eseliger

Copy link
Copy Markdown
Member

Adds opt-in indexed search continuity to the chart behind indexedSearch.continuity.enabled, which defaults to false. With it off, helm template renders byte-identical manifests to main.

Continuity is a new indexed search architecture being prototyped in sourcegraph/sourcegraph: stateless indexers publish each repository's shards to object storage, webservers download them and activate new versions only once enough replicas have them, and the frontend searches each repository on exactly one ready replica. This chart change is a draft: the continuity images (zoekt-continuity-webserver, zoekt-continuity-indexer) aren't released yet.

What enabling it changes

  • indexed-search StatefulSet: one zoekt-continuity-webserver container per pod (gRPC 6070, metrics 6060) replaces zoekt-webserver and zoekt-indexserver. Readiness GET /ready, liveness GET /healthz. Keeps the PVC and rolling updates; OrderedReady and a 60 s termination grace period.
  • New indexed-search-indexer Deployment (2 replicas, emptyDir scratch) plus a headless metrics Service so Prometheus scrapes it. The old indexed-search-indexer Service for the indexserver isn't rendered.
  • indexed-search Service: Prometheus scrapes port 6060 instead of 6070.
  • frontend, worker, searcher, gitserver: get SRC_INDEXED_SEARCH_CONTINUITY_ENABLED, _REPLICAS, _ACTIVATION_TOLERANCE, _REPLICATION_FACTORS, plus indexedSearch.continuity.env.
  • Validation: replicas must not exceed indexedSearch.replicaCount; termination grace period at least 30 s.

New values are under indexedSearch.continuity (README regenerated).

Test plan

  • helm unittest .: 43 suites, 269 tests pass, including tests/indexedSearchContinuity_test.yaml (layout on and off, env, scrape ports, validation).
  • helm lint passes; helm template with continuity off is identical to main.
  • An earlier revision of this chart ran continuity in a kind cluster (3 webservers, 2 indexers) with rolling restarts and scale up/down under load.

indexedSearch.continuity.enabled replaces the zoekt-webserver and
zoekt-indexserver containers with one continuity webserver per
indexed-search pod, adds an indexer Deployment that publishes shards
through object storage, and passes the continuity settings to frontend,
worker, searcher, and gitserver. Off by default; disabled renders are
unchanged.

Amp-Thread-ID: https://ampcode.com/threads/T-597f342f-9754-47be-8f3e-3c5ffc344e41
@github-actions

Copy link
Copy Markdown

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