Skip to content

AERO-Project-EU/dummy-maestro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dummy Maestro Flask App for Benchmark Usage

A minimal Flask application with a single GET endpoint. Dockerized for easy deployment.

File Structure

flask-app/
├── dummy_maestro.py   # Main Flask app
├── requirements.txt   # Python dependencies
├── Dockerfile         # Docker configuration
└── README.md          # Instructions

Prerequisites


Running with Docker

  1. Clone the repository (or copy the files):

    git clone <your-repo-url>
    cd flask-app
  2. Build the Docker image:

    docker build -t dummy-maestro .
  3. Run the container:

    docker run -p 8080:8080 dummy-maestro

    By passing -cpus <numver-of-cpus> to docker and appending -w <number-of-workers> to the control you can control the level of parallelism in the server.

    This will start the app using Gunicorn, a production-grade WSGI server.

  4. Test the endpoint:

    curl http://0.0.0.0:8080/api/v1/status

    Expected response:

    Ok
    

Running Locally without Docker

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the app with Gunicorn (recommended for production):

    gunicorn -b 0.0.0.0:8080 dummy_maestro:app

    By passing -w <number-of-workers> you can control the level of parallelism in the server.

    Or for development/testing only, you can still use:

    python dummy_maestro.py
  3. Test the endpoint:

    curl http://localhost:8080/api/v1/status

    Expected response:

    Ok
    

About

A dummy python endpoint replying to the MAESTRO API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages