backend.1. Environment preparation:
Machine name
IP configuration
Service role
Remarks
Haproxy-server
172.17.2.7
Server Load balancer
Configure keepalivedACL control
Rs01
RIP: 192.168.30.107
Static Server
Xiaomi webpage
Rs02
RIP: 192.168.30.7
Dynamic Server
Xiaomi webpage
2. Define the
Local DNS;
8. The Local DNS returns the www.qq.com resolution record to the user.
Local DNS is generally provided by network operators (such as China Telecom and China Netcom.
The cache DNS is between the client (this is a relative concept) and the local DNS, and uses the cache function of the DNS server software and the close-up characteristics between the cache DNS and the client to accelerate domain name resolution.
You can also perform Domain Name Hijacking on the cache DNS as needed. For p
. properties"
JkMount/*. jsp controller
Remove comments from VM
Include conf/extra/httpd-vhosts.conf
Add server load balancer configuration at the end
SetHandler server-status
Order Deny, Allow
Deny from all
Allow from all
SetHandler balancer-manager
Order Deny, Allow
Deny from all
Allow from all
ProxyRequests Off
ProxyPass/test
The main implementation is a high-availability server Load balancer web server cluster, suitable for lamp architecture. The front end uses two servers as The lvs + keepalived load scheduler. N servers can be used as the apache + php application server in the middle, and the next two servers are used as the mysql high-availability dual-machine, finally, a virtual
Server Load balancer and cluster configuration for Apache + Tomcat
Experiment topology:
I. Matching Environment
(1 ). Tomcat installation and configuration
Tomcat_a's IP Address: 192.168.55.229
Tomcat_ B IP: 192.168.55.231
Tomcat installation of JDK and tomcat package (such as apache-tomcat-6.0.30.zip and jdk-6u5-linu
balancing. Www.nginxtest.com is a test site configured by myself.
In Area B, the nginx listening port is configured here. port 80 is configured by default and the IP address of the Nginx server is used here.
Region C,Domain name to be proxy
After the configuration is complete, start nginx again. here there are two NGINX
Enter the address in the browser: www.nginxtest.com
If you refresh multiple times, the foll
MySQL dual-host master architecture, coupled with Load Balancing Devices, can achieve high performance and high availability of mysql database load balancing, Server Load balancer equipment can be based on algorithms to database
MySQL dual-host master architecture, coupled with Loa
satisfy the feasibility condition.
Let's verify it now.
Top:
Note:By default, the calculation of the MongoDB metric is (10 to the power of 7/bandwidth (kpbs) + delay/10) * 256. The default value is 2 k vaule for bandwidth and latency. Considering metric calculation, latency is used as the unique metric parameter.
Purpose:
Non-equivalent Server Load balancer
Experiment process:
On R1, follow the route ent
first Prepare 3 machines (VM VMS, of course), one to do load balancer server, 2 Web services, respectively installed Nginx, how to install nginx here is not in the narrative. In addition, in order to test the smooth, please turn off the firewall of 3 machines first. IP Planning:equalization Machine: 10.1.1.10 | web-1:10.1.1.11 | web-2:10.1.1.12 The following co
Linux Cluster Server Load balancer lab notes I,Network Topology: II,Virtual Machine Configuration Create three virtual machines on one physical computer.WindowsOperating System, Configuration192.168.1.0The IP address of the CIDR block.Centos5.4. One Server Load balancer
configuration is complete, and tomcat configuration is carried out below.
3. tomcat configuration file
First, Tomcat only configures a file, namely server. xml. In addition, the ports do not need to be changed, because they are implemented in a real distributed environment. You only need to modify the engine node.
Add a jvmroute attribute to the previous engine node. The value is worker1 or worker2 we just mentioned. The specific configuration is as follows:
The above configuration is the wor
Load Balancing is built on the existing network structure, it provides a cheap, effective, and transparent method to expand the bandwidth of network devices and servers, increase throughput, enhance network data processing capabilities, and improve network flexibility and availability.
I have recently learned many articles about Server Load balancer technology on
Zhang Hua posted: 2015-11-13Copyright notice: Can be reproduced arbitrarily, please be sure to use hyperlinks in the form of the original source of the article and the author's information and this copyright notice(http://blog.csdn.net/quqi99)
Four-tier load balancing is to determine which traffic needs to be load balanced by publishing a three-tier IP a
information:[Root @ localhost ipvsadm-1.24] # ipvsadm-vIpvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.0)
The compilation and installation are successful!
In addition, note the keepalived (VRRP) virtual routing redundancy protocol in Linux. keepalived adopts the VRRP mechanism, which will involve the router (switch) connected to the Server Load balancer server)VRRP virtualizes two or more router
nginx+tomcat+memcached Load Balancer Configuration complete process:Objective:Nginx realizes The load balance of Tomcat and uses memcached to realize session sharing.
Configure TOMCAT,JDK First
Put jdk,Tomcat into the site /opt directoryInstalling the JDKCd/optchmod 755 jdk-6u45-linux-x64-rpm.bin./jdk-6u45-linux-x64-rpm.binjava-version//Inspection
HAProxy for Server Load balancer
HAProxy provides high availability, Server Load balancer, and TCP and HTTP application-based proxy. It supports Virtual Hosts and is a free, fast, and reliable solution. HAProxy is especially suitable for websites with extremely high loads, which usually require session persistence or l
shared: SSL: 1 m; # ssl_session_timeout 5 m; # ssl_ciphers HIGH :! ANULL :! MD5; # ssl_prefer_server_ciphers on; # location/{# root html; # index index.html index.htm ;#}#}}1.5.2 start and stop Nginx
(1) start
# sudo /usr/local/nginx-1.6.1/sbin/nginx
Ensure that Port 80 of the system is not occupied by other programs
Restart:
# sudo /usr/local/nginx-1.6.1/sbin/nginx -s reload
(2) disable:
ps -ef | grep nginx
Find the master process ID and kill it, for example:
# Kill-9 [process numbe
Implementing the NAT mode of LVSThe principle and characteristics of the detailed description of the LVS load balancing one: Lvs-nat, lvs-dr mode of the principle of detailed introduction1. Experimental environmentIP Address PlanningRequest IP address of Client Access service: VIP 12.0.0.1
Server
IP
system
Director
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.