Nginx + Tomcat server Load balancer ConfigurationGuideNginx + tomcat is the mainstream Java Web architecture of Internet companies. nginx + tomcat can work stably at the same time. How can I use nginx to reverse proxy tomcat backend balancing? Directly install the configuration as follows:Install JAVA JDK
# Download the appropriate jdk software package, and then
Use httpd to configure Server Load balancer for tomcat.
Experimental System: CentOS 6.6 _ x86_64
Prerequisites: Prepare the compiling environment in advance, and disable both firewall and selinux.
Tutorial Description: There are two hosts in this experiment, and IP addresses are allocated as topology.
Experimental software: jdk-8u60-linux-x64 apache-tomcat-8.0.24
haproxy, in the Haproxy configuration file There is the following paragraphListen stats bind:10086 stats enable stats uri/admin?stats Stats Auth admin:admin stats ad Min if TRUEThis configuration allows us to view and modify the Haproxy statistics interface in the browser to enable the relevant parameters, enter Http://172.18.67.33:10086/admin?stats in the browser, the following status will appear, enter the account and password, The Haproxy related parameter Configuration page is entered.In th
of the featureNext we test the characteristics of the haproxy, in the Haproxy configuration file There is the following paragraphListen stats bind:10086 stats enable stats uri/admin?stats Stats Auth admin:admin stats ad Min if TRUEThis configuration allows us to view and modify the Haproxy statistics interface in the browser to enable the relevant parameters, enter Http://172.18.67.33:10086/admin?stats in the browser, the following status will appear, enter the account and password, The Haproxy
1. Like Apache, they are both HTTP server software and adopt Modular Design for function implementation. They all support common language interfaces. At the same time, they also support forward and reverse proxies, virtual hosts, and URL rewriting,CompressionTransmission, SSL encrypted transmission, and so on. However, in terms of execution efficiency, nginx processes faster and consumes less memory resources. In addition, nginx also supports fcgi, wh
Nginx Reverse Proxy Server Load balancer page cache URL rewriting and read/write splitting
Outline
I. Preface
II. Environment preparation
3. install and configure Nginx
Iv. reverse proxy for Nginx
5. Load Balancing for Nginx
Vi. Nginx page Cache
VII. Rewrite Nginx URLs
VIII. Nginx read/write splitting
Note that the operating system is CentOS 6.4 x86_64,
Nginx Installation notes (including PHP support, virtual host, Reverse Proxy Server Load balancer)
2008-10-11 tsengyia # 126.com
Nginx is said to be superior to Apache in terms of high performance and stability, strong concurrent connection processing capability, and low system resource consumption. Currently, more than 2.5 million of web sites are in useHttp://survey.netcraft.com/Reports/200809/).#########
Record Server Load balancer web Service requests based on DNS
As a forum site: There are two types of data to be processed:1. structured data, such as user names and user comments, can be stored in relational databases. 2. unstructured data, such as attachments uploaded by users. Stored in the file system.
Forum architecture:
Use two httpd servers to serve users' access requests. Use the record of DNS for c
have a short time recently, study a bitNginx
, and made a simple introductory case.
Brief introduction:
Nginx (engine x) is a lightweight Web Server, reverse proxy server, and e-mail (imap/pop3) proxy server.
The Normal mode of client Access server is direct access, with nginx Server, we can deploy the same application to different servers, the access mode is as follows: This greatly improves the concurrency capability, reduces the pressure on the server and improves the performance.
Normal
The server Load balancer device allows you to easily expand a web server to a Web server cluster (provided that all Web servers must be configured completely the same, the device will send the request accordingAlgorithmTo a server in the web server cluster, which greatly increases the concurrent processing capability of the Web server.
In practical applications, multiple Web servers are usually deployed i
Software and jar packages required by Server Load balancerRedis-2.4.14.tar.gzTcl8.5.11-src.tar.gzNginx-1.2.0.tar.gzTomcat-redis-session-manager-1.0.jarCommons-pool-1.6-bin.tar.gzJedis-2.1.0.jarStep 1: install Tomcat to support redis cache policies1. Copy the JAR file to ¥atat_home/lib /.2. Correct ¥ atat_home/CONF/context. xmlAddHost = "localhost"Port = "6379"Database = "0"Maxinactiveinterval = "60"/>Step 2
Although the previous LVS have been configured successfully and load balanced, we found that when a real server stopped the Nginx process, the Director would still forward the request to the past, which caused some requests to be abnormal. So there needs to be a mechanism to detect the state of real server, which is keepalived. In addition to detecting the RS State, it can also detect the state of the standby director, that is, keepalived can implemen
Through the Ip_hash to do the session to maintain a certain defect, this is through the client IP to achieve. Many client access servers under the same network will be thrown to the same machine, or the CDN will result in unbalanced load. So to implement through the client cookie implementation, including the F5, the deep convincing device where the session remains is also by inserting a cookie value to imp
Now the trend of Web site development to the use of Network Load balancing with the increase of the size of the site according to different stages to use different technologies: 1. Hardware-level load balancing
This load balancing is done through hardware, and common hardware has more expensive commercial load balancer
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.