Flexible environment: Manual scaling doesn't work

65 views
Skip to first unread message

Mike Chang

unread,
May 2, 2016, 2:39:57 PM5/2/16
to Google App Engine

I need a worker node that is always on. From my understanding Google managed is the only option on Google Cloud as the servers are always on.

In the beginning I ran google preview app deploy, and 20 or so instances pop up. I then have this with the node on docker image:

runtime: custom
vm: true
api_version: 2
env_variables:
  runLocal: false
manual_scaling:
  instances: 1

Now only one instance shows up after deploy, but as soon as the server gets the first web request all 20 starts spawning again. This is not what I expected of the manual_scaling config. What am I missing?

Thanks

Evan Jones

unread,
May 2, 2016, 2:58:20 PM5/2/16
to Google App Engine
Strange! I have used manual scaling flexible environment services, and they do what you would expect: They start that number of instances and nothing else. Is there a chance that your deploy did not succeed? Or that it is running multiple versions? If a previous version starts receiving traffic, it will re-start all the instances that were previously created. This is not very helpful, but maybe attempt re-deploying, delete all the previous versions, then see what happens?

Nick (Cloud Platform Support)

unread,
May 3, 2016, 11:49:05 AM5/3/16
to Google App Engine
Hey Mike,

I'll echo Evan Jones here and suggest that it could be that the previous version (without manual_scalin, instances: 1) is still the default version for that module, and the request is going to that version, spawning the instances. However, if this isn't the case, you should open a Public Issue Tracker issue with "type-production" label and include your app id, the relevant versions, screenshots if possible, etc. and we can take a look at potentially determining the cause / a solution.

Regards,

Nick
Cloud Platform Community Support


On Monday, May 2, 2016 at 2:39:57 PM UTC-4, Mike Chang wrote:

Nick (Cloud Platform Support)

unread,
May 3, 2016, 11:49:39 AM5/3/16
to Google App Engine
A link to the App Engine Public Issue Tracker, just in case you haven't visited it before.


On Monday, May 2, 2016 at 2:39:57 PM UTC-4, Mike Chang wrote:
Reply all
Reply to author
Forward
0 new messages