Transferred from: https://www.cnblogs.com/xrq730/p/5154340.htmlWhat is load balancingLoad balancing, the English name is load Balance, refers to the multiple servers in a symmetric way to form a collection of servers, each server has an equivalent status, can be provided separately from external services without the assistance of other servers. With a
or other service requests, the client is usually through the domain name resolution to find the exact IP address of the server. Under this equalization algorithm, the load balancer device in different geographic locations receives the domain name resolution request from the same client and resolves the domain name to the IP address of the corresponding server (that is, the IP address of the server with the load
ObjectiveNothing recently, like to summarize and learn something! A few days ago to write a session sharing, then why do we need session sharing? Because our applications are distributed across multiple servers, in order to properly allocate users ' requests, we need to use load balancing technology (the request/data is "evenly distributed" across multiple operational units).How to achieve
, F5, etc., these products are expensive, but value for money, can provide very good performance and very flexible management capabilities. Yahoo China at the beginning of nearly 2000 servers using three or four alteon to be done.Web design software four-layer exchangeWhen you know the principle of hardware layer four switch, the software four layer exchange based on the OSI model comes into being, so the solution achieves the same principle, but the
"How the border routers implement Network Load Balancing," we need to understand several relevant knowledge points about NAT, border routers, and Network Load Balancing.
The primary purpose of network address translation (NAT) is to resolve IP address shortages, and to achieve TCP
Common open source software for load balancing: Nginx, LVS, keepalived Commercial hardware load devices: F5, Netscale 1. LB, LVs introduction lb cluster is a shorthand for load balance clusters, translated into Chinese is load bal
Concept of cluster and Server Load balancer
Load Balancing LVS cluster details
Architecture of large e-commerce websites-distributed and scalable database architecture
There are two types of Server Load balancer: Soft load LVS and hard
On an article to tell you the installation of Nginx, then this article for you to talk about Nginx+tomcat to achieve load balance.
First of all, why use Ngnix to do load balancing, in fact, the most famous for the load balance is F5, F5
first, the problems encountered
When we deployed a Web application with an IIS server, when many users have high concurrent access, the client response is slow and the customer experience is poor, and as IIS accepts the client request, it creates a thread that, when the thread reaches thousands of, consumes a larger amount of memory. Also, because these threads are switching, the CPU footprint is higher, so IIS performance is difficult to improve. So how to solve this problem.
Ii. How to solve
followsImplementation stepsA. First we modify the Nginx configuration fileevents { worker_connections 1024;}http { upstream 127.0.0.1 { server 127.0.0.1:91 weight=1; server 127.0.0.1:92 weight=1; } server { listen 81; server_name localhost; location / { proxy_pass http://127.0.0.1; } }}B. Start nginx at the command lineC. Open the browser, enter http://127.0.0.1:81, repeatedly press
), generally choose zabbix/cacti monitoring software.Selection of serversAll with stability as the premise and principle, in the case of price can be accepted by the company, you can choose a brand server like IBM and Dell, the quality is guaranteed.When server resources are tight, OpenStack virtualization (KVM) can be deployed, and virtual machines can act as test machines, beta machines, and internal deployment machines to take advantage of machine resources.(2)
WebLogic load Balancing can be achieved by means of software and hardware. Hardware can use F5 and other devices, software generally use Apache to achieve. Here's how to use Apache.
WebLogic load Balancing can be achieved by means of software and hardware. Hardware can use
1. Software IntroductionLVS is a shorthand for Linux virtual server, that is, a virtual servers cluster system, which can realize simple load balancing under the Linux platform.LVS Load Balancer has 4 load balancing methodsA.dr modeB.nat modeC.tunnel modeD.full NAT Mode8 Sch
Haproxy
The main function is load balancing, load balancing algorithm support a lot, support health check, support various sessions to maintain the way, support remote information acquisition and so on. The haproxy itself is a load-balanced software.
But haproxy on the sc
LB load Balancing clusters are divided into two categories: LVS (four floors) and Nginx or haproxy (seven layers). LVS is ip-based, and Nginx and Haproxy are based on applications.
The client accesses the Web site by accessing the Distributor's IP. The distributor forwards the request to the corresponding machine on the back-end, depending on the type of request. load
Haproxy achieves load balancing and dynamic/static Separation
After haprxy Server Load balancer and dynamic/static separation, haproxy is more professional in these two aspects than nginx, including session persistence, cookie guidance, and url monitoring backend, mysql Server Load balancer is not available in nginx, b
Python implements mysql read/write splitting and load balancing, and pythonmysql
Oracle Database has a supporting rac developed by its company to achieve load balancing. Currently, the maximum number of known nodes can reach 128, but the maintenance cost is undoubtedly very high, in addition, rac stability is not parti
;Then refresh it several times to see if the session is written in memcached:]# memcached-tool 127.0.0.1:11211 # item_size max_age Pages Count full? Evicted Evict_time OOM 1 96B 1009s 1 1 Yes 0 0 0Nginx reverse Proxy, PHP application may appear garbled, just add charset utf-8 in the Nginx configuration is OK.Six: To open the cache for Nginx reverse proxy front end, reduce the pressure on the back-end host:Proxy_cache_path/var/cache/nginx/proxy levels=2:1 keys_zone=pxcache:10m;Define Proxy_cache
The development of the Internet, the scale of the application of the website, the conventional vertical application architecture is unable to deal with, the distributed service architecture and the mobile computing architecture is imperative, Dubbo is a distributed service framework, which is born in this case. Now the core business is extracted, as an independent service, so that the front-end application can be more rapid and stable response.First: Introduction Dubbo backgroundBefore a large-s
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.