Skip to main content

Edge Run Request Generator

Project description

Edge Run Request Generator

This project provides ready-to-use request generators that the Galileo project uses to generate workload (specifically, faas-sim and galileo-experiments)

The project is structured simply and offers multiple generators that produce inter-arrival times. Currently supported RPS profiles:

  • Constant - does what you'd expect
  • Sine - replicates a sine wave with a given peak (max rps) and period (simulation time in seconds between peaks)
  • Randomwalk - creates a random walk pattern

RPS profiles yield a target average request per second pattern at a given time.

RPS profiles can be decorated using arrival profiles to get a more realistic request pattern. Following arrival profiles are supported:

  • Static
  • Expovariate

You can save profiles using the helper function save_requests and pre_recorded_profile to read a saved profile (only necessary if you like to plot it afterwards again).

Install

To install dependencies and develop, run:

make venv

This creates a virtual environment, activates it and installs all dependencies (requirements.txt and requirements-dev.txt).

If you like to run the notebooks (i.e., to generate request patterns and plot them comfortably):

pip install -e .
jupyter notebook

Note: you might have to restart the terminal session if jupyter notebook fails.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edgerun-request-generator-1.0.1.dev2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file edgerun-request-generator-1.0.1.dev2.tar.gz.

File metadata

File hashes

Hashes for edgerun-request-generator-1.0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 d0cb3ae0384cf2f638348b79613b59ed5833bc5a78c3d81b20bfab922a3d71e6
MD5 04ab5b9af65e8c641166cf77b8897f17
BLAKE2b-256 4ef8867bedff415fcedc737d553ada8e9fb54414ce239c558e20bf209bf13bba

See more details on using hashes here.

File details

Details for the file edgerun_request_generator-1.0.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for edgerun_request_generator-1.0.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac07233a2dbe7f2f2ccd9500608b35548d0e01f30044edecde3bbde03bddb19
MD5 cd9325bc36fecbee055a6f364df3c8a9
BLAKE2b-256 e3b7620e8e2c58bca1058464847cc9594cbb30057d9904e44c25416796ea95a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page