Skip to content

Show a warning when folder watcher becomes unreliable #6119

Closed

Description

@ckamm

See #2297 and 66f0ce6. Suggested by @moscicki.

When a folder watcher becomes unreliable the client will revert to doing full local discovery. Possibly there should be a warning when that happens to let the user know what's happening and what steps they could take to make the problem go away.

Currently the only case is inotify file descriptor exhaustion.

Activity

  1. added this to the 2.5.0 milestone on Oct 25, 2017
  2. moscicki commented on Oct 25, 2017

    @moscicki
    Contributor

    Many thanks for opening this!

  3. guruz commented on Nov 3, 2017

    @guruz
    Contributor

    Is the 100-sync-inotify.conf not working?
    #4107

  4. self-assigned this
    on Apr 24, 2018
  5. added
    ReadyToTest
    on Apr 26, 2018
  6. guruz commented on Jul 23, 2018

    @guruz
    Contributor
  7. jnweiger commented on Aug 5, 2018

    @jnweiger
    Contributor

    Mint Tara (aka Ubunut 18.04)

    testpilotcloud version 2.5.0daily20180801 (build 9974)

    sudo cat /proc/sys/fs/inotify/max_user_watches
    524288

    OK: setting from our sync-inotify.conf file is applied.

    sudo sysctl fs.inotify.max_user_watches=280
    sudo sysctl -p

    populate ca 2000 files in ca 20 directories
    find . | wc -l
    2179
    find . -type d | wc -l
    24
    grafik

    OK: When the limit is too low, the warning appears. When the limit is set higher, now warning appears.
    In this test, 270 was found too low, and 280 was found sufficient

    BAD: The exact numbers are hard to explain. It should be either in the 2000 range (if files are watched) or well below 100 (if directories are watched).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Design & UXEnhancementReadyToTest

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions