Skip to content
forked from HongyuHe/noserver

🔁 Full-system simulator for modeling serverless systems

License

Notifications You must be signed in to change notification settings

sis-ethz/faasim

 
 

Repository files navigation

FaaSim

FaaSim is a discrete-event simulator for modeling main-stream serverless systems. It disaggregates the three scheduling dimensions: (1) load balancing, (2) autoscaling, and (3) placement. The algorithms of each dimension are pluggable, enabling the exploration of multiple policy choices in one system.

( This is a prototype that I developed as a proof of concept for my research at ETH. For more details: Hongyu He <[email protected]> )

Architecture of FaaSim

Setup

$ pip3 install -r requirements_dev.txt

Run

$ python3 faasim <rps | test>

Validation

The following validations were conducted against the popular serverless platform Knative.

For the following experiments, the hardware specifications are the following:

  • Cluster size: 2 nodes (1 master + 1 worker)
  • Number of cores per node: 16 -> maximum theoretical throughput is 16 requests per second
  • Function execution time: 1 s (50 percentile from Azure function trace)
  • Function memory footprint: 170 MiB (50 percentile from Azure function trace)

CPU Utilization

Validation of CPU utilization

Memory Usage

Validation of memory usage

Latency & Cold Start

In the following experiments, the system was not warmed up in order to preserve cold start.

  • CDF:

Validation of Queuing Latency

  • 50 percentile (p50):

Validation of p50 Queuing Latency

  • 99 percentile (p99):

Validation of p99 Queuing Latency

Autoscaling

Validation of Autoscaling

About

🔁 Full-system simulator for modeling serverless systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.8%
  • Makefile 6.2%