[英]Infinispan Clustering applications on 2 servers
I have a Scenario where i have 2 weblogic servers let say WL1 and WL2 in WL1 i have 2 applications deployed APP1 and APP2 in WL2 i have 2 applications deployed APP3 and APP4 I want to create a infinispan configuration where APP1 from WL1 forms a cluster with APP3 in WL2 and APP2 from WL1 forms a cluster with APP4 in WL2 我有一个场景,其中有2个Web逻辑服务器,比如说WL1中的WL1和WL2我已经在WL2中部署了2个应用程序APP1和APP2我已经部署了2个应用程序APP3和APP4我想创建一个infinispan配置,其中WL1中的APP1与WL2中的APP3和WL1中的APP2与WL2中的APP4组成群集
So i tried using default UDP multicasting and looks like all 4 applications are forming a cluster, so i changed the multicast port to solve this issue but is this the only way to get across this kind of a situation? 因此,我尝试使用默认的UDP多播,并且看起来所有4个应用程序都在组成一个集群,因此我更改了多播端口以解决此问题,但这是克服这种情况的唯一方法吗?
Can something be done with TCPPing i am wondering because it's a p2p so it can form a cluster between WL1 & WL2 and not with individual applications right? 我想知道TCPPing是否可以完成某些事情,因为它是p2p,因此可以在WL1和WL2之间形成集群,而不是单独使用应用程序吗?
I am also considering of using remote caching but want's to explore embedded caching before we completely rule it out, so any help will be highly appreciated. 我也在考虑使用远程缓存,但是希望在我们完全排除嵌入式缓存之前先进行探索,因此我们将不胜感激。
Answering to the question in comment: remote x embedded 回答评论中的问题:远程x嵌入式
The main drawback of remote cache is the latency added for communication between the client and server. 远程缓存的主要缺点是增加了客户端与服务器之间的通信延迟。 Also, you can't use transactions in remote mode, there may be other features missing as well. 另外,您不能在远程模式下使用事务,可能还会缺少其他功能。 On the other hand, with remote cache you can easily upgrade the application without changing the data inside Infinispan. 另一方面,使用远程缓存,您可以轻松升级应用程序,而无需更改Infinispan内部的数据。 With embedded mode this would be more complicated. 使用嵌入式模式,这将更加复杂。 You can also load-balance: although Infinispan is aiming at linear scalability, things are never as bright. 您还可以进行负载平衡:尽管Infinispan的目标是线性可扩展性,但情况却从未如此光明。 Therefore, you can use eg 20 application servers and only 4 Infinispan servers (provided that the application requires more computing power). 因此,您可以使用例如20个应用程序服务器和仅4个Infinispan服务器(前提是该应用程序需要更多的计算能力)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.