Saurabh Arora
Saurabh Arora

Reputation: 47

GAE basic scaling override memory limit

I am a cloud noob. I have a node application with GAE. I am using basic scaling to serve up the requests. I have specified instance class B4_1G which has memory limit of 2048mb.(https://cloud.google.com/appengine/docs/standard#second-gen-runtimes) The application is supposed to perform DOM scraping using Cheerio on some extremely large HTML files. This works well until the HTML that I need to scrape is beyond huge. Then I start getting memory error in logs : Exceeded hard memory limit of 2048 MB with 2052 MB after servicing 1 requests total. Consider setting a larger instance class in app.yaml.

Is there any way I can override the memory limit to say 4096mb or even more? Setting the resources additionally in app.yaml did not seem to help.

Any help or pointers appreciated. Thank you.

Upvotes: 0

Views: 525

Answers (1)

John Hanley
John Hanley

Reputation: 81336

The link you provided shows the support instance sizes.

If you need more than 2 GB of memory you will need to switch to App Engine Flexible or a Compute Engine instance.

Upvotes: 2

Related Questions