- Oracle WebLogic Server 12c Advanced Administration Cookbook
- Dalton Iwazaki
- 351字
- 2021-08-20 16:48:48
Using Unicast for cluster communications
The Oracle WebLogic Server 12c can use either Multicast or Unicast for cluster communications. Since WebLogic version 10, the default cluster communication is the Unicast.
To improve Unicast reliability it's recommended to enable two extra configurations.
Getting ready
The first thing is to add a JVM argument to every WebLogic Managed Server instance of the cluster. The Administration Server must be running to make the changes.
After adding the JVM argument, the config.xml
configuration file must be manually edited to make the second change. Therefore you will need to make sure every WebLogic Server instance is down, including the Administration Server.
How to do it...
Add the JVM argument:
- 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.
- Navigate to Configuration | Server Start by clicking on the WebLogic Server name, then on the Server Start tab.
- Add the argument
-Dweblogic.unicast.HttpPing=true
to the Arguments field. The argument must be added to all Managed Server instances ofPROD_Cluster
:PROD_Server01
,PROD_Server02
,PROD_Server03
, andPROD_Server04
. Click on the Save button for every change. - Click on the Activate Changes button.
- Navigate to Domain | Control by clicking on the
PROD_DOMAIN
link to the left and then on the Control tab. - Select and shut down all servers from the list.
Edit the config.xml
file:
- Log in as a
wls
user to the first machineprod01
and navigate to the folder:[wls@prod01]$ cd $DOMAIN_HOME/config
- Make a backup of the
config.xml
file:[wls@prod01]$ cp config.xml config.xml_backup
- Open
config.xml
to be edited:[wls@prod01]$ vi config.xml
- Find the
<cluster>
definition tag ofPROD_Cluster
:<cluster> <name>PROD_Cluster</name> <cluster-messaging-mode>unicast</cluster-messaging-mode> </cluster>
- Add the
<message-ordering-enabled
tag:<cluster> <name>PROD_Cluster</name> <cluster-messaging-mode>unicast</cluster-messaging-mode> <message-ordering-enabled>true</message-ordering-enabled> </cluster>
- Type
:wq!
to save the file and exit. - Copy the file to all machines in the domain:
[wls@prod01]$ scp config.xml wls@prod02:$DOMAIN_HOME/config
- Start the Administration Server.
How it works...
The-Dweblogic.unicast.HttpPing=true
argument enables an internal health check on Unicast communications that improves its reliability.
The <message-ordering-enabled>
tag forces Unicast communications to be processed in order, avoiding some issues with JNDI updates and JMS Topics.
See also
- Configuring HA WebLogic cluster parameters
- Using Multicast for cluster communications
- 自動控制工程設計入門
- PostgreSQL 11 Server Side Programming Quick Start Guide
- Drupal 7 Multilingual Sites
- 并行數據挖掘及性能優化:關聯規則與數據相關性分析
- Windows XP中文版應用基礎
- VMware Performance and Capacity Management(Second Edition)
- 傳感器技術應用
- Hands-On Linux for Architects
- 統計策略搜索強化學習方法及應用
- 大數據技術與應用
- 手機游戲程序開發
- Mastering MongoDB 3.x
- Dreamweaver+Photoshop+Flash+Fireworks網站建設與網頁設計完全實用
- 三菱FX/Q系列PLC工程實例詳解
- 工業機器人集成應用