https://bugs.openldap.org/show_bug.cgi?id=10293
--- Comment #5 from mheyman@symas.com mheyman@symas.com --- The requirement is for STATistics (STAT level) records representing the activity on an instance of slapd that is initiated/processed because of `syncrepl` traffic initiated by a consumer (Master or Replica) via a syncrepl query. At a minimum it should report the "operations" performed by the relevant Provider (Master, by definition) and made available by `syncprov` for retrieval by consumers. It is important that the "operations" performed during refresh also be consistently represented in the STAT log as these represent work being done on the relevant server in support of achieving consistency of data through the replication mechanism(s). The requirement includes MUST make these records in general format to the existing STAT-level records for BIND, ADD, SRCH, etc. These records MAY be represented merely as RESULT (style) records as there is little to report about the start/receipt of the "operation".
The justification for this requirement is that the STAT(istics) level logging is expected to represent the actual load and performance on a server ... its representation of "local" load which is often quite different than the actual "load" on other servers in the cluster (RT3402 for example). And the difference is quite often found to be the operation of the replication mechanism(s). Without meeting the requirement above the end-user or support engineer has to study the SYNC level log records to understand the true "load" on the server. Furthermore, the monitoring tools would be required to understand the more complex SYNC logging formats and content. Most customers rely at best on AWS Cloudwatch (a Grafana based system) and/or batch log reduction programs like SPLUNK and DataDog which lack the more complex processing capabilities to understand SYNC logging. The best of our customers have no idea what the total "load" being presented to their OpenLDAP servers and are unable to diagnose performance issues without it.