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
resources:
requests:
cpu: "10m"
cpu: "100m" #! one-tenth of one CPU
memory: "64Mi"
limits:
cpu: "10m"
cpu: "200m" #! slapd needs a reasonable amount of CPU during initial startup or else it is slow to start
memory: "64Mi"
readinessProbe:
tcpSocket:
port: ldap
initialDelaySeconds: 25 #! typically takes about 30 seconds to start
timeoutSeconds: 120
periodSeconds: 5
failureThreshold: 6
initialDelaySeconds: 2
timeoutSeconds: 90
periodSeconds: 2
failureThreshold: 9
env:
#! 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.

View File

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