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

Counters accumulated over a whole run. More...

#include <LoadBalancer.h>

Public Attributes

unsigned long received = 0
 Requests offered to admit().
unsigned long admitted = 0
 Requests that entered the queue.
unsigned long rejected = 0
 Requests blocked by the firewall.
unsigned long discarded = 0
 Requests dropped because the queue was full.
unsigned long dispatched = 0
 Requests assigned to a server.
unsigned long completed = 0
 Requests finished by a server.
unsigned long long totalWait = 0
 Sum of queue waits of dispatched requests.
unsigned long maxWait = 0
 Longest queue wait of any dispatched request.
unsigned long scaleUps = 0
 Servers added or reactivated.
unsigned long scaleDowns = 0
 Servers removed or marked for retirement.
std::size_t startingQueue = 0
 Queue size at time 0, before the first dispatch.
std::size_t queueAfterFirstDispatch = 0
 Queue size at time 0, after the first dispatch.
std::size_t peakQueue = 0
 Largest queue size seen.
unsigned long peakQueueCycle = 0
 Cycle at which the largest queue was seen.
std::size_t initialServers = 0
 Servers at the start of the run.
std::size_t minActiveServers = 0
 Fewest active servers at any cycle.
std::size_t peakLiveServers = 0
 Most live servers at any cycle.
unsigned long long serverCycles = 0
 Sum over cycles of live servers (capacity offered).
unsigned long long busyCycles = 0
 Server cycles spent processing (capacity used).

Detailed Description

Counters accumulated over a whole run.

Definition at line 73 of file LoadBalancer.h.

Member Data Documentation

◆ received

unsigned long LoadBalancerStats::received = 0

Requests offered to admit().

Definition at line 74 of file LoadBalancer.h.

◆ admitted

unsigned long LoadBalancerStats::admitted = 0

Requests that entered the queue.

Definition at line 75 of file LoadBalancer.h.

◆ rejected

unsigned long LoadBalancerStats::rejected = 0

Requests blocked by the firewall.

Definition at line 76 of file LoadBalancer.h.

◆ discarded

unsigned long LoadBalancerStats::discarded = 0

Requests dropped because the queue was full.

Definition at line 77 of file LoadBalancer.h.

◆ dispatched

unsigned long LoadBalancerStats::dispatched = 0

Requests assigned to a server.

Definition at line 78 of file LoadBalancer.h.

◆ completed

unsigned long LoadBalancerStats::completed = 0

Requests finished by a server.

Definition at line 79 of file LoadBalancer.h.

◆ totalWait

unsigned long long LoadBalancerStats::totalWait = 0

Sum of queue waits of dispatched requests.

Definition at line 80 of file LoadBalancer.h.

◆ maxWait

unsigned long LoadBalancerStats::maxWait = 0

Longest queue wait of any dispatched request.

Definition at line 81 of file LoadBalancer.h.

◆ scaleUps

unsigned long LoadBalancerStats::scaleUps = 0

Servers added or reactivated.

Definition at line 82 of file LoadBalancer.h.

◆ scaleDowns

unsigned long LoadBalancerStats::scaleDowns = 0

Servers removed or marked for retirement.

Definition at line 83 of file LoadBalancer.h.

◆ startingQueue

std::size_t LoadBalancerStats::startingQueue = 0

Queue size at time 0, before the first dispatch.

Definition at line 84 of file LoadBalancer.h.

◆ queueAfterFirstDispatch

std::size_t LoadBalancerStats::queueAfterFirstDispatch = 0

Queue size at time 0, after the first dispatch.

Definition at line 85 of file LoadBalancer.h.

◆ peakQueue

std::size_t LoadBalancerStats::peakQueue = 0

Largest queue size seen.

Definition at line 86 of file LoadBalancer.h.

◆ peakQueueCycle

unsigned long LoadBalancerStats::peakQueueCycle = 0

Cycle at which the largest queue was seen.

Definition at line 87 of file LoadBalancer.h.

◆ initialServers

std::size_t LoadBalancerStats::initialServers = 0

Servers at the start of the run.

Definition at line 88 of file LoadBalancer.h.

◆ minActiveServers

std::size_t LoadBalancerStats::minActiveServers = 0

Fewest active servers at any cycle.

Definition at line 89 of file LoadBalancer.h.

◆ peakLiveServers

std::size_t LoadBalancerStats::peakLiveServers = 0

Most live servers at any cycle.

Definition at line 90 of file LoadBalancer.h.

◆ serverCycles

unsigned long long LoadBalancerStats::serverCycles = 0

Sum over cycles of live servers (capacity offered).

Definition at line 91 of file LoadBalancer.h.

◆ busyCycles

unsigned long long LoadBalancerStats::busyCycles = 0

Server cycles spent processing (capacity used).

Definition at line 92 of file LoadBalancer.h.


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