- 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
- Instant Raspberry Pi Gaming
- 電氣自動化專業(yè)英語(第3版)
- Mastering Mesos
- 永磁同步電動機變頻調(diào)速系統(tǒng)及其控制(第2版)
- 網(wǎng)絡化分布式系統(tǒng)預測控制
- 21天學通C語言
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- 大數(shù)據(jù)技術(shù)基礎:基于Hadoop與Spark
- 電腦上網(wǎng)輕松入門
- 實用網(wǎng)絡流量分析技術(shù)
- Eclipse RCP應用系統(tǒng)開發(fā)方法與實戰(zhàn)
- 網(wǎng)頁設計與制作
- ARM嵌入式系統(tǒng)開發(fā)完全入門與主流實踐
- SketchUp 2014 for Architectural Visualization(Second Edition)
- Adobe Edge Quickstart Guide