As a developer, I want to scale my application up or down so I can handle varying load or reduce costs during low-traffic periods.
# Scale to specific replica count qrun scale --app orders-service --env prod --replicas 5 # Scale up by increment qrun scale --app orders-service --env prod --up 2 # Scale down by increment qrun scale --app orders-service --env prod --down 1 # Scale to zero (cost saving) qrun scale --app orders-service --env prod --replicas 0 # Skip confirmation qrun scale --app orders-service --env prod --replicas 10 --yes
Scaling orders-service in prod: 3 -> 5 replicas Starting new instances... orders-service-mno78 Starting... Ready orders-service-pqr90 Starting... Ready Scaling complete. (5/5 ready) Current status: qrun status --app orders-service --env prod
POST /v1/apps/{app}/scale Content-Type: application/json { "environment": "prod", "replicas": 5 } Response: { "status": "scaling", "previousReplicas": 3, "targetReplicas": 5, "message": "Scaling initiated" }
qctl-qrun/src/main/java/io/qrun/qctl/qrun/ScaleCommand.java
qctl-qrun/src/main/java/io/qrun/qctl/qrun/model/ScaleResult.java
qctl-qrun/src/main/java/io/qrun/qctl/qrun/client/VoyageClient.java
qrun scale --replicas N
--up N
--down N
--replicas 0
No dependencies set.
The note is not visible to the blocked user.
User Story
As a developer, I want to scale my application up or down so I can handle varying load or reduce costs during low-traffic periods.
Design
Command Interface
Output Format
Voyage API Integration
Files to Create/Modify
qctl-qrun/src/main/java/io/qrun/qctl/qrun/ScaleCommand.javaqctl-qrun/src/main/java/io/qrun/qctl/qrun/model/ScaleResult.javaqctl-qrun/src/main/java/io/qrun/qctl/qrun/client/VoyageClient.javaImplementation Tasks
Acceptance Criteria
qrun scale --replicas Nscales to exact count--up Nincreases by N replicas--down Ndecreases by N replicas--replicas 0scales to zero with confirmation