Skip to content

Update cf push rolling and and canary deployment behavior with scaling flags #3535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

prkalle
Copy link
Contributor

@prkalle prkalle commented Jul 9, 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.

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

linux-foundation-easycla bot commented Jul 9, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: prkalle / name: Prem Kalle (f4f4334)

@prkalle prkalle marked this pull request as ready for review July 14, 2025 16:40
@prkalle prkalle changed the title cf push to use deployment scale options for rolling and canary deployments Fix cf push rolling and and canary deployment behavior with scaling flags Jul 14, 2025
@prkalle prkalle changed the title Fix cf push rolling and and canary deployment behavior with scaling flags Update cf push rolling and and canary deployment behavior with scaling flags Jul 14, 2025
@prkalle prkalle force-pushed the cf-push-deployment-scale branch from 31000a8 to 1f98a02 Compare July 14, 2025 19:07
@prkalle prkalle closed this Jul 14, 2025
@prkalle prkalle reopened this Jul 14, 2025
@prkalle prkalle force-pushed the cf-push-deployment-scale branch from 67f6f63 to f4f4334 Compare July 15, 2025 19:29
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 1414b7c into cloudfoundry:main Jul 16, 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