Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/btrixcloud/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ async def update_and_prepare_db(
crawl_manager,
):
await drop_indexes(mdb)
elif os.environ.get("MONGO_DB_DROP_INDEXES"):
await drop_indexes(mdb)

await create_indexes(
org_ops,
Expand Down
1 change: 1 addition & 0 deletions chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ data:
IDLE_TIMEOUT: "{{ .Values.profile_browser_idle_seconds | default 60 }}"

RERUN_FROM_MIGRATION: "{{ .Values.rerun_from_migration }}"
MONGO_DB_DROP_INDEXES: "{{ .Values.mongo_drop_indexes }}"
MIGRATION_JOBS_SCALE: "{{ .Values.migration_jobs_scale | default 1 }}"

PRESIGN_DURATION_MINUTES: "{{ .Values.storage_presign_duration_minutes }}"
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@ signer_memory: "50Mi"
# see backend/btrixcloud/migrations/ for list of available migrations
# rerun_from_migration:

# if set, will force mongodb to drop indexes on startup
# mongo_drop_indexes: 1

# scale for certain migration background jobs
# migration_jobs_scale: 1

Expand Down
Loading