2台服务器上的Infinispan群集应用程序 [英] Infinispan Clustering applications on 2 servers

查看:91
本文介绍了2台服务器上的Infinispan群集应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个方案,其中我有2个weblogic服务器,比如说WL1中的WL1和WL2
我有2个应用程序已部署APP1和APP2
在WL2中我有2个应用程序已部署APP3和APP4
我想创建一个infinispan配置,其中WL1中的APP1与WL2中的APP3组成一个群集,而WL1中的APP2与WL2中的APP4组成一个群集



所以我尝试使用默认UDP多播,看起来所有4个应用程序都在组成一个集群,因此我更改了多播端口以解决此问题,但这是克服这种情况的唯一方法吗?



TCPPing可以做些什么吗?我想知道,因为它是p2p,所以它可以在WL1和amp1之间形成集群。



我也在考虑使用远程缓存,但希望在我们完全排除它之前探索嵌入式缓存,因此任何帮助都会非常有帮助

解决方案

回答评论中的问题:远程x嵌入式



<远程缓存的主要缺点是增加了客户端和服务器之间通信的延迟。另外,您不能在远程模式下使用交易,可能还会缺少其他功能。
另一方面,使用远程缓存,您可以轻松升级应用程序,而无需更改Infinispan中的数据。使用嵌入式模式,这将更加复杂。您还可以进行负载平衡:尽管Infinispan的目标是线性可扩展性,但情况却从未如此光明。因此,您可以使用20台应用程序服务器和4台Infinispan服务器(前提是该应用程序需要更多的计算能力)。


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

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?

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?

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

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. 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. Therefore, you can use e.g. 20 application servers and only 4 Infinispan servers (provided that the application requires more computing power).

这篇关于2台服务器上的Infinispan群集应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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