Horizontal Clustering for multiple physical machines

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

How to do Horizontal Clustering ?


Install weblogic server on both machines with same installation directories.

Create domain on primary machine where you want your Admin server and copy domain to second machine.

Step by Step -


  • Install weblogic server on both machines with same installation directories. 
  • Start domain wizard on primary & select option "create a new weblogic domain".
  • Select default first option
  • Enter a name for your domain
  • Enter Admin Server credentials, username & password
  • Select your mode ( development or production ) and jdk .you want to use
  • Select below two options
  • Admin Server Name, listen address, port & enable ssl if required
  • Add the number of managed servers you want for your domain, enter listen address, port & ssl information if required.
  • Create cluster
  • Assign all managed servers to the cluster ( click on each server one by one and click on right arrow )


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 node manager

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 )
Select create button.

Now go to Middleware Directory,  D:\Oracle\Middleware, ake a copy of user_projects, copy it under same folder on another machine ( D:\Oracle\Middleware on machine 2 ).

Now start your managed servers

Comments

Post a Comment

Popular posts from this blog

Interview question for File and FTP Adapter

What is boot.properties file and how to create

SSL Exceptions in Admin Server and Node Manager.