Aggie Student Toolkit — Load Balancer CSCE 412 Project 4
Arnav Fotedar · Fall 2026 · C++ load balancer simulation
Loading...
Searching...
No Matches
GeneratorSettings Struct Reference

Tunable parameters for random request generation. More...

#include <RequestGenerator.h>

Public Attributes

unsigned int minTaskCycles = 10
 Shortest possible task, in clock cycles.
unsigned int maxTaskCycles = 100
 Longest possible task, in clock cycles.
double arrivalRate = 0.45
 Average new requests per clock cycle (Poisson mean).
double waveAmplitude = 0.6
 Traffic wave size: the rate swings between (1 - a) and (1 + a) x arrivalRate.
unsigned long wavePeriod = 25000
 Cycles in one busy-to-quiet traffic wave; 0 disables the wave.
double streamingShare = 0.35
 Probability that a request is a streaming ('S') job.

Detailed Description

Tunable parameters for random request generation.

Definition at line 21 of file RequestGenerator.h.

Member Data Documentation

◆ minTaskCycles

unsigned int GeneratorSettings::minTaskCycles = 10

Shortest possible task, in clock cycles.

Definition at line 22 of file RequestGenerator.h.

◆ maxTaskCycles

unsigned int GeneratorSettings::maxTaskCycles = 100

Longest possible task, in clock cycles.

Definition at line 23 of file RequestGenerator.h.

◆ arrivalRate

double GeneratorSettings::arrivalRate = 0.45

Average new requests per clock cycle (Poisson mean).

Definition at line 24 of file RequestGenerator.h.

◆ waveAmplitude

double GeneratorSettings::waveAmplitude = 0.6

Traffic wave size: the rate swings between (1 - a) and (1 + a) x arrivalRate.

Definition at line 25 of file RequestGenerator.h.

◆ wavePeriod

unsigned long GeneratorSettings::wavePeriod = 25000

Cycles in one busy-to-quiet traffic wave; 0 disables the wave.

Definition at line 26 of file RequestGenerator.h.

◆ streamingShare

double GeneratorSettings::streamingShare = 0.35

Probability that a request is a streaming ('S') job.

Definition at line 27 of file RequestGenerator.h.


The documentation for this struct was generated from the following file: