Hi. Nginx supports Http/1.1. See http://nginx.org/en/docs/http/ngx_http_upstream_module.html this will help to configure load balancer.
08.05.2013, в 20:31, David Cunha <[email protected]> написал(а): > Hi folks, > > I am checking node-http-proxy and nodejs-proxy to build a DIY reverse > proxy/load balancer in Node.js. After coding a small version, I setup 2 > WEBrick servers for the same Rails app so I could load balance (round robin) > between them. However each HTTP request is sent to one or another server > which is very inefficient since the loading process of CSS and Javascript > files from the home page is performed with more than 25 GET requests. I tried > to play a bit with socket events but I didn't get anywhere because by default > it uses keep-alive connections (possibly this is why nginx only supports > http/1.0). Anyway I am wondering how can my proxy send a block of HTTP > requests (for instance loading a webpage entirely, etc) to only one server so > I could send the next block to another server. Using sticky sessions is the > only way? > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
