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.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file edgerun-request-generator-1.0.0.tar.gz.

File metadata

File hashes

Hashes for edgerun-request-generator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8fd96d7520f7ecfff72b67242596f886f9b2d3bffbf500a6e9d91d96d9546831
MD5 4a1d4f85bff3d3e2c3f64870ec2f22c4
BLAKE2b-256 6c1a742fd82203614a07eba74a70593b6da1e2d965163cc2fe4a1334bc9e1d3a

See more details on using hashes here.

File details

Details for the file edgerun_request_generator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edgerun_request_generator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92c76e693373aecedcdeaa85046a51bc19d787c879becc2d2cdc3df53b02a1d0
MD5 4b9ca13eaf2d9ac8822f0bd4c1720b61
BLAKE2b-256 30091fd1f6837e1cf408c57fb7cdc83acc9f6aa9d9d566b20abd12c829d31b1e

See more details on using hashes here.

Supported by

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