I did some google search but not find any detail document described about
combination between HAProxy and Nodejs apps(use socketIO), something for me
to believe that it can work well.
I have another option is Nginx, but just want you guys help me to confirm
that is it possible to use HAproxy as load balancer for Nodejs server farm
(using SocketIO to transfer data)?
Thanks in advance.
-- Nguyen Hai Duy
Mobile : 0914 72 1900
Yahoo: nguyenhd_lucky
> I did some google search but not find any detail document described
> about combination between HAProxy and Nodejs apps(use socketIO),
> something for me to believe that it can work well.
> I have another option is Nginx, but just want you guys help me to
> confirm that is it possible to use HAproxy as load balancer for Nodejs
> server farm (using SocketIO to transfer data)?
I set up a proof of concept using haproxy a few months back. It worked
well. haproxy was listening on port 80 then directing socket traffic to
node and static resource requests to nginx.
On Mon, Jul 30, 2012 at 2:52 AM, hd nguyen <nguyenhd2...@gmail.com> wrote:
> Hi all,
> I did some google search but not find any detail document described about
> combination between HAProxy and Nodejs apps(use socketIO), something for me
> to believe that it can work well.
> I have another option is Nginx, but just want you guys help me to confirm
> that is it possible to use HAproxy as load balancer for Nodejs server farm
> (using SocketIO to transfer data)?
> Thanks in advance.
> --
> Nguyen Hai Duy
> Mobile : 0914 72 1900
> Yahoo: nguyenhd_lucky
On Mon, Jul 30, 2012 at 6:33 PM, Łukasz Michalski <l...@zork.pl> wrote:
> On 07/30/2012 11:52 AM, hd nguyen wrote:
> > Hi all,
> > I did some google search but not find any detail document described
> > about combination between HAProxy and Nodejs apps(use socketIO),
> > something for me to believe that it can work well.
> > I have another option is Nginx, but just want you guys help me to
> > confirm that is it possible to use HAproxy as load balancer for Nodejs
> > server farm (using SocketIO to transfer data)?
> Yes, using two instances of haproxy.
> Look in the archives for my eariler posts.
> Regards,
> Luke
-- Nguyen Hai Duy
Mobile : 0914 72 1900
Yahoo: nguyenhd_lucky
For polling transports you can balance source or use cookie based
persistence. I would suggest you use cookie based persistence along with
balance source coz IP based balancing alone doesn't work well when clients
have dynamic address.
On Mon, Jul 30, 2012 at 9:09 PM, hd nguyen <nguyenhd2...@gmail.com> wrote:
> Please send me the link to your earlier poet @Lucas.
> On Mon, Jul 30, 2012 at 6:33 PM, Łukasz Michalski <l...@zork.pl> wrote:
>> On 07/30/2012 11:52 AM, hd nguyen wrote:
>> > Hi all,
>> > I did some google search but not find any detail document described
>> > about combination between HAProxy and Nodejs apps(use socketIO),
>> > something for me to believe that it can work well.
>> > I have another option is Nginx, but just want you guys help me to
>> > confirm that is it possible to use HAproxy as load balancer for Nodejs
>> > server farm (using SocketIO to transfer data)?
>> Yes, using two instances of haproxy.
>> Look in the archives for my eariler posts.
>> Regards,
>> Luke
> --
> Nguyen Hai Duy
> Mobile : 0914 72 1900
> Yahoo: nguyenhd_lucky
> For polling transports you can balance source or use cookie based
> persistence. I would suggest you use cookie based persistence along with
> balance source coz IP based balancing alone doesn't work well when clients
> have dynamic address.
> On Mon, Jul 30, 2012 at 9:09 PM, hd nguyen <nguyenhd2...@gmail.com> wrote:
>> Please send me the link to your earlier poet @Lucas.
>> On Mon, Jul 30, 2012 at 6:33 PM, Łukasz Michalski <l...@zork.pl> wrote:
>>> On 07/30/2012 11:52 AM, hd nguyen wrote:
>>> > Hi all,
>>> > I did some google search but not find any detail document described
>>> > about combination between HAProxy and Nodejs apps(use socketIO),
>>> > something for me to believe that it can work well.
>>> > I have another option is Nginx, but just want you guys help me to
>>> > confirm that is it possible to use HAproxy as load balancer for Nodejs
>>> > server farm (using SocketIO to transfer data)?
>>> Yes, using two instances of haproxy.
>>> Look in the archives for my eariler posts.
>>> Regards,
>>> Luke
>> --
>> Nguyen Hai Duy
>> Mobile : 0914 72 1900
>> Yahoo: nguyenhd_lucky
-- Nguyen Hai Duy
Mobile : 0914 72 1900
Yahoo: nguyenhd_lucky
On Monday, 30 July 2012 17:29:21 UTC+2, Jason Strimpel wrote:
> I set up a proof of concept using haproxy a few months back. It worked > well. haproxy was listening on port 80 then directing socket traffic to > node and static resource requests to nginx.
> On Mon, Jul 30, 2012 at 2:52 AM, hd nguyen <nguyenhd2...@gmail.com> wrote:
>> Hi all,
>> I did some google search but not find any detail document described about >> combination between HAProxy and Nodejs apps(use socketIO), something for me >> to believe that it can work well.
>> I have another option is Nginx, but just want you guys help me to confirm >> that is it possible to use HAproxy as load balancer for Nodejs server farm >> (using SocketIO to transfer data)?
>> Thanks in advance.
>> -- >> Nguyen Hai Duy >> Mobile : 0914 72 1900 >> Yahoo: nguyenhd_lucky
HAProxy - load Balancer. Can handle websockets. Basically, haproxy sends websocket traffic to 1 or more node servers. We didn't bother with node cluster. Static requests are forwarded to nginx.
Nginx - serve static assets. Nginx doesn't yet support web sockets. Varnish would be a viable option but nginx will support websocket in the near future.
On Monday, July 30, 2012 2:52:08 AM UTC-7, Duy Nguyen wrote:
> Hi all,
> I did some google search but not find any detail document described about > combination between HAProxy and Nodejs apps(use socketIO), something for me > to believe that it can work well.
> I have another option is Nginx, but just want you guys help me to confirm > that is it possible to use HAproxy as load balancer for Nodejs server farm > (using SocketIO to transfer data)?
> Thanks in advance.
> -- > Nguyen Hai Duy > Mobile : 0914 72 1900 > Yahoo: nguyenhd_lucky
Same can be achieved using stunnel for ssl termination (or AWS ELB's in
TCPssl mode)
Downside of all this is that you loose the Client IP. None of stud, stunnel
or ELB in TCPssl mode will set the X-Forwarded-For, which caused me to
fallback to xhr and jsonp polling transports and use regular HTTPS
termination sollution.
You also want to watch out if you need stickyness or not, when you need to
keep state in your Node.js server, and you have multiple of them. Keep some
kind of stickyness in sight, or you need to share state between your nodes.
On Wed, Aug 1, 2012 at 11:27 PM, mgutz <mario.l.gutier...@gmail.com> wrote:
> Our setup in production is
> Stud - SSL termination. HAProxy doesn't do SSL.
> HAProxy - load Balancer. Can handle websockets. Basically, haproxy sends
> websocket traffic to 1 or more node servers. We didn't bother with node
> cluster. Static requests are forwarded to nginx.
> Nginx - serve static assets. Nginx doesn't yet support web sockets.
> Varnish would be a viable option but nginx will support websocket in the
> near future.
> On Monday, July 30, 2012 2:52:08 AM UTC-7, Duy Nguyen wrote:
>> Hi all,
>> I did some google search but not find any detail document described about
>> combination between HAProxy and Nodejs apps(use socketIO), something for me
>> to believe that it can work well.
>> I have another option is Nginx, but just want you guys help me to confirm
>> that is it possible to use HAproxy as load balancer for Nodejs server farm
>> (using SocketIO to transfer data)?
>> Thanks in advance.
>> --
>> Nguyen Hai Duy
>> Mobile : 0914 72 1900
>> Yahoo: nguyenhd_lucky
Unfortunately all the work was done on a centos box that no longer exists.
I have a bunch old haproxy conf files hanging around on my desktop like
https://gist.github.com/3227797. I am not sure which conf was the final. I
kept changing the config because I ran into an issue like
https://github.com/LearnBoost/socket.io/wiki/Socket.IO-and-firewall-s... on
a WIN7 box, but did not recognize it. Below are couple links that I think I
used to get started.
On Wed, Aug 1, 2012 at 1:52 AM, Philmod <philippe.mod...@gmail.com> wrote:
> Jason, can you provide more information about? Maybe a blog post or
> github link?
> Thanks,
> Philmod
> On Monday, 30 July 2012 17:29:21 UTC+2, Jason Strimpel wrote:
>> I set up a proof of concept using haproxy a few months back. It worked
>> well. haproxy was listening on port 80 then directing socket traffic to
>> node and static resource requests to nginx.
>> On Mon, Jul 30, 2012 at 2:52 AM, hd nguyen <nguyenhd2...@gmail.com>wrote:
>>> Hi all,
>>> I did some google search but not find any detail document described
>>> about combination between HAProxy and Nodejs apps(use socketIO), something
>>> for me to believe that it can work well.
>>> I have another option is Nginx, but just want you guys help me to
>>> confirm that is it possible to use HAproxy as load balancer for Nodejs
>>> server farm (using SocketIO to transfer data)?
>>> Thanks in advance.
>>> --
>>> Nguyen Hai Duy
>>> Mobile : 0914 72 1900
>>> Yahoo: nguyenhd_lucky
On Wednesday, August 1, 2012 2:33:52 PM UTC-7, Arne de Bree wrote:
> Same can be achieved using stunnel for ssl termination (or AWS ELB's in > TCPssl mode)
> Downside of all this is that you loose the Client IP. None of stud, > stunnel or ELB in TCPssl mode will set the X-Forwarded-For, which caused me > to fallback to xhr and jsonp polling transports and use regular HTTPS > termination sollution.
> You also want to watch out if you need stickyness or not, when you need to > keep state in your Node.js server, and you have multiple of them. Keep some > kind of stickyness in sight, or you need to share state between your nodes.