Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1789

Universal Agent should not eat inotify user_instances

    XMLWordPrintable

Details

    Description

      Current Situation

      A running Universal Agent with at least one remote file watcher eats inotify user_instances. The number increases until the maximum is reached. Then file watching does not work any more.

      how to reproduce

      • Shut down the Universal Agent.
      • Count the number of used user_instances with sudo ls -l /proc/*/fd/* | grep notify | wc -l
      • Start Universal Agent
      • Count the number again. Should be unchanged
      • configure a job chain with a file watching on the remote Universal Agent.
      • Count the number again. The number now increases +1
      • Wait (< one minute)
      • Count the number again. The number now increases
      • Shut down the Universal Agent.
      • Count the number again. The number is now at the value from the beginning of the test.

      Hint: The number of inotify user_instances can be increased with
      sudo sysctl -w fs.inotify.max_user_instances=nnnn

      Desired Behavior

      A running Universal Agent with at least one remote file watcher should not eat inotify user_instances. The number of inotify user_instances should not be greater than the number of file order sources.

      Workaround

      • This problem is due to a missing directory configured for file watching. As a workaround users should check that directories configured for file watching exist.
      • In this situation the Master log contains an error message that occurs approx. each minute. In addition an inotify handle is not closed in this situation.

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            ur Uwe Risse
            Santiago Aucejo Petzoldt Santiago Aucejo Petzoldt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: