问题
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