Nginx Load balancer and Tomcat thermal deployment easy to understand

Source: Internet
Author: User
Simply say a few noun nginx It is a reverse proxy, which is actually a proxy server responsible for forwarding, seemingly acting as a real server function, but in fact not, proxy server just acted as a forwarding role, And from the real server to obtain the returned data, this is Nginx's work content
Tomcat Open source Web server
Oracle Database
A brief introduction to the Nginx load balancer of the redis cache System 1 shows that the client initiates the request and, after the Nginx proxy, forwards the request on average to the server according to the weight
Introduction to Hot deployment in general we only have 1 tomcat, if you need a code package, you need to turn Tomcat off, if the user at this time to access the platform, the browser will prompt 502 status code, in order to avoid users can not access the platform, there is a Tomcat hot deployment, Prepare at least 2 tomcat, and close one of the tomcat when the package is updated, at which point the user's request comes in, because of load balancing, the request is automatically assigned to the running
Figure 1, 2 is a load-balanced legend (the graph all comes to the network)
Figure 1
Figure 2 There is a problem although there is a hot deployment, but if a user requests to come in, when updating the code package, just in response to the Tomcat is closed, the user in the UI will also prompt request 502, this is inevitable


From for notes (Wiz)

Nginx Load balancer and Tomcat thermal deployment easy to understand

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.