Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
feat(helm): add a tested high-availability values composition (#274)
Krisztian Gajdar0560f017155f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 62c915b18..8c8d857ea 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -171,9 +171,15 @@ jobs:- run: mise run helm -- template --set payloadStore.enabled=false >/dev/null- name: Render public cloud overlaysrun: |- for values in values-aws.yaml values-gke.yaml values-aks.yaml values-ack.yaml; do+ for values in values-aws.yaml values-gke.yaml values-aks.yaml values-ack.yaml values-ha.yaml; domise run helm -- template -f "deploy/helm/sie-cluster/${values}" --set payloadStore.enabled=false >/dev/nulldone+ - name: Render the provider-plus-HA composition+ run: >-+ mise run helm -- template+ -f deploy/helm/sie-cluster/values-aws.yaml+ -f deploy/helm/sie-cluster/values-ha.yaml+ --set payloadStore.enabled=false >/dev/null- run: |destination="$(mktemp -d)"mise exec -- helm package deploy/helm/sie-cluster --destination "$destination"diff --git a/deploy/helm/sie-cluster/README.md b/deploy/helm/sie-cluster/README.mdindex f0beb9ad1..2ad6ad857 100644--- a/deploy/helm/sie-cluster/README.md+++ b/deploy/helm/sie-cluster/README.md@@ -640,6 +640,24 @@ For emergency or legacy static namespaces that are not backed by eithergate. Prefer declaring static pools instead, so capped/dynamic pools keep theirfail-closed isolation behavior.+### High availability in one file++`values-ha.yaml` is the tested composition of the durability knobs below with+a replicated broker and a second gateway: two gateway replicas, a three-member+NATS cluster with a JetStream file store per member, and file-backed work-queue+streams replicated across all three. Layer it under a provider overlay:++```bash+helm install sie deploy/helm/sie-cluster \+ -f deploy/helm/sie-cluster/values-aws.yaml \+ -f deploy/helm/sie-cluster/values-ha.yaml+```++It does not make `sie-config` redundant; that service stays at one replica by+template design until the chart provides leader election. And because a live+stream's storage type cannot be changed, apply it to a fresh install or convert+the streams during a maintenance window as described below.+### Work-queue durability (memory vs file storage)The work queues ship **memory-backed and single-replica**, which is the onlydiff --git a/deploy/helm/sie-cluster/values-ha.yaml b/deploy/helm/sie-cluster/values-ha.yamlnew file mode 100644index 000000000..106fc9f2b--- /dev/null+++ b/deploy/helm/sie-cluster/values-ha.yaml@@ -0,0 +1,47 @@+# High-availability composition for sie-cluster.+#+# The chart's defaults are a single-node topology: one gateway, one NATS+# server, and memory-backed, single-replica work-queue streams. That serves a+# demo well and loses every queued item when the NATS pod restarts. This file+# turns on the pieces the chart already supports for a replicated queue, in+# the combination the gateway-deployment template validates together:+#+# * two gateway replicas (autoscaling can raise this further);+# * a three-member NATS cluster with a JetStream file store on each member;+# * work-queue streams created file-backed and replicated across all three,+# so a broker restart or a single-member loss keeps queued and in-flight+# work.+#+# Layer it under a provider overlay:+#+# helm install sie deploy/helm/sie-cluster \+# -f deploy/helm/sie-cluster/values-aws.yaml \+# -f deploy/helm/sie-cluster/values-ha.yaml+#+# Two things it deliberately does not do. The sie-config service stays at one+# replica: the config-deployment template pins that count because a second+# writer needs leader election and a single-writer epoch file, which the chart+# does not provide yet. And `queueRouting.streamStorage` cannot be changed on+# an existing stream: apply this file to a fresh install, or drain the pools+# and delete the work-queue streams during a maintenance window first (see the+# README's "Work-queue durability" section).++gateway:+ replicas: 2++nats:+ config:+ cluster:+ enabled: true+ replicas: 3+ jetstream:+ enabled: true+ fileStore:+ enabled: true+ pvc:+ enabled: true+ size: 10Gi++queueRouting:+ streamStorage: file+ streamReplicas: 3