Cloud Foundry `cf push` slow: high CPU usage, disable resource mapping

For my application, Java cf pushtakes too much time.

Uploading ${APPNAME}...
Uploading app files from: ${PATH}.jar
Uploading 19.8M, 6584 files
Done uploading

When pressed, the first line is displayed for several minutes (with 100% processor utilization). Subsequently, the actual download starts (second line) and completes in just a second.

C, CF_TRACE=trueI see a request resource match( https://apidocs.cloudfoundry.org/220/resource_match/list_all_matching_resources.html ). A JSON string containing the hash sum of all the files in my JAR file is sent for this request. Gathering this information is something that takes too much time in my case, since the JAR file contains many files.

Is there a way to disable the resource match request? As far as I can see, it is used only to not download files that do not change (it is already known by the CloudFoundry instance). However, loading 20M of data takes only a second.

+4
source share
1 answer

, . Cloud Foundry , , . , "" . , , , - . Spring ( Maven Gradle), , , , Spring Boot .

+2

Source: https://habr.com/ru/post/1611719/


All Articles