; # youliaoo system service address, lan address, I still use 10 machines, you can also configure other addresses in the LAN Proxy_redirect off ; Proxy_set_header Host $ Host ; Proxy_set_header x - Real - IP $ remote_addr ; Proxy_set_header x - Forwarded - For $ Proxy_add_x_forwarded_for ; } }
In this way, all requests using 10.10.10.10 will be forwarded to the system running on 10.10.10.10: 8800. Requests using www.youliaoo.com or other domain names will be forwarded to 10
This article is mainly about the simplest solution--dns polling.DNS PollingMost domain name registrars support the resolution of multiple A records, in fact, this is the DNS polling, the DNS server will resolve the request in accordance with the order of a records, one by one assigned to a different IP, so that the simple load balancing is completed.Advantages
Basically no cost, because often domai
1.HAProxy Introduction
Haproxy is an open-source, high-performance, load-balancing software based on TCP (four-tier), HTTP (seven-tier) applications. That haproxy as a professional load balancer software, it has the following advantages:
Very good reliability and stability, comparable to hardware-level F5 load
', can be placed on the second line (below #/bin/sh)Chkconfig--add Apache #添加服务Service Apache Start #启动服务
Configure load balancing and session hold1. Modify apache_home/conf/httpd.conf, add the following module (uncomment, if other dependencies, then uncomment accordingly)
123
LoadModule proxy_module Modules/mod_proxy. SoLoadModule proxy_http_module modules/mod_proxy_http. S
See First: Legendserver Topology architecture diagramSince the last censored test is inaccurate when it comes to statistical CCU, the optimization of load balancing needs to be done:Each type of server can be multi-configuration but each server in the processing logic is single-threaded, but each server in parallel with the center interaction, not by proxy, AC, l
The CentOS system builds nginx load BalancerFirst, about the CentOS system introductionCentOS (Community Enterprise Operating System, Chinese means: Community Enterprise operating system) is one of the Linux distributions, it comes from Red Hat enterprise Linux is compiled according to the source code released by the open source rules. Based on Red Hat's continuous upgrade, and fixes for known bugs, CentOS is more used to build large enterprise-class
posted here and knows the answers to my doubts.The virtual host in the nginx.conf.server_name edi.qnb.com;Virtual hosts in the Server.xmlWhy do the names of the two virtual hosts have to be the same? Can a great God give me an explanation ...Unofficial explanation: I was so understanding, a full Web server, a front-end browser access to--nginx, back-end processing request data--tomcat. After these two are together, a complete Web server is formed. So the host name must be the same!!! 2015.8.28
18.6 Load Balancing Cluster introduction
Main open source software LVs, keepalived, Haproxy, Nginx, etc.
The LVS belong to 4 layer (network OSI 7 layer model), Nginx belongs to 7 layer, Haproxy can be considered as 4 layer, can be used as 7 layer
The Keepalived load balancing function is actually the L
Net Distributed System II: The CentOS system builds Nginx load balancing and centosnginx
1. Introduction to CentOS
CentOS (Community Enterprise Operating System) is one of the Linux releases. It is compiled by Red Hat Enterprise Linux according to the open source code. Based on the continuous upgrade of Red Hat and fixing of known bugs, CentOS is more used to build large enterprise-level servers. At present
from being exposed to the web.Here I use Haproxy to load multiple Redis servers and then monitor the haproxy with keepalived:(primary) Server a:10.10.51.231(from) Server b:10.10.51.232vip:10.10.51.230Keepalived Monitor A, B on the haproxy, the use of keepalived VIP drift technology, if a, b Haprox are working properly, VIP and High priority server (master server) binding, when the primary server when the drop, then the slave server bound, The VIP is
Our LVS-DR cluster is built with an LVS scheduler, and the entire cluster will be paralyzed if the scheduler fails in the production environment. The two-machine hot standby of the LVS Scheduler by keepalived can solve this problem very well. Keepalived uses the VRRP virtual Routing Redundancy Protocol to realize the multi-machine hot-standby function of Linux server in the way of software.Case topology: This lvs+keepalived cluster requires two Nginx
; #server 192.168.8.203:8080;}The above is the cluster group. Upstream is the keyword, static and dynamic are the names of the two server cluster groups. In the first example, server 127.0.0.1:808 is the server address, and the latter weight=1 is the weight. You can write more than one. Pro Test, one of the cluster is bad, does not affect the system operation. For more polling rules, you can refer to more information on the Web. Not much to say here. As for how to use it? Proxy_pass http://192.1
, "controller" Assign the controller name Jkmount/* to the load assigned in workers.propertise3, download mod_jk.so:http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-connectors/jk/binaries/windows/, note download and Apache The same version of so is placed under the installation directory/modules folder4, create and configure the Workers.properties file under Conf, with the following content:Serverworker.list = controller#========tomcat1========worker.to
worker processes to restart services, smooth upgrade, change log files, configuration files in real-time function and other functions. To control Nginx, you only need to send a signal to the master process via kill. Kill Master 8682 as follows to stop NginxWorker processThe basic network events are handled in the worker process. Multiple worker processes are equivalent, they compete for requests from clients equally, and each process is independent of each other. A request can only be processed
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.