The company recently had a project because users are concerned that a single machine can not afford to use the maximum number of users, the application cluster requirements. We designed the application cluster architecture according to the application situation.
The architecture diagram is as follows:
Features for deploying application clusters:
1. Front-end Agent load balancing
Because the user envir
Hproxy provides high availability, load balancing, and reverse proxies based on TCP and HTTP applications, especially for those web sites that are heavily loaded, which typically require session hold or seven-tier processing. Haproxy runs on the current hardware, fully supports tens of thousands of concurrent connections, and its operating mode makes it easy and secure to integrate into the architecture, wh
/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m01/8c/08/wkiom1hfelzx1wgraaawcrwo834711.png-wh_500x0-wm_3-wmp_4-s_4110980461.png "title = "999.png" alt= "Wkiom1hfelzx1wgraaawcrwo834711.png-wh_50"/>So first put aside these questions do not say, first of all, say the principle, nginx reverse proxy, the client is not aware of the external network server exists, that is, he just follow the
One: NLB test environment
Build the NLB lab environment as shown in Figure 1, where the computer server is a domain controller and a DNS server, and the client and CLIENT2 are member servers with domain name bianceng.cn. The IP address of all computer networks is 192.168.0.1, the Preferred DNS server IP address is 192.168.0.2. Installs the 2nd network card on the machine server and the client for the conne
Nginx the principle advantages of reverse proxy:
A reverse proxy can be simply understood to be a proxy server that receives a server request on the Internet, then forwards the request to the internal server, and then returns the result to the requesting client on the Internet, so the proxy server behaves as if it were only a single server. The reverse proxy server, also known as Web Server acceleration, provides acceleration for the Web server. He acts as a proxy server, not for browser users,
ASA/PIX: Load balancing between two ISP-options
VERSION 7
Is it possible to load balance between two ISP links?
Does the ASA support PBR (Policy Based Routing )?
Does the ASA support secondary IP address on interfaces?
What other options do we have?
SLA RouteTracking
PBR on the router outside the firewall
Allowing outbound via ISP1 and inbound via ISP2
Allowing i
server is ready, and can be seamlessly handed over to another instance/server. data may be lost. If there are high requirements for data reliability in the future, it will work with dump and master slave.
Server Load balancer. if you only consider high availability, you can actually use keepalived. When a redis-server/server crashes, the VIP will be transferred to another server, but the backup server will be idle, our company is small and cannot be
Description
Operating system: CentOS 5.X 64-bit
Web server: 192.168.21.127, 192.168.21.128
Sites: Bbs.111cn.net and Sns.111cn.net deployed on two Web servers
To achieve the purpose:
Add two servers (main main mode) to achieve Web server load balancing through haproxy+keepalived
Architecture Planning:
Haproxy server: 192.168.21.129, 192.168.
reboot:#vim/etc/fstabAdd one line: 192.168.1.102:/nfs/var/www/html/wp NFS Defualts,_netdev 0 0 Save exit: WqInstalling httpd and PHP extensions#yum install-y httpd php php-mysqlStart the httpd service#chkconfig httpd on#service httpd startHere, the experimental command section ends.Accessing http://192.168.1.100/wp from the client browser for a simple WordPress configuration is not detailed here.Then create a blog post on http:192.168.1.100/wp and upload an attachment:650) this.width=650; "src=
as followsFrom the above can be seen, keepalived monitoring module detected 192.168.9.204 This host failure, the WEB2 from the cluster system removed. At this time access http://192.168.9.200 can only see WEB1.)Restart the service for the WEB2 node with the following log information:Keepalived Monitoring module detects 192.168.9.204 This host is back to normal, and then add this node to the cluster system, again access to the WEB2 page can be accessed.===========================================
Configure load balancing based on MOD_JKMOD_JK Articles1, in order to avoid users directly access to the back-end Tomcat instance, affect the effect of load balancing, it is recommended to disable the http/1.1 connector on each instance of Tomcat 7.2. Add the Jvmroute parameter to the engine for each Tomcat 7 instance
, the session problem, such as when I log in Server1, the next dynamic server group after polling may be assigned to SERVER2, will cause to log back in. The workaround is to configure the polling rule to hash according to the IP requested by the user, and then assign the corresponding server. The specific configuration is as follows:Upstream dynamic{Ip_hash; server 127.0.0.1:8080; server 192.168.0.203:8080;}This enables a user to have a single server node. This will not have the problem of dupli
Label:Simply draw a diagram: first, the server planning 192.168.116.132 (Master)--write operations 192.168.116.129 (SLAVE1)--read Operation 192.168.116.131 (SLAVE2)--read Operation 192.168.116.130 (Haproxy)--Agent MySQL master-slave replication configuration skipped. Second, installation configuration Haproxy Installing Haproxy Tar zxf haproxy-1.4.21.tar.gz
cd haproxy-1.4.21 make
target=linux26 prefix=/app/haproxy make
Install Prefix=/app/haproxy
Mkdir/app/haproxy/{conf,log}
configuration H
Keepalived
Due to the use of mysqlcluster in the production environment, high availability load balancing is required, and keepalived+haproxy is provided here for implementation.
The main function of keepalived is to realize the fault isolation of the real machine and the failover between load balancer. Can be exchanged at the 3,4,5 layer. It is implemented thr
-ujason-p123456-h192.168.19.150------------------------------------------->CREATE DATABASE Bokeyuan; Back-End Database server Capture package: Stop the 19.66 keepalived service and let the VIP move to 19.79, then test: Service keepalived Stop //stop 19.66 of keepalived servicesmysql-ujason-p123456-h192.168.19.150------------------------------------------->SHOW DATABASES; Back-End Database server Capture package: 6. In the browser open http://192.168.19.150:6677/haprox
number of connections for the client (for the client side) userhaproxygroup haproxydaemon # turn on stats unix socketstats socket/var/lib/haproxy/stats # response # main frontend which proxys to the backends # expose frontend main *: 80 # method 1 # bind *: 80 # method 2 # bind *: 8080 # can only be used for frontend and listen; # maxconn can also be defined here or after listen, defines the maximum number of concurrent connections for a single instance. If the
the user's request, according to the previous set of scheduling algorithm results to determine the request load to a real server, if the result of the scheduling algorithm at this time, the request load to real server 1, at this time director The Server modifies the target MAC address in the data frame to the MAC address of real Server1, and then sends the data frame out,
4, when Real Server1 receives a p
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.