Relax cpu limit on ldap server a little to make it start faster

- Allowing it to use more CPU during startup decreases startup time
  from about 25 seconds (on my laptop) down to about 1 second.
This commit is contained in:
Ryan Richard 2021-04-14 08:35:04 -07:00
parent a6e1a949d2
commit e0fe184c89
2 changed files with 8 additions and 8 deletions

View File

@ -148,18 +148,18 @@ spec:
containerPort: 1636 containerPort: 1636
resources: resources:
requests: requests:
cpu: "10m" cpu: "100m" #! one-tenth of one CPU
memory: "64Mi" memory: "64Mi"
limits: limits:
cpu: "10m" cpu: "200m" #! slapd needs a reasonable amount of CPU during initial startup or else it is slow to start
memory: "64Mi" memory: "64Mi"
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: ldap port: ldap
initialDelaySeconds: 25 #! typically takes about 30 seconds to start initialDelaySeconds: 2
timeoutSeconds: 120 timeoutSeconds: 90
periodSeconds: 5 periodSeconds: 2
failureThreshold: 6 failureThreshold: 9
env: env:
#! Example ldapsearch commands that can be run from within the container based on these env vars. #! Example ldapsearch commands that can be run from within the container based on these env vars.
#! These will print the whole LDAP tree starting at our root. #! These will print the whole LDAP tree starting at our root.

View File

@ -32,10 +32,10 @@ spec:
containerPort: 3128 containerPort: 3128
resources: resources:
requests: requests:
cpu: "10m" cpu: "100m" #! one-tenth of one CPU
memory: "64Mi" memory: "64Mi"
limits: limits:
cpu: "10m" cpu: "100m" #! one-tenth of one CPU
memory: "64Mi" memory: "64Mi"
volumeMounts: volumeMounts:
- name: log-dir - name: log-dir