Is there any known limit for the size of an app up

2019-08-06 16:20发布

问题:

I was asked to deploy a Java EE application of 700MB (single EAR file) which requires 8 GB of RAM to execute.

I searched the docs but I didn't found any documented limit for those two parameters: size and RAM. Any URL or idea? Thanks!

回答1:

The size of the application is limited to 1GB as mentioned here.

The Memory allocation is limited to 8GB per app, you can see this when you try to allocate more than 8GB in the Bluemix UI as it either resets to 8GB or if, using the toggle, doesn't allow you above 8GB.

If you app is pushing these limits then you might want to look at refactoring this app as per the 12factor app approach, so rather than one large monolithic app you have smaller more flexible apps.

As @ram-vennam said there is also the potential for staging timeouts when pushing a large app.



回答2:

The problem with uploading large applications is usually the network limitation - uploading and staging all the bits before the several timeouts. See Deploying a Large Application for more details.

If you have a fast network you could try:

cf push myappname -p largefile.ear -t 180 -m 8G -k 2G

If that fails during staging, set this env var, and push again

cf set-env myappname CF_STAGING_TIMEOUT 30
cf push myappname -p largefile.ear