Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-1450

Fix bugs and refactor code in ResourceAwareScheduler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      Code refactored:

      1. Refactor RAS_Nodes. Pushed some of the functionality in to RAS_Nodes. Each RAS_Node will now be initialized with a map of all its assignments. Each RAS_Node will also figure out resources used and available. Removed unnecessary functions.

      2. Made WorkerSlot immutable so that a scheduling strategy won't mistakenly modify it

      3. Added a wrapping layer for RAS_Node to feed into scheduling strategies so that the semantics of what a scheduling strategy should do will be more clear. Each scheduling strategy shouldn't be actually assigning anything. The strategy should only calculate a scheduling.

      Bug fixes:

      1. Minor bug in displaying the assigned resources for a supervisor on the UI. The function updateSupervisorResources was placed in the wrong place

      2. Minor bug fix in freeing memory in RAS_Node there was some wrong math that was done.

      Attachments

        Activity

          People

            jerrypeng Boyang Jerry Peng
            jerrypeng Boyang Jerry Peng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: