The previous article on the introduction of load Balancer LVS has explained the principle of lvs-dr, this article mainly introduces its implementation process in MySQL application:Test environment: 4 virtual machines are CENTOS6 operating systems, using the system's own MySQL package installation test:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/4E/wKioL1YY3QbTEdf8AAFbNDovCbk650.jpg "title=" Qq20151010173656.png "alt=" Wkiol1yy3qbtedf
When writing software documents, you can use the dr. Explain tool to get twice the result with half the effort.Document tool dr. Explain features
Automatically capture and identify interface elements
Export CHM, PDF, HTML, and rtf formats
Ø keywords can be added to files in chm format to form an index list
Various interfaces and sub-elements such as Web winforms FLEX can be obtained.One-click capture In
Definition of Key Techniques for Chinese event extraction (Dr. Tan Hongye)
Ace2005 defines this task as: identifying specific types of events and determining and extracting relevant information. The main information includes the event type and subtype, and event meta-role. According to this definition, event extraction tasks can be divided into two core subtasks: (1) event detection and type recognition; (2) event theory meta-role extraction. In addit
Dr. Zhou's report is very interesting. It tells us a lot of "tricks" for natural language processing, one by one, and says, "This is enough, there is more land ", in addition, Dr. Zhou's northeast talk is particularly ridiculous, and the time passes without knowing it. I was impressed by my memory.
Zhou Ming proposed four levels of NLP
(1) Machine Translation (MT), an automatic Q A system. The main idea of
Dr. Lee Kai-Fu, vice president of Google worldwide and President of China, has been keen on the Education Industry in China. He wrote four consecutive emails for Chinese college students to share his experiences in learning and life, it is widely used for reading among college students. Today, Dr. Li Kaifu posted his own letter to Chinese parents through Sina technology, sharing his ideas and experiences in
to advertise 1 -- when the local machine has multiple IP addresses, try to advertise to the same network segment 2 -- be sure to use the IP address of the same network segment for notice
Arp_ignore type:0 -- default, regardless of the local IP address, it will use any interface to respond to 1 -- only the IP address of the NIC that responds directly to the request is the target address
Preliminary understanding of the above, you can set up the LVS-DR
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/54/wKiom1VGPKjSXxCUAAHTHrrfBdg283.jpg "title=" Dr (2). PNG "width=" "height=" 365 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:365px; "alt=" Wkiom1vgpkjsxxcuaahthrrfbdg283.jpg "/>1. When the client accesses a service in the cluster (for example, the Web), the source IP (defined as a) and the destination IP (defined as B), as shown, send the data message to the schedulerTh
Test the process of keepalived the VIP forward data to rip in DR modeTest environment Convention here: "Client" cip=10.0.200.22 NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;MACNBSP;=NBSP;8C:89:A5:96:4C:B2 (assuming 11:11:11:11:11:11) "Director" VIP=10.0.205.100DIP=10.0.200.21 NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;MACNBSP;=NBSP;8C:89:A5:96:51:CF (assuming 22:22:22:22:22:22) "RealServer" rip=10.0.205.2mac =08:00:27:3b:62:f5 (assuming 33:33:33:33:33:33) 1) "Client" ARP
echo 1 > /proc/sys/net/ipv4/ip_forwardipvsadm -A -t 192.168.244.132:80 -s rripvsadm -a -t 192.168.244.132:80 -r 192.168.27.131 -mipvsadm -a -t 192.168.244.132:80 -r 192.168.27.130 -m
Test page
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0109514J1-2.jpg "title =" 1.jpg"/>
Page round robin occurs; this indicates that the machine round robin provides services;
If Weighted Round Robin is used, for example, rs1 provides two times and rs2 provides one time to provide s
the turtle departs (located in the center of the form, glans to the right), we firstTurtle. left (a) rotates the turtle to a 45-degree turn (counterclockwise). At this point, the turtle remains in the center of the form, but the glans points to the top right. Next, let the turtle crawl in the direction of the changed glans, turtle. Forward, a line segment that points to the top right of the screen is drawn. PracticeTry to get the little turtle to draw a squareTry to draw a square with 3 overl
, and these child IP added to the LVS, and need to configure a separate routing strategy for LVS packet forwarding.
Two. LVs's Dr Mode:
Web side: 192.168.3.124 is routed to the back-end realserver by accessing the Nginx's reverse proxy 192.168.8.123:80.
LVS End Eth0:dip 192.168.3.123 eth0:0 VIP 192.168.8.123
Realserver1 End eth0:192.168.3.128 eth0:0 vip 192.168.8.128echo "hello,192.168.3.128" > 1.html
Realserver2 End eth0:192.168.3.129 eth0:0 vip 19
LVS/DR + Keepalived
Although the previous LVS has been configured successfully, it also achieves Load Balancing (see). However, during the test, we found that when a real server stops the nginx process, then ctor will forward the request, which causes some requests to be abnormal. Therefore, a mechanism is required to check the status of the real server, which is keepalived. In addition to checking the rs status, keepalived can also detect the status
DIP: the IP address RIP of the Scheduler: the IP address VIP of the real server in the background: The DR mode of the virtual IPLVS used for the service is more complex than the NAT mode, and it is not easy to implement, this mode is closer to hardware-based load balancing. Although the performance is inferior to that of hardware-based load balancing scheduling
DIP: the IP address of the scheduler.
RIP: Real backend server (reaLsErver) IP Address
VIP
The last time we were demonstrating the Lvs-nat model, when the director in Lvs-nat acted as a connection client and Realserver, all the request messages and reply messages would pass through the director, so when the backend realserver gradually increased , the performance of Lvs-nat will not be ideal, and the LVS-DR model solves this problem.650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/17/wKioL1bf2o3i35RLAAAtV_HVx2Q051.png "title="
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.