From 4fdc9e91b80765645d5629dd9d9b7b317046586b Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 4 Dec 2026 01:53:24 -0700 Subject: [PATCH] feat(vector_databases): configurable Milvus PVC size, default 25Gi Add vector_databases_milvus_storage_size so the Milvus volume can be sized from config.chatbot.yaml without copying the whole vector_databases_stores dict, and raise the default from 10Gi to 25Gi. Signed-off-by: Jakub Piasecki --- .../templates/milvus/milvus-statefulset.yaml | 2 +- deployment/components/vector_databases/values.yaml | 2 +- deployment/pipelines/audioqna/config.yaml | 1 + deployment/pipelines/chatqna/config.yaml | 1 + deployment/pipelines/chatqna_intel_gpu/config.yaml | 1 + deployment/pipelines/pl_chatqna/config.yaml | 1 + deployment/pipelines/translation/config.yaml | 1 + deployment/roles/app_vector_databases/defaults/main.yaml | 6 +++++- .../roles/app_vector_databases/templates/values.yaml.j2 | 2 +- docs/configuration/configuration.md | 4 +++- 10 files changed, 16 insertions(+), 5 deletions(-) diff --git a/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml b/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml index 3f77a4e7..3357fb09 100644 --- a/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml +++ b/deployment/components/vector_databases/templates/milvus/milvus-statefulset.yaml @@ -135,6 +135,6 @@ spec: {{- end }} resources: requests: - storage: {{ .Values.milvus.persistence.size | default "10Gi" }} + storage: {{ .Values.milvus.persistence.size | default "25Gi" }} {{- end }} {{- end }} diff --git a/deployment/components/vector_databases/values.yaml b/deployment/components/vector_databases/values.yaml index f579da6c..c3efe1b3 100644 --- a/deployment/components/vector_databases/values.yaml +++ b/deployment/components/vector_databases/values.yaml @@ -40,7 +40,7 @@ milvus: extraConfig: {} persistence: enabled: true - size: "10Gi" + size: "25Gi" resources: requests: cpu: 2 diff --git a/deployment/pipelines/audioqna/config.yaml b/deployment/pipelines/audioqna/config.yaml index a84bf2c0..4c8a5247 100644 --- a/deployment/pipelines/audioqna/config.yaml +++ b/deployment/pipelines/audioqna/config.yaml @@ -62,6 +62,7 @@ inference_models: # vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models +# vector_databases_milvus_storage_size: "25Gi" # Milvus PVC; see docs/configuration/configuration.md # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable diff --git a/deployment/pipelines/chatqna/config.yaml b/deployment/pipelines/chatqna/config.yaml index d7f73409..8543b1c4 100644 --- a/deployment/pipelines/chatqna/config.yaml +++ b/deployment/pipelines/chatqna/config.yaml @@ -58,6 +58,7 @@ inference_models: # vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models +# vector_databases_milvus_storage_size: "25Gi" # Milvus PVC; see docs/configuration/configuration.md # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable diff --git a/deployment/pipelines/chatqna_intel_gpu/config.yaml b/deployment/pipelines/chatqna_intel_gpu/config.yaml index d4a3c649..89dd7ef9 100644 --- a/deployment/pipelines/chatqna_intel_gpu/config.yaml +++ b/deployment/pipelines/chatqna_intel_gpu/config.yaml @@ -71,6 +71,7 @@ inference_models: # vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models +# vector_databases_milvus_storage_size: "25Gi" # Milvus PVC; see docs/configuration/configuration.md # --- Path overrides (paths inside the ext repo) --- deployment_dir: "{{ playbook_dir }}/../ext/chatbot-toolkit/deployment" diff --git a/deployment/pipelines/pl_chatqna/config.yaml b/deployment/pipelines/pl_chatqna/config.yaml index e5b5edaf..178fcecf 100644 --- a/deployment/pipelines/pl_chatqna/config.yaml +++ b/deployment/pipelines/pl_chatqna/config.yaml @@ -53,6 +53,7 @@ inference_models: # vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models +# vector_databases_milvus_storage_size: "25Gi" # Milvus PVC; see docs/configuration/configuration.md # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable diff --git a/deployment/pipelines/translation/config.yaml b/deployment/pipelines/translation/config.yaml index a76f5e00..064307c3 100644 --- a/deployment/pipelines/translation/config.yaml +++ b/deployment/pipelines/translation/config.yaml @@ -43,6 +43,7 @@ inference_models: # vector_databases_vector_store: "milvus" # milvus | redis-cluster | redis | mssql | pgvector # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 # auto-detected; override for unknown models +# vector_databases_milvus_storage_size: "25Gi" # Milvus PVC; see docs/configuration/configuration.md # --- Backup and restore (Velero) --- # Opt-in. Requires the core installer's velero component and CSI-snapshot-capable diff --git a/deployment/roles/app_vector_databases/defaults/main.yaml b/deployment/roles/app_vector_databases/defaults/main.yaml index b6f5c0e9..49daa4a4 100644 --- a/deployment/roles/app_vector_databases/defaults/main.yaml +++ b/deployment/roles/app_vector_databases/defaults/main.yaml @@ -18,6 +18,10 @@ vector_databases_vector_datatype: "FLOAT32" # HuggingFace Hub API can't resolve. vector_databases_vector_dims: 768 +# --- Storage --- +# Milvus PVC size. +vector_databases_milvus_storage_size: "25Gi" + # --- Offline / air-gapped toggle (skip HF Hub probe) --- offline_model: false @@ -54,7 +58,7 @@ vector_databases_stores: mssql_pid: "Express" milvus: persistence: - size: "10Gi" + size: "{{ vector_databases_milvus_storage_size }}" storageClass: "" # empty → cluster default # --- Cross-role shared defaults - Owned by other roles; declared here so this role is standalone-runnable. --- diff --git a/deployment/roles/app_vector_databases/templates/values.yaml.j2 b/deployment/roles/app_vector_databases/templates/values.yaml.j2 index 4532cbbe..1b75cf25 100644 --- a/deployment/roles/app_vector_databases/templates/values.yaml.j2 +++ b/deployment/roles/app_vector_databases/templates/values.yaml.j2 @@ -23,7 +23,7 @@ milvus: enabled: true persistence: storageClass: "{{ milvus.persistence.storageClass | default('') }}" - size: "{{ milvus.persistence.size | default('10Gi') }}" + size: "{{ milvus.persistence.size | default(vector_databases_milvus_storage_size) }}" {% if not _vector_databases_fixed_uids | bool %} # The image's files are 999:999 with no access for others; the SCC's UID gets in through the group. supplementalGroups: [999] diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index a2a74fb1..bfba23f2 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -89,10 +89,11 @@ See [models.md](models.md). | `vector_databases_vector_store` | `milvus` | `milvus` \| `redis-cluster` \| `mssql` | | `vector_databases_vector_datatype` | `FLOAT32` | | | `vector_databases_vector_dims` | `768` | Auto-detected; override if detection fails | +| `vector_databases_milvus_storage_size` | `25Gi` | Milvus PVC size | Backends: **milvus** (default; standalone, purpose-built vector search), **redis-cluster** (production, 1M+ vectors, HA, scalable), **mssql** (SQL Server; RBAC unsupported; EULA prompt on deploy). -Storage defaults: redis-cluster 8Gi per node (set `vector_databases_stores.redis-cluster.persistence.size` in `config.chatbot.yaml`), mssql and milvus 10Gi (`deployment/components/vector_databases/values.yaml`). Vector store needs more storage than file storage (text + embeddings). +Storage defaults: redis-cluster 8Gi per node (set `vector_databases_stores.redis-cluster.persistence.size` in `config.chatbot.yaml`), milvus 25Gi (`vector_databases_milvus_storage_size`), mssql 10Gi (`deployment/components/vector_databases/values.yaml`). Vector store needs more storage than file storage (text + embeddings). The installer generates the database password and hands the connection details to the services in the `vector-database-config` secret, in the pipeline and EDP namespaces. @@ -240,6 +241,7 @@ inference_models: # vector_databases_vector_store: "milvus" # vector_databases_vector_datatype: "FLOAT32" # vector_databases_vector_dims: 768 +# vector_databases_milvus_storage_size: "25Gi" # chattool_keycloak_oidc_endpoint: "" # chattool_keycloak_oidc_alias: "enterprise-sso" # chattool_keycloak_oidc_client_id: ""