node.js performance for amazon EC2 instances with ECU's -
i have node.js server. undertsand 1 node process bound 1 cpu/core. have 2 core box, use cluster launch 2 processes utilize 2 cores of box.
however, not able understand how work ec2 instances ecu concept.
for eg. m1.large instance has 2 vcpus 4 ecu's (effective compute unit)
when launch node.js cluster, launches 2 node processes. however, on desktop has 8 cores, launches 8 node processes.
now wondering whether node.js sever on m1.large 2 cores , 4 ecus perform better box 2 cores , no ecu's
please answer query.
amazon ecu virtual core because virtual sever 2 real core of xeon processor.so box real 2 core perform better virtual ecu.and dont think amazon ecu same thing real cpu core amazon elastic cloud. far working nodejs , ec2 on production server set 2 thing utilize max cpu power of m1.large instance.
multiple node process behind nginx reverse proxy load-balencer
a. set different nodejs process on different port.
b. on front of them nginx load balancer o distribute load across each thread.
i have tries hands forking child process main thread using cluster module .
i ends nginx , coz have less management cluster , cluster in experimental stage.
i have tries exploring more ec2 , nodejs here answer utilizing cpu core nodejs.
and suggest try of solution , keep monitoring system in each case cpu uses memory io , better solution use case. every application has own requirement.so better try , find applications real need .
Comments
Post a Comment