Skip to content

Conversation

@prkalle
Copy link
Contributor

@prkalle prkalle commented Jul 16, 2025

Description of the Change

This PR addresses an unexpected behavior where cf push commands using --strategy rolling/ --strategy canary alongside scaling flags (-i, -m, --disk --log-rate-limit) would first scale the application (potentially restarting all instances) before initiating the incremental rolling deployment.

Note: This PR is cherry-pick from main branch (PR #3535 )

Problem:
Prior to CAPI changes CAPI_4364 CAPI_4247, Deployments do not fully support parameters typically available via the cf scale action. This means that changes to instances, memory, or disk were not rolled out incrementally with Deployments. For example, cf push my app -i 5 -m 1G --strategy rolling would unexpectedly scale to 5 instances and 1G first, before the true rolling deployment commenced. Also, since scale is applied before a deployment, restarting the old web process will cause the new scale parameters to be applied.

Why Is This PR Valuable?

Users leveraging rolling deployments will experience smoother, truly incremental updates when applying scaling changes.

How Urgent Is The Change?

Fairly urgent as it helps rolling deployments smoother.

Copy link
Member

@gururajsh gururajsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gururajsh gururajsh merged commit a562ed6 into cloudfoundry:v8 Jul 17, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants