A high-availability application architecture and construction method

An application and high-availability technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve the problems that the system cannot provide user access, affect the normal use of users, and reduce user experience, so as to ensure high availability and high The effect of disaster recovery, loss reduction, and coupling reduction

Active Publication Date: 2021-02-12
武汉众智数字技术有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Most of the existing application architectures are stand-alone environments. After the application is down, the entire system will not be available for users to access, seriously affecting the normal use of users, resulting in a decline in user experience
[0003] Some existing architectures use nginx for load balancing, providing dual-machine hot backup of applications. When one application goes down, it can continue to access the other, which can ensure the high availability of the application to a certain extent. However, if If the nginx that provides load balancing goes down, the entire system remains unavailable
[0004] Moreover, simply using nginx for load balancing also has problems in storing user session information. Even if spring-session is used to ensure session sharing, it is still necessary to write more code and introduce specific packages in the application, which requires application and high-level Available architectures are coupled

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A high-availability application architecture and construction method
  • A high-availability application architecture and construction method
  • A high-availability application architecture and construction method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] figure 1 It shows the high-availability application architecture provided by the embodiment of the present invention, specifically including: the application program and at least two servers in the same network segment;

[0037] The application is deployed on the tomcat of at least two servers, and the session shared file package of the application is configured in the lib directory of tomcat;

[0038] Two servers jointly build a redis cluster environment, and the session sharing between the two applications is realized through the redis cluster; each server is installed with nginx and active / standby keepalived, each nginx configures the load balancing of the application, and each keepalived provides A virtual IP on the same network segment.

[0039] The basic principle of this solution is: use keepalived to bind the virtual IP feature, when accessing the virtual IP, it will directly access the server bound to the virtual IP, so that you can access the nginx applicatio...

Embodiment 2

[0046] The high-availability application architecture provided by this solution needs to be deployed on at least two servers on the same network segment, and nginx and keepalived must be deployed and installed on the same server, and two keepaliveds provide a virtual IP on the same network segment externally. The two nginx are respectively configured to load balance the two applications, and finally the session sharing between the two applications is realized through the redis cluster.

[0047] Combine below figure 2 and image 3 , give the high-availability architecture of the application cluster provided by this solution, including the application program and at least two servers;

[0048] The application is deployed on the tomcat of at least two servers, and the application configures the session sharing of the application;

[0049] At least two servers are in the same network segment, and the redis cluster environment, application server, nginx and active and standby keep...

Embodiment 3

[0060] Combine below Figure 4 , giving the method flow for building a high-availability application architecture in this scheme:

[0061] Step 301: Deploy the application program on the tomcat of the two servers respectively, and the two servers are in the same network segment;

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a high-availability application program architecture and construction method, including the application program and at least two servers in the same network segment; the application programs are respectively deployed on the tomcat of the at least two servers, and the lib directory of the tomcat is configured with The session shared file package of the application program; two servers jointly build a redis cluster environment, and realize the session sharing between the two application programs through the redis cluster; each server is installed with nginx and active and standby keepalived respectively, and each nginx configures the application For program load balancing, each keepalived provides a virtual IP on the same network segment. The solution can ensure the high availability and high disaster recovery of the application, increase the stability of the application, improve the user experience, reduce the loss caused by the application downtime, and solve the problem of session sharing among multiple applications. , to reduce the coupling between the application and the high-availability architecture.

Description

technical field [0001] The invention relates to the field of software technology, in particular to a high-availability application program architecture and a method for constructing a high-availability application program architecture. Background technique [0002] Most of the existing application architectures are stand-alone environments. After the application goes down, the entire system will not be available for users to access, seriously affecting the normal use of users and resulting in a decline in user experience. [0003] Some existing architectures use nginx for load balancing, providing dual-machine hot backup of applications. When one application goes down, it can continue to access the other, which can ensure the high availability of the application to a certain extent. However, if If nginx, which provides load balancing, goes down, the entire system remains unavailable. [0004] Moreover, simply using nginx for load balancing also has problems in storing user ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L12/24
CPCH04L41/0668H04L67/30H04L67/34H04L67/1001
Inventor 杨书张雪琼廖乔治
Owner 武汉众智数字技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products