Google App Engine Nodejs flex, does it utilise all cores of the instances, or do I have to manually create processes?

35 views
Skip to first unread message

Sudhanshu Gaur

unread,
Oct 8, 2018, 11:24:27 AM10/8/18
to Google App Engine

I am trying to fork new processed so that my NodeJs server can utilise load efficiently.

I am running my NodeJs app on Google App Engine flexible environment, does app engine itself utilize all cores of the instances OR not, because if it doesn't then I would manually have to do it from my end which I didn't find anywhere?

George (Cloud Platform Support)

unread,
Oct 8, 2018, 2:34:33 PM10/8/18
to Google App Engine
Hello Sudhanshu, 

Load is efficiently dealt within Flexible Environment, there is no reason to assume otherwise. You do have control over thread creation. To this purpose, you typically do not need to use anything other than your language’s built-in threading or multiprocessing tools. You may check node.js documentation related to threading. 

Related to the above: you can configure resources in the app.yaml configuration file, with statements similar to: 

resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10

Sudhanshu Gaur

unread,
Oct 12, 2018, 8:58:37 AM10/12/18
to Google App Engine
So Ap Engine Flex by default utilises all cores of the VM to run my NodeJS processes?

George (Cloud Platform Support)

unread,
Oct 12, 2018, 10:32:04 AM10/12/18
to Google App Engine
You are right about all cores, it is not appropriate to think otherwise. One should also keep in mind that these are virtual machines. My point, in the reply above, is that you have control over threading by way of your app's node.js code. 
Reply all
Reply to author
Forward
0 new messages