fix default config being overwritten

This commit is contained in:
Moustafa Nawar
2022-07-05 16:44:43 +02:00
parent 2f83813fbd
commit 2f4495abf4
4 changed files with 19 additions and 43 deletions

View File

@@ -44,9 +44,8 @@ kubectl delete pvc -l kubectl delete pvc -l app.kubernetes.io/instance=your-qdra
## Configuration
For documentation of the settings please refer to [Qdrant Configuration File](https://github.com/qdrant/qdrant/blob/master/config/config.yaml)
All of these configuration options are available in `values.yaml`.
*Important* - if you change anything within the config key aka Qdrant config in the values.yaml, you have to provide
*all* config params in your overwrite, as everything that is in config is applied put into one configmap value.
All of these configuration options could be overwritten under config in `values.yaml`.
A modifcation example is provided there.
### Distributed setup

View File

@@ -12,5 +12,5 @@ data:
else
./qdrant --bootstrap 'http://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:6335' --uri 'http://{{ include "qdrant.fullname" . }}-'"$SET_INDEX"'.{{ include "qdrant.fullname" . }}-headless:6335'
fi
config.yaml: |
production.yaml: |
{{- toYaml .Values.config | nindent 4 }}

View File

@@ -28,7 +28,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args: ["./config/initialize.sh" ]
args: ["./config/initialize.sh"]
ports:
{{- range .Values.service.ports }}
- name: {{ .name }}
@@ -79,7 +79,11 @@ spec:
- name: qdrant-storage
mountPath: /qdrant/storage
- name: qdrant-config
mountPath: /qdrant/config
mountPath: /qdrant/config/initialize.sh
subPath: initialize.sh
- name: qdrant-config
mountPath: /qdrant/config/production.yaml
subPath: production.yaml
{{- with .Values.nodeSelector }}
nodeSelector:

View File

@@ -67,40 +67,13 @@ persistence:
size: 1Gi
#storageClassName: local-path
config:
debug: false
log_level: INFO
storage:
storage_path: ./storage
wal:
wal_capacity_mb: 32
wal_segments_ahead: 0
performance:
max_search_threads: 0
optimizers:
deleted_threshold: 0.2
vacuum_min_vector_number: 1000
default_segment_number: 5
max_segment_size: 200000
memmap_threshold: 50000
indexing_threshold: 20000
payload_indexing_threshold: 10000
flush_interval_sec: 1
max_optimization_threads: 0
hnsw_index:
m: 16
ef_construct: 100
full_scan_threshold: 10000
service:
max_request_size_mb: 32
max_workers: 0
host: 0.0.0.0
http_port: 6333
grpc_port: 6334
enable_cors: true
cluster:
enabled: false
p2p:
port: 6335
consensus:
tick_period_ms: 100
#modification example for configuration to overwrite defaults
#config:
# debug: true
# log_level: DEBUG
# cluster:
# enabled: true
# p2p:
# port: 6335
# consensus:
# tick_period_ms: 100