[freeipa PR#5681][opened] Implement simple LDAP cache layer
by rcritten
URL: https://github.com/freeipa/freeipa/pull/5681
Author: rcritten
Title: #5681: Implement simple LDAP cache layer
Action: opened
PR body:
"""
Pretty straightforward caching except for the attribute
handling. We probably won't want to cache the entire entry
since that could be expensive (userCertificate, ssh keys, etc)
but not storing it could lead to multiple requests for the
same thing. Also, requesting * vs a set of attributes may not
return all a plugin needs, as it will skip operational attributes.
Still, this saves 20-50% of queries in my limited testing.
Mar 29: initial implementation works about 80% of the time.
I guarantee the xmlrpc tests will fail. We'll see about the integration tests.
There are still corner cases to find and the member modlist stuff
is a mess.
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5681/head:pr5681
git checkout pr5681
2 years, 4 months
[freeipa PR#5756][opened] Only attempt to upgrade ACME configuration files if deployed
by rcritten
URL: https://github.com/freeipa/freeipa/pull/5756
Author: rcritten
Title: #5756: Only attempt to upgrade ACME configuration files if deployed
Action: opened
PR body:
"""
This can happen on upgrades from older deployments that lack
an ACME installation and don't meet the minimum requirements
to deploy one automatically.
Also don't consider missing ACME schema a total failure, just
log and skip it.
https://pagure.io/freeipa/issue/8832
Signed-off-by: Rob Crittenden <rcritten(a)redhat.com>
TESTING: Testing is difficult because on upgrade IPA will deploy ACME if it isn't already configured. One way to avoid this is to twiddle with /usr/share/pki/VERSION and set the value < 10.10.0.
If ACME is already deployed you can remove it with:
# pki-server acme-undeploy
# rm -rf /etc/pki/pki-tomcat/acme
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5756/head:pr5756
git checkout pr5756
2 years, 4 months
LDAP caching patch
by Rob Crittenden
Just a heads-up, I'm going to merge the LDAP caching patch later today,
PR https://github.com/freeipa/freeipa/pull/5681
Caching is enabled by default and some metrics will be visible in the
Apache log when the server is in debug mode, like:
ipa: DEBUG: FINAL: Hits 1 Misses 3 Size 2
There is a very simple log parser to determine cache usage in
contrib/cachelog if you want to check on how much/if the layer helps.
Let me know if you see anything really odd happen.
To disable the cache add ldap_cache=False to /etc/ipa/server.conf and
restart httpd.
rob
2 years, 4 months