Skip to content

Commit

Permalink
adding wiredTiger to mongo instance
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 29, 2024
1 parent a7cf4eb commit c238107
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.vcf.gz
ri_tools/vcf/files_to_read/*vcf.gz
ri_tools/vcf/files_to_read/*vcf.gz
beacon/connections/mongo/data/datasets/*
8 changes: 8 additions & 0 deletions beacon/connections/mongo/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
client.beacon.validate_collection("synonyms")
except Exception:
db=client.beacon.create_collection(name="synonyms")
try:
client.beacon.validate_collection("caseLevelData")
except Exception:
db=client.beacon.create_collection(name="caseLevelData")
try:
client.beacon.validate_collection("targets")
except Exception:
db=client.beacon.create_collection(name="targets")
try:
client.beacon.drop_collection("counts")
except Exception:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ services:

db:
image: mongo:5
command: --wiredTigerCacheSizeGB 4
hostname: mongo
container_name: mongoprod
ports:
Expand Down
1 change: 1 addition & 0 deletions ri-tools/conf/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
reference_genome='GRCh37' # Choose one between NCBI36, GRCh37, GRCh38
datasetId='COVID_pop11_fin_2'
case_level_data=False
num_rows=7000000

### MongoDB parameters ###
database_host = 'mongo'
Expand Down

0 comments on commit c238107

Please sign in to comment.