feat: autoscale
This commit is contained in:
+4
-2
@@ -4,11 +4,13 @@ services:
|
||||
app:
|
||||
image: git.dgnr.us/astral/buzz:frontend
|
||||
deploy:
|
||||
replicas: 4
|
||||
replicas: 2
|
||||
resources:
|
||||
limits:
|
||||
cpus: "4.0"
|
||||
cpus: "1.0"
|
||||
memory: 1024M
|
||||
labels:
|
||||
- "swarm.autoscale=true"
|
||||
restart_policy:
|
||||
condition: any
|
||||
stop_grace_period: 1s
|
||||
|
||||
Reference in New Issue
Block a user