NodeJS issues. Multiple instances spun up but also have multiple versions of app running!

33 views
Skip to first unread message

Ken Liu

unread,
Apr 7, 2016, 1:06:03 PM4/7/16
to Google App Engine
Hi,

I'm using app engine to run a nodejs app and so far so good except

two VMs are running but it also appears two versions of the app are running too!

Any suggestions on how to restrict this to one VM or find out why multiple versions of the app are running?

Jeff Deskins

unread,
Apr 7, 2016, 4:08:02 PM4/7/16
to Google App Engine
To limit to one instance for the version, add the following to app.yaml file:

manual_scaling:
  instances
: 1



The multiple versions are by design.  That allows you to do A/B testing or preview the new version before directing all traffic to it.  After you deploy and set the new version to be promoted as default, previous versions can be deleted.  Sometimes you may want to keep previous version running in the event you need to quickly rollback.

Jeff

Ken Liu

unread,
Apr 7, 2016, 4:49:05 PM4/7/16
to Google App Engine
Fantastic - that worked perfectly :)

Thanks
Reply all
Reply to author
Forward
0 new messages