This package contains examples that demonstrate various ways to work with faas-sim. Each example has a
runnable main.py
. You can run them from the faas-sim root directory with:
make venv
source .venv/bin/activate
python -m examples.<example>.main
Replace <example>
with one of the example packages:
basic
: set up and run a simulationcustom_function_sim
: create a custom function simulator that models the behavior of functionscustom_scheduler
: replace the default scheduler with a custom implementation