Load Balance across Multiple machines

706 views
Skip to first unread message

Leng Sheng Hong

unread,
Nov 7, 2013, 6:00:35 AM11/7/13
to ve...@googlegroups.com
Hi guys,

Vertx is great when it comes to scaling verticles with vertx run xxx.java -instances 20 but that's seems to be only scaling on single machine.
What about load balancing HTTP requests across multiple machines? Do we have something like http proxy where you would have on nginx to play with? eg.

Is there a solid way to do http proxy request on http/https/websocket?


Tim Fox

unread,
Nov 7, 2013, 6:37:50 AM11/7/13
to ve...@googlegroups.com
You could just use your favourite http load balancing for that. I don't know of one written using Vert.x but it would be a nice module to have if someone fancies writing one :)
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Leng Sheng Hong

unread,
Nov 7, 2013, 7:06:55 AM11/7/13
to ve...@googlegroups.com
I was pondering to write one with HttpClient/Pump but then hmmm, there's apache camel which is rock solid, probably use it to integrate with vertx and package as a module. It will need to support graceful remove/add of routes/nodes which is triggered by eventbus messaging so that it can be distributed through out the cluster. 

Not sure if I am entirely wrong but here's my though:
 
camel vertx (balancer)
     L vertx node1  192.168.1.1
     L vertx node2  192.168.1.2
     L vertx node3  192.168.1.3

when shutting down node1, send command through eventbus to camel vertx so that it can graceful remove node1 from the proxy list.
when we add one more node4 192.168.1.4, send command through eventbus to camel vertx to notify camel vertx to add it to the load balance list.

Does it make sense?
Reply all
Reply to author
Forward
0 new messages