在单位的TOMCAT负载均衡的配置,一直在运行很稳定
2009-08-29 09:39
302 查看
tomcat负载均衡一例
# lb-en
# ------------------------# server1
worker.tomcat-en1.port=8409
worker.tomcat-en1.host=172.16.41.30
worker.tomcat-en1.type=ajp13
# Specify the size of the open connection cache.
#worker.tomcat1.cachesize
worker.tomcat-en1.cachesize=100
worker.tomcat-en1.cache_timeout=600
worker.tomcat-en1.socket_keepalive=1
worker.tomcat-en1.socket_timeout=300
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.tomcat-en1.lbfactor=100# server2
worker.tomcat-en2.port=8409
worker.tomcat-en2.host=172.16.41.31
worker.tomcat-en2.type=ajp13
# Specify the size of the open connection cache.
#worker.tomcat1.cachesize
worker.tomcat-en2.cachesize=100
worker.tomcat-en2.cache_timeout=600
worker.tomcat-en2.socket_keepalive=1
worker.tomcat-en2.socket_timeout=300
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.tomcat-en2.lbfactor=100# ------------------------
# Load Balancer worker
# ------------------------
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# worker.
worker.lb-en.type=lbworker.lb-en.balanced_workers=tomcat-en1,tomcat-en2
worker.lb-en.sticky_session=false
本文出自 “云计算与大数据_jxwpx” 博客,请务必保留此出处http://jxwpx.blog.51cto.com/15242/196835
# lb-en
# ------------------------# server1
worker.tomcat-en1.port=8409
worker.tomcat-en1.host=172.16.41.30
worker.tomcat-en1.type=ajp13
# Specify the size of the open connection cache.
#worker.tomcat1.cachesize
worker.tomcat-en1.cachesize=100
worker.tomcat-en1.cache_timeout=600
worker.tomcat-en1.socket_keepalive=1
worker.tomcat-en1.socket_timeout=300
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.tomcat-en1.lbfactor=100# server2
worker.tomcat-en2.port=8409
worker.tomcat-en2.host=172.16.41.31
worker.tomcat-en2.type=ajp13
# Specify the size of the open connection cache.
#worker.tomcat1.cachesize
worker.tomcat-en2.cachesize=100
worker.tomcat-en2.cache_timeout=600
worker.tomcat-en2.socket_keepalive=1
worker.tomcat-en2.socket_timeout=300
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.tomcat-en2.lbfactor=100# ------------------------
# Load Balancer worker
# ------------------------
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# worker.
worker.lb-en.type=lbworker.lb-en.balanced_workers=tomcat-en1,tomcat-en2
worker.lb-en.sticky_session=false
本文出自 “云计算与大数据_jxwpx” 博客,请务必保留此出处http://jxwpx.blog.51cto.com/15242/196835
相关文章推荐
- Nginx + Tomcat配置负载均衡
- nginx + tomcat 集群配置详解, 实现负载均衡 URLRewrite Session复制
- Nginx+tomcat配置集群负载均衡
- apace与tomcat的负载均衡及集群配置(proxy)
- 图文解说:Nginx+tomcat配置集群负载均衡
- 基于mod_proxy+Apache 2.2.16+Tomcat 7的负载均衡与集群配置
- Apache +Tomcat的负载均衡与集群配置
- 图文解说:Nginx+tomcat配置集群负载均衡
- nginx + tomcat配置负载均衡
- Apache+Tomcat配置负载均衡
- nginx安装配置及负载均衡集群配置(tomcat)
- nginx配置负载均衡时,假如一台tomcat宕机如何处置?
- Apache +Tomcat的负载均衡与集群配置
- 基于mod_proxy+Apache 2.2.16+Tomcat 7的负载均衡与集群配置 Peter Wei
- apache+tomcat集群的负载均衡配置方式
- 搭建分布式数据库负载均衡运行环境的一些配置记录(2)mycat
- 基于mod_proxy+Apache 2.2.16+Tomcat 7的负载均衡与集群配置
- nginx + tomcat配置负载均衡
- 负载均衡之nginx+tomcat简单demo配置
- apache+tomcat实现负载均衡与集群的配置