Skip to content
Merged
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: 1 addition & 1 deletion .env.scenarios
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SCENARIOS_PATH=/home/ubuntu/Scenarios
UI_DEFAULTS=./scenarios/defaults
# Days to keep visitors' runs (showcase runs are always kept)
OASIS_PRUNE_DAYS=7
# Per scenario worker: tasks at a time and memory cap (13 workers share the host)
# Per scenario worker: tasks at a time and memory cap (14 workers share the host)
OASIS_WORKER_CONCURRENCY=1
OASIS_WORKER_MEM_LIMIT=6g
# Set to get a Let's Encrypt certificate for OASIS_UI_HOSTNAME (must be public)
Expand Down
20 changes: 18 additions & 2 deletions docker-compose.models.scenarios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ x-shared-env: &worker-env
OASIS_ANALYSIS_STATUS_URL: http://server:8000/analysis-status/

# One task at a time per worker (Celery defaults to one process per CPU, and
# with 13 workers that alone uses a lot of memory)
# with 14 workers that alone uses a lot of memory)
OASIS_CELERY_CONCURRENCY: ${OASIS_WORKER_CONCURRENCY:-1}

# Authentication configuration
Expand Down Expand Up @@ -105,6 +105,22 @@ services:
- ${SCENARIOS_PATH}/ImpactForecasting/EUWS/1.0.0/:/home/worker/model
- filestore-data:/shared-fs:rw

# Storm Domingos: the EUWS model data with its other event set, using the
# Domingos config and model settings from the same folder
euws-domingos-worker:
<<: *worker
environment:
<<: *worker-env
OASIS_MODEL_SUPPLIER_ID: Impact Forecasting
OASIS_MODEL_ID: EUWS-Domingos
OASIS_MODEL_VERSION_ID: 'v2'
OASIS_RUN_MODE: v2
OASIS_OASISLMF_CONFIG: /home/worker/model/oasislmf_domingos.json
OASIS_MODEL_SETTINGS_FILE: /home/worker/model/meta-data/model_settings_domingos.json
volumes:
- ${SCENARIOS_PATH}/ImpactForecasting/EUWS/1.0.0/:/home/worker/model
- filestore-data:/shared-fs:rw

treq-worker:
<<: *worker
environment:
Expand Down Expand Up @@ -260,7 +276,7 @@ services:
- OASIS_SERVICE_PASSWORD_OR_SECRET=${OASIS_SERVICE_PASSWORD_OR_SECRET:-}
- SCENARIOS_UI_CONFIG=scenarios/ui-config.json
# Number of model workers in this file: setup waits for all to register
- SCENARIOS_MIN_MODELS=13
- SCENARIOS_MIN_MODELS=14
volumes:
# Portfolio paths in scenarios/portfolios.json are relative to /usr/src/app
- ${SCENARIOS_PATH}:/usr/src/Scenarios:ro
Expand Down
4 changes: 4 additions & 0 deletions scenarios/a_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"model_name_id": "EUWS",
"settings_path": "./scenarios/defaults/3_euws_impact-forecasting-analysis_settings.json"
},
{
"model_name_id": "EUWS-Domingos",
"settings_path": "./scenarios/defaults/15_euws-domingos_impact-forecasting-analysis_settings.json"
},
{
"model_name_id": "MAEQ",
"settings_path": "./scenarios/defaults/2_maeq_impact-forecasting-analysis_settings.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"model_supplier_id": "ImpactForecasting",
"model_name_id": "EUWS-Domingos",
"number_of_samples": 10,
"model_settings": {
"event_set": "domingos"
},
"gul_output": true,
"gul_summaries": [
{
"id": 1,
"ord_output": {
"elt_moment": true
}
}
],
"gul_threshold": 0
}
3 changes: 3 additions & 0 deletions scenarios/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"EUWS": [
"euws-test"
],
"EUWS-Domingos": [
"euws-test"
],
"TREQ": [
"treq-test"
],
Expand Down
Loading