Saturday, October 16, 2010

Horizontal Clustering : step by step

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 -

- Admin Server
- MS-1
- MS-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 &, then create machine names like hostname1 & hostname2 )
      Enter listen address of particular machine ( server ), like for mac1 enter listen address of & for mac2, enter listen address of )
     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 ( ) and start managed server 3 & 4 on machine 2 ( )

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.



  1. nice quick explanation...
    just 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"


  2. Great information. Thank you

  3. Thanks to your kind hart.

  4. Very usefull information,Thanks

  5. thank u very much mukesh ji..

  6. Wow very nice explanation,
    while reading i got a feeling like u r teaching to me...