Actions
Bug #19284
closedAdd name to LDAP pool to help debugging
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
Description
Currently, when using unboundid logging facility, we have log lines like:
INFO: { "timestamp":"2021-05-19T20:46:32.734Z", "debug-type":"connection-pool", "level":"INFO", "thread-id":46, "thread-name":"zio-default-blocking-3-396918327", "connection-pool-name":null, "connection-id":1, "connected-to-address":"localhost", "connected-to-port":389, "current-available-connections":1, "maximum-available-connections":2, "message":"Checked out an immediately available pooled connection", "ldap-sdk-version":"5.0.1", "ldap-sdk-revision":"3290ee33d4aa17df1aadb4d814d6534375f395a9" }
The "connection-pool-name":null
doesn't help to know if we are on the read-only or read-write pool.
To access these information, one needs to add to jvm parameters:
-Dcom.unboundid.ldap.sdk.debug.enabled=true -Dcom.unboundid.ldap.sdk.debug.level=INFO -Dcom.unboundid.ldap.sdk.debug.type=connection-pool
Updated by François ARMAND over 3 years ago
- Description updated (diff)
- Category set to Documentation
- Assignee set to François ARMAND
- Target version set to 6.1.14
Updated by François ARMAND over 3 years ago
- Related to Architecture #19282: Lots of ldap connection opened/closed by rudder added
Updated by François ARMAND over 3 years ago
- Status changed from New to In progress
Updated by François ARMAND over 3 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/3645
Updated by François ARMAND over 3 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|7c40f380d55055e1e03f13436f0c82a975cc404f.
Updated by François ARMAND over 3 years ago
Example of the (very chatty) output:
Jul 07, 2021 2:27:58 PM com.unboundid.util.Debug log INFO: { "timestamp":"2021-07-07T14:27:58.595Z", "debug-type":"connection-pool", "level":"INFO", "thread-id":45, "thread-name":"zio-default-blocking-3-106297322", "connection-pool-name":"rudder-authenticated-rw", "connection-id":1, "connected-to-address":"localhost", "connected-to-port":389, "current-available-connections":1, "maximum-available-connections":2, "message":"Checked out an immediately available pooled connection", "ldap-sdk-version":"5.0.1", "ldap-sdk-revision":"3290ee33d4aa17df1aadb4d814d6534375f395a9" } Jul 07, 2021 2:27:58 PM com.unboundid.util.Debug log INFO: { "timestamp":"2021-07-07T14:27:58.598Z", "debug-type":"connection-pool", "level":"INFO", "thread-id":45, "thread-name":"zio-default-blocking-3-106297322", "connection-pool-name":"rudder-authenticated-rw", "connection-id":1, "connected-to-address":"localhost", "connected-to-port":389, "current-available-connections":2, "maximum-available-connections":2, "message":"Released a connection back to the pool", "ldap-sdk-version":"5.0.1", "ldap-sdk-revision":"3290ee33d4aa17df1aadb4d814d6534375f395a9" } Jul 07, 2021 2:27:58 PM com.unboundid.util.Debug log INFO: { "timestamp":"2021-07-07T14:27:58.640Z", "debug-type":"connection-pool", "level":"INFO", "thread-id":42, "thread-name":"zio-default-blocking-2-106297322", "connection-pool-name":"rudder-authenticated-ro", "connection-id":0, "connected-to-address":"localhost", "connected-to-port":389, "current-available-connections":1, "maximum-available-connections":2, "message":"Checked out an immediately available pooled connection", "ldap-sdk-version":"5.0.1", "ldap-sdk-revision":"3290ee33d4aa17df1aadb4d814d6534375f395a9" } Jul 07, 2021 2:27:58 PM com.unboundid.util.Debug log INFO: { "timestamp":"2021-07-07T14:27:58.652Z", "debug-type":"connection-pool", "level":"INFO", "thread-id":45, "thread-name":"zio-default-blocking-3-106297322", "connection-pool-name":"rudder-authenticated-rw", "connection-id":3, "connected-to-address":"localhost", "connected-to-port":389, "current-available-connections":1, "maximum-available-connections":2, "message":"Checked out an immediately available pooled connection", "ldap-sdk-version":"5.0.1", "ldap-sdk-revision":"3290ee33d4aa17df1aadb4d814d6534375f395a9" }
Updated by François ARMAND over 3 years ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ over 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.1.14 and 6.2.8 which were released today.
Actions