|
Aggie Student Toolkit — Load Balancer CSCE 412 Project 4
Arnav Fotedar · Fall 2026 · C++ load balancer simulation
|
One change to the server pool, kept for the scaling timeline in the log. More...
#include <LoadBalancer.h>
Public Types | |
| enum class | Kind { Added , Reactivated , Removed , Retiring , Retired } |
| What happened to the server. More... | |
Public Attributes | |
| unsigned long | cycle = 0 |
| Clock cycle of the change. | |
| Kind | kind = Kind::Added |
| Type of change. | |
| unsigned int | serverId = 0 |
| Server affected. | |
| std::size_t | queueSize = 0 |
| Queue size that triggered the change. | |
| std::size_t | activeServers = 0 |
| Active (non-retiring) servers after the change. | |
One change to the server pool, kept for the scaling timeline in the log.
Definition at line 40 of file LoadBalancer.h.
|
strong |
What happened to the server.
Definition at line 42 of file LoadBalancer.h.
| unsigned long ScaleEvent::cycle = 0 |
Clock cycle of the change.
Definition at line 49 of file LoadBalancer.h.
| Kind ScaleEvent::kind = Kind::Added |
Type of change.
Definition at line 50 of file LoadBalancer.h.
| unsigned int ScaleEvent::serverId = 0 |
Server affected.
Definition at line 51 of file LoadBalancer.h.
| std::size_t ScaleEvent::queueSize = 0 |
Queue size that triggered the change.
Definition at line 52 of file LoadBalancer.h.
| std::size_t ScaleEvent::activeServers = 0 |
Active (non-retiring) servers after the change.
Definition at line 53 of file LoadBalancer.h.