Skip to content

Commit 6d83c9a

Browse files
authored
fix(qdrant): use storage volume to store snapshots (#2519)
Co-authored-by: cjc7373 <cjc7373@users.noreply.github.com>
1 parent 85fdc40 commit 6d83c9a

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ KubeBlocks add-ons.
3232
| polardbx | polardbx-cdc-2.3.0<br>polardbx-cn-2.3.0<br>polardbx-dn-2.3.0<br>polardbx-gms-2.3.0 | PolarDB-X is a cloud native distributed SQL Database designed for high concurrency, massive storage, complex querying scenarios. | Vettal Wu |
3333
| postgresql | postgresql-12.14.0<br>postgresql-12.14.1<br>postgresql-12.15.0<br>postgresql-12.22.0<br>postgresql-14.18.0<br>postgresql-14.7.2<br>postgresql-14.8.0<br>postgresql-15.13.0<br>postgresql-15.7.0<br>postgresql-16.4.0<br>postgresql-16.9.0<br>postgresql-17.5.0<br>postgresql-18.1.0 | A PostgreSQL (with Patroni HA) cluster definition Helm chart for Kubernetes | ldming dingshun-cmss |
3434
| pulsar | pulsar-bookies-recovery-2.11.2<br>pulsar-bookies-recovery-3.0.2<br>pulsar-bookies-recovery-4.0.6<br>pulsar-bookkeeper-2.11.2<br>pulsar-bookkeeper-3.0.2<br>pulsar-bookkeeper-4.0.6<br>pulsar-broker-2.11.2<br>pulsar-broker-3.0.2<br>pulsar-broker-4.0.6<br>pulsar-proxy-2.11.2<br>pulsar-proxy-3.0.2<br>pulsar-proxy-4.0.6<br>pulsar-zookeeper-2.11.2<br>pulsar-zookeeper-3.0.2 | Apache Pulsar is an open-source, distributed messaging and streaming platform built for the cloud. | caiq1nyu |
35-
| qdrant | qdrant-1.10.0<br>qdrant-1.13.4<br>qdrant-1.15.4<br>qdrant-1.5.0<br>qdrant-1.7.3<br>qdrant-1.8.1<br>qdrant-1.8.4 | High-performance, massive-scale Vector Database for the next generation of AI. | iziang |
35+
| qdrant | qdrant-1.10.0<br>qdrant-1.13.4<br>qdrant-1.15.4<br>qdrant-1.16.3<br>qdrant-1.5.0<br>qdrant-1.7.3<br>qdrant-1.8.1<br>qdrant-1.8.4 | High-performance, massive-scale Vector Database for the next generation of AI. | iziang |
3636
| rabbitmq | rabbitmq-3.10.25<br>rabbitmq-3.11.28<br>rabbitmq-3.12.14<br>rabbitmq-3.13.7<br>rabbitmq-3.8.34<br>rabbitmq-3.9.29<br>rabbitmq-4.0.9<br>rabbitmq-4.1.6<br>rabbitmq-4.2.1 | RabbitMQ is a reliable and mature messaging and streaming broker. | xuriwuyun |
3737
| redis | redis-5.0.12<br>redis-6.2.14<br>redis-6.2.17<br>redis-6.2.18<br>redis-7.0.6<br>redis-7.2.10<br>redis-7.2.11<br>redis-7.2.12<br>redis-7.2.4<br>redis-7.2.7<br>redis-7.4.2<br>redis-7.4.5<br>redis-7.4.6<br>redis-7.4.7<br>redis-8.0.1<br>redis-8.0.3<br>redis-8.0.4<br>redis-8.0.5<br>redis-8.2.1<br>redis-8.2.2<br>redis-8.2.3<br>redis-8.4.0<br>redis-cluster-5.0.12<br>redis-cluster-6.2.14<br>redis-cluster-6.2.17<br>redis-cluster-6.2.18<br>redis-cluster-7.0.6<br>redis-cluster-7.2.10<br>redis-cluster-7.2.11<br>redis-cluster-7.2.12<br>redis-cluster-7.2.4<br>redis-cluster-7.2.7<br>redis-cluster-7.4.2<br>redis-cluster-7.4.5<br>redis-cluster-7.4.6<br>redis-cluster-7.4.7<br>redis-cluster-8.0.1<br>redis-cluster-8.0.3<br>redis-cluster-8.0.4<br>redis-cluster-8.0.5<br>redis-cluster-8.2.1<br>redis-cluster-8.2.2<br>redis-cluster-8.2.3<br>redis-cluster-8.4.0<br>redis-sentinel-5.0.12<br>redis-sentinel-6.2.14<br>redis-sentinel-6.2.17<br>redis-sentinel-6.2.18<br>redis-sentinel-7.0.6<br>redis-sentinel-7.2.10<br>redis-sentinel-7.2.11<br>redis-sentinel-7.2.12<br>redis-sentinel-7.2.4<br>redis-sentinel-7.2.7<br>redis-sentinel-7.4.2<br>redis-sentinel-7.4.5<br>redis-sentinel-7.4.6<br>redis-sentinel-7.4.7<br>redis-sentinel-8.0.1<br>redis-sentinel-8.0.3<br>redis-sentinel-8.0.4<br>redis-sentinel-8.0.5<br>redis-sentinel-8.2.1<br>redis-sentinel-8.2.2<br>redis-sentinel-8.2.3<br>redis-sentinel-8.4.0<br>redis-twemproxy-0.5.0 | Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps. | ApeCloud wangyelei |
3838
| risingwave | risingwave-compactor-v1.0.0<br>risingwave-compute-v1.0.0<br>risingwave-connector-v1.0.0<br>risingwave-frontend-v1.0.0<br>risingwave-meta-v1.0.0 | RisingWave is a distributed SQL streaming database that enables cost-efficient and reliable processing of streaming data. | RisingWave Labs |

addons/qdrant/scripts/qdrant-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ current_pod_fqdn=$(get_target_pod_fqdn_from_pod_fqdn_vars "$QDRANT_POD_FQDN_LIST
2424
boostrap_node_fqdn=$(get_boostrap_node)
2525

2626
if [ "$current_pod_fqdn" == "$boostrap_node_fqdn" ]; then
27-
./qdrant --uri "http://${current_pod_fqdn}:6335"
27+
exec ./qdrant --uri "http://${current_pod_fqdn}:6335"
2828
else
2929
echo "BOOTSTRAP_HOSTNAME: ${boostrap_node_fqdn}"
3030
until ./tools/curl http://${boostrap_node_fqdn}:6333/cluster; do
3131
echo "INFO: wait for bootstrap node starting..."
3232
sleep 1;
3333
done
34-
./qdrant --bootstrap "http://${boostrap_node_fqdn}:6335" --uri "http://${current_pod_fqdn}:6335"
34+
exec ./qdrant --bootstrap "http://${boostrap_node_fqdn}:6335" --uri "http://${current_pod_fqdn}:6335"
3535
fi

addons/qdrant/templates/cmpd.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ spec:
116116
successThreshold: 1
117117
timeoutSeconds: 3
118118
startupProbe:
119-
failureThreshold: 18
119+
failureThreshold: 60
120120
httpGet:
121121
path: /
122122
port: tcp-qdrant
123123
scheme: HTTP
124-
periodSeconds: 10
124+
periodSeconds: 30
125125
successThreshold: 1
126126
timeoutSeconds: 3
127127
terminationMessagePath: /dev/termination-log
@@ -144,8 +144,7 @@ spec:
144144
containerPort: 6334
145145
- name: p2p
146146
containerPort: 6335
147-
command: ["/bin/sh", "-c"]
148-
args: ["/qdrant/scripts/setup.sh"]
147+
command: ["/qdrant/scripts/setup.sh"]
149148
env:
150149
- name: QDRANT__TELEMETRY_DISABLED
151150
value: "true"

addons/qdrant/templates/config-template.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,13 @@ metadata:
66
labels:
77
{{- include "qdrant.labels" . | nindent 4 }}
88
data:
9-
production.yaml: |-
10-
debug: false
11-
log_level: INFO
12-
13-
service:
14-
host: 0.0.0.0
15-
http_port: 6333
16-
grpc_port: 6334
179
config.yaml: |-
1810
storage:
1911
# Where to store all the data
2012
storage_path: ./storage
2113
2214
# Where to store snapshots
23-
snapshots_path: ./snapshots
15+
snapshots_path: ./storage/snapshots
2416
2517
# If true - point's payload will not be stored in memory.
2618
# It will be read from the disk every time it is requested.

addons/qdrant/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ versions:
3333
- ["1.10.0", "1.10.0", "v1.10.0", false]
3434
- ["1.13.4", "1.13.4", "v1.13.4", false]
3535
- ["1.15.4", "1.15.4", "v1.15.4", false]
36+
- ["1.16.3", "1.16.3", "v1.16.3", false]
3637

3738
## @param debugEnabled enables containers' debug logging
3839
##

0 commit comments

Comments
 (0)