LDAP sync sends cache clear messages in a tight loop
Description
The errors in the logs correlate to the CPU spikes, which happens during the LDAP syncs
Issue created from a message in Mattermost.
QA Test Steps
Create an HA setup with 5000 teams, 50000 channels. (use the mattermost sampledata command)
Run LDAP sync without this patch and notice that during the sync there is a CPU spike and an insane amount of cluster traffic
Apply this patch and verify that there is no such spike and the cluster traffic is flattened.
Activity
Tested on the latest 5.26 test instance and there were no issues found related to LDAP sync. Closing the ticket.
Latest update: after testing and investigating further, dev has a better idea what the issue is; aiming to have a fix available for QA testing by tomorrow latest.
looks like we had a brief moment of sustained CPU load last night. is there anything i need/can to do aside from providing this very important diagram?
Great, thanks and ! Sven let the customer know as well.