High-availability application program architecture and construction method

An application program and high-availability technology, applied in the direction of digital transmission system, electrical components, transmission system, etc., can solve the problems that the system cannot provide user access, affect the normal use of users, and reduce the user experience, so as to ensure high availability and high capacity Disaster, reduce loss, reduce the effect of coupling degree

Active Publication Date: 2018-06-22
武汉众智数字技术有限公司
View PDF3 Cites 11 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 availabilit

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
  • High-availability application program architecture and construction method
  • High-availability application program architecture and construction method
  • High-availability application program 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 with 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 kee...

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 invention provides a high-availability application program architecture and a construction method. Application programs and at least two servers located in a same network segment are included. Theapplication programs are deployed to the tomcat of the at least two servers. The session shared file package of the application program is configured under the lib catalogue of the tomcat. The two servers co-construct a redis cluster environment. Through a redis cluster, session sharing between the two application programs is realized. Each server is provided with nginx and main/standby keepalived. Each nginx configures the load balancing of the application programs. Each keepalived provides the virtual IP of the same network segment to the outside world. In the scheme, the high availabilityand the high disaster recovery of the application programs can be guaranteed, the stability of the application programs is increased, the experience degree of a user is improved, losses caused by application program downtime are reduced, a session sharing problem among the plurality of applications is solved, and a coupling degree between the application programs and a high availability architecture is reduced.

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
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