为什么在 Weblogic 集群中使用单播与多播 [英] Why use Unicast versus Multicast in Weblogic Clusters

查看:34
本文介绍了为什么在 Weblogic 集群中使用单播与多播的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档中不清楚为什么应该在 WebLogic 集群中使用单播而不是多播.任何人都有使用这两种方法的经验以及迁移到单播的好处?

It's unclear from the documentation why you should use Unicast rather than Multicast in a WebLogic cluster. Anyone have experience using either and the benefits of moving to Unicast?

推荐答案

单播和多播的主要区别如下

The main difference between Unicast and Multicast is as follows

假设您在一个集群中有三台服务器(MS-1、MS-2、MS-3).如果他们必须相互通信,那么他们必须 ping(即心跳)集群主节点以通知它他们还活着.

Say you have three servers (MS-1,MS-2,MS-3) in a cluster. If they have to communicate with each other, then they have to ping (i.e. heartbeats ) the cluster master for informing it that they are alive.

如果 MS-1 是主站,那么 MS-2 和 MS-3 会向 MS-1 发送 ping

If MS-1 is the master then MS-2 and MS-3 would send the ping to MS-1

在多播中,没有集群主节点.相反,每个服务器必须相互 ping 以通知每个人他们还活着.

In Multicast, there is no cluster master. Instead each server has to ping each other to inform everyone that they are alive.

所以 MS-1 会发送 ping 到 MS-2 &MS-3 和同时 MS-2 将向 MS-1 & 发送 ping.MS-3 和 MS-3 将 ping MS-1 &MS-3.

So MS-1 would send the ping to MS-2 & MS-3 and at the same time MS-2 would send the ping to MS-1 & MS-3 and MS-3 would ping MS-1 & MS-3.

因此,在多播中发送了更多的 ping,这使得发送 ping 的拥塞比单播严重得多.因此,WLS 建议使用单播来减少网络拥塞:Oracle 文档:集群中的通信

Thus, in multicast there are more pings sent which makes the congestion in sending the pings much heavier compared to unicast. Because of this, WLS recommends using Unicast instead for less congestion in the network: Oracle Docs: Communications In a Cluster

这篇关于为什么在 Weblogic 集群中使用单播与多播的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆