diff --git a/.env.scenarios b/.env.scenarios index f7f25d1..0eec9e8 100644 --- a/.env.scenarios +++ b/.env.scenarios @@ -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) diff --git a/docker-compose.models.scenarios.yml b/docker-compose.models.scenarios.yml index b24f588..4cf8da2 100644 --- a/docker-compose.models.scenarios.yml +++ b/docker-compose.models.scenarios.yml @@ -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 @@ -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: @@ -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 diff --git a/scenarios/a_settings.json b/scenarios/a_settings.json index 122102c..db44ef0 100644 --- a/scenarios/a_settings.json +++ b/scenarios/a_settings.json @@ -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" diff --git a/scenarios/defaults/15_euws-domingos_impact-forecasting-analysis_settings.json b/scenarios/defaults/15_euws-domingos_impact-forecasting-analysis_settings.json new file mode 100644 index 0000000..5e3a64a --- /dev/null +++ b/scenarios/defaults/15_euws-domingos_impact-forecasting-analysis_settings.json @@ -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 +} diff --git a/scenarios/ui-config.json b/scenarios/ui-config.json index d382204..cbe4d11 100644 --- a/scenarios/ui-config.json +++ b/scenarios/ui-config.json @@ -16,6 +16,9 @@ "EUWS": [ "euws-test" ], + "EUWS-Domingos": [ + "euws-test" + ], "TREQ": [ "treq-test" ],