output exists, check the execution permission of the mysqlchk_status_3306.sh script.
After startup, there will be a lot of logs in/var/log/messages.
Oct 23 14:37:00 lova xinetd[11057]: START: mysqlchk_status3306 pid=11464 from=192.168.0.22Oct 23 14:37:00 lova xinetd[11057]: EXIT: mysqlchk_status3306 status=0 pid=11464 duration=0(sec)Oct 23 14:37:05 lova xinetd[11057]: START: mysqlchk_status3306 pid=11494 from=192.168.0.22Oct 23 14:37:05 lova xinetd[11057]: EXIT: mysqlchk_status3306 status=0 pid
)//Send againServer list:Status: state, including up (back-end machine activity) and down (back-end machine hangs) two statesLASTCHK: Continuous check of back-end server timeWght: (weight): WeightAct:server is active (server), number of active servers (backend)//Active link QuantityBck:server is backup (server), number of backup servers (backend)//backup: quantity of servers backed upDown: The number of down after the//back-end server is connectedDowntime:downtime:total downtime (in seconds)//To
: Concurrent processing capability3. Data Rate: data processing capabilityAccording to official testing statistics, the maximum number of requests processed by haproxy per unit time is 20000, and-concurrent connections can be maintained at the same time. The maximum data processing capability is 10 Gbps. Based on the above, haproxy is a superior load balancing and reverse proxy server.
Summarize the main ad
/sbin/nologin2. Configuration File 1) Detailed description of the configuration file
# There are no configuration files in the default installation directory. There are only three directories, "doc", "sbin", and "share". You can create directories and configuration files manually; # haproxy configuration file is mainly the following five parts: global configuration, ults default configuration, monitoring p
Install the haproxy and haproxy commands and the haproxy commands
Directory:1. Install haproxy2. haproxy command
1. Install haproxy
CentOS comes with haproxy, but the version may be old. You can find the latest stable version of
Authentication {
Auth_type Pass
Auth_pass 1111
}
virtual_ipaddress {
192.168.21.254
}
Notify_master the ARP record of the "/etc/keepalived/clean_arp.sh 192.168.21.254" #更新虚拟服务器 (VIP) address to the gateway
}
#########################################################
System Yun-wei Www.111cn.net warm reminder: qihang01 original content copyright, reproduced please indicate the source and the origina
applications based on four-tier and seven-tier technologies.3)LVS works on the fourth level of the ISO model, so its condition monitoring function is single, and Haproxy is powerful in condition monitoring, it can support various state detection methods such as port, URL, script and so on.4)Although the Haproxy is pow
balance load are exclusively WEB servers. Simply put, they can provide static (Html,jpg,gif ...). or dynamic (php,cgi ...) File transfer and processing. And Haproxy is only, and is specialized in a balanced load of the application agent. It itself does not provide HTTP services.
But its configuration is simple, has the very good server health Check function also has the special system condition monitoring
used for mail servers, internal protocol communication servers, etc.), and layer-7 (HTTP ). In layer-4 mode, HAProxy only forwards two-way traffic between the client and the server. In layer-7 mode, HAProxy analyzes the protocol and controls the protocol by allowing, rejecting, exchanging, adding, modifying, or deleting specified content in a request or response, this operation is based on specific rules.
load balance based on Linux operating system kernel, And Haproxy is based on the third application to achieve the soft load balance.
2 LVs is based on the four layer of IP load balancing technology, and Haproxy is based on the four-tier and seven-tier technology, can provide TCP and HTTP applications of the Integrated load balancing solution.
3) LVs work in the fourth layer of the ISO model, so its state
monitoring page, when its proxy backend server fails, Haproxy will automatically remove the server, and then automatically join the server after the recovery.
Haproxy official websiteThe version installed here is 1.7.10
Topology map:View the system version (Haproxy installation is required to enter different make para
First, HAProxyHardware-based load balancing devices: F5,BIG-IP, etc.Software-based load balancing products: Haproxy,lvs,nginx, etc.In the software load balancing product, it is divided into system-based soft load implementation and soft load implementation based on third-party software, and LVs is a kind of soft load based on system implementation. HA Proxy is a soft load balancer based on third-party application1.
, listen, frontend, and backend are proxy segments. frontend is used to match the domain name or URI of the client request. backend defines the backend server cluster. listen is the set of frontend and backend, sometimes only listen can be used to replace frontend and backend. The following shows an HTTP Proxy case for listening to port 80. The proxy server forwards data requests to a single backend server 127.0.0.1: 8000;
The syntax format and description of the
refresh time: 5 sStats uri/haproxy-stats # Set the monitoring page urlStats realm Frank \ Frank # Set the page prompt informationStats auth admin: admin # Set the user and password on the monitoring page: admin. You can set multiple user names.Stats auth Frank: Frank # Set the user and password on the monitoring page:
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.