`

apache 2.2.15 +tomcat 6.0 同一台机器集群

阅读更多

今天配乐一下,负载平衡没有问题,但是在同一台机器上面,session复制总是失败 :(

 

 

参考网站

http://wangzhen-1104.iteye.com/?page=3&show_full=true

http://www.iteye.com/topic/675914

http://www.ibm.com/developerworks/cn/opensource/os-lo-apache-tomcat/

http://blog.csdn.net/longaohun/archive/2010/05/11/5577324.aspx

 

http://blog.csdn.net/longaohun/archive/2010/05/11/5577324.aspx

 

官方

 

http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html#Bind%20session%20after%20crash%20to%20failover%20node

 

 

 http://tomcat.apache.org/connectors-doc/reference/workers.html

 

  • All your session attributes must implement java.io.Serializable
  • Uncomment the Cluster element in server.xml
  • If you have defined custom cluster valves, make sure you have the ReplicationValve defined as well under the Cluster element in server.xml
  • If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each instance, in most cases Tomcat is smart enough to resolve this on it's own by autodetecting available ports in the range 4000-4100
  • Make sure your web.xml has the <distributable/> element or set at your <Context distributable="true" />
  • If you are using mod_jk, make sure that jvmRoute attribute is set at your Engine <Engine name="Catalina" jvmRoute="node01" > and that the jvmRoute attribute value matches your worker name in workers.properties
  • Make sure that all nodes have the same time and sync with NTP service!
  • Make sure that your loadbalancer is configured for sticky session mode.

只能是sticky session??

 

集群还有其他很多方案

 

 

分享到:
评论

相关推荐

    APACHE 2.2.15+TOMCAT6.0.26配置负载均衡

    使用 apache 和 tomcat 配置一个可以应用的 web 网站,要达到以下要求: 1、 Apache 做为 HttpServer ,后面连接多...注:本例程以一台机器(操作系统windows 2008)为例子,即同一台机器上装一个apache和4个Tomcat。

    Apache 2.2.15+mod_jk

    Apache 2.2.15 是一款广泛应用的开源Web服务器,它以其稳定性和灵活性而闻名。这个版本在2011年发布,包含了多个安全修复和性能改进。它支持多种模块,可以扩展其功能,满足不同用户的需求。 mod_jk是Apache的一个...

    Apache+Tomcat5.0实现集群

    通过集成Apache和Tomcat,可以构建一个高效且可扩展的Web服务器集群,实现负载均衡和session复制功能。 集群技术的主要目标是提高系统的可用性和性能,通过将工作负载分散到多个服务器上,避免单点故障,并提高处理...

    RHEL6+Tomcat6.0.24+JK1.2.32+Httpd2.2.15搭建集群文档

    **目标概述:** 本文档旨在指导如何在RHEL6.2 x64操作系统上搭建一个基于Tomcat 6.0.24的应用服务器集群,并通过Apache Httpd 2.2.15实现负载均衡。此架构能够提高系统的可用性和扩展性。 **系统环境信息:** - **...

    Apache2.2.15 配置http和https

    在这个主题中,我们将专注于如何在Apache 2.2.15版本上配置HTTP(超文本传输协议)和HTTPS(安全套接字层超文本传输协议)。HTTP允许用户通过互联网访问网页,而HTTPS则提供了加密和身份验证,确保数据在传输过程中...

    Apache2.2.15

    Apache2.2.15在Apache官网已经很难下载得到了,所以和大家分享

    Apache2.2.15安装及配置过程

    Apache 2.2.15 是一款广泛应用的开源Web服务器,其安装和配置对于搭建网站服务至关重要。在本文中,我们将详细阐述如何安装这个特定版本的Apache,并介绍反向代理配置的基本步骤。 首先,要安装Apache 2.2.15,你...

    apache2.2.15

    apache2.2.15 win32-no_ssl.msi

    apache2.2.15.zip

    Apache HTTP Server(簡稱Apache)是Apache軟體基金會的一個開放源碼的網頁伺服器,可以在大多數電腦作業系統中運行,由於其跨平台和安全性[1]被廣泛使用,是最流行的Web伺服器端軟體之一。它快速、可靠並且可通過簡...

    php5.3与apache2.2.15

    描述中提到的 "httpd-2.2.15-win32-x86-openssl-0.9.8m-r2" 是Apache 2.2.15的一个Windows 32位版本,包含了OpenSSL 0.9.8m的安全库,用于支持HTTPS等加密通信。"php-5.3.2-Win32-VC6-x86" 是PHP 5.3.2的Windows 32...

    apach2+tomcat 负载均衡

    ### Apache2 + Tomcat 负载均衡配置详解 #### 一、背景介绍 随着互联网应用的日益增多,单一服务器已经难以满足高并发访问的需求。负载均衡技术通过将客户端请求分发到不同的后端服务器上处理,从而提高系统的稳定...

    redhatlinux5.5下安装apache2.2.15与svn1.6.11.pdf

    在Red Hat Linux 5.5环境下,安装Apache 2.2.15和Subversion 1.6.11是一项常见的任务,这涉及到版本控制系统的部署以及Web访问接口的设置。Apache HTTP Server作为Web服务器,它允许用户通过HTTP或HTTPS协议访问...

    apache集群

    Apache集群是指将多个Apache服务器组合在一起,以提高服务器的可扩展性、可靠性和性能的一种技术。Apache集群可以通过负载均衡技术将用户请求分配到不同的服务器上,以提高网站的整体性能和可用性。 在本文档中,...

    linux+apache2+php5+mysql5--Install&Config

    - **Web 服务器**:Apache 2.2.15 - **脚本语言**:PHP 5.2.13 #### 2. 安装包准备 接下来是准备所需的软件包。以下是各个组件的下载地址及基本信息: | 组件 | 版本 | 下载地址 | |--------|-------------------...

    Apache httpd-2.2.15源码

    Apache httpd-2.2.15源码,很宝贵的哦!Apache的官网现在都没这个版本了!

Global site tag (gtag.js) - Google Analytics