An example of implementing Load Balancing using nginx as a reverse proxy:Reprinted please indicate the original link: http://blog.csdn.net/omohe/archive/2009/07/09/4335765.aspxVersion: V1.0 Author: Omo last modification time: 2009.07.091) Environment: A. We use a local Windows system, and then use virutalbox to install a virtual Linux system. Install nginx (Listening to port 8080) and
balance Tomcat. back-end Tomcat configuration four types of anti-generational + load Balancing are used with this Tomcat deployment. Tomcat-01DeploymentInstalling the JDK[Email protected] ~]# RPM-IVH jdk-7u67-linux-x64.rpmSet en
and reduce the hardware and software requirements on the master server.
Currently, Server Load balancer is commonly used in the following scenarios:1. DNS-Based Load BalancingServer Load balancer is achieved through random name resolution in the DNS service. In the DNS server, you can configure the same name for multiple different addresses, the client that fina
Objective:
With the explosive growth of Internet information, load balancing (loading balance) is no longer a very unfamiliar topic, as the name implies, load balance is to spread the load to different service units, not only to ensure the availability of services, but also to ensure that the response fast enough to g
Apache function is actually very powerful, recently studied the next Apache reverse proxy and load balancing, reverse proxy network network export and my blog export is through the reverse proxy Apache implementation, summed up, the emphasis is on the configuration of
machine, it will cause a dead loop.
How to solve this problem? Since port 80 is already being used to monitor the processing of load balancing, it is no longer possible to use the 80 port on the server to process a.com access requests, using a new one. So we add the nginx.conf of the main server to the following code:
server{ listen 8080; server_name a.com; Index index.html; root/data0/htdo
).
2.1 PCs installed nginx+php 192.168.2.2 (80 port), as Web server 1
3.1 PCs installed apache+php 192.168.2.8 (80 port), as Web server 2
(i) Load balancing for different requests.
Nginx only handle static pages, dynamic pages (PHP requests) are all delivered to the background of Apach
balancing devices, and the ability to handle seven layers is bound to be lower than the four-tier mode deployment.Second, the needs of the application scenario.The benefit of seven-tier application load is to make the whole network more " intelligent ". For example, access to a Web site user traffic, you can pass the request of the picture class to a specific image server through seven layers, and can use
Tomcat 1.1 drops 3) Integrate Apache and Nginx
Preface:The last two articles describe how to install and deploy Tomcat. However, there is a problem. When Tomcat needs to process static pages, it is slow, at least not as good as Apache, so
First, the preface
The previous article briefly describes how to install Nginx, the method is very simple, the operation is also very convenient. The above mentioned Nginx can do HTTP server, virtual host, load balance. In this blog small and medium-sized to tell you how to use Nginx to do load balancing. second, load
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-
other two are real Web servers that provide HTTP services externally, using only the default CentOS HTTP service, and no other Tomcat-like, Jexus services are installed. (2) This experiment is based on Dr Load Balancing model Set a VIP (Virtual IP) to 192.168.5.200, the user only need to access this IP address to obtain Web services.
Understanding of Nginx Load BalancingNginx is a lightweight, high-performance webserver, he can mainly do the following two things:As an HTTP server (as with Apache)Load balancing as a reverse proxy serverNow Nginx everywhere can be seen, often see the page after the outage will show Nginx words, which also shows that
Nginx instance//************ Description *************//This article is based on Nginx load balancing for multiple tomcat serversPreparation Work *************//Nginx installation package Download: http://nginx.org/en/download.htmlNginx Online Brochure: http://shouce.jb51.net/nginx/index.htmltomcat1:8081 Port (Local installation start)tomcat2:8082 Port (Local ins
Preface:At present, many Web applications, or Web interfaces, will be at the entrance of the server, using a server container to listen to the port, and then make request forwarding, such as Nginx Apache. Server containers are critical to the entire Web service, including the ability to manage service processes, perform proxies, pre-process requests, and load balance. The focus of today's discussion is to m
Session retention is one of the most common problems in load balancing and is a relatively complex issue.Session hold is sometimes called sticky session (Sticky Sessions).Before we introduce session-keeping techniques, we have to take some time to figure out the concepts: what is a connection (Connection), what is a session, and the difference between the two. In particular, if we are just talking about
.
------ Solution --------------------
Set up a monitored machine cacti
------ Solution --------------------
Apache server load balancer is implemented by reverse proxy. apache has an extension module mod_proxy dedicated to this. After the configuration is complete, apache will handle the server
deployed in the background, such as Nginx or Apache, can be moved forward to load-balancing devices, such as header overrides in customer requests, keyword filtering in server responses, or content insertion.
The four-layer load balancing is more flexible and can be used a
, and then visit a.com to see if it will be assigned to the primary server.The primary server is also able to join the service normally.Benefits of Load BalancingOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not be as nginx.Second, more than one server to provide service
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.