Friday, October 14, 2022

[389-users] 389ds memory limits in kubernetes

Hello,

I have a StafulSet in Kubernetes based on https://directory.fedoraproject.org/docs/389ds/howto/howto-deploy-389ds-on-openshift.html

I set a memory limit to 6Gi

image: quay.io/389ds/dirsrv:latest
...
            limits:
              memory: "6Gi"

Doing some performance test with 4k entries (query every entry in a loop), the used memory is increased on every test until kubernetes kills the pod (twentieth test aproximately).

terminated
Reason:Reason: OOMKilled - exit code: 0

Logs only shows

NOTICE - ldbm_back_search - Unindexed search: search base="ou=myou,dc=XXX,dc=XXX" scope=2 filter="(objectClass=nsperson)" conn=18 op=46

when I get all entries in my ou

ldapsearch -D "cn=directory manager" -W -b "ou=myou,dc=XXX,dc=XXX" -H ldap://localhost:3389 -s sub "(objectclass=nsPerson)" uid

Maybe a tunning problem or a mem leak?

Regards

No comments:

Post a Comment