- 浏览: 266942 次
- 性别:
- 来自: 苏州
-
文章分类
最新评论
-
di1984HIT:
这个是默认的。!
ElasticSearch (3) Java API -- put mapping to index -
di1984HIT:
谢谢,学习了~~~
ElasticSearch (3) Java API -- put mapping to index -
di1984HIT:
写的很好,谢谢啦
ElasticSearch (3) Java API -- put mapping to index -
swzzm:
.............文件加密了,密码了
Hive + Hbase
tomcat vertical clustering
http://www.easywayserver.com/implementation-tomcat-clustering.htm
ENV: tomcat 6.0 httpd 2.2 os winxp sp3
1 copy extracted tomcat to tomcatA
change the sever.xml as below
<Server port="8105" shutdown="SHUTDOWN">
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8109" protocol="AJP/1.3" redirectPort="8443" />
Add jvmRoute
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcatA">
Uncommented clustering tag
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
2 copy extracted tomcat to tomcatB
change the sever.xml as below
<Server port="8205" shutdown="SHUTDOWN">
<Connector port="8082" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8209" protocol="AJP/1.3" redirectPort="8443" />
Add jvmRoute
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcatB">
Uncommented clustering tag
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
3 copy extracted tomcat to tomcatC
change the sever.xml as below
<Server port="8305" shutdown="SHUTDOWN">
<Connector port="8083" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8309" protocol="AJP/1.3" redirectPort="8443" />
Add jvmRoute
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcatC">
Uncommented clustering tag
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
4 add the mod_jk for apache httpd server, change the httpd.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "C:\Program Files\Apache Software Foundation\Apache2.2\conf\workers.tomcat.vertical.cluster.properties"
JkLogFile "C:\Program Files\Apache Software Foundation\Apache2.2 \logs\mod_jk.log"
JkLogLevel error
JkMount /cluster loadbalancer
JkMount /cluster/* loadbalancer
5 create workers.tomcat.vertical.cluster.properties as below
workers.java_home=$JAVA_HOME
ps=/
worker.list=tomcatA,tomcatB,tomcatC,loadbalancer
worker.tomcatA.port=8109
worker.tomcatA.host=localhost
worker.tomcatA.type=ajp13
worker.tomcatA.lbfactor=1
worker.tomcatB.port=8209
worker.tomcatB.host=localhost
worker.tomcatB.type=ajp13
worker.tomcatB.lbfactor=1
worker.tomcatC.port=8309
worker.tomcatC.host=localhost
worker.tomcatC.type=ajp13
worker.tomcatC.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcatA,tomcatB,tomcatC
worker.loadbalancer.sticky_session=1
6 create cluster application in 3 tomcat servers in webapps, create the file test.jsp. Below is an example, please create them for each
<%
session.setAttribute("a","a");
%>
<html>
<head>
<title>Test JSP</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#CCCCCC">
<td width="13%">TomcatA Machine</td>
<td width="87%"> </td>
</tr>
<tr>
<td>Session ID :</td>
<td><%=session.getId()%></td>
</tr>
</table>
7 open your IE and write the url: http://localhost/cluster/test.jsp
close your IE and do it again.
Close your IE and do it again.
That's all.
</body>
</html>
http://www.easywayserver.com/implementation-tomcat-clustering.htm
ENV: tomcat 6.0 httpd 2.2 os winxp sp3
1 copy extracted tomcat to tomcatA
change the sever.xml as below
<Server port="8105" shutdown="SHUTDOWN">
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8109" protocol="AJP/1.3" redirectPort="8443" />
Add jvmRoute
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcatA">
Uncommented clustering tag
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
2 copy extracted tomcat to tomcatB
change the sever.xml as below
<Server port="8205" shutdown="SHUTDOWN">
<Connector port="8082" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8209" protocol="AJP/1.3" redirectPort="8443" />
Add jvmRoute
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcatB">
Uncommented clustering tag
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
3 copy extracted tomcat to tomcatC
change the sever.xml as below
<Server port="8305" shutdown="SHUTDOWN">
<Connector port="8083" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8309" protocol="AJP/1.3" redirectPort="8443" />
Add jvmRoute
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcatC">
Uncommented clustering tag
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
4 add the mod_jk for apache httpd server, change the httpd.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "C:\Program Files\Apache Software Foundation\Apache2.2\conf\workers.tomcat.vertical.cluster.properties"
JkLogFile "C:\Program Files\Apache Software Foundation\Apache2.2 \logs\mod_jk.log"
JkLogLevel error
JkMount /cluster loadbalancer
JkMount /cluster/* loadbalancer
5 create workers.tomcat.vertical.cluster.properties as below
workers.java_home=$JAVA_HOME
ps=/
worker.list=tomcatA,tomcatB,tomcatC,loadbalancer
worker.tomcatA.port=8109
worker.tomcatA.host=localhost
worker.tomcatA.type=ajp13
worker.tomcatA.lbfactor=1
worker.tomcatB.port=8209
worker.tomcatB.host=localhost
worker.tomcatB.type=ajp13
worker.tomcatB.lbfactor=1
worker.tomcatC.port=8309
worker.tomcatC.host=localhost
worker.tomcatC.type=ajp13
worker.tomcatC.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcatA,tomcatB,tomcatC
worker.loadbalancer.sticky_session=1
6 create cluster application in 3 tomcat servers in webapps, create the file test.jsp. Below is an example, please create them for each
<%
session.setAttribute("a","a");
%>
<html>
<head>
<title>Test JSP</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#CCCCCC">
<td width="13%">TomcatA Machine</td>
<td width="87%"> </td>
</tr>
<tr>
<td>Session ID :</td>
<td><%=session.getId()%></td>
</tr>
</table>
7 open your IE and write the url: http://localhost/cluster/test.jsp
close your IE and do it again.
Close your IE and do it again.
That's all.
</body>
</html>
发表评论
-
Gitub change username
2013-03-20 21:56 1037http://alvinalexander.com/git/g ... -
Log Management
2013-01-24 11:02 929http://kibana.org/ http:/ ... -
Bloom Filter 原理
2013-01-17 21:05 0http://blog.csdn.net/jiaomeng/ ... -
Jenkins installation
2012-10-31 18:06 1190ENV list OS : redhat linux ent ... -
YAML
2012-10-30 13:47 1016http://www.yaml.org/ YAML ... -
Jenkins SVN
2012-10-25 16:43 2330$pwd /root/.jenkins/jobs ... -
JavaScript RegExp
2012-09-25 16:12 0http://net.tutsplus.com/tutoria ... -
Hbase Miscellaneous
2012-08-29 14:37 967FAQ 1. Lease does not exist htt ... -
tomat multiple instance setup
2012-08-15 14:10 1059http://www.shaunabram.com/multi ... -
GET VS POST
2012-08-14 14:10 788http://mzhou.me/?p=77001 http: ... -
REST
2012-07-30 17:16 704http://www.ibm.com/developerwor ... -
solr good website
2012-07-02 15:11 0http://lucidworks.lucidimaginat ... -
编程 感悟
2012-06-18 14:32 8081 运行时绑定的能力 无论是java的继承方法重写,还是运用组 ... -
Solr FQA
2012-06-14 18:37 9351. Question: sometimes the afte ... -
Solr Jetty Replication
2012-05-22 15:39 1598=============================== ... -
Solr tomcat replication
2012-05-22 15:23 1044SOLRMASTER Master SOLRSLAVE1 ... -
Solr tomcat setup
2012-05-22 15:21 1116In the production env, we need ... -
SSH password less login
2012-04-25 20:15 804http://www.thegeekstuff.com/200 ... -
Hbase shell in practise
2012-03-29 14:16 876create 'test', {NAME => 'col ... -
Hadoop study notes - Hive simple example
2012-03-14 11:50 1019hive> create table dumprecor ...
相关推荐
【标题】"Tomcat5.5集群完整版"所涉及的知识点主要集中在如何构建和管理一个基于Tomcat5.5的服务器集群。Tomcat作为Apache软件基金会的一个开源项目,是Java Servlet和JavaServer Pages(JSP)技术的开源Web应用...
Tomcat7 集群配置 Tomcat7 集群配置是指将多个 Tomcat 服务器组合成一个集群,以提高系统的可用性和可扩展性。在这个配置中,Session 复制机制是一个非常重要的部分,它可以确保在集群中的每个节点都可以访问到同一...
本文将深入探讨“Tomcat服务器集群”和“负载均衡”的概念,以及如何进行相关的配置。 首先,我们要理解什么是Tomcat服务器集群。集群是一种通过多台服务器共享工作负载、提供冗余和提高可用性的方式。在Tomcat环境...
【标题】:“Tomcat集群配置” 在Web应用的高可用性和可扩展性需求日益增长的今天,Tomcat集群成为了一个重要的解决方案。Tomcat集群能够通过负载均衡和故障转移来提高服务的稳定性和性能。以下是对Tomcat集群配置...
apache tomcat负载集群,appache负载,tomcat负载
### Apache+Tomcat服务器集群配置详细步骤 #### 一、引言 在现代Web开发中,随着业务规模的不断扩大和用户需求的日益增长,单一服务器往往难以满足高性能、高可靠性的要求。为了应对这一挑战,通常采用Apache+...
nginx 配置tomcat8集群
【标题】:Tomcat5集群中的SESSION复制详解 【描述】:本文将深入探讨Tomcat5在集群环境下的SESSION复制机制,以及如何确保SESSION的持久性和集群中的无缝切换。 【标签】:Tomcat5,复制,集群,SESSION 在...
基于ssm+shiro+redis+nginx tomcat服务器集群管理项目 基于ssm+shiro+redis+nginx tomcat服务器集群管理项目 基于ssm+shiro+redis+nginx tomcat服务器集群管理项目 基于ssm+shiro+redis+nginx tomcat服务器集群管理...
直接下载, 即可用 apache2.4+tomcat 7 集群配置
在构建高可用的Web服务时,Tomcat集群是常见的选择,但随之而来的一个问题就是如何在集群中的各个节点间共享Session。"Tomcat8集群session共享(redis处理)"的主题正是针对这一问题,通过集成Redis作为分布式缓存来...
通过上述步骤,你可以在Windows 7环境下成功构建一个Apache 2.4 + Tomcat 7的单机垂直集群。这种配置对于测试、开发或小型生产环境都是一个实用的解决方案。然而,对于更大规模的部署,可能需要考虑更复杂的集群架构...
tomcat实现comet例子,实现后台产生每隔几秒产生随机数,前台不刷新显示。tomcat实现comet例子,实现后台产生每隔几秒产生随机数,前台不刷新显示。tomcat实现comet例子,实现后台产生每隔几秒产生随机数,前台不...
在构建高可用的Web服务时,Tomcat集群是常见的选择,它可以提高系统的容错性和可扩展性。然而,集群中的各个节点之间如何有效地共享用户Session信息成为了一个关键问题。为了解决这个问题,我们可以利用第三方缓存...
通过集成Apache和Tomcat,可以构建一个高效且可扩展的Web服务器集群,实现负载均衡和session复制功能。 集群技术的主要目标是提高系统的可用性和性能,通过将工作负载分散到多个服务器上,避免单点故障,并提高处理...
apache tomcat8 集群说明
3. **集群配置**:Apache2和Tomcat6的集群配置涉及到多个层面。首先,要在Apache2中启用mod_jk,并配置JKWorkers文件,定义每个Tomcat实例(worker)的属性,如IP地址、端口等。然后,需要在Apache的虚拟主机配置中...
亲手制作的tomcat7集群&session;共享附件里有两个tomcat的配置文件,还有一个session共享测试war包和说明文档,代理用的nginx 里面有具体配置,希望能帮助大家了解tomcat集群配置。