Univention Bugzilla – Bug 49442
Reduce S4-Connector latency - let it wake up when UCS changes are incoming
Last modified: 2021-02-10 20:44:48 CET
Created attachment 10018 [details] 0001-Make-S4-Connector-wake-up-when-changes-are-incoming-.patch For Bug #49415 we need to get more control over the replication timing of the S4-Connector. In out CI tests we have to wait a lot for S4-Connector activity to settle. To reduce this time, we could reduce the poll/sleep phases and make the S4-Connector wake up as soon as a new pickle file is moved to /var/lib/univention-connector/s4 . See attached patch for a simple, effective proposal.
I really would like to see this change in the product. Before applying it we should carefully check, which errors could happen by using inotify. I remember that we had customer systems in the past, which had limits about max open file descriptors, which stopped inotify to work (See Bug #32327, Bug #31752, (Bug #24165, Bug #26277)).
Patch also in git branch arequate/49442-s4c-sleep-with-inotify.