Commit graph

30 commits

Author SHA1 Message Date
Bhargavi Hanumant Alandikar
3543960689 Elektron Logging library (#16)
switch to logrus for logging.

replaced old logging library with a wrapper around logrus.
We now just need to use the exported Log(...) and Logf(...) from the logging/
package that wraps around a set of loggers constituting a chain (following COR).
Loggers are configured using a YAML file that specifies the following.
1. enabled/disabled
2. whether the message should be logged on console.
3. filename extension.
4. minimum log level.

Retrofitted source code to now use the updated logging library.
Updated the documentation with information regarding the specification
of the log config file.

Currently, the log format in the config file is not adhered to. This is going to be
addressed in a future commit.
2019-12-09 20:15:33 -05:00
PRADYUMNA KAUSHIK
e3caa90c31
Refactor imports, Add vendor/ as submodule (#5)
refact imports to github.xxx. update go.mod + go.sum

* removed vendor/ folder

* Added vendor/ submodule.

Moved dependencies that need to be vendored into separate repository.
	- https://github.com/spdfg/elektron-vendor
Added vendor/ as a submodule using the below command.
	- git submodule add https://github.com/spdfg/elektron-vendor vendor
If wanting to use vendor, run the following commands after cloning
elektron.
1. git submodule init
2. git submodule update

* added instructions to clone vendor/ submodule.

* updated module to spdfg. Refactored imports
2019-10-31 14:32:46 -04:00
Renan DelValle
291f4f3979
Adding GPLv3 Licensing. 2018-10-06 20:03:14 -07:00
Pradyumna Kaushik
b807625b78 Fixed the comments to be capitalized at the start and also terminate with a period. 2017-09-28 15:36:47 -04:00
Pradyumna Kaushik
180e85ddfa removed unnecessary constants 2017-09-26 00:31:45 -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
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
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
dd3019735d Merge branch 'master' of https://bitbucket.org/sunybingcloud/electron into progressiveExtrema 2017-03-18 19:54:37 -04: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
Pradyumna Kaushik
d5d3c87ff2 added a constant called CapThreshold that defines the lower limit below which we shouldn't cap a node. 2017-02-15 19:15:18 -05:00
Pradyumna Kaushik
6ac1b38883 Added comment to explain the classification of nodes in the cluster into power-classes. 2017-02-11 01:14:02 -05:00
Pradyumna Kaushik
ec78480067 renamed constants.CapMargin to constants.Tolerance for better semantics 2017-02-10 20:53:18 -05:00
Pradyumna Kaushik
05f92bcfd2 resolved merge conflict 2017-02-10 18:02:06 -05:00
Pradyumna Kaushik
1dcf416849 Resolved merge conflicts with master 2017-02-10 16:23:09 -05:00
Pradyumna Kaushik
aabdd716dd Added TODO to clean up constants.go and use Mesos attributes instead. 2017-02-09 20:41:54 -05:00
Pradyumna Kaushik
fdcb401447 Made classMapWatts a commandLine option where one can enable and disable mapping of watts to powerclasses when accepting offers from Mesos. Removed the schedulers that were created solely for the classMapWatts feature. Retrofitted all schedulers to use the powerClass mapped watts attribute for a task, if classMapWatts has been enabled. Removed unnecessary functions and variables from constants.go. Removed unnecessary functions from utilities/utils.go. Fixed operator precendence issue with takeOffer(...) in some of the schedulers. Added TODO to decouple capping strategies from the schedulers completely. Added TODO to move all the common struct attributes in the schedulers into base.go. 2017-02-09 18:05:38 -05:00
Pradyumna Kaushik
2cd77a7ba8 Changed Window to ConsiderationWindow. 2017-01-28 18:29:00 -05:00
Pradyumna Kaushik
042c64210a Added PowerClasses -- classification of hosts in the cluster, based on their TDP. 2017-01-28 17:44:16 -05:00
Pradyumna Kaushik
86d91b3b5b changed the CapMargin to 70 and Window to 20 as they are the optimal ones. 2017-01-06 15:56:49 -08:00
Pradyumna Kaushik
1c8265b87b Updated comments 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
512918e1e8 Added explanation for StarvationThreshold. Removed TotalPower as it was embedded inside the schedulers. 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
50d1d79051 fixed naming convensions to be camel cased. Reformatted the code. 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
81d795f197 formatted the code 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
42e28d69e1 changed the hosts from stratos-00x to stratos-00x.cs.binghamton.edu 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
1184016f8c changed the window size and capmargin to create differernt configurations. No chnage made to the code. 2016-12-22 22:59:02 -05:00
Pradyumna Kaushik
c1eaa453a2 Sycnrhonized operations that change the value of the cluster wide cap. Added cleverRecap(...) that determines the recap value of the cluster at a much finer level, taking into account the average load on each node in the cluster. Bug fix in cap.go -- closed the session once capping had been done. This prevented from running out of file descriptors. 2016-12-22 22:59:02 -05:00
Pradyumna Kaushik
58289ed90f commented out the constant Clusterwide_cap_interval and its setter function. Instead hardcoding this in proactiveclusterwidecappingfcfs.go 2016-12-22 22:59:02 -05:00
Pradyumna Kaushik
d3e4914f58 Defined constants that help in scheduling of tasks. 2016-12-22 22:59:02 -05:00