How to Improve ‘ cf push’ Performance When Deplyoing Applications to Diego Cells
search cancel

How to Improve ‘ cf push’ Performance When Deplyoing Applications to Diego Cells

book

Article ID: 389511

calendar_today

Updated On: 04-01-2025

Products

VMware Tanzu Application Service for VMs VMware Tanzu Application Service VMware Cloud Foundation

Issue/Introduction

A user wants to reduce the time of application deployment to a Diego Cell when using the command ‘cf push’.

Cause

There are numerous factors that can affect 'cf push' operations.  This involves taking a multi-facetted approach to understanding and increasing the speed at which apps are deployed on a given Diego Cell.  

Resolution

To improve the speed of ‘cf push’ operations, users can consider the following recommendations:

 

  1. Clean Up Unused Buildpacks to Reduce Overhead
    • Too many buildpacks can increase the time it takes for platform to detect and push the intended.
    • Recommendation: Use below command to delete unnecessary buildpacks: 
      cf delete-buildpack <BUILDPACK_NAME>
  2. Increase the Resources of Diego Cell
    • If Diego Cells have memory and/or ephemeral disk inadequacies, this can constrain the I/O and swap usage during staging process.
    • Recommendation: Ensure the Deigo Cells are configured with at least 32G of memory and a larger ephemeral disk sized to support buildpack extraction and staging process.
  3. Specify Buildpacks in Manifest (Explicitly)
    • If there is no buildpack specified, Cloud Foundry in turn trys to detect on by sequentially downloading and testing every available buildpack on the Diego Cell. This process can notably slow the slow staging events.
    • Recommendation: Specify a single buildpack or limited one in the manifest.yml:
       
      # Example below:
       -------------------------
      buildpacks:
         - python_buildpack
      --------------------------
  4. Scale Cloud Controller VMs
    • Specifically, the user is seeing intermittent timeouts or overall slowness during push operations.
    • Recommendation: Adding more Cloud Controller VMs can help balance the load.
  5. Update Platform Versions
    • If the above steps do not help, consider upgrading TAS to latest version possible. Each TAS release will often include performance and platform optimizations identified from previous releases.
    • Recommendation: The short term approach to this includes upgrading minor version of TAS.  The long term approach includes upgrading to latest major version of TAS.

If the issue is not resolved using above methods, please contact TANZU Support.

Additional Information