Bug 2214570 - RFE - Add a warning message when nsslapd-accesslog-logbuffering is disabled.
Summary: RFE - Add a warning message when nsslapd-accesslog-logbuffering is disabled.
Keywords:
Status: NEW
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 11.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: LDAP Maintainers
QA Contact: LDAP QA Team
Evgenia Martynyuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-13 12:35 UTC by Têko Mihinto
Modified: 2023-06-28 08:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Têko Mihinto 2023-06-13 12:35:26 UTC
Description of problem:
As mentioned in the RHDS docs [1], disabling the access log buffering can have a severe impact on performance:
    https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html-single/configuration_command_and_file_reference/index#cnconfig-nsslapd_accesslog_logbuffering_Log_Buffering

There should be also a warning message when disabling nsslapd-accesslog-logbuffering ( CLI or Console ).

The performance impact can be tremendous.
A customer was running a performance testing with ldclt and for some reason the buffering was disabled.
Performance was pretty bad compared to RHDS 10 ( which has the buffering enabled ).
We've spent a couple of days to find the culprit ( after tuning caches, worker threads, ... )

RHDS 11:
* nsslapd-accesslog-logbuffering: off
Global average rate: 3627.80/thr  (604.63/sec), total:  36278

* nsslapd-accesslog-logbuffering: on
Global average rate: 97150.60/thr  (16191.77/sec), total: 971506

Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 (Ootpa)
$
$ rpm -qa | grep 389-ds
389-ds-base-1.4.3.31-11.module+el8dsrv+17815+4f95348d.x86_64
389-ds-base-libs-1.4.3.31-11.module+el8dsrv+17815+4f95348d.x86_64
cockpit-389-ds-1.4.3.31-11.module+el8dsrv+17815+4f95348d.noarch
$

How reproducible:
Always.

Steps to Reproduce:
Disable nsslapd-accesslog-logbuffering

Actual results:
No warning message when disabling the buffering via CLI or Console.

Expected results:
Add a warning message about the performance degradation.

Additional info:
DB files and log files were under separate partitions.
Performance would likely be worse if using the same partition.

Comment 1 Têko Mihinto 2023-06-13 12:40:06 UTC
The statement here seems to incorrect:
    https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/performance_tuning_guide/improving-logging-performance

==> "To improve the performance under heavy load, disable access log buffering."


Note You need to log in before you can comment on or make changes to this bug.