nginx - using ngnix infront of node.js -


i using ngnix infront of 4 instances of node.js apps running on 1 machine (quad core)

can ngnix experts give me advice on how configure out of web app.

i using connect/express frameworks on node , think allow smart caching etc, but not sure bits let ngnix , bits let frameworks handle. guidance on getting out of setup great help, thanks.

you need take account 1 node instance use several threads, , keep @ least 1 thread occupied i/o. run 4 instances on quad core, means 4 instances produce blocking threads, meaning have @ least 4 blocking threads (if have busy server) meaning @ point block activity short periods.

i suggest not starting more (number of cores)-1 instances of node, half sure @ least keeps moving.

i assume there 1 blocking thread per node instance, wrong. there more. point remains same. more "free" threads start, more "blocking" threads created well.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -