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

Allow users to modify logging levels of running topologies.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: storm-core
    • Labels:
      None

      Description

      It really would be great to be able to turn on debug logging for different parts of an already running topology, and then turn them off again later. Or even better if they could turn it on for just a few workers, so we don't flood the logs for a very large topology.

      logback already has the ability to refresh its config periodically so really what we needs is some code to generate logback configs on the fly based off of the currently desired user settings, and API to modify those dynamically, and a way to distribute those configs/settings to the supervisors. I am not too concerned about persisting these settings long term. If nimbus goes down and they reset back to default, I think that would be OK.

      For the distribution of the configs I think it would be best to setup a RESTful web service that is a part of nimbus. logback already supports using http to download configs. The service could use the cached logging settings for a given topology, or individual worker and the URL of the request to generate a logging config on the fly for a specific worker. As for the APIs I think a few new thrift calls to nimbus would be good, a command line tool, and possibly something on the UI.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kishorvpatil Kishor Patil
                Reporter:
                revans2 Robert Joseph Evans
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: