Nour,

Let's step back slightly.  Clearwater requires

*         each node to have a unique externally-resolvable identity

o   this could be a hostname or just an IP address - this is used in the node's 
/etc/clearwater/config file in the "public_hostname" field

o   this is used to route traffic specifically to this node - for example, 
sprout is transaction-stateful so responses must go through the same sprout 
instance as the request - it's no good routing it to a random sprout in the 
cluster

*         each cluster (bono, sprout, homestead, homer, ellis) to have a 
hostname that resolves to all the nodes in the deployment.

I'd suggest

*         creating a sprout-1 hostname which maps just to the first sprout's IP 
address

*         creating a sprout-2 hostname which maps just to the second sprout's 
IP address

*         creating a sprout hostname which maps to both sprout IP addresses 
(using the notation I gave previously)

*         on the first sprout node, modifying /etc/clearwater/config to set the 
public_hostname to "sprout-1.lannion.local" (or whatever your domain suffix is)

*         on the second sprout node, modifying /etc/clearwater/config to set 
the public_hostname to "sprout-2.lannion.local" (or whatever your domain suffix 
is).

Does that make sense?  Please feel free to share your config files if you want 
me to double-check them.

Before you can test this properly, you'll also need to cluster the sprout 
nodes.  If you've already installed both nodes, you'll be using memcached 
(rather than Infinispan).  To cluster the nodes,

*         modify both sprout nodes' /etc/clearwater/cluster_settings files to 
contain both sprout nodes' hostnames or IP address in the same order on both

*         restart sprout on both nodes by running "sudo monit restart sprout".
Note that we're about to move sprout to use Infinispan.  When you upgrade, 
you'll need to configure this differently - let me know when you do upgrade.

Matt

From: [email protected] 
[mailto:[email protected]] On Behalf Of nour 
nakouzi
Sent: 08 August 2013 10:42
To: [email protected]
Subject: Re: [Clearwater] Load Balancing

Hi Matt,

So, is it necessary to change the hostname of my second sprout from sprout2 to 
sprout, because i think if I put 2 IP adresses with the same name 'sprout' the 
second one will not be reachable ??

Then, how could i test if the LoadBalanced works, I have an idea, but i don't 
know if I am alright, do i make a call from one client to another, and i 
capture first of all on the sprout, the i make another call and i capture on 
the sprout2?

If not, please advice me

Thanks a lit
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater

Reply via email to