https://bugs.openldap.org/show_bug.cgi?id=10617
Issue ID: 10617 Summary: Add an option to throttle when qtime exceeds a threshold Product: OpenLDAP Version: 2.7.0 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: enhancement Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
The first sign that a server is overloaded is that ops start spending longer time being queued before being executed. If the incoming load continues, the qtimes will continue growing. As such, an overload can be short-circuited before it gets completely out of hand by rejecting operations once their qtime exceeds a given threshold.
We should add a config keyword to set a qtime threshold. When an operation hits the threshold it should be rejected.
Note that we already implemented a feature like this experimentally for a private user, so we already know it is effective. In practice, qtimes on a healthy server are much less than 1msec. A qtime of 1msec would already indicate an overload condition.
https://bugs.openldap.org/show_bug.cgi?id=10617
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|bugs@openldap.org |hyc@openldap.org Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/936
https://bugs.openldap.org/show_bug.cgi?id=10617
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.7.2 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10617
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
5fa9b60a by Howard Chu at 2026-10-14T17:27:47+00:00
ITS#10617 slapd: add maxQtime config
https://bugs.openldap.org/show_bug.cgi?id=10617
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
https://bugs.openldap.org/show_bug.cgi?id=10617
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE27:
afd41253 by Howard Chu at 2026-10-14T22:43:06+00:00
ITS#10617 slapd: add maxQtime config