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:
parent
a6e1a949d2
commit
e0fe184c89
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user