Commit graph

425 commits

Author SHA1 Message Date
Pradyumna Kaushik
1c4b6f0f01 refined README and removed unwanted scheduling policies. 2017-09-26 00:05:19 -04:00
Pradyumna Kaushik
dc279801b7 Merged in genericTaskSorter (pull request #18)
GenericTaskSorter

Approved-by: Renan DelValle <rdelval1@binghamton.edu>
Approved-by: ajain13 <ajain13@binghamton.edu>
2017-09-05 18:29:13 +00:00
Pradyumna Kaushik
3a9db01fa0 formatted files 2017-08-26 22:33:06 -04:00
Pradyumna Kaushik
8bc408dea1 fixed comments. Removed an old comment that no longer made sense. 2017-08-26 15:43:09 -04:00
Pradyumna Kaushik
9e620eaede changed def.TaskSorter(...) to def.SortTasks(...) for semantics. Now, def.SortTasks(...) also sorts the tasks instead of returning just a func (i, j int) bool {}. Removed TODO from the README associated with this PR 2017-08-26 15:39:45 -04:00
Pradyumna Kaushik
0869bea2d8 Used closures instead of strings for the generic sorter. This removed the need for reflection. 2017-08-26 15:19:30 -04:00
Pradyumna Kaushik
3c65bdf02e changed the scope of TaskResourceNames and SortCriteria to be package private. 2017-08-23 20:10:33 -04:00
Pradyumna Kaushik
c2c7a2c090 Added TODO to use the generic task sorters and get rid of the existing sorters present in def/task.go 2017-08-23 20:06:44 -04:00
Pradyumna Kaushik
f29b7f51a9 Added a generic task sorter utility. This allows for an array of tasks to be sorted based on any resource. The possible resources by which an array of tasks can be sorted currently are listed in def/sortingCriteria.go. One can add more to this if required. 2017-08-23 19:35:19 -04:00
Pradyumna Kaushik
9b9dc73269 Merged in kmeansTaskClassification (pull request #17)
KmeansTaskClassification

Approved-by: ajain13 <ajain13@binghamton.edu>
Approved-by: Renan DelValle <rdelval1@binghamton.edu>
2017-08-23 02:57:33 +00:00
Pradyumna Kaushik
235ed189d5 Moved the TODO, for the refinement of the cluster sorting algorithm, to the main README file. 2017-08-22 13:09:05 -04:00
Pradyumna Kaushik
e1350838f3 Merge branch 'kmeansTaskClassification' of https://bitbucket.org/sunybingcloud/electron into kmeansTaskClassification 2017-08-22 13:03:17 -04:00
Pradyumna Kaushik
f4459c8cbf Consolidated the ClassifyTasks(...) functions from topHeavy and bottomHeavy and added the function to def/taskUtils.go. Added TODOs for refining the means by which the kmeans classified clusters were sorted. 2017-08-22 13:00:40 -04:00
Pradyumna Kaushik
41ef269c62 fixed indentation 2017-08-22 12:56:36 -04:00
Pradyumna Kaushik
e3569e95ce fixed comments to be a little more meaningful. 2017-04-30 16:48:38 -04:00
Pradyumna Kaushik
1b15bb14e7 Resolved merge conflicts with the master. Also, added TODO in README to use Go1.8 techniques. 2017-04-21 17:17:22 -04:00
ajain13
bb73236421 Merged in Build-bug-fix (pull request #16)
Build bug fix due to an incorrect import

Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
2017-03-26 01:23:32 +00:00
Abhishek Jain
806ac6fa86 Removed the import statement which was importing offerUtils from electron-archive. This results in build failure is electron-archive is a local package 2017-03-25 21:11:24 -04:00
ajain13
84c14f0c2f Merged in hostsConstantUpdation (pull request #15)
Dynamic updation of constant.Hosts and constants.PowerClasses.

Approved-by: Renan DelValle <rdelval1@binghamton.edu>
Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
2017-03-26 00:37:41 +00:00
Abhishek Jain
4024f1655e Fixed a TODO 2017-03-25 20:35:50 -04:00
Abhishek Jain
34a9c89e45 Added a TODO regarding handling the powerclass not being configured on a node condition 2017-03-25 20:34:58 -04:00
Abhishek Jain
de7e73ff50 Changed a log message in the UpdateEnvironment(..) func. 2017-03-25 20:27:40 -04:00
Abhishek Jain
e01c7b1b1d Retrofitted all the schedulers to call UpdateEnvironment(..) function instead of the old named function i.e AddHostIfNew(..) 2017-03-25 18:06:39 -04:00
Abhishek Jain
8eddad4e17 Changed the function name from AddHostIfNew(..) to UpdateEnvironment(..) based on a comment in the PR 2017-03-25 18:05:36 -04:00
Abhishek Jain
85b14e125d Got rid of commented code 2017-03-24 17:28:53 -04:00
Abhishek Jain
9546529f80 Corrected a spelling mistake in a print statement 2017-03-24 17:13:21 -04:00
Abhishek Jain
1915e589cd Made a tiny change in the logging message in AddHostIfNew(..) function 2017-03-24 17:03:29 -04:00
Abhishek Jain
ca24706582 Removed the tag TODO from a TODO 2017-03-24 16:53:27 -04:00
Abhishek Jain
02aa1fac3c Removed a TODO which is basically this current PR 2017-03-24 16:40:14 -04:00
Abhishek Jain
6665ff4776 Fixed a bug. 2017-03-24 16:36:42 -04:00
Abhishek Jain
abc718b554 Performed a git fmt 2017-03-24 16:34:17 -04:00
Abhishek Jain
10358b418b Added a space before { 2017-03-24 16:31:49 -04:00
Abhishek Jain
b4f9a989cb Retrofitted all the schedulers to now call the offerutils.AddHostIfNew(..) utility function which will dynamically populate the constants.Hosts and constants.PowerClasses. 2017-03-24 16:28:49 -04:00
Abhishek Jain
841c7d5ee8 Added AddHostIfNew(..) utility function which is responsible to populate the constants.Hosts and constants.PowerClasses 2017-03-24 16:27:14 -04:00
Abhishek Jain
ed8799566b Removed the hardcoded nodes and their powerclasses from the PowerClasses map as now it will populated dynamically 2017-03-24 16:25:24 -04:00
Abhishek Jain
ee94e13d86 Updated a TODO from the list of TODOs, changed the usage of running electron with Watts as a resource and updated the workload schema 2017-03-23 22:25:35 -04:00
Abhishek Jain
aed4fd1073 Retrofitted all schedulers to now pick the hostname from the offer and add it to constants.Hosts 2017-03-23 22:16:05 -04:00
Abhishek Jain
f85ed944f4 Changed the loop as now we are looping over a map and not a slice. 2017-03-23 22:13:29 -04:00
Abhishek Jain
710447cb0d Changed the Hosts from being a slice to a map with the key as hostname and value as a struct which would be an empty struct in order to mimic a set 2017-03-23 22:11:38 -04:00
Abhishek Jain
26c49d4098 Restoring offerUtils. Had deleted this by mistake. 2017-03-23 22:09:51 -04:00
Abhishek Jain
b311ee81f5 Changed the loop as the Hosts is now a map and not a list and now looping over the keys is required. 2017-03-23 22:03:03 -04:00
Abhishek Jain
9365c2e51d Changed the Hosts from list to a set of hosts using a map with key as hostname and value as an empty struct 2017-03-23 22:01:29 -04:00
Pradyumna Kaushik
8b7a57519b Merged in progressiveExtrema (pull request #12)
ProgressiveExtrema

Approved-by: Renan DelValle <rdelval1@binghamton.edu>
Approved-by: ajain13 <ajain13@binghamton.edu>
2017-03-18 23:56:05 +00:00
Pradyumna Kaushik
dd3019735d Merge branch 'master' of https://bitbucket.org/sunybingcloud/electron into progressiveExtrema 2017-03-18 19:54:37 -04:00
Pradyumna Kaushik
e608ce4644 Merged in newPowerClasses (pull request #14)
reclassified nodes in the cluster into 4 power classes instead of the original 3. Retrofitted the hybrid schedulers TopHeavy and BottomHeavy to comply with the change classification of nodes"

Approved-by: Renan DelValle
2017-03-14 02:09:31 +00:00
Pradyumna Kaushik
190b395bc3 fixed bug to return []float64{...} as observations rather than one value. 2017-03-13 16:44:52 -04:00
Pradyumna Kaushik
34ab753491 Used the KMeans classification to classify the tasks. 2017-03-13 16:38:53 -04:00
Pradyumna Kaushik
668ae586fe Merge branch 'newPowerClasses' of https://bitbucket.org/sunybingcloud/electron into kmeansTaskClassification 2017-03-10 17:26:39 -05:00
Pradyumna Kaushik
505ccc0471 reclassified nodes in the cluster into 4 power classes instead of the original 3. Retrofitted the hybrid schedulers TopHeavy and BottomHeavy to comply with the change classification of nodes" 2017-03-10 17:03:54 -05:00
Pradyumna Kaushik
41206dd82e refactored name of CapThreshold to LowerCapLimit. Added comment to mention that floating point operations can lead to precision loss. 2017-03-09 19:20:13 -05:00