commented out the constant Clusterwide_cap_interval and its setter function. Instead hardcoding this in proactiveclusterwidecappingfcfs.go

This commit is contained in:
Pradyumna Kaushik 2016-11-10 21:16:06 -05:00 committed by Renan DelValle
parent c16e33d99d
commit 58289ed90f

View file

@ -86,18 +86,18 @@ func UpdateWindowSize(new_window_size int) bool {
}
}
// Time duration between successive cluster wide capping.
var Clusterwide_cap_interval = 10.0 // Right now capping the cluster at 10 second intervals.
// Modify the cluster wide capping interval. We can update the interval depending on the workload.
// TODO: If the workload is heavy then we can set a longer interval, while on the other hand,
// if the workload is light then a smaller interval is sufficient.
func UpdateClusterwideCapInterval(new_interval float64) bool {
// Validation
if new_interval == 0.0 {
return false
} else {
Clusterwide_cap_interval = new_interval
return true
}
}
// // Time duration between successive cluster wide capping.
// var Clusterwide_cap_interval = 10 // Right now capping the cluster at 10 second intervals.
//
// // Modify the cluster wide capping interval. We can update the interval depending on the workload.
// // TODO: If the workload is heavy then we can set a longer interval, while on the other hand,
// // if the workload is light then a smaller interval is sufficient.
// func UpdateClusterwideCapInterval(new_interval int) bool {
// // Validation
// if new_interval == 0.0 {
// return false
// } else {
// Clusterwide_cap_interval = new_interval
// return true
// }
// }