Skip to content

Commit

Permalink
Modify filter_memory_leak to use async indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
rlmanrique committed Dec 13, 2024
1 parent 2247b2b commit 4bf1729
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,33 @@ jobs:
with:
lsm_access_strategy: ${{matrix.lsm_access_strategy}}
weaviate_version: ${{ github.event_name == 'schedule' && 'latest' || inputs.weaviate_version || '1.27.2' }}
async_indexing: "false"
secrets:
AWS_ACCESS_KEY: ${{secrets.AWS_ACCESS_KEY}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
GCP_SERVICE_ACCOUNT_BENCHMARKS: ${{secrets.GCP_SERVICE_ACCOUNT_BENCHMARKS}}
POLARSIGNALS_TOKEN: ${{secrets.POLARSIGNALS_TOKEN}}

run-with-async-indexing:
strategy:
fail-fast: false
matrix:
lsm_access_strategy: ["mmap", "pread"]
uses: ./.github/workflows/tests.yaml
with:
lsm_access_strategy: ${{matrix.lsm_access_strategy}}
weaviate_version: ${{ github.event_name == 'schedule' && 'latest' || inputs.weaviate_version || '1.27.2' }}
async_indexing: "true"
secrets:
AWS_ACCESS_KEY: ${{secrets.AWS_ACCESS_KEY}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
GCP_SERVICE_ACCOUNT_BENCHMARKS: ${{secrets.GCP_SERVICE_ACCOUNT_BENCHMARKS}}
POLARSIGNALS_TOKEN: ${{secrets.POLARSIGNALS_TOKEN}}

send-slack-message-on-failure:
needs: [weaviate-version-information, run-with-sync-indexing]
if: failure() && github.event_name == 'schedule'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:
env:
WEAVIATE_VERSION: ${{ inputs.weaviate_version }}
DISABLE_RECOVERY_ON_PANIC: true
ASYNC_INDEXING: ${{ inputs.async_indexing }}

jobs:
real-version-in-tag:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
volumes:
- "$PWD/apps/weaviate/data:/var/lib/weaviate"
environment:
ASYNC_INDEXING: ${ASYNC_INDEXING}
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
PERSISTENCE_FLUSH_IDLE_MEMTABLES_AFTER: 2
QUERY_DEFAULTS_LIMIT: 25
Expand Down
1 change: 1 addition & 0 deletions apps/weaviate-no-restart-on-crash/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
volumes:
- "$PWD/apps/weaviate/data:/var/lib/weaviate"
environment:
- ASYNC_INDEXING
- PERSISTENCE_DATA_PATH
- PERSISTENCE_MEMTABLES_FLUSH_IDLE_AFTER_SECONDS
- QUERY_DEFAULTS_LIMIT
Expand Down
1 change: 1 addition & 0 deletions filter_memory_leak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ echo "Building all required containers"
export COMPOSE="apps/weaviate-no-restart-on-crash/docker-compose-with-memlimit.yml"

echo "Starting Weaviate..."
echo "ASYNC_INDEXING: $ASYNC_INDEXING"
docker compose -f $COMPOSE up -d

wait_weaviate
Expand Down

0 comments on commit 4bf1729

Please sign in to comment.