Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

189 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scenario Queue

Architecure

Manager

The manager is responsible for managing the scenario queue, including adding, removing, and updating scenarios. It interacts with the database to store and retrieve scenario information.

  • Writting in Rust
  • Using SeaORM as ORM
  • Exposing REST API using Actix-web
  • Storing data in PostgreSQL

Worker

The worker is responsible for executing the scenarios in the queue. It fetches scenarios from the manager and runs them using the specified simulator and sampler. The worker is expected to be spreaded in a SLURM cluster.

  • Writting in Python
  • Communicating with the manager via REST API

Usage

Manager

  1. Configure the database metadata in both db/.env and manager/.env.
  2. Start the PostgreSQL database using Docker Compose:
    cd db
    docker-compose up -d
  3. Start the manager server:
    cd ../manager
    cargo run --release --bin manager

Worker

  1. Configure the manager URL in worker/.env.
  2. Pull the Apptainer image under the worker directory:
    cd worker
    apptainer pull worker.sif docker://tonychi/worker:latest
  3. Start the worker:
    sbatch scripts/run.slurm

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages