- Oracle WebLogic Server 12c Advanced Administration Cookbook
- Dalton Iwazaki
- 337字
- 2021-08-20 16:48:48
Using Multicast for cluster communications
WebLogic can also use Multicast for cluster communications.
When configured for using Multicast, the Managed Servers of the cluster subscribe to a Multicast address and port and listen for heartbeats and cluster messages. Unlike Unicast, Multicast communication uses UDP and broadcasts the message through the network and therefore does not guarantee that the message is received.
Getting ready
To configure Multicast, the Administration Server must be running.
How to do it...
To configure the Multicast communication for the cluster:
- Access the Administration Console with your web browser at
http://prod01.domain.local:7001/console
. - Click on the Lock & Edit button to start a new edit session.
- Expand the Environment tree on the left and click on Clusters.
- Click on the
PROD_Cluster
cluster to navigate to Configuration | General and click on the Messaging tab to navigate to Configuration | Messaging. - Change the Messaging Mode drop-down menu to Multicast. Configure the Multicast Address value to
239.192.0.0
and the Multicast Port to7001
(as shown in the following screenshot): - Click on the Save button and then on the Activate Changes button.
- Restart all Managed Servers of the
PROD_Cluster
cluster.
How it works...
Multicast includes additional configuration at the networking and operational system level.
Multicast Address 239.192.0.0
and Multicast Port 7001
are the default values. The range from 224.0.0.0
to 239.255.255.255
can be used. Do not use an address within the x.0.0.1
range where x
is between 0
and 9
.
Tip
Don't use two clusters with the same Multicast address in the same network or they will conflict.
There's more...
The Multicast can also be configured through WLST.
Configuring Multicast using WLST
- Log in as a
wls
user to shell and start WLST:[wls@prod01]$ $WL_HOME/common/bin/wlst.sh
- Connect to the Administration Server using
wlsadmin
as the user,<pwd>
as the password, andt3://prod01.domain.local:7001
as the server URL:wls:/offline> connect("wlsadmin","<pwd>","t3://prod01.domain.local:7001")
- Run the following WLST commands to create the cluster and the server instances:
edit() startEdit() cd('/Clusters/PROD_Cluster') cmo.setClusterMessagingMode('multicast') cmo.setMulticastPort(7001) cmo.setMulticastAddress('239.192.0.0') activate() exit()
See also
- Configuring HA WebLogic cluster parameters
- Using Unicast for cluster communications
- 32位嵌入式系統與SoC設計導論
- 人工智能超越人類
- Seven NoSQL Databases in a Week
- 手把手教你玩轉RPA:基于UiPath和Blue Prism
- 網絡組建與互聯
- Android游戲開發案例與關鍵技術
- Implementing AWS:Design,Build,and Manage your Infrastructure
- 基于企業網站的顧客感知服務質量評價理論模型與實證研究
- 精通數據科學:從線性回歸到深度學習
- 機器人人工智能
- INSTANT Adobe Story Starter
- Practical AWS Networking
- Apache Spark Quick Start Guide
- Advanced Deep Learning with Keras
- 智能小車機器人制作大全(第2版)