File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
engine/servers/qdrant-continuous-benchmarks-snapshot Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Continuous Benchmark 2
3
3
on :
4
4
repository_dispatch :
5
5
workflow_dispatch :
6
+ inputs :
7
+ feature_flags_all :
8
+ type : boolean
9
+ description : " Enable all feature flags (true by default)"
10
+ default : true
6
11
schedule :
7
12
# Run every day at midnight
8
13
- cron : " 0 0 * * *"
29
34
export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
30
35
export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}
31
36
export SERVER_NAME="benchmark-server-3"
37
+ export QDRANT__FEATURE_FLAGS__ALL=${{ inputs.feature_flags_all }}
32
38
bash -x tools/setup_ci.sh
33
39
34
40
set +e
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ services:
5
5
image : ${CONTAINER_REGISTRY:-docker.io}/qdrant/qdrant:${QDRANT_VERSION}
6
6
container_name : qdrant-continuous
7
7
environment :
8
- QDRANT_NUM_CPUS : 4
8
+ - QDRANT_NUM_CPUS=4
9
+ - QDRANT__FEATURE_FLAGS__ALL=${QDRANT__FEATURE_FLAGS__ALL:-true}
9
10
ports :
10
11
- " 6333:6333"
11
12
- " 6334:6334"
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ PRIVATE_IP_OF_THE_SERVER=$(bash "${SCRIPT_PATH}/${CLOUD_NAME}/get_private_ip.sh"
27
27
28
28
if [[ " $EXPERIMENT_MODE " == " snapshot" ]]; then
29
29
scp " ${SCRIPT_PATH} /run_experiment.sh" " ${SERVER_USERNAME} @${IP_OF_THE_CLIENT} :~/run_experiment_snapshot.sh"
30
+ scp " ${SCRIPT_PATH} /../datasets/datasets.json" " ${SERVER_USERNAME} @${IP_OF_THE_CLIENT} :~/datasets.json"
30
31
31
32
RUN_EXPERIMENT=" ENGINE_NAME=${ENGINE_NAME} \
32
33
DATASETS=${DATASETS} \
Original file line number Diff line number Diff line change 48
48
echo " Ensure datasets volume exists and contains latest datasets.json"
49
49
docker volume create ci-datasets
50
50
if [[ -f " $HOME /datasets.json" ]]; then
51
- echo " Found datasets.json, update the volume"
51
+ echo " Found datasets.json, move it into the volume"
52
52
mv ~ /datasets.json " $( docker volume inspect ci-datasets -f ' {{ .Mountpoint }}' ) "
53
53
else
54
- echo " datasets.json is missing, do not update the volume"
54
+ echo " datasets.json is missing, skip moving it into the volume"
55
55
fi
56
56
57
57
if [[ " $EXPERIMENT_MODE " == " full" ]] || [[ " $EXPERIMENT_MODE " == " upload" ]]; then
121
121
122
122
if [[ " $EXPERIMENT_MODE " == " snapshot" ]]; then
123
123
echo " EXPERIMENT_MODE=$EXPERIMENT_MODE "
124
-
124
+ echo " Recovering collection from snapshot "
125
125
curl -X PUT \
126
126
" http://${PRIVATE_IP_OF_THE_SERVER} :6333/collections/benchmark/snapshots/recover" \
127
127
--data-raw " {\" location\" : \" ${SNAPSHOT_URL} \" }"
128
+ echo " Done recovering collection from snapshot"
128
129
129
130
collection_url=" http://${PRIVATE_IP_OF_THE_SERVER} :6333/collections/benchmark"
130
131
collection_status=$( curl -s " $collection_url " | jq -r ' .result.status' )
You can’t perform that action at this time.
0 commit comments