1.apache对tomcat集群支持有俩种方式:
a.通过apache2.1之后版本后内置的proxy_ajp。
b.对于apache2.1之版本则通过tomcat的jk2.0.4的mod_jk.so:
(该版本已经停止开发)
将解压缩后的目录中的modules目录中的mod_jk.so
文件复制到apache的安装目录下的modules目录中。
俩种方式比较:
proxy_ajp配置较简单,主要表现在proxy_ajp目前只支持配置到目录,
还不支持对文件名称的pattern模式匹配
(即还不能定义到只对jsp文件起作用)。
2.tomcat集群方式:
a.DeltaManager
--现在采用的该方式:内部机器集群少采用
b.BackupManager
********************
两种集群方式官方说明:
using the DeltaManager to replicate session deltas.
By all-to-all we mean that the session gets replicated to
all the other nodes in the cluster. This works great for smaller cluster
but we don't recommend it for larger clusters(a lot of tomcat nodes).
Also when using the delta manager it will replicate to all nodes,
even nodes that don't have the application deployed.
To get around this problem, you'll want to use the BackupManager.
This manager only replicates the session data to one backup node,
and only to nodes that have the application deployed.Downside of
the BackupManager: not quite as battle tested as the delta manager.
********************
3.负载均衡(load-balance)定义:
在服务器端短时间内获得大量的请求,单一服务器无法在一个较短的时间内响应这些请求,
此时服务器需要一个机制,请求按照多个服务器不同的负载能力,把这些请求合理的分配。
4.集群(cluster):
在多个服务器之间共享用户信息,资源等。
tomcat6_apache2.2负载均衡加集群:高可用性至高体现。
现在的带集群功能相关软件oracle10g,mysql5,tomcat等。
分享到:
相关推荐
这涉及到负载均衡、数据库集群、消息队列等技术。 3. **游戏引擎**:游戏引擎的选择和定制对网游性能有很大影响。如Unity、Unreal Engine等,它们提供图形渲染、物理模拟、脚本系统等功能,需要根据项目需求进行...
SpringCloud 五大神兽 ● 服务发现——Netflix Eureka ● 客服端负载均衡——Netflix Ribbon ● 断路器——Netflix Hystrix ● 服务网关——Netflix Zuul ● 分布式配置——Spring Cloud Config
这可能涉及到Nginx反向代理和负载均衡器,以及Docker容器化技术,使得应用能够轻松扩展和部署。 总的来说,Java驴友社交系统是一个涵盖了后端开发、前端开发、数据库管理、安全策略、社交功能实现等多个方面知识的...
5. 性能优化:通过缓存策略、负载均衡和数据库索引优化等方式提高服务性能和响应速度。 MySQL数据库是整个系统的数据存储中心,涉及以下关键点: 1. 数据模型:设计合理的数据库表结构,确保数据的一致性和完整性...
8. **Nginx**:是一款高性能的HTTP和反向代理服务器,常用于负载均衡和静态资源处理。 9. **Shell**:是Unix或类Unix系统中的一种命令行接口,用户可以通过它来执行各种系统命令和脚本。 【标签】中的“markdown”...