Tags: mysqlDrbd+heartbeat + LVS + keepalived+ MySQLHardware: Master *: Install DRBD, Heartbeat,mysqlSlave*3: Installing MySQLKeep Alived Host * 2: Install LVS, keepalived (real server is slave)Application HostIP: Two master has an ha VIP1Two keepalived hosts have a LVS VIP2Write operation:Application Host (AS)->VIP1->DEV/DRBD (two master DRBD will synchronize in real time)MySQL copy operation:0) Start slave1) 3 Slave an I/O thread sends a request to VIP1, requesting master to send Binlog;2) Mast
Software load balancing is generally implemented in two ways: Software load implementation based on the operating system and software load implementation based on third-party applications. LVS is a kind of soft load based on the Linux operating system. haproxy is an open-
About haproxy
Provides high availability, Server Load balancer, and proxy Based on TCP and HTTP applications, and supports Virtual Hosts. It is a free, fast, and reliable solution. Haproxy is especially suitable for websites with extremely high loads, which usually require session persistence or layer-7 processing. Haproxy runs on the current hardware and supports tens of thousands of concurrent connection
create the same program as above.// *. VBImports system
Namespace cilexampleModule cilappSub main ()Dim C as new calcResult = C. Add (10, 84)Console. writeline ("10 + 84 = {0}", result)Console. Readline ()End subEnd Module
Class calcPublic Function add (byval X as integer, byval y as integer) as integerReturn x + yEnd FunctionEnd Class
End namespace
If you look at his or her pencil code, you will find very similar, with only a few differences.
. Method public hidebysig instance int3
automatically start the System Service)
Only for the Current User, on port 8080, when startedManually (Only for the Current User to install, use port 8080, manually start)
Select the first port. (check whether port 80 of the local machine is not in use)
After entering the information, click "next"
5. Go to the "Setup Type" page, including Typical (installed by default) and Custom (Custom installation). select Custom and click "Next"
6. go to the Custom Setup page, click Apacche HTTP Server 2.
Nginx + Tomcat + Https Server Load balancer configuration, nginxtomcat
As needed, we had to build an nginx + tomcat + https server. I searched for the web and found that there was always a mistake. Now I have sorted out some useful ones and I have forgotten them.
Environment: Centos6.5, JDK1.8, Tomcat8, Nginx1.10.1Preparation materials:1.jdk1.8installation package jdk-8u102-linux-x64.tar.gz
2.tomcat8install
/wKiom1dQUfvCzwTqAADs1KJbOBY487.png-wh_500x0-wm_3 -wmp_4-s_1262885480.png "title=" 4.png "alt=" Wkiom1dqufvczwtqaads1kjboby487.png-wh_50 "/>4.ifconfig get the NIC IP and copy the eth0 NIC configuration file as the eth1 NIC configurationCp/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth1The edit configuration file is configured as followsDevice=eth1Type=ethernetOnboot=yesNm_controlled=yesBootproto=staticipaddr=192.168.17.136 (IP here can be set with your eth0)5. R
The server Load balancer device allows you to easily expand a web server to a Web server cluster (provided that all Web servers must be configured completely the same, the device will send the request accordingAlgorithmTo a server in the web server cluster, which greatly increases the concurrent processing capability of the Web server.
In practical applications, multiple Web servers are usually deployed i
Redis/Distributed File Storage System/database storage session solves session inconsistency in the Server Load balancer cluster, redissession
Let's talk about the similarities and differences between sessions and cookies.
Session and cookie are not only stored on the server, but also stored on the client.
Although the session is stored on the server side, it also needs to match with the client. Imagine tha
Issue background:Client-----------LB----------RS (single) Access OKClient-----------LB----------RS (more than one) Access exceptionSpecific phenomena:401 Authentication failed for multiple RS accessCause: The session of the RS is stored locally and the two RS are not sharedSolution: Temporarily open the session to keep it good, long-term resolution needs to share session.Request Connection database authentication error after
scheme. TCP-splicing is the postponement of the connection between the client and the server in order to obtain sufficient information to make a routing demo. this project is close to Linux virtual server project since lot of discusions on this topics have been made online and offline LVS project. price: free, open source URL: http://www.linux-l7sw.org/
HaproxyIntroduction: layer-7 Software exchange and
forwarding stream and using TCP-splicing scheme. TCP-splicing is the postponement of the connection between the client and the server in order to obtain sufficient information to make a routing demo. this project is close to Linux virtual server project since lot of discusions on this topics have been made online and offline LVS project. price: free, open source URL: http://www.linux-l7sw.org/
HaproxyInt
MySQL has always been open-source and has produced many extension solutions, such as Amoeba, Atlas, Cobar, and MySQLProxy. Most of them are customized based on MySQL communication protocols, which makes us envy, however, Microsoft does not provide a similar solution, but now, with SqlServerProxy, it brings us the dawn that we can
MySQL has always been open-
proxy download Address: http://download.csdn.net/detail/u010870518/9585683
After downloading, put the extracted project files into the tomcat1/webapps/root/directory:
Modify the index.jsp and login.jsp files to identify each Tomcat container as specific
4. Modify the port of Tomcat2 to 8060 and deploy the project file
Edit the Conf/server.xml under Tomcat, modify the port number to 8060, and then, as in the 3 above, download the war content and place it under tomcat2/webapps/root/. Modify ind
/slave configuration
################
Master: 192.168.1.51
Slave: 192.168.1.50
1. master configuration
/Etc/my. cnf
Binlog-do-db = book is the database name
Ensure
Server-id = 1
Log-bin = mysql-bin
Authorize the rep user to perform the copy operation
Grant replication slave on book. * TO rep@192.168.1.50 identified by '2013 ';
Restart the master service
2. configure slave
Vi/etc/my. cnf
Set the following four lines
Server-id = 2
Master-host = 192.168.1.51
Master-user = rep
Masters-password = 123
: CodeGeekz
Is there an open-source php class library for database load balancing? -PHP advanced discussion
Php cannot do this. To achieve database load balancing, you must start with the database and not be lazy. What else do you need to use server load
HTML files required to use the jQuery Mobile framework. The file of this class library is independent, so you can choose to use it as needed.
14. PHP Image Cache
Image Cache is a lightweight PHP class that allows you to compress, move, and Cache images in your browser. This class provides some simple settings such as Directory and root path URL, and then calls the compression function for each image.
15. Imagine
Imagine is an object-oriented PHP class library for image operations. This class
used for telecom-grade product construction. With its scalable and modular system architecture, OpenSIPS provides a highly flexible and user-configurable routing engine, it can provide powerful and efficient routing, authentication, NAT, gateway protocol conversion, and other functions for services such as voice, video, IM, and presence. Because of its stability and efficiency, OpenSIPS has been applied by many telecom operators in their own network systems. Its main functions are as follows:
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.