Tune VPN fabric batching and flow windows
This commit is contained in:
@@ -1457,14 +1457,14 @@ func TestFabricFlowSchedulerProtectsInteractiveWindowDuringBulkPressure(t *testi
|
||||
if got := scheduler.RecommendedParallelSendWindowForTrafficClass(FabricTrafficClassBulk, 4); got != 1 {
|
||||
t.Fatalf("bulk adaptive window = %d, want 1", got)
|
||||
}
|
||||
if got := scheduler.RecommendedParallelSendWindowForTrafficClass(FabricTrafficClassInteractive, 4); got != 4 {
|
||||
t.Fatalf("interactive adaptive window = %d, want 4", got)
|
||||
if got := scheduler.RecommendedParallelSendWindowForTrafficClass(FabricTrafficClassInteractive, 8); got != 8 {
|
||||
t.Fatalf("interactive adaptive window = %d, want 8", got)
|
||||
}
|
||||
snapshot := scheduler.Snapshot()
|
||||
if !snapshot.AdaptiveBackpressureActive || snapshot.AdaptiveBackpressureReason != "bulk_window_reduced_to_protect_interactive" {
|
||||
t.Fatalf("adaptive snapshot = %+v", snapshot)
|
||||
}
|
||||
if snapshot.RecommendedParallelWindows[FabricTrafficClassBulk] != 1 || snapshot.RecommendedParallelWindows[FabricTrafficClassInteractive] != 4 {
|
||||
if snapshot.RecommendedParallelWindows[FabricTrafficClassBulk] != 1 || snapshot.RecommendedParallelWindows[FabricTrafficClassInteractive] != 8 {
|
||||
t.Fatalf("recommended class windows = %+v", snapshot.RecommendedParallelWindows)
|
||||
}
|
||||
if snapshot.TrafficClassCounts[FabricTrafficClassBulk] != 16 || snapshot.TrafficClassCounts[FabricTrafficClassInteractive] != 1 {
|
||||
|
||||
Reference in New Issue
Block a user