Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (26 loc) · 2.3 KB

Logs.md

File metadata and controls

28 lines (26 loc) · 2.3 KB

Logging

Elektron logs can be categorized into the following.

  • Console Logs - These are logs written to the console. These include logs related to the Mesos resource offers, offer matching, declining offers and task status updates. They are of the following types.
    • ERROR
    • WARNING
    • SUCCESS
    • GENERAL
  • Schedule Trace Logs (SCHED_TRACE) - Once each task has fit into a resource offer, the taskID and the corresponding hostname are logged.
  • PCP - For every second, data related to load, resource utilization, power consumption etc., is logged. The metrics to be logged need to be specified in the PCP config file.
  • Scheduling Policy Switching Logs - When scheduling policy switching is enabled (-switchSchedPol is used when launching Elektron), the following information is logged.
    • Scheduling Policy Switch trace (SPS) - Every time Elektron switches to a different scheduling policy, the name of the scheduling policy and the corresponding time stamp is logged.
    • SCHED_WINDOW - For every switch, the size of the scheduling window and the name of the scheduling policy is logged.
    • CLSFN_TASKDISTR_OVERHEAD - If the switching criteria is task distribution based, then the time taken to classify the tasks into low power consuming and high power consuming, and then to determine the task distribution is logged.

Elektron logs can be configured through Log config file. The following is the format for configuration.

<logtype>:
  enabled: <true/false>
  filenameExtension: <filename extension>
  minLogLevel: <minimum log level>
  allowOnConsole: <true/false>

The file has default configurations set. One can also configure the above fields for every log type.

  • enabled - Enable or disable a specific log type.
  • filenameExtension - Provide the file extension for specific log type.
  • minLogLevel - Provide a minimum log level above which all logs should be logged. This is available only for Console log type. The default value is debug).
  • allowOnConsole - Allow or Disallow a specific log type on the console.