commented out the constant Clusterwide_cap_interval and its setter function. Instead hardcoding this in proactiveclusterwidecappingfcfs.go
This commit is contained in:
parent
c16e33d99d
commit
58289ed90f
1 changed files with 15 additions and 15 deletions
|
@ -86,18 +86,18 @@ func UpdateWindowSize(new_window_size int) bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Time duration between successive cluster wide capping.
|
// // Time duration between successive cluster wide capping.
|
||||||
var Clusterwide_cap_interval = 10.0 // Right now capping the cluster at 10 second intervals.
|
// 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.
|
// // 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,
|
// // 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.
|
// // if the workload is light then a smaller interval is sufficient.
|
||||||
func UpdateClusterwideCapInterval(new_interval float64) bool {
|
// func UpdateClusterwideCapInterval(new_interval int) bool {
|
||||||
// Validation
|
// // Validation
|
||||||
if new_interval == 0.0 {
|
// if new_interval == 0.0 {
|
||||||
return false
|
// return false
|
||||||
} else {
|
// } else {
|
||||||
Clusterwide_cap_interval = new_interval
|
// Clusterwide_cap_interval = new_interval
|
||||||
return true
|
// return true
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
Reference in a new issue