GithubHelp home page GithubHelp logo

acc-mini-project's Introduction

Airfoil Project

In this project, we use Celery as workers, RabbitMQ as the broker, Flask as the application and MariaDB as the database. How the overall service workflow works can be seen in figure below.

workflow
  1. enter blackbox folder, run following commands

    sudo bash
    chmod +x requirements.sh
    ./requirements.sh

    get the CONTAINER_ID of FEniCS, and docker exec -it CONTAINER_ID /bin/bash to enter it. Then run

    chmod +x steps.sh
    ./steps.sh

    inside the container, to have mesh files and the solver well-prepared. Then exit the container and copy them to /docker/celery/ folder for further using. Arguments related to generating mesh files can be modified in steps.sh

  2. Build app and worker images by docker-compose build

    Start all services with N workers by docker-compose up --scale worker=N

  3. Enter one worker by docker exec -it docker_worker_1 /bin/bash

    Call Celery task by python3 run.py mesh_xml/NAME_OF_A_MESH_XML_FILE where NAME_OF_A_MESH_XML_FILE is any mesh file existing in mesh_xml

    Arguments related to the solver can be modified in /docker/celery/tasks.py

    Celery will distribute tasks to workers. Messages about overall calculation process can be shown through RabbitMQ.

acc-mini-project's People

Contributors

alexandra057 avatar vevark avatar

Watchers

 avatar  avatar

Forkers

alexandra057

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.