The VMs running your Node instance are what scales. Autoscaling happens automatically based on the scaling settings <https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml#services> you set in your app.yaml - no other configuration is required. When needed, additional virtual machines are created which contain a clone of your application container, and traffic is load balanced between them.
This is completely independent of Node's cluster <https://nodejs.org/api/cluster.html> module which you can still use, although it only makes sense if you use VMs with more than one core. You might see better scaling performance if you use fewer VMs with many cores + cluster than if you use many single core VMs without it, but you may need to tweak your scaling config to find the optimal balance between performance and resource burn. I would recommend starting with App Engine's automatic scaling configuration, and experimenting with multi core instances later as an optimization step if needed. On Wednesday, May 4, 2016 at 12:38:29 PM UTC-4, Artem Alekseev wrote: > > I use node as a TCP server. And also use internal node clustering, so that > i have one point of TCP connection (IP,PORT), and node starts > workers(separate processes) and balances my TCP requests by sending them to > different instances of node processes. Don't I need to use clustering with > app engine? And Why. > As I understand now, app engine scales automatically, but nodejs is a > single core app, and it needs to use processes ro handle simultanious tasks > in more efficient way -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f4f90feb-c534-48b8-8fd0-e9ce42484956%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
