简体   繁体   English

2台服务器上的Infinispan群集应用程序

[英]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.

相关问题 防止Infinispan聚集 - Prevent Infinispan from clustering 在Wildfly 9 AS中实现Infinispan缓存(考虑集群) - Implementation of Infinispan cache in Wildfly 9 AS (considering clustering) Infinispan群集:复制CacheLoader加载的条目 - Infinispan Clustering: Replication of entries loaded by a CacheLoader 用于已部署Web应用程序的Infinispan Unique Cache Manager - Infinispan Unique Cache Manager for deployed Web Applications 使用 infinispan 进行 http session 集群和缓存时经常出现 TimeoutException - Often TimeoutException when using infinispan for http session clustering and caching 如果在Wildfly 13 EE8上部署了多个应用程序,则Infinispan命令调度程序问题 - Infinispan command dispatcher problem if multiple applications are deployed on Wildfly 13 EE8 如何调试在两个不同的 Tomcat 服务器上运行的两个应用程序? - How to debug two applications running in two different Tomcat servers? 如何将两个tomcat应用程序从单独的服务器迁移到单个服务器? - How to migrate two tomcat applications from separate servers to a single server? 使用相同的jenkins作业在不同的服务器中部署不同的应用程序 - Using same jenkins job for deployment of different applications in different servers 在不同服务器上的Web应用程序之间实现SSO,而无需更改现有应用程序 - Implementing SSO between webapplications on different servers without changes on existing applications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM