Configure Cluster instances using WebLogic7.0

xiaoxiao2021-03-06  49

Configure Cluster instances using WebLogic7.0

I. Foreword: This article is not difficult after participating in the BEA training. It is not difficult to do according to steps, you will succeed.

Second, suitable for the reader object: For WebLogic project implementers for system stability and efficiency, developers who are interested in WebLogic, you'd better have basic knowledge of WebLogic configuration.

Third, the introduction: WebLogic Server 7.0 Clusters provide a negative extra mechanism and fault tolerance to the client. At this time, the instance of WLS (WebLogic Server needs to be configured to be the same admin server (usually we start WebLogic boot file startWebLogic.cmd is the instance of the Admin Server), so the client can request any one in Cluster The node provides load balancing. At the same time, Cluster also provides fault-tolerant protection. If you have any nodes of the Cluster (one machine can configure a node, you can also configure multiple nodes) In the event of an exception or DOWN, you can continue to provide services through other nodes in the Cluster. And in the customer seems that there is no abnormal situation, it may only have some time intervals. The following will explain how the two nodes are configured to explain how to configure the Cls of the Cls.

Four, examples: [Please pay attention to the case of the case to be unified]

Rough frame:

?

?

After installation of WLS, the system will build a MydomAin domain, and build an instance of MyServer, of course, can be other names, as long as you can understand. Ensure that StartWebLogic.cmd can start normally and can be entered in IE to see WSL's console in http: // localhost: 7001 / console.

2, open http: // localhost: 7001 / console: mydomainàserversàconfigure a new server: ??????? nodea: ?????? nodea

??????? (b) Listen Port:? 7024

Other default;

Similarly, build a server: ??????? (a) Name: ?????? nodeb

??????? (b) Listen Port:? 7025

Other default.

3, open http: // localhost: 7001 / console: MydomainàClustersà Configure a new cluster ...

(a) Name: ??????????????????????????? STORECLUSTER

(b) Cluster Address: ???????????????????? Nodea, Nodeb

(c) Default load algorithm: ????????? default (runk-robin)

Other default, click "CREATE"

(d) Multicast Address: ??????????????????? 237.0.0.1

(e) Multicast Port: ?????????????????????????????????????????????????????????????????????????? 7777

(f) Multicast TTL: ???????????????

(g) Servers: ???????????????????????? Nodea, NodeB

Other default, click "Apply"

4, copy file startmanagedWeblogic.cmd (note not file startweblogic.cmd) into file a startnodea.bat and file two startnodeb.bat

Modify the two rows of set server_name in StartNodea.bat =

Set admin_url =

for

SET Server_Name = Nodea

Set admin_url = http: // HONGGB: 7001

[Note: The above URL is your machine name]

Modify the two lines in the file startnodeb.bat

SET Server_Name =

Set admin_url =

for

SET Server_Name = NodeB

Set admin_url = http: // HONGGB: 7001

[Note: The above URL is your machine name]

5, release and test:

(A) Turn off the window started with StartWeblogic.cmd

? (B) Start startNodea.bat

?????? (c) Start startNodeb.bat

?????? (d) Open http: // localhost: 7001 / console? Release BrowseStore.war [Note: If you need Mail, you can also use your own WAR file test] Document, do not select Servers in the published targets, select StoreCluster in Clusters

?????? (e) Test: Use IE to open http: // localhost: 7024 / browsegories (here if Localhost does not work, use this name, 127.0.0.1, or native IP, specific reasons may be WEBLOGIC reasons),

?????? Of course, IE open http: // localhost: 7025 / browsecategories also can also see the page.

If you have seen the page successfully, then this configuration cluster example is successful!

?

This is a little experience I conflicted to WebLogic Cluster. I hope to help everyone. Of course, if you want to transplant it to the production environment, you need more efforts :), and other WLS can also configure Machine and ProxyServer. So you will be more WSL application. More mature, if you are interested, I can further write!

?

My email: S00n@coscon.com

Welcome to criticize and communicate.

?

转载请注明原文地址:https://www.9cbs.com/read-116827.html

New Post(0)