cpu increase
This commit is contained in:
@@ -4,7 +4,7 @@ metadata:
|
||||
name: moj-servis
|
||||
namespace: student-ivanivso7
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2 # POVEĆANO: Sada imaš dva radnika umjesto jednog
|
||||
selector:
|
||||
matchLabels:
|
||||
app: moj-servis
|
||||
@@ -20,18 +20,18 @@ spec:
|
||||
- containerPort: 8000
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m" # Povećano sa 50m na 100m
|
||||
memory: "128Mi" # Povećano sa 64Mi na 128Mi
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "500m" # Povećano sa 300m na 500m
|
||||
memory: "256Mi" # Povećano sa 128Mi na 256Mi
|
||||
cpu: "500m"
|
||||
memory: "256Mi"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8000
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
failureThreshold: 5 # dajemo 5 sansi prije resetovanja
|
||||
failureThreshold: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
|
||||
Reference in New Issue
Block a user