Load Balancer Simulation
A simulation of a load balancer with dynamic server scaling in C++
Loading...
Searching...
No Matches
Config.h
Go to the documentation of this file.
1
5
6#ifndef CONFIG_H
7#define CONFIG_H
8
9#include <string>
10#include <vector>
11
17 double requestProbability = 0.35;
19 int minThreshold = 50;
20 int maxThreshold = 80;
24 bool colorsEnabled = true;
25 int statusInterval = 100;
26 std::vector<int> blockedOctets = {192, 255};
27
33 bool loadFromFile(const std::string& path);
34};
35
36#endif
Configuration parameters for the load balancer simulation.
Definition Config.h:16
int maxProcessingTime
Definition Config.h:22
double requestProbability
Definition Config.h:17
int minProcessingTime
Definition Config.h:21
std::vector< int > blockedOctets
Definition Config.h:26
bool loadFromFile(const std::string &path)
Load configuration from a key=value file.
Definition Config.cpp:32
int initialQueueMultiplier
Definition Config.h:23