Nginx Load BalancingThe recent project to design to concurrency, so the design of the project framework to consider the use of Nginx build Tomcat cluster, and then use Redis to build a distributed session, the following will be a step-by-step sharing my groping process.Nginx Although small, but the function is really very powerful, support reverse proxy, load balancing
When the system administrator finds that the network performance is poor, the system administrator can allocate resources through network load balancing to optimize the resources.
The development of the Internet has brought infinite fun to people's lives and brought infinite convenience to people's work. However, the rapid development of the network also makes people highly dependent on the network.
Today,
In large-scale Internet applications, load balancing devices are an essential node, originating from high concurrency and large traffic impact pressures in Internet applications, where we typically deploy multiple stateless application servers and several stateful storage servers (databases, caches, and so on) on the server side.I. The role of load
backgroundIn the previous article: Storm's basic framework analysisIt basically explores Storm's:
Worker, executor, and other components of the relationship.
Threading models and messaging systems.
Task assignment process.
Topology the process of submission to execution.
However, the relationship between Nimbus, supervisor, parallelism, task allocation and load balancing is not cle
application servers, with port numbers 8080 and 8081, respectively.1. Nginx Load Distribution StrategyNginx's upstream currently supports the allocation algorithm:1), poll--1:1 turn processing requests (default)Each request is assigned to a different application server in chronological order, and if the application server is down and automatically rejected, the remaining polling continues.2), weight--you can you upBy configuring weights, you specify
PrefaceNginx proxy function and load balancing function is most commonly used, about nginx basic grammar common sense and configuration has been described in the previous article, this article on the point, first describe some of the configuration of the agent function, and then explain the load balancer details.configuration instructions for Nginx Proxy service1
Introduction to load Balancing Perhaps some readers are still unfamiliar with the term load balancing, so let's take a little bit of space to explain what is load balancing. In a large web site, online users can sometimes have
The specific configuration of Oracle load Balancing is described in detail in this paper. Through the client and server side of the configuration, the text of the code is more comprehensive, worthy of reference.
For professional data-processing Oracle arcs, load-balancing settings are even more important. So how do yo
With the increasing of traffic and the demanding of response speed, it is very important to carry out load balancing. The company's system was initially designed to take into account the planning of load Balancing, WWW static server configured Two, because the initial project time is tight, and the traffic is not high,
Preface
Taobao architect Li Zhihui Daniel's book "Large Web Site Technology architecture" and Xu Long's blog---"Large-scale Web site technology practice" Primary article: the use of lvs+keepalived to achieve load balance.
From the reference to this article, this article is intended to record their own learning process, at the same time for everyone to refer to, the wrong place to welcome everyone to pat the bricks, and also hope that we can write the
In order to compare the effects of hproxy and nginx load Balancing, respectively on the test machine (the following experiments are tested on a single machine, that is, the load machine and the back end of the machine are on a computer) do the two load balancing environment,
With F5, A10, deep conviction and other traditional debt-balanced products, NetScaler is generally done based on the application of load balancing, and for the load balance of the link is relatively less than the actual scenario, their own side of the current use of the company developed Web server to do load balancing
because the project encountered a lot of picture storage problems, although now we do not have a lot of pictures ( currently at 1T , the growth rate is expected to 1.3 times per year ) , thinking about how to effectively store lots of pictures, find some information, see, someone uses Nginx Set up a server, in the spirit of learning, oneself also personally to experience a bit Nginx in the window under the installation process, and with IIS to build a load
Firstly, the nginx is introduced as a reverse proxy to achieve load balancing.
The reverse proxy means to accept the connection request on the Internet with the reverse proxy server, then forward the request to the server on the internal network, and return the result from the server to the client requesting the connection on the Internet, when the reverse proxy server behaves as a server. Let the
to arrange the time also do not finish, so he stared at the side secretly watching the movie, Xiao Qiang suddenly feel behind a coolness, a look back xiaoming a face bad smile looked at him, "These several tasks to you, evening please you eat, otherwise ... Hehe hey ", Xiao Qiang although reluctant, but in Xiao Ming's request (coerce), can only obey. The next day, Xiao Ming successfully completed the task, to small strong bought a bag spicy bar.The same is true for
optimize.--------------------------------------------------------------------------------------------------------------- ---------|1) Load BalancingBoss gave Xiaoming a lot of tasks, Xiao Ming found how to arrange the time also do not finish, so he stared at the side secretly watching the movie, Xiao Qiang suddenly feel behind a coolness, a look back xiaoming a face bad smile looked at him, "These several tasks to you, evening please you eat, otherwi
.fail_timeout the time of the pause after max_fails failure. 5.backup all other non-backup machines are down or busy, requesting the backup machine. So the pressure on this machine is the lightest. Nginx supports multiple sets of load balancing at the same time, which is used for unused servers.Client_body_in_file_only set to on can be said that the client post data logging to the file used to do Debugclien
Nginx InstallationNginx is a lightweight Web server/reverse proxy server and e-mail (IMAP/POP3) proxy server, and is distributed under a bsd-like protocol. Developed by the Russian program designer Igor Sysoev, it is used by Russia's large portal and search engine Rambler (Russian: Рамблер). Its features are less memory, concurrency is strong, in fact, Nginx's concurrency ability indeed in the same type of Web server performance better, the Chinese mainland Use Nginx website users: Baidu, Sina,
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.