From 42e28d69e1463061e358042074f977bc0aa1be52 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Fri, 25 Nov 2016 16:04:11 -0500 Subject: [PATCH] changed the hosts from stratos-00x to stratos-00x.cs.binghamton.edu --- constants/constants.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index 6563715..5dc98ea 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -10,10 +10,10 @@ Also, exposing functions to update or initialize some of the constants. */ package constants -var Hosts = []string{"stratos-001", "stratos-002", - "stratos-003", "stratos-004", - "stratos-005", "stratos-006", - "stratos-007", "stratos-008"} +var Hosts = []string{"stratos-001.cs.binghamton.edu", "stratos-002.cs.binghamton.edu", + "stratos-003.cs.binghamton.edu", "stratos-004.cs.binghamton.edu", + "stratos-005.cs.binghamton.edu", "stratos-006.cs.binghamton.edu", + "stratos-007.cs.binghamton.edu", "stratos-008.cs.binghamton.edu"} // Add a new host to the slice of hosts. func AddNewHost(new_host string) bool { @@ -34,7 +34,7 @@ var Power_threshold = 0.6 // Right now saying that a task will never be given le So, if power required = 10W, the node would be capped to 75%*10W. This value can be changed upon convenience. */ -var Cap_margin = 0.7 +var Cap_margin = 0.50 // Modify the cap margin. func UpdateCapMargin(new_cap_margin float64) bool { @@ -73,7 +73,7 @@ func AddTotalPowerForHost(host string, total_power float64) bool { } // Window size for running average -var Window_size = 10 +var Window_size = 160 // Update the window size. func UpdateWindowSize(new_window_size int) bool {