Skip to content

Commit edcfb3f

Browse files
committed
WIP: debug
1 parent 102121d commit edcfb3f

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/continuous-benchmark-transfer.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
type: string
1010
qdrant_versions:
1111
description: 'Comma-separated versions (ghcr/dev, docker/master, docker/v1.13.0)'
12-
default: 'ghcr/dev,docker/master'
12+
default: 'ghcr/dev'
1313
type: string
1414
region:
1515
description: 'Hetzner region'
@@ -39,7 +39,7 @@ env:
3939
CLIENT_TYPE: ${{ inputs.client_type || 'cx33' }}
4040
REGION: ${{ inputs.region || 'fsn1' }}
4141
DATASET_NAME: ${{ inputs.dataset_name || 'dbpedia-openai-100K-1536-angular' }}
42-
QDRANT_VERSIONS: ${{ inputs.qdrant_versions || 'ghcr/dev,docker/master' }}
42+
QDRANT_VERSIONS: ${{ inputs.qdrant_versions || 'ghcr/dev' }}
4343

4444
jobs:
4545
setupCluster:
@@ -128,6 +128,7 @@ jobs:
128128
env:
129129
ANSIBLE_HOST_KEY_CHECKING: "False"
130130
ANSIBLE_SSH_ARGS: "-o ServerAliveInterval=30 -o ServerAliveCountMax=10 -o ControlMaster=no"
131+
ANSIBLE_STDOUT_CALLBACK: yaml
131132
QDRANT_VERSIONS: ${{ env.QDRANT_VERSIONS }}
132133
DATASET_NAME: ${{ env.DATASET_NAME }}
133134

ansible/playbooks/roles/run-transfer-speed/files/shard_transfer.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,30 @@ def upload_vectors(self, vectors: np.ndarray):
107107
)
108108

109109
def wait_for_green(self, timeout: int = 1800):
110-
print("Waiting for green status...", end="", flush=True)
110+
print("Waiting for green status...")
111111
wait_time = 5.0
112112
total = 0
113+
info = None
113114
while total < timeout:
114115
time.sleep(wait_time)
115116
total += wait_time
116117
info = self.primary.get_collection(COLLECTION_NAME)
117-
if info.status != models.CollectionStatus.GREEN:
118-
print(".", end="", flush=True)
118+
status = info.status
119+
indexed = info.indexed_vectors_count
120+
total_vectors = info.vectors_count
121+
segments = info.segments_count
122+
print(f" [{total:.0f}s] status={status}, indexed={indexed}/{total_vectors}, segments={segments}")
123+
124+
if status != models.CollectionStatus.GREEN:
119125
continue
120126
# Double-check: status can briefly flip to GREEN during optimization
121127
time.sleep(wait_time)
122128
info = self.primary.get_collection(COLLECTION_NAME)
123129
if info.status == models.CollectionStatus.GREEN:
124-
print(f" done ({total:.1f}s)")
130+
print(f"Collection is GREEN after {total:.1f}s")
125131
return
126-
print(f" timeout after {timeout}s")
132+
final_status = info.status if info else 'unknown'
133+
print(f"WARNING: timeout after {timeout}s, status={final_status}")
127134

128135
def get_collection_cluster_info(self) -> dict:
129136
return self.primary.http.distributed_api.collection_cluster_info(COLLECTION_NAME).dict()["result"]

ansible/playbooks/roles/run-transfer-speed/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@
5656

5757
- name: Run transfer benchmark
5858
ansible.builtin.shell: |
59-
{{ working_dir }}/run-bench.sh
59+
{{ working_dir }}/run-bench.sh 2>&1
6060
environment:
6161
QDRANT_URIS: "{{ qdrant_uris }}"
6262
DATASET_NAME: "{{ dataset_name }}"
6363
RUNS: "{{ runs }}"
6464
OUTPUT_FILENAME: "{{ working_dir }}/results.json"
6565
WORK_DIR: "{{ working_dir }}"
66+
PYTHONUNBUFFERED: "1"
6667
register: benchmark_result
6768

6869
- name: Display benchmark output

0 commit comments

Comments
 (0)