1

I've got a node app built using a standard node-alpine docker image deployed to Azure App Service. The App Service Plan is set to use 2-core VMs (instance type S2). A single node process will only use a single core at a time. Is Azure scaling the number of containers to fill up available resources? Is it configurable? Or should I be running pm2 inside my container to load balance requests?

jiggy
  • 123
  • 4

1 Answers1

0

No, you will be running one instance of the container. You need to increase the number of app service instances to increase this.

Sam Cogan
  • 38,158
  • 6
  • 77
  • 113
  • Sure but that just means I'll have 4 CPUs and still 2 processes, right? Half my CPUs will be idle. – jiggy Sep 21 '18 at 17:29
  • That's correct, that's just the design of app service containers, 1 container per instance, it doesn't care what resources you are using. – Sam Cogan Sep 21 '18 at 21:34