Elektron is a lightweight, power-aware, pluggable Mesos framework that behaves as a playground to experiment with different scheduling policies to schedule ad-hoc jobs in docker containers.
This repository has been archived on 2024-04-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
2017-03-13 16:38:53 -04:00
constants Merge branch 'newPowerClasses' of https://bitbucket.org/sunybingcloud/electron into kmeansTaskClassification 2017-03-10 17:26:39 -05:00
def the observation that is to be considered for the classification of a task can now be given as a function that takes the task and returns the observations as a slice of float64. Retrofitted the other functions in taskUtils to make use of this feature. 2017-02-25 19:57:01 -05:00
pcp Made sure that the victim that is capped the most is the one picked to be uncapped. This is to reduce the chances of benchmark starvation. Refined comments and logging. 2017-02-22 20:09:04 -05:00
powerCapping resolved merge conflict with master. Also, changed the name of the constructor for BPSWMaxMin from NewBPMaxMinWatts to NewBPSWMaxMinWatts 2017-02-11 14:26:27 -05:00
rapl changed the type of percentage in rapl.Cap(...) from int to float64. Retrofitted power-capping strategies to cap using a float64 value instead of an int. Moved common functions in loganddynamiccap.go and logAndProgressiveExtrema.go into pcp/utils.go. New power-capping strategy that builds on top of extrema, where it caps the victims at different until it can't cap further, in which case it starts uncapping them in the reverse order of capping. 2017-02-15 19:22:56 -05:00
schedulers Used the KMeans classification to classify the tasks. 2017-03-13 16:38:53 -04:00
utilities added function to initial list of Pairs from a map[string]float64. Removed unnecessary import. 2017-02-22 20:07:48 -05:00
config basic configuration for pcp 2016-12-22 22:58:58 -05:00
README.md Added a task utility to be able to cluster tasks into N clusters based on their watts resource requirements. Electron now compatible with Go1.8 and no longer with 1.7. Added TODOs. 2017-02-25 15:43:32 -05:00
scheduler.go Fixed messages for commandline arguments. 2017-02-20 23:49:27 -05:00
workload_sample.json Adding node class mapping for Watts as a resource in binpack 2016-12-23 21:04:15 -05:00

Electron: A power budget manager

To Do:

  • Create metrics for each task launched [Time to schedule, run time, power used]
  • Have calibration phase?
  • Add ability to use constraints
  • Running average calculations https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average
  • Make parameters corresponding to each scheduler configurable (possible to have a config template for each scheduler?)
  • TODO : Adding type of scheduler to be used, to be picked from a config file, along with it's configurable parameters.
  • Write test code for each scheduler (This should be after the design change)
  • Some of the constants in constants/constants.go can vary based on the environment.
    Possible to setup the constants at runtime based on the environment?
  • Log fix for declining offer -- different reason when insufficient resources as compared to when there are no longer any tasks to schedule.
  • Have a centralised logFile that can be filtered by identifier. All electron logs should go into this file.
  • Make def.Task an interface for further modularization and flexibility.
  • Convert def#WattsToConsider(...) to be a receiver of def.Task and change the name of it to Watts(...).
  • Have a generic sorter for task resources instead of having one for each kind of resource.
  • Critical -- Add software requirements to the README.md (Mesos version, RAPL version, PCP version, Go version...)
  • Retrofit to use Go 1.8 sorting techniques. Use def/taskUtils.go for reference.
  • Retrofit TopHeavy and BottomHeavy schedulers to use the clustering utility for tasks.

Requires Performance Co-Pilot tool pmdumptext to be installed on the machine on which electron is launched for logging to work and PCP collector agents installed on the Mesos Agents

How to run (Use the --help option to get information about other command-line options):

./electron -workload <workload json>

To run electron with ignoreWatts, run the following command,

./electron -workload <workload json> -ignoreWatts

Workload schema:

[
   {
      "name": "minife",
      "cpu": 3.0,
      "ram": 4096,
      "watts": 50,
      "image": "gouravr/minife:v5",
      "cmd": "cd src && mpirun -np 1 miniFE.x -nx 100 -ny 100 -nz 100",
      "inst": 9,
      "class_to_watts" : {
          "A": 30.2475289996,
          "B": 35.6491229228,
          "C": 24.0476734352
       }

   },
   {
      "name": "dgemm",
      "cpu": 3.0,
      "ram": 4096,
      "watts": 50,
      "image": "gouravr/dgemm:v2",
      "cmd": "/./mt-dgemm 1024",
      "inst": 9,
      "class_to_watts" : {
          "A": 35.2475289996,
          "B": 25.6491229228,
          "C": 29.0476734352
       }
   }
]