Project

General

Profile

Actions

Bug #19284

closed

Add name to LDAP pool to help debugging

Added by François ARMAND about 1 year ago. Updated 12 months ago.

Status:
Released
Priority:
N/A
Category:
Documentation
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0

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


Related issues 1 (1 open0 closed)

Related to Rudder - Architecture #19282: Lots of ldap connection opened/closed by rudderNewActions
Actions #1

Updated by François ARMAND about 1 year ago

  • Description updated (diff)
  • Category set to Documentation
  • Assignee set to François ARMAND
  • Target version set to 6.1.14
Actions #2

Updated by François ARMAND about 1 year ago

Actions #3

Updated by François ARMAND about 1 year ago

  • Status changed from New to In progress
Actions #4

Updated by François ARMAND about 1 year 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
Actions #5

Updated by François ARMAND about 1 year ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by François ARMAND 12 months ago

  • Description updated (diff)
Actions #7

Updated by François ARMAND 12 months 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" }

Actions #9

Updated by Vincent MEMBRÉ 12 months 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

Also available in: Atom PDF