Apache Tomcat Connection and
Failover-Cluster
For
high availability of web applications based on OpenCMS Platform at
Pomegranate Portal we provide a Cluster of two Tomcat Servlet Engines,
which are hosted on different machines. The Apache Web server, which
resides on a separate machine, has the role to forward the client
requests to the tomcat servers with load balancing features. Figure 1
illustrates a single environment without clustering and shows how
Apache and Tomcat could be connected together via mod_jk module over
the AJP (Apache Java Protocol)Connector. Mod_jk works by configuring
Apache to load the mod_jk module. When Apache starts, it creates a
series of connections with Tomcat over the JK connector, usually on
port 8009. A short HowTo could be found on our forum.
Figure 1: Connecting Apache to
tomcat with mod_jkThis environment can be extended to
a load balanced cluster environment. A cluster is a group of load balanced
Tomcat instances, which have the same session data. The sessions will be
replicated between Tomcat instances via the DeltaManager of
each instance. Clustering works via multicast addressing, whereby all Tomcat
instances broadcast their session information on the same port, but listen on
different ports. The following Figure 2 shows the cluster architecture with 2
load balanced Tomcat instances.
Figure 2: Appache - Tomcat Cluster Architecture.
If one instance
fails or is stopped, due to maintenance or Soft- or Hardware failure, the other
instance will pick up the session and have all data available and Apache will
be noticed that one Tomcat instance is out of state and redirects the client
requests to the next member in the cluster.
For setting up
such an environment we have several options:
One Apache Web
server on its own machine and two tomcat servers on different machines (stable
and high performance, high cost)
One Apache Web
server on its own machine and two tomcat instances on the same machine.
One Apache Web
server and one tomcat server on one machine and the 2. Tomcat server on a separate
machine.
分享到:
相关推荐
分布式NOSQL redis源码阅读中文分析注释,带详尽注释以及相关流程调用注释,提出改造点,redis cluster集群功能、节点扩容、槽位迁移、failover故障切换、一致性选举完整分析,对理解redis源码很有帮助,解决了...
同时,可以通过`CLUSTER FAILOVER`命令手动触发故障转移。 五、常见问题及解决 1. 网络问题:确保所有节点间的网络通畅,否则可能影响集群通信。 2. 端口冲突:确保每个Redis实例使用的端口不冲突,避免服务启动...
"failover-manager-master.zip_failover" 提到的“failover”机制正是为了实现这一目标,确保在主节点发生故障时,系统能够自动切换到备用节点,以保持服务的连续性和数据的一致性。 **Failover(故障转移)** 是一...
Redis-Cluster是Redis的分布式解决方案,它通过分片(sharding)和故障转移(failover)来确保数据的可靠性和服务的连续性。 在Windows上搭建Redis-Cluster主要涉及以下步骤: 1. **下载Redis源码**:首先,你需要...
Apache Pulsar是一款先进的分布式消息队列系统,由Apache软件基金会开发并维护。Pulsar最初由Yahoo创建,后来成为Apache顶级项目,以其高性能、低延迟和可扩展性而受到业界广泛认可。在"apache-pulsar-2.7.1-bin.tar...
Flume NG 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume NG支持(故障转移)failover和负载均衡。
【Windows 2008 Failover Cluster 部署详解】 Windows 2008 Failover Cluster 是一种高可用性解决方案,它允许在多台服务器之间实现应用和服务的自动故障转移,以确保在主服务器发生故障时,业务连续性和数据可用性...
Flume 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume NG支持(故障转移)failover和负载均衡。
- **迁移流程**:从节点收到`cluster failover`命令后,会通知主节点停止处理所有客户端请求,然后从节点开始同步主节点的所有数据,直至复制偏移量一致。随后,从节点发起选举并成为新的主节点,旧主节点变为从...
Flume 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume NG支持(故障转移)failover和负载均衡。
Apache Dubbo是一个高性能、轻量级的开源Java RPC框架,由阿里巴巴公司开发并维护,它致力于提供一个简单、高效的服务治理方案。这个“apache-dubbo-admin-0.4.0-bin-release”压缩包包含了用于管理和监控Dubbo服务...
气流计划程序故障转移控制器项目目的该项目的目的是创建一个故障转移控制器,该控制器将控制哪个调度程序已启动并正在运行,以允许跨整个Airflow集群进行HA。动机我们尝试设置一个高可用性气流集群,其中有两台运行...
simple-failover-java A simple failover library for Java. 用于构建高性能的客户端(主调方)自适应负载均衡和自动重试能力。 jdk1.8+ Get Started // 添加多个被调用资源,这里的被调用资源是指目标服务器(有多...
Apache和Tomcat是两个在Web服务器领域广泛应用的开源软件。Apache作为HTTP服务器,以其稳定性、高效性和可扩展性而著名,而Tomcat则是一个轻量级的Java应用服务器,主要用于运行Servlet和JSP应用。当面对高并发访问...
Apache和Tomcat是两种常用的Web服务器,它们在IT行业中扮演着重要的角色。Apache主要负责静态内容的处理,而Tomcat则是用于运行Java Servlet和JavaServer Pages(JSP)的应用服务器。将Apache与Tomcat集成可以实现...
NULL 博文链接:https://acooly.iteye.com/blog/1347417
3. **Cluster**:负责将多个服务提供者的实例进行聚合,提供容错和负载均衡策略,如Failover、Failfast、Broadcast等。 4. **Router**:路由规则,可以根据特定条件过滤服务提供者,实现动态路由策略。 5. **Filter*...
"SQL Server 2012 failover cluster搭建详解" SQL Server 2012 failover cluster是一种高可用性的解决方案,可以提供数据库的高可用性和灾难恢复能力。本文将详细介绍如何在Windows Server 2008 R2上搭建SQL Server...
具有以下属性 -sentinel monitor mymaster redis-master 6379 2sentinel down-after-milliseconds mymaster 5000sentinel parallel-syncs mymaster 1sentinel failover-timeout mymaster 5000详细信息请参阅 ...