Syncthing loads CPU on Idle managers

Description

In 5.0.5 cluster the CPU can get to 100% load because of Syncthing although the manager is idle and has nothing to sync between the nodes.
Syncthing is configured to scan all folders all the time and not only the changes.
When configuring it to watch for changes and increasing the interval CPU load decrease to normal (1-2%)

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1.
2.
3.

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Activity

Show:
Łukasz Maksymczuk
April 23, 2020, 9:46 AM

Following the discussion on slack, we can change the syncthing config to be watching for changes and only do full rescans rarely (which syncthing's documentation suggests to do, in case the watcher isn't able to pick some changes up), by using a script like this:

Ofer Yarom
April 23, 2020, 11:54 AM

This should be resolved both for 5.1 and as a patch for 5.0.5. I am adding to Sprint 4, but if we have spare resources earlier let’s look into it.

Łukasz Maksymczuk
May 4, 2020, 8:11 AM

After discussing with , lets make patches for 5.0.5 and 4.6 as well

Ofer Yarom
May 25, 2020, 11:03 AM

should we re-open this one or create clones for the other version patches?

Alex Molev
May 25, 2020, 11:16 AM

my understanding the issue is on 4.6 and 5.0.5 if know any other versions that might have similar issues let’s create a separate issue as this one is closed.

Assignee

Łukasz Maksymczuk

Reporter

Jonathan Abramsohn

Severity

High

Target Version

5.1

Premium Only

yes

Found In Version

5.0.5

QA Owner

None

Bug Type

new feature bug

Customer Encountered

Yes

Customer Name

c689

Release Notes

yes

Priority

None

Sprint

None

Priority

Unprioritized
Configure