Introduction
The P2PFaaS is a framework that allows you to implement a load balancing/scheduling algorithm for FaaS.
For a detailed information about the framework you can read my MSc thesis at raw.gpm.name/theses/master-thesis.pdf. If you are using P2PFaaS in your work please cite https://ieeexplore.ieee.org/document/8964273/:
@article{8964273,
author={Beraldi, Roberto and Proietti Mattia, Gabriele and Magnani, Giacomo},
journal={IEEE Transactions on Cloud Computing},
title={Power of random choices made efficient for fog computing},
year={2020},
volume={},
number={},
pages={1-1},
doi={10.1109/TCC.2020.2968443}}
Repository
This is the scheduler service of the framework. It's written in Go and it is packaged with Docker.
Build & Run
To build the image:
docker build -t p2p-faas/stack-scheduler:latest .
To run the scheduler please use the docker-compose.yml
provided in the stack repo.
Development
For running the development change directory to the root of the project, then change the GOPATH
:
export GOPATH=$(pwd)
Build run the image with
go build server