Recently, the company wanted to provide customers with a cluster solution. The project team adopted Apache and tomcat cluster configuration to achieve load balancing.
I have never been familiar with Apache before, so I have some hands-on skills. I also searched for many clus
A vertical load is the load between different servers in the same machine. The biggest difference from a horizontal load (the load between servers with different IPs) is to modify the tomcat port number to avoid causing conflicts.Also pay attention to
use their own web site so that their web site is split up reasonably.
* We provide a load-balanced web site, which means that multiple Tomcat workers are used simultaneously, and each tomcat worker has a separate host and assigns requests forwarded over the Web server between workers.
Of course, these scenarios may not cover all the situations where multiple w
needs to be manipulated ———————————————-#加载mod_jk ModuleLoadModule Jk_module Modules/mod_jk.so#指定workers. properties File Pathjkworkersfile/usr/Local/apache2/conf/workers.properties#指定jk logs file storage locationjklogfile/usr/Local/apache2/logs/mod_jk.Log#Set the JK log level [Debug/error/info]Jkloglevel Info#Select the log formatJklogstampformat"[%a %b %d%H:%M:%s %Y]"#JkOptions indicate to send SSL KEYSIZE,Jkoptions +forwardkeysize +forwarduricompat-forwarddirectories#JkRequestLogFormat Set t
match your operating system, and then renamed to Mod_jk.so, using the following command: MV mod_jk-1.2.23-apache-2.2.x-linux-i686.so mod_jk.soand assign a value of 777 permissions, Chmod-r 777 mod_jk.soCopy the mod_jk.so to the Apache2/modules: CP mod_jk.so/usr/local/apache2/modules/Add the following in the httpd.conf:httpd.conf Path, under/usr/local/apache2/conf, vi httpd.conf, add include "/usr/local/apache2/conf/mod_jk.conf", save and exit, if pre
according to certain algorithms, balance the load of all servers in the cluster as much as possible. For external clients, they do not know which server in the cluster is accessed. multiple servers can be regarded as a "large" server logically. In this way, when the service capabilities of the cluster cannot meet the current needs, it is very convenient to add new servers to the cluster to meet the needs. It can be seen that the system has excellent
Build an Apache + Tomcat server Load balancer Cluster1. Required Software
Apache_2.2.4-win32-x86-no_ssl, apache server
Mod_jk-apache-2.2.4 connector connecting apache and tomcat
It took two days to learn about the integration of Apache and Tomcat, and now it's time to record the learning results.Apache and Tomcat load cluster integration methods have 3 JK, Jk_proxy, Http_proxySoftware version used for this integration:Apache:httpd-2.2.17-win32-x86-no_ssl.msiTomcat:apache-
Apache and Tomcat load cluster integration methods have 3 jk, jk_proxy, http_proxyApache:httpd-2.2.17-win32-x86-no_ssl.msiTomcat:apache-tomcat-6.0.20.zipInstall Apache HTTP Server omitted, access address is http://127.0.0.1:8081Install t
Apache HTTP Server and Tomcat three ways to connect Jk,http_proxy,ajp_proxy. Let's introduce each of the following (the examples presented here are based on the previously established Tomcat cluster, all native, with ports 18080 and 28080, respectively):JK:JK is the most common way, JK itself has two versions are 1 and 2, the current 1 the latest version is 1.2.3
For Web application cluster learning, I started from tomcat5.5. Below are some of my practical operations and experiences.
Section 1 Environment
Server Load balancer
*
Operating System: Windows XP
IP Address: 192.168.1.200
Apache: apache_2.2.13-win32-x86-openssl-0.9.8k.msi
Mod_jk: mod_jk-1.2.28-httpd-2.2.3.so (for Windows)
Cluster Environment tomcat1
*
Operating System: SuSE linuxe Server 10
IP Address: 192
1) Open the "httpd.conf" file in the "/usr/local/apache2/conf" directory and add the following configuration item at the end of the file, as shown in Figure 4-2-1.
Proxyrequests OFF
proxypass/balancer://mycluster/
Balancermember ajp://localhost:10009 ROUTE=TOMCAT1
Balancermember ajp://localhost:20009 ROUTE=TOMCAT2
Figure 4-2-1
Description: Where "Mycluster" is the name of the cluster, "ajp://localhost:10009 ROUTE=TOMCAT1" corresponds to the Tc6_a instance in the
Generally, according to some methods provided on the Internet, there is no major problem in connecting Apache and multiple Tomcat servers through JK for Cluster load, however, when the traffic volume increases significantly and the peak duration is longer, some default configurations are insufficient.
Today, I personally experienced this process. The maximum num
Apache HTTP Server is selected as the front-end Server Load balancer, and two Tomcat clusters are selected at the backend. The selected configuration method is session sticky (sticky session ), this method forwards requests from the same user to a specific Tomcat server to avoid session replication in the cluster. The
switch (L7 switch), in addition to support four-tier load balancing, but also to analyze the application layer of information, such as HTTP protocol URI or cookie information, to achieve seven-tier load balancing. This kind of load balancer can understand the application pr
HTTP protocol URI or cookie information, to achieve seven-tier load balancing. This kind of load balancer can understand the application protocol.The software for seven-tier load balancing is:Haproxy: Natural load
In order to develop Javaweb, installed MyEclipse, when running Tomcat found an error:java.lang.unsatisfiedlinkerror:d:\apache-tomcat-7.0.57\bin\ Tcnative-1.dll:can ' t load IA 32-bit. dll on a AMD 64-bit platform. self-surfing on the internet, found that the error for the project is not a major obstacle to the operatio
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.