feat/match_collector: batch match import
This commit is contained in:
+12
-8
@@ -1,21 +1,25 @@
|
||||
services:
|
||||
# Development MongoDB with performance optimizations
|
||||
# Development MongoDB with memory optimizations
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
image: mongo:8.3.4
|
||||
container_name: buildpath-mongodb
|
||||
ports:
|
||||
- "27017:27017"
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-root}
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS:-password}
|
||||
GLIBC_TUNABLES: glibc.pthread.rseq=1
|
||||
volumes:
|
||||
- ./data/db:/data/db
|
||||
command: mongod --wiredTigerCacheSizeGB 4 --quiet
|
||||
healthcheck:
|
||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 30
|
||||
# Reduced cache size to leave more RAM for the import script
|
||||
# WiredTiger cache is now 2GB (was 4GB) to prevent OOM during large imports
|
||||
command: mongod --wiredTigerCacheSizeGB 2 --quiet
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 4G
|
||||
reservations:
|
||||
memory: 2G
|
||||
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
|
||||
Reference in New Issue
Block a user