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

Declares the LoadBalancer class, which queues requests, dispatches them and scales its server pool. More...

#include <cstddef>
#include <iosfwd>
#include <queue>
#include <string>
#include <vector>
#include "Firewall.h"
#include "Logger.h"
#include "Request.h"
#include "WebServer.h"

Go to the source code of this file.

Classes

struct  ScalingPolicy
 Rules for growing and shrinking the server pool. More...
struct  ScaleEvent
 One change to the server pool, kept for the scaling timeline in the log. More...
struct  Snapshot
 Point-in-time picture of the load balancer, recorded at regular intervals. More...
struct  LoadBalancerStats
 Counters accumulated over a whole run. More...
class  LoadBalancer
 Distributes queued requests across a dynamically sized pool of WebServer objects. More...

Detailed Description

Declares the LoadBalancer class, which queues requests, dispatches them and scales its server pool.

Author
Arnav Fotedar

Definition in file LoadBalancer.h.