Skip to content

Urgent Computing Integrated Services for EarthQuakes

License

Notifications You must be signed in to change notification settings

eflows4hpc/ucis4eq

Repository files navigation

UCIS4EQ

UCIS4EQ provides the services needed for dealing with an urgent computing scenario.

Disclaimer


This software solution was developed at BSC as part of the ChEESE-COE project.
It was later modified as part of the eFlows4HPC projects.

Authors: Josep de la Puente, Juan Esteban Rodríguez, Marisol Monterrubio,
Marta Pienkowska
Contributors: Jorge Ejarque, Cedric Bhihe

Contacts:
    marisol.monterrubio@bsc.es
    jorge.ejarque@bsc.es
    cedric.bhihe@bsc.es

This program is free software: you can redistribute it and/or modify it under
the terms of the BSD 3-clause License , aka BSD NEW License, aka BSD REVISED
License, aka MODIFIED BSD License as published by the Regents of the
University of California.

This program is distributed as is, in the hope that it will be useful,
but WITHOUT ANY WARRANTY, without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MODIFIED BSD LICENSE for more details.

You should have received a copy of the MODIFIED BSD LICENSE
along with this program. If not, see <https://www.gnu.org/licenses/>.

HOW TO:

1- Install software Dependencies

  • Docker (Community Edition)

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
    sudo usermod -aG docker $USER
    

    Find more installation options in: https://docs.docker.com/install/linux/docker-ce/ubuntu/

  • Docker compose

    sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    

    Find more installation options in: https://docs.docker.com/compose/install/

2 - Deploy UCIS4EQ services

Because the Docker images are registered on the GitLab repository, first step is login on it

  docker login registry.gitlab.bsc.es

For obtaining docker-composer.yml, setup and test files, create a working directory, move there and then:

  bash -c "$(curl --request GET --header 'PRIVATE-TOKEN: ER9nSBQo8xsiczs47pAn' 'https://gitlab.bsc.es/api/v4/projects/2703/repository/files/install.sh/raw?ref=migration-fixes')"

Follow the instructions

Manual event triggering

From working directory:

1 - Start the UCIS4EQ System

Open a terminal and be sure that both .env and docker-compose.yml are in the such directory. Then, run:

> SSH_PRV="$(cat ~/.ssh/<my_id_rsa>)" docker-compose up

IMPORTANT: During first deployment, some images will be created for adding user's ssh credentials.

2 - Trigger a manual alert

curl -X POST -H 'Content-Type: application/json' -d @data/SAMOS_EQ_Event_DEMO.json http://127.0.0.1:5001/PyCOMPSsWM

3 - Event follow-up in the Dashboard

Open a browser and go to http://127.0.0.1:8050/

Quickstart tutorial

Independently from the above, this repo contains a quickstart tutorial in PDF format to guide you step by step through basic installation and launch on the BSC infrastructure.

Development Instructions:

To build the services (no push, must be done manually):

docker-compose -f docker-compose-build.yml build

To debug just code (no changes in dependencies):

docker-compose -f docker-compose-debug.yml up

If you want to start only a service (DAL is started because of dependencies):

docker-compose -f docker-compose-debug.yml up <service> 

To Run with PyCOMPSs in HPC Workflow run with this

HPC_RUN_PYCOMPSS=True docker-compose -f docker-compose-debug.yml up simulation workflowmanager slipgen microservices listener

Troubleshooting

By default the docker-compose files are prepared to forward the SSH Agent environment. Some OS distribution SSH agent do not store any SSH key. Check with command 'ssh-add -L' if there is any key added in the agent. If no keys are loaded load the key to access the supercomputer with the follwong command:

ssh-add <path/to/private-key>

About

Urgent Computing Integrated Services for EarthQuakes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published