Hi Matt, So, a small summary: 1. I will have three sprout nodes in this case 2. The conf file of each one is: ################################sprout1############################" # Deployment definitions home_domain="lannion.local" sprout_hostname=sprout.lannion.local hs_hostname=hs.lannion.local:8888 xdms_hostname=homer.lannion.local:7888
# Local IP configuration local_ip=10.0.4.x1 public_ip=172.25.241.x1 public_hostname=sprout1.lannion.local ################################sprout2############################" # Deployment definitions home_domain="lannion.local" sprout_hostname=sprout.lannion.local hs_hostname=hs.lannion.local:8888 xdms_hostname=homer.lannion.local:7888 # Local IP configuration local_ip=10.0.4.x2 public_ip=172.25.241.x2 public_hostname=sprout2.lannion.local ################################sprout3############################" # Deployment definitions home_domain="lannion.local" sprout_hostname=sprout.lannion.local hs_hostname=hs.lannion.local:8888 xdms_hostname=homer.lannion.local:7888 # Local IP configuration local_ip=10.0.4.x3 public_ip=172.25.241.x3 public_hostname=sprout3.lannion.local 3. Next Step is to configure my DNS to route to the sprout: sprout IN A 10.0.4.x1 sprout IN A 10.0.4.x2 or sprout IN A 10.0.4.x3 If the conf is OK, then i go to the next step testing the cluster 2013/8/8 Matt Williams <[email protected]> > 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 > > -- **** ** * * *NAKKOUZI Nour * *Jeune diplômé e**n Télécom et Réseaux * *ISEN-Brest* *Website: www.nour-nakkouzi.fr* *Tél. : +33 (0)6.95.15.46.35* * * * * *S'il vous plaît prenez en considération l'environnement et ne pas imprimer cet e-mail, sauf si vou**s avez vraiment besoin.*
_______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
