Build an LVS load balancing test environment
There are many ways to achieve Server Load balancer: local tyrants directly F5, the best performance, the most expensive
If you have no money, you can use Apache. Nginx works on the fourth layer of the network. Although its performance is normal, it is flexible. For example,
the above information to the virtual adapter (bonding.[Root @ rhas-13 network-scripts] # cat ifcfg-eth0DEVICE = eth0ONBOOT = yesBOOTPROTO = dhcp[Root @ rhas-13 network-scripts] # cat ifcfg-eth1DEVICE = eth0ONBOOT = yesBOOTPROTO = dhcp
3 # vi/etc/modules. confEdit the/etc/modules. conf file and add the following line to enable the system to load the bonding module at startup. The external virtual network interface device is bond0. Add the following t
cannot detect it and will not forward the request.
The common advantage of R-proxy and mod_jk is that only Apache can be deployed on the public network, saving public IP Address resources.
Apache can handle static web pages through settings, so Tomcat can handle dynamic requests such as JSP and servlet.
The common disadvantage is that if the front-end Apache proxy server stops running, all cluster services cannot be provided externally.
R-proxy and mod_jk can be used to select an optimal effect
Alibaba Cloud Iot framework ServerSuperIO tutorial-20. Network Communication Controller grouping to improve interactive load balancing capabilities. V3.6.6 released, Iot Controller20.1 Overview
ServerSuperIO originally had only one network controller in network communication mode. in self-control mode, concurrency mode, and Singleton mode, the returned data is processed asynchronously without any performanc
cluster.schedulingPolicy :
var cluster = require (' cluster ');
Set this cluster.schedulingpolicy = cluster before calling another cluster function
. Sched_none;
Cluster.fork ();
or adjust the scheduling strategy through environment variables NODE_CLUSTER_SCHED_POLICY :
$ export node_cluster_sched_policy= "None" # "RR" is Round-robin
$ NODE app.js
If you don't want to affect your shell environment, put it in one line of commands:
$ en
HA implementation in highly available clusters heartbeat of course there are others like keepliveHow the load-balanced cluster LB is implemented.(1). Hardware lb (more famous) F5; The big-IP series, Citri, the company's NetScaler series, the A10 Company's AX-series(2). Software lb Four layer: LVS (Linux virtualserver)Note: Chinese developed, seven-storey: nginx,haproxyHigh-availability
If you have been paying attention to nginx, you must know what the nginx software is for. If your website traffic is getting higher and higher, one server can no longer withstand traffic pressure, let's increase the number of servers for load. Website load can be achieved by buying hardware devices, such as F5, but the price ranges from hundreds of thousands to m
,{ " ,function(err,data,errdata { if(err) { logger.error (err.stack); } if (data.length) { logger.info (' \ n ' + data.tostring (' UTF-8 ')) ; } if (errdata.length) { logger.error (' \ n ' + errdata.tostring (' UTF-8 '); }});As a practical point of view, the effect is good.3 Smooth restartEach time a new version is released, the server must be restarted.Simple and brutal, kill the main process, all restart, there will be a period of ti
frequent exchanges, and the loss of response can only restart the server.L Low Costbuy F5 big-IP netscaler hardware load balancer switch Hundreds of thousands ofNginx based on BSD Open source protocol free, commercially availablel support rewrite rewrite rulesability to distribute HTTP requests to different back-end server groups based on domain names and URL differencesl built-in health check functionif a
LVS (DR) + ldirectord for Load BalancingWaynewu 2009-10-28MSN: waynewush@yahoo.com.cn Email: waynewush@gmail.comI. Environment IntroductionTest the apache load balancing on two machines. A total of three machines are used.Dispatcher: 192.168.1.238Vip1: 192.168.1.230Realip: 192.168.1.235Readip: 192.168.1.236System: RHEL 5.3Ii. installation and configuration proces
Haproxy provides high availability, load balancing, and proxies based on TCP and HTTP applications, supporting virtual hosting, which is a free, fast, and reliable solution. Haproxy is especially useful for Web sites that are heavily loaded, and often require session-hold or seven-tier processing. The haproxy runs on the current hardware and can support tens of thousands of concurrent connections. and its o
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.