RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2052930 - [RFE] Verify that the number of krb5kdc worker processes is aligned to the number of configured CPUs
Summary: [RFE] Verify that the number of krb5kdc worker processes is aligned to the nu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa-healthcheck
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: pre-dev-freeze
: ---
Assignee: Rob Crittenden
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 2091190
TreeView+ depends on / blocked
 
Reported: 2022-02-10 09:59 UTC by Thorsten Scherf
Modified: 2023-05-16 09:29 UTC (History)
3 users (show)

Fixed In Version: ipa-healthcheck-0.12-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2091190 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:28:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-9552 0 None None None 2023-03-08 11:37:33 UTC
Red Hat Issue Tracker RHELPLAN-111813 0 None None None 2022-02-10 10:06:46 UTC
Red Hat Product Errata RHBA-2023:2794 0 None None None 2023-05-16 08:29:36 UTC

Description Thorsten Scherf 2022-02-10 09:59:36 UTC
Description of problem:

There was recently a case where a customer was complaining about krb5kdc process, as part of the IdM framework, not answering all client requests when the load on the service increased. It turned out that increasing the number of krb5kdc worker processes helped to resolve this issue.

Now, there is already code available [1] that auto-detects the  number of online CPUs and then sets the number of krb5kdc worker threads dynamically.  It relies on SC_NPROCESSORS_ONLN sysconf value. The system configuration can easily change though after the initial setup. Especially in virtual environments it's quite common to add or remove the number of virtual CPUs based on the actual requirements. As a result the number of configured krb5kdc worker processes might not be aligned anymore with the number of available CPUs configured on the system.

The ask is to implement an IPA healtcheck rule to verify the number of configured krb5kdc worker processes is aligned with the number of available CPUs.

[1] https://github.com/freeipa/freeipa/commit/b67df045beccf192c9be3ba61fb68986407ae045

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Documentation BZ to highlight this configuration parameter in the IdM tuning guide:
https://bugzilla.redhat.com/show_bug.cgi?id=2052919

Comment 5 Michal Polovka 2023-01-04 13:19:30 UTC
Pre-verified on RHEL8.8 machine with ipa-healthcheck-0.12-1.module+el8.8.0+17582+6bf5bf91.noarch


# python3 -m pytest -vvv tests/test_ipa_kdc.py 
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /root/freeipa-healthcheck, inifile:
collected 6 items                                                                                                                                                                            

tests/test_ipa_kdc.py::TestKDCWorkers::test_no_workers_empty_noargs PASSED                                                                                                             [ 16%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_no_workers_noargs PASSED                                                                                                                   [ 33%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_with_workers_empty_noargs PASSED                                                                                                           [ 50%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_workers_match_double PASSED                                                                                                                [ 66%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_workers_match_single PASSED                                                                                                                [ 83%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_workers_mismatch PASSED                                                                                                                    [100%]

================================================================================== 6 passed in 0.49 seconds ==================================================================================

Marking as verified:tested.

Comment 9 Michal Polovka 2023-01-11 15:10:59 UTC
Verified using ipa-healthcheck-0.12-1.el8 on RHEL8.8 machine


# python3 -m pytest -vvv tests/test_ipa_kdc.py 
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /root/freeipa-healthcheck, inifile:
collected 6 items                                                                                                                                                                            

tests/test_ipa_kdc.py::TestKDCWorkers::test_no_workers_empty_noargs PASSED                                                                                                             [ 16%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_no_workers_noargs PASSED                                                                                                                   [ 33%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_with_workers_empty_noargs PASSED                                                                                                           [ 50%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_workers_match_double PASSED                                                                                                                [ 66%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_workers_match_single PASSED                                                                                                                [ 83%]
tests/test_ipa_kdc.py::TestKDCWorkers::test_workers_mismatch PASSED                                                                                                                    [100%]

================================================================================== 6 passed in 0.46 seconds ==================================================================================


Therefore marking as verified.

Comment 11 errata-xmlrpc 2023-05-16 08:28:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (idm:client and idm:DL1 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2794


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