fbpx

Solutions

SSSD becomes unresponsive while continuing to run useradd continuously in batches.

by ,


We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

Operating System and Software

  • Rocky Linux 8
  • sssd
  • useradd

Problem

  • SSSD becomes unresponsive while continuing to run useradd continuously in batches.

    For example:

    # for i in `seq 1 4500` ; do useradd -s /sbin/nologin testuser$i ; done
    
  • The following error was frequently seen.

    The memcache was not invalidated by NSS responder.
    

How to Fix

To work around the problem, temporarily stop the sssd service between successive useradd runs.

# systemctl stop sssd

Origin of the Problem

The command useradd in Rocky Linux 8 executes the command sss_cache internally to clear the sssd cache.

If you run useradd continuously to create many users, sss_cache will also be executed each time, increasing the load on sssd backend processes such as sssd_be and sssd_nss, and adversely affecting sssd performance.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.