Cluster across multiple physical machines
Horizontal clustering involves running multiple Java application servers that are run on two or more separate physical machines.
like shown below where all the managed servers are in a cluster -
Machine-1
- Admin Server
- MS-1
- MS-2
Machine-2
- MS-3
- MS-4
Horizontal clustering involves running multiple Java application servers that are run on two or more separate physical machines.
like shown below where all the managed servers are in a cluster -
Machine-1
- Admin Server
- MS-1
- MS-2
Machine-2
- MS-3
- MS-4
How to do Horizontal Clustering ?
1. Install weblogic server on both machines with same installation directories.
2. Create domain on primary machine where you want your Admin server and copy domain to second machine.
Step by Step -
1. Install weblogic server on both machines with same installation directories. ( see my other post on installation )
2. Start domain wizard on primary & select option "create a new weblogic domain"
3. Select default first option
4. Enter a name for your domain
5. Enter Admin Server credentials, username & password
6. Select your mode ( development or production ) and jdk you want to use
7.Select below two options
8. If you want, update your Admin Server Name, listen address, port & enable ssl if required
9.Add the number of managed servers you want for your domain, enter listen address, port & ssl information if required.
10. Create cluster
11. Assign all managed servers to the cluster ( click on each server one by one and click on right arrow )
12. This is the turning point for horizontal clustering -
Create two machines ( usually create it with the name of machines, suppose you ant clustering between to machines with hostname like hostname1.something.com &
hostname2.something.com, then create machine names like hostname1 & hostname2 )
Enter listen address of particular machine ( server ), like for mac1 enter listen address of
hostname1.something.com & for mac2, enter listen address of hostname2.something.com )
Enter port for nodemanager
13. Assign MS1 & MS2 to mac1 & MS3 & MS4 to Mac2, this will allow nodemanager to start managed server 1 & 2 on machine1 ( hostname1.something.com ) and start managed server 3 & 4 on machine 2 ( hostname2.something.com )
14. Select create button.
Now go to Middleware Directory, D:\Oracle\Middleware, make a copy of user_projects, copy it under same folder on another machine ( D:\Oracle\Middleware on machine 2 ).
Now start your managed servers
that's it.
that's it.
Cheers!!
everything is clear.....no doubts....thanks for upload tis topic
ReplyDeletenice quick explanation...
ReplyDeletejust a small typo in step 13.
"start managed server 2 & 4 on machine 2" in place of "start managed server 3 & 4 on machine 2"
Regards,
SanjayMD
Great information. Thank you
ReplyDeleteHi All,
ReplyDeleteCan anyone provide some documentation over performance modelling ,capacity planning ,performance tuning ,load balancing,JVM tuning & Apache clustering & tomcat clustering.Please do mail over manassamal009@gmail.com.thanks in advance
with thanks
Manas
Very usefull information,Thanks
DeleteThanks to your kind hart.
ReplyDeletethank u very much mukesh ji..
ReplyDeleteThanku Mukesh,Its Very Helpful for EveryBody
ReplyDeleteGood Explanation Mukesh...Thanks alot
ReplyDeleteExcellent explanation Mukesh. You have explained in a very easiest way.
ReplyDeleteWow very nice explanation,
ReplyDeletewhile reading i got a feeling like u r teaching to me...
Ótimo conteúdo! Parabéns.
ReplyDeleteI have created two machines.Can i start machine 2 from machine1 .and by that can i start managed servers in machine 2
ReplyDeletefrom machine 1.Plz help me on this ........
Thanks in Advance