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
|
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.
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user