Go to weblogic ->Tools->configuration wizard
We will be creating a new domain and set up a cluster in new domain
Say next
Provide the authentication details for the domain
We will keep it in developement mode only.
By degfault we use the jdk for developement mode and jrockit for production mode.
In the next window where it will ask for customization of option say yes because we will be creating a cluster.
Let the next two page remain untouched and say next
however you can customize the server name and other information by changing the parameters but we will keep it the same as default.
Now say next you wil come up with a page for creating managed server.
Since we are doing clustering we need two node atleast so we will be creating two managed server and then cluster it.
So i will define two ManagedServer as
Server1 and Server2
On the left hand top side create on create button and provide the details
managed server name -Server1
listen address will be the address where your server is running.
If it is local host provide local host other wise provide the ip of the server.
Provide a unique ip number which is not getting used.
Similarly create one more managed server Server2
Now in the configure cluster page create one cluster
Let the multicasst address be the default value
Provide a name to cluster and say next
In the next window choose the cluster name in right hand panel and then choose the server from left hand panel and move it to right panel by clicking on the arrow.
Move both the server to right panel under cluster_1
I am not configuring machine so i will say next
Verify your domain configuration by checking each component on left panel and corresponding entries for them in right panel.
SAy next and create the domain
Verify if it is 100 percent complete then click on start Admin Server and say done.Once you will do that your new domain will be started.
Now try to open the admin server page by following url
http://localhost:7001/console
Localhost should be replaced by the port number you are using and 7001 should be replaced with the port number which you have used for your admin server.
Now as your console will open up go to server and check if you have all the managed server defined in there.
Keep in mind we have not configured our node manager so we can not start the node manager from console itself.I will cover the node manager topic.for now we will try to start the managed server from command window.So we will navigate to the path where we have installed our managed server.
In my case i will navigate up to
C:\bea\user_projects\domains\Clusterdomain\bin
if you will check the bin folder you have a command startManagedWebLogic.cmd
we will be using this command to start our managed server.
We will be asked for the user id and password.Provide that and enter
So as you will provide the authentication it will further process and start the managed server.
We will do the same for other managed server also server2
Provide the authentication details again and enter and managed server 2 will also start running.
Now go the the browser and check in the console if the admin server and the two managed server are up and running.
so now your cluster is ready ,you have a two node cluster .
Go to cluster tab and check the name of the cluster and the nodes associated with it.
No comments:
Post a Comment