Skip to content

Commit

Permalink
Enable improved consistency check for all clusters (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellet-q authored Nov 18, 2024
1 parent c44d0ac commit c20ad77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
12 changes: 3 additions & 9 deletions tools/check-cluster-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,9 @@ echo "Ensure 'qdrant-client' version '${QDRANT_PYTHON_CLIENT_VERSION}' is instal
pip install --quiet "qdrant-client==${QDRANT_PYTHON_CLIENT_VERSION}" || { echo "Failed to install qdrant-client version ${QDRANT_PYTHON_CLIENT_VERSION}. Exiting."; exit 1; }

echo "Checking data consistency"
if [ "$QC_NAME" == "qdrant-chaos-testing-three" ]; then
python3 ./tools/check-consistency-improved.py
exit_code=$?
is_data_consistent=$([ $exit_code -eq 0 ] && echo true || echo false)
else
python3 ./tools/check-consistency-all-points-all-peers.py
exit_code=$?
is_data_consistent=$([ $exit_code -eq 0 ] && echo true || echo false)
fi
python3 ./tools/check-consistency-improved.py
exit_code=$?
is_data_consistent=$([ $exit_code -eq 0 ] && echo true || echo false)

echo "upload_operational: $upload_operational, search_operational: $search_operational, is_data_consistent: $is_data_consistent, measure_timestamp: $NOW, cluster_name: $QC_NAME"

Expand Down
10 changes: 2 additions & 8 deletions tools/local/check-cluster-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,8 @@ pids=()
echo "Ensure 'qdrant-client' version '${QDRANT_PYTHON_CLIENT_VERSION}' is installed..."
pip install --quiet "qdrant-client==${QDRANT_PYTHON_CLIENT_VERSION}" || { echo "Failed to install qdrant-client version ${QDRANT_PYTHON_CLIENT_VERSION}. Exiting."; exit 1; }


if [ "$QC_NAME" == "qdrant-chaos-testing-three" ]; then
tools/check-consistency-improved.py &
pids+=($!)
else
tools/check-consistency-all-points-all-peers.py &
pids+=($!)
fi
tools/check-consistency-improved.py &
pids+=($!)

# for old consistency check start 5 processes in parallel
#for _ in {1..5}; do
Expand Down

0 comments on commit c20ad77

Please sign in to comment.