horizontal clustering configuration steps

Post on 10-Feb-2017

583 Views

Category:

Technology

6 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Horizontal Clustering : step by stepCluster across multiple physical Machines

Horizontal clustering involves running multiple Java application servers that are run on two or more

separate physical Machines.

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.

2. Start domain wizard on primary & select option "create a new weblogic domain"

  5. Enter Admin Server credentials, username & password

6. Select your mode ( development or production ) and jdk you want to use

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.

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 )

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

Now another turning point of horizontal clustering

Step:1 First change the type of the machine (ssl to plain)

Step:2 Change the Listen port number of each machine like first machine Listen port number is 5556 and second machine Listen port number is 5557 and so on.

Note: Before start WLST.cmd make sure your admin server is up.

Step:3 Now start the WLST tool (D:\weblogic 12c\wlserver_12.1\common\bin\WLST.cmd) as per your directory structure.

Step:4 connect('weblogic','Welcome1','t3://192.168.1.236:7001') as per your credential and wait for successfully connection.

Step:5 nmEnroll('D:\\weblogic 12c\\user_projects\\domains\\coh_domain','D:\\weblogic 12c\\wlserver_12.1\\common\\nodemanager') as per your directory structure.

Step:6 nmConnect('weblogic','Welcome1','192.168.1.236','5556','coh_domain','D:\weblogic 12c\user_projects\domains\coh_domain','plain')

Repeat these steps (step:3 to step:6) for another machine but make sure at the time when you are going to enroll the second machine make sure the Listen port is different as below command

Note: nmConnect('weblogic','Welcome1','192.168.1.236','5557','coh_domain','D:\weblogic 12c\user_projects\domains\coh_domain','plain')

Final Step: kill all server and start freshly again with the below manner

First start node manager of first machine D:\weblogic 12c\wlserver_12.1\server\bin>startNodeManager.cmd then you start admin server do it all things manually

Now move to the second machine do it same as above

Second Machine First start node manager of second machine D:\weblogic 12c\wlserver_12.1\server\bin>startNodeManager.cmd

Now go to Weblogic Administration control

And check your all machine status

Click Environment->machine->click on your machine name -> Monitoring

Check your all machine status, they all are in Reachable state .

Thanks for follow me

Tushar Varshney

top related