Muehlenhoff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/259534

Change subject: Bump connection limit to 8192
......................................................................

Bump connection limit to 8192

After merging 2e851a77a09a9fb042f88f5beb87fb2dd1b04127, the labs instances
now again primarily connect to seaborgium: It is listed first in ldap.conf
and nscld.conf and both NSS and nslcd primarily use the first server and only
fall back to the second if the first isn't reachable.

Before that patch, the server-side idle timeout kicked in and a client which
was e.g. connected to seaborgium reconnected to serpens. As such labs instances
essentially connected to serpens and seaborgium round-robin every ten minutes.
Grafana showed approx 1.2k connections each.

Now seaborgium handles about 2.5k connections and serpens only a few hundred.
This only leaves about 1.5k connections until slapd reaches the fd limit again,
so bump the connection limit to 8192 to add more margin for possible connection
spikes.

Change-Id: Ib21f32721687c8328406dca90fb2b94a59bf6dc4
---
M modules/openldap/templates/default.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/34/259534/1

diff --git a/modules/openldap/templates/default.erb 
b/modules/openldap/templates/default.erb
index 41493b7..ec6e8d4 100644
--- a/modules/openldap/templates/default.erb
+++ b/modules/openldap/templates/default.erb
@@ -4,7 +4,7 @@
 ###################################################################
 
 # Bump the fd limit, otherwise we max out LDAP connections at around 1000
-ulimit -n 4096
+ulimit -n 8192
 
 # Default location of the slapd.conf file or slapd.d cn=config directory. If
 # empty, use the compiled-in default (/etc/ldap/slapd.d with a fallback to

-- 
To view, visit https://gerrit.wikimedia.org/r/259534
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib21f32721687c8328406dca90fb2b94a59bf6dc4
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to