Original English version, Chinese versionTony TangTranslation Arrangement
In the first part, I briefly described the various factors that need to be taken into account during the design of a large J2EE system with upgrading and high reliability.
This article discusses Tomcat's support for cluster, Server Load balancer, fault tolerance, session replication, and other capabilities.
In this section, we will se
:
Worker. loadbalancer. type = lb
Each type has different actions, which will be described below.
3. set Worker attributes:
After defining a worker, you also need to provide the attributes of each worker. the following methods are used to define these attributes:
Worker ..
=
3-1 ajp12 type Worker attribute :.
When ajp12 type worker is working, the ajpv12 protocol based on TCP/IP socket is forwarded to the Tomcat worker "out-of-process.
The attributes of ajp12 worker are as follows:
Ho
Load BalancingMainstream open source software: LVS, keepalived, Haproxy, Nginx and so on;OSI Layer: LVS (4), Nginx (7), Haproxy (4, 7);The Keepalived load balancing function is actually the LVSLVS Load balancer can distribute other ports than 80, such as MySQL, while Nginx only supports HTTP, https, mail;LVS Introducti
) The remote system (that is, server) uses a socket buffer size of 229376 bytes2) The Local system (that is, client) uses a socket size of 65507 bytes to send buffers3) The test takes 120 seconds to experience4) Throughput test result is 961 mbits/sec1) The remote system (that is, server) uses a socket buffer size of 87380 bytes2) The Local system (that is, client) uses a socket size of 16384 bytes to send buffers3) The test takes 120 seconds to experience4) Throughput test result is 941 mbits/s
log cannot be written to the problem that eventually causes the entire application to crash.3. Logging to logging server you can use a logging software, such as a syslog, to write all the logs to a central server. Although this method requires more configuration, he also provides the most robust solution.
PHP Load Balancer Instance
If you want to use load balanc
After multiple tomcat servers are used for load balancing, the tomcat port is not open to the public, so the tomcat server Load balancer can be accessed precisely.
Background:
Use Nginx and two Tomcat servers to achieve load balancing, disable tomcat ports (8080 and 8090) in the firewall, and open only port 80 to the
configuration.After changing the configuration, we need to restart the Nginx server, or reload (only let it reload the configuration), so that the changes take effect:Service Nginx ReloadBelow we create a test code that tests whether the access is normal "Note: Must be created in the machine where the PHP-FPM is located":cd/opt/wwwvi index. phpWrite the following code:PHP Echo ' Hello! I am server-b ';Then use the browser of other computers to access the ip:http://192.168.168.131 of the machine
Server Load balancer in ASP. NET sites: Based on the HTTP protocol, we may find that we need to solve two problems: first, to achieve Server Load balancer, we need a Server Load balancer. You can use DNS round robin to obtain diff
Windows Azure Platform Family of articles CatalogNote: If Azure is facing a customer that is only an enterprise customer, an enterprise customer accessing the Internet with a NAT device, because multiple clients use the same source IP address, can cause a single server to be under a lot of stress.This feature has been out for some time, the author here to do a little note. Readers familiar with the Azure platform know that the rules for Azure load
Today, every time you make a mobile phone call, read the news on the main portal website, and make an online bank transaction, your access information will go through the Server Load balancer device, it ensures massive network application access in the background. We can see that it is by our side.
Sudden increase in network traffic: the emergence of independent Load
With the rapid growth of the Internet, network servers, especially Web servers, need to provide a large number of concurrent access services as the number of visitors increases rapidly. For example, Sohu receives millions of access requests every day. Therefore, CPU and I/O processing capabilities will soon become a bottleneck for servers that provide large-load Web Services.Under the idea of Server Load
port 80.The nginx download address is as follows:Nginx download: http://nginx.net/Download the version used in this test: nginx/Windows-0.8.22
Download and decompress the package to C:, and change the directory name to nginx.
Practice steps:
First:
On the local server (10.60.44.126), create a website using the port 808, for example:
IIS website binding settings
Second:
Create a website in the Remote IIS
Generally, server load balancer distributes client requests to various real backend servers to achieve server load balancer. Another method is to use two servers, one as the Master and the other as the hot backup ),
Generally, server load
First, the problems encounteredWhen we deploy a Web application with an IIS server, when many users have high concurrent access, the client responds very slowly and the customer experience is poor, because when IIS accepts a client request, it creates a thread that consumes large memory when the thread reaches thousands of. At the same time, because these threads are switching, the CPU usage is also high, w
there is a machine down, it is only one of the db n one of the data can not access it, which we can accept, at least more than before the segmentation of the situation is much better, not the entire DB can not access. In general applications, such machine failure caused by the data is not accessible is acceptable, assuming our system is a high-concurrency e-commerce site? The economic losses caused by single-node machine outages are very serious. In other words, there is still a problem with ou
the value of the sqlconnectionstring at the same time, in the format:sqlconnectionstring= "Data source=localhost; Integrated Security=sspi; "Where data source refers to the IP address of the SQL Server server, if SQL Server and IIS are a machine, write 127.0.0.1. Integrated SECURITY=SSPI means that Windows Integrated authentication is used, so that access to the database is made as an ASP, and by this configuration, SQL can be obtained that is more t
is not a test. Of course, there is always a solution to the problem. We introduce the concept of clustering , which I call group, that is, each node of the library we introduce multiple machines, each machine holds the same data, in general, many of these machines load, when there is a downtime situation, The load balancer allocates the
group, which is the node of each library we introduce multiple machines, each of which holds the same data, and in general the load is distributed by multiple machines, and the load balancer distributes the load to the machine that is down when there is an outage. This solves the problem of fault tolerance.As shown, t
concept of clustering , which I call the group, which is the node of each library we introduce multiple machines, each of which holds the same data, and in general the load is distributed by multiple machines, and the load balancer distributes the load to the machine that is down when there is an outage. This solves t
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.