Does using more vCPUs helps node.js with performance?

一笑奈何 提交于 2019-12-24 16:57:18

问题


I am running node.js inside of a docker container on AWS ECS. I have one process.

Does adding more vCPU in general and specifically in case of using AWS ECS makes performance of my app better?

Cause if I run 4 vCPUs I see CPUUtilisation is much lower than with 1 vCPU but it doesn't guarantee than this spare CPU will ever be used.

And how vCPU is different from physical CPU?


回答1:


awesomeness of using container is you can create an identical container within seconds so you don't need to put additional cpu to handle peek time . you just create a new container and load balanced the traffic. you just have to create a ecs service and ecs will take care of the scaling and load balancing.

i don't know the exect differens between vcpu vs cpu . but 1 aws vcpu = 1024 cpu units.

and don't worry about application using high cpu because when it reaches 90 % you can popup a new 1 and load balanced it. thats the most cost effectively way



来源:https://stackoverflow.com/questions/51969690/does-using-more-vcpus-helps-node-js-with-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!