Clustering, HA, Load Balancing

544 views
Skip to first unread message

Maziz Esa

unread,
Jul 14, 2014, 9:15:24 AM7/14/14
to ve...@googlegroups.com
Dear all,

I'm having some confusion over the concept of clustering, HA and load balancing in Vertx.

First, I've understood that Vertx is able to load balance multiple instances in single node.

Let's say you have a set up of a cluster of 3 nodes, node A, B and C.
All these are HA enabled.

Clients perform requests on node A. 

My questions are as follow:
  1. Since all three nodes are in a cluster, how does the requests being assigned to other nodes in the cluster? (Could it be round robin fashion like in the case of single node with multiple instances?)

  2. From the documentation HA works by automatically restarting vertx instance in another node when failure is detected. So based on the case above, if node A fails, it will start on another node, but will vertx automatically redirect the request from node A to this newly started node?

Thanks in advance.

Regards,
Maziz.

Tim Fox

unread,
Jul 14, 2014, 9:38:22 AM7/14/14
to ve...@googlegroups.com
On 14/07/14 14:15, Maziz Esa wrote:
Dear all,

I'm having some confusion over the concept of clustering, HA and load balancing in Vertx.

First, I've understood that Vertx is able to load balance multiple instances in single node.

Let's say you have a set up of a cluster of 3 nodes, node A, B and C.
All these are HA enabled.

Clients perform requests on node A. 

My questions are as follow:
  1. Since all three nodes are in a cluster, how does the requests being assigned to other nodes in the cluster? (Could it be round robin fashion like in the case of single node with multiple instances?)

Vert.x doesn't provide any load-balancing of requests across a farm of servers. If you want to do this you would typically use a load balancer (or write a load balancer using Vert.x :) )



  1. From the documentation HA works by automatically restarting vertx instance in another node when failure is detected. So based on the case above, if node A fails, it will start on another node, but will vertx automatically redirect the request from node A to this newly started node?

Vert.x HA is not related to load balancing.

If you have a load balancer in front of your cluster which connects you with a vert.x server, if that server fails then either the client (or the balancer) will know the connection has been closed and can retry.


Thanks in advance.

Regards,
Maziz.
--
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/d/optout.

Maziz Esa

unread,
Jul 14, 2014, 10:02:39 AM7/14/14
to ve...@googlegroups.com
Dear Tim,

Thanks for the prompt response.
One last thing,

Any load balancing solution that you would recommend that can easily be integrated with vertx?

Thanks.

Regards,
Maziz.

Amit Kumar

unread,
Jul 14, 2014, 1:36:56 PM7/14/14
to ve...@googlegroups.com
nginx is a good one to start with. http://nginx.org/en/docs/http/load_balancing.html
Reply all
Reply to author
Forward
0 new messages