-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a new function MaxRate() to the site object (#324)
* Adds a new function MaxRate() to the site object Previously, we assumed that if a site was 1g the max-rate should be one static thing, and that if it was 10g it should be another static thing. The introduction of "minimal" sites that only have a single server changes this. Minimal sites should have the max-rate set higher than "full" sites. The max-rate values only applies to physical sites, since the number is currently static for all virtual sites. * Corrects conditional, removing extra 'if' * Lowers max-rate for minimal 1g sites to 300Mbits/s
- Loading branch information
Showing
2 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
local sites = import 'sites.jsonnet'; | ||
|
||
/* | ||
The max-rate for the -txcontroller.max-rate flag for ndt-server for 1Gbit/s | ||
sites is set to 150Mbit/s, which should mean that the combined throughput for a | ||
a site should not exceed 450Mbit/s, notwithstanding already running tests which | ||
may significantly exceed this number. | ||
*/ | ||
local MaxRate1g = 150000000; | ||
|
||
/* | ||
The max-rate for the -txcontroller.max-rate flag for ndt-server for 10Gbit/s | ||
sites is set to 2.5Gbit/s, which should mean that the combined throughput for a | ||
a site should not exceed 7.5Gbit/s, notwithstanding already running tests which | ||
may significantly exceed this number. | ||
*/ | ||
local MaxRate10g = 2500000000; | ||
|
||
{ | ||
[site.name]: if site.transit.uplink == '1g' then MaxRate1g else MaxRate10g | ||
[site.name]: site.MaxRate() | ||
for site in sites | ||
if site.annotations.type == 'physical' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters