Are there different types of clusters?

In my last post “How to Build an Apache TomEE cluster” we saw how easy and fast is to deploy your application in a cluster and take all its advantages.

It’s interesting to keep in mind we have basically two different types of clusters. Let’s see them.

 

Dynamic Discovery

In a Dynamic Discovery cluster each node is ready to find another nodes in its network as soon as they are up and running.

Pros

It’s the most flexible (and dynamic!) way to build your cluster, as you can scale your architecture by just turning a server on or off.

Cons

You need to take care to not put on your cluster a node you don’t want to. If you have different clusters for different applications in the same network and all of them are Dynamic Discovery clusters, they will “see” each other nodes and you can imagine the mess! Of course that are some configurations to avoid it, but you need to do it very carefully.

 

Static Discovery

In a Static Discovery cluster each node has a previous knowledge of all nodes that are in the cluster. No surprises!

Pros

You have much more control of your cluster and your architecture than in a Dynamic Discovery cluster. As the nodes are previously defined you can set another cluster in the same network without worrying about if they will see each other, because they won’t.

Cons

There are not much flexibility for scalability as you need to configure all your nodes if you want to add a new one (to remove just shut it down). It’s ok if you have 2 or 3 servers (nodes), but imagine 10… 20… 100!!

 

So… what’s the best one? Depends! Different scenarios and architectures should use the best features of one type or another. If you want my opinion just ask it!

 

Advertisements

Author: Elder Moraes

My name is Elder Moraes and I am Brazilian. I am passionate for programming languages, specially Java. I've been working on IT market since 1999 and learned a lot of stuff (and maybe some tech things). I am also a husband, father, musician and an addicted reader.

1 thought on “Are there different types of clusters?”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s