Commit graph

563 commits

Author SHA1 Message Date
Pradyumna Kaushik
089b106fdb Commands to plug-in powercap policy. 2018-10-04 19:41:22 -04:00
Pradyumna Kaushik
4637355721 Reorganized code.
Building the scheduler in phases. To be able to do this, increased
visibility of schedulers/helpers.go#schedulerOptions.
Refactored dependent code.
2018-10-04 19:27:13 -04:00
Pradyumna Kaushik
c9d4e66236 Powercap policy and PCP config from commandline.
Added command line arguments corresponding to powercapping policy
and pcp config file path.
2018-10-04 19:21:45 -04:00
Pradyumna Kaushik
b8f2248810 Adding HostKeyCallback to sshConfig. Fix command.
Added HostKeyCallback to sshConfig. Right now using the
ssh.InsecureIgnoreHost() callback. This returns a function that
in turn returns nil. Note: returning nil would result in acceptance
of any host key. Hence, we need to change this to a callback of our
own implementation.

Fixed the command to run the throttling script. There were spacing
issues. Also, using strings.Join(...) instead of adding spaces in
the string (which is error prone).
2018-10-04 19:14:50 -04:00
Pradyumna Kaushik
1e2fae9f80 Removed underscore for second return. 2018-10-04 14:11:38 -04:00
Pradyumna Kaushik
410a6ef1fa Added pcp config file to Command args. 2018-10-04 14:10:41 -04:00
Pradyumna Kaushik
1e9828c35b Provide pcp config file from commandline.
Taking pcp config file name (or path) from commandline.
In scheduler.go, also checking to see if provided pcp config file
exists. If not, then exitting.
2018-10-04 13:57:35 -04:00
Pradyumna Kaushik
8e87bcb439 Fixed import alias prefix.
Changed the prefix to import aliases to be 'elek' instead of 'elec'.
2018-10-04 13:45:31 -04:00
Pradyumna Kaushik
b06bdeba59 Used println instead of printf if no args. 2018-10-04 13:40:04 -04:00
Pradyumna Kaushik
49b58fd2f9 Plug-in power-capping policy from commandline. 2018-10-04 13:38:55 -04:00
Pradyumna Kaushik
e9c338995c Fixed package name. Followed naming conventions. 2018-10-04 13:37:14 -04:00
Pradyumna Kaushik
0bdfa6c101 Run commands for plugging in scheduling policies. 2018-10-04 02:48:16 +00:00
Pradyumna Kaushik
219eecc8cf Description for Elektron Architecture 2018-10-03 21:58:35 -04:00
Pradyumna Kaushik
a5425874c2 Fix section sizes. Reposition sp selector image. 2018-10-03 21:44:46 -04:00
Pradyumna Kaushik
686aafe56e Remove tag from section title. Fix section sizes.
Removed the 'Elektron' tag from the section title. Also fixed the
sizes of the sections and subsections.
2018-10-03 21:44:12 -04:00
Pradyumna Kaushik
f4850a7e1d Fixed section and subsection sizes. 2018-10-03 21:41:49 -04:00
Pradyumna Kaushik
e3daff5046 Removed unused json attribute varCpuShare. 2018-10-03 21:35:20 -04:00
Pradyumna Kaushik
59e84f9a9f Removed commands to plug-in scheduling policies.
The documentation on the different scheduling policies should
technically not include the commands to be used to plug them in.
The commands would need to be present in a separate section that
talks about different ways to run Elektron.
2018-10-03 21:32:53 -04:00
Pradyumna Kaushik
888e2b7acc Fix title for pluggable power-capping strategies.
Power-capping strategies are not pluggable yet and hence, just
using "Power-Capping strategies" as the section title.
2018-10-03 21:30:14 -04:00
Pradyumna Kaushik
79bca21cf0 Documentation for Scheduling Policy Switching. 2018-10-03 21:29:52 -04:00
Renan DelValle
9554bf2666
Runing goimports on project as well as fixing README so that headers render correctly. 2018-09-30 18:23:38 -07:00
Renan DelValle
b341c0a0e4
Adding dep files and dependencies. 2018-09-30 18:02:42 -07:00
Renan DelValle
45f9efa578
Changing imports from bitbucket to gitlab. 2018-09-30 17:56:14 -07:00
Pradyumna Kaushik
cdbf60ea0d linked Mesos. 2018-09-28 01:44:46 -04:00
Pradyumna Kaushik
8f8772a66e Try 2 of image include. Outline for detailed doc. 2018-09-28 01:41:56 -04:00
Pradyumna Kaushik
ffe0734c12 resolved merge conflict. 2018-09-28 01:22:13 -04:00
Pradyumna Kaushik
056720e9c9 fixed image include markdown. 2018-09-28 01:20:56 -04:00
Pradyumna Kaushik
82b1ff2d96 fixed image include markdown. 2018-09-28 01:17:58 -04:00
Pradyumna Kaushik
5019ea34a4 Added architecture diagram. Refined description. 2018-09-28 01:16:08 -04:00
Pradyumna Kaushik
ab94d5f66a Commands to plug-in schedPolicies into Elektron. 2018-09-25 14:07:40 -04:00
Pradyumna Kaushik
8a78b58bc0 Enhanced description of Elektron.
Added the description to Elektron that is present in the research
paper.
2018-09-25 14:06:49 -04:00
Pradyumna Kaushik
93d8991947 Software reqs & instructions to build and run. 2018-09-23 19:34:45 -04:00
Pradyumna Kaushik
1437979223 fixed import. 2018-09-23 19:28:06 -04:00
Pradyumna Kaushik
66c19b53c9 Merged in differentSwitchingMechanisms (pull request #14)
DifferentSwitchingMechanisms

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:21:52 -04:00
Pradyumna Kaushik
1bee742588 fixed import. 2018-09-23 19:19:16 -04:00
Pradyumna Kaushik
8b27f5547d Merged in fixSchedWindowSize (pull request #13)
FixSchedWindowSize

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:18:50 -04:00
Pradyumna Kaushik
f1c6adb05b Merged in measureClassificationOverhead (pull request #12)
MeasureClassificationOverhead

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:18:30 -04:00
Pradyumna Kaushik
ae81125110 Merged in mapTaskDistrToSchedPolWhenSwitching (pull request #11)
MapTaskDistrToSchedPolWhenSwitching

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:18:07 -04:00
Pradyumna Kaushik
0f305ab796 Merged in updateRunningOnTaskRunningStatus (pull request #9)
critical: baseScheduler#Running wasn't getting update properly.

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:12:50 -04:00
Pradyumna Kaushik
b877d31cb8 Merged in schedPolSwitchConfigFile (pull request #8)
SchedPolSwitchConfigFile

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:10:23 -04:00
Pradyumna Kaushik
b569bd3060 Merged in schedPolSwitchLogging-revert (pull request #7)
adding back the call to base#LogSchedPolicySwitch(...). Had removed this addition by mistake when resolving merge conflicts.

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
2018-09-23 19:07:44 -04:00
Pradyumna Kaushik
85383da550 Merged in scheduleOnlySchedWindowTasks (pull request #6)
ScheduleOnlySchedWindowTasks

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:07:22 -04:00
Pradyumna Kaushik
3d51efc679 Merge branch 'scheduleOnlySchedWindowTasks' of https://bitbucket.org/sunybingcloud/electron-sps into scheduleOnlySchedWindowTasks 2018-09-23 19:01:49 -04:00
Pradyumna Kaushik
25bf363d2c Merged in tasksToScheduleWindow (pull request #5)
TasksToScheduleWindow

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
2018-09-23 19:01:17 -04:00
Akash Kothawale
b1bd21f730 Merged in akash/LogPolicySwitch (pull request #4)
Scheduling Policy Switch Logger

Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
2018-09-23 18:57:24 -04:00
Pradyumna Kaushik
3fa4a45ca7 added .gitignore. 2018-09-23 18:39:11 -04:00
Pradyumna Kaushik
6c77aa777e Merged in resourceUsageTracking (pull request #2)
ResourceUsageTracking

Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
2018-09-23 18:36:07 -04:00
Pradyumna Kaushik
ec18b617da ignored error returned from LaunchTasks. Technically, this error shouldn't occur. Retrofitted scheduling policies to not receive an error when calling LaunchTasks(...) 2018-09-23 18:30:12 -04:00
Pradyumna Kaushik
f041e6668b added a baseSchedPolicyState struct in schedulers/schedPolicy.go. This struct would store information common to scheduling policies. Added member called numTasksScheduled to baseSchedPolicyState that would keep count of the number of tasks that the current scheduling policy has scheduled. Moved the logic to switch (currently performing a random switch) to baseSchedPolicyState#switchIfNecessary(...) and retrofitted all scheduling policies to call this instead of inlining the code in each of them. 2018-09-23 18:28:11 -04:00
Pradyumna Kaushik
5a28f8539a formatted code. 2018-09-23 18:23:37 -04:00