[go: up one dir, main page]

CN104423944B - A kind of software application system - Google Patents

A kind of software application system Download PDF

Info

Publication number
CN104423944B
CN104423944B CN201310383595.9A CN201310383595A CN104423944B CN 104423944 B CN104423944 B CN 104423944B CN 201310383595 A CN201310383595 A CN 201310383595A CN 104423944 B CN104423944 B CN 104423944B
Authority
CN
China
Prior art keywords
app
software application
machines
service
web
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310383595.9A
Other languages
Chinese (zh)
Other versions
CN104423944A (en
Inventor
张久安
宋汉石
佟志臣
黄高玮
吕贤杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201310383595.9A priority Critical patent/CN104423944B/en
Publication of CN104423944A publication Critical patent/CN104423944A/en
Application granted granted Critical
Publication of CN104423944B publication Critical patent/CN104423944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of software application systems.The software application system includes:Using entrance, the front end of the software application system is arranged in;It WEB layers, is connected with the application gate dielectric and possesses more WEB machines, wherein, dispose identical local virtual server respectively to every WEB machine;And APP layers, it is communicated to connect with described WEB layers and possesses more APP machines, wherein, dispose identical multiple services respectively to every APP machine.Using the present invention, can realize the load balancing of server-side can ensure the transparency to request end simultaneously.

Description

A kind of software application system
Technical field
The present invention relates to a kind of easy-to-use system of software, more particularly to a kind of software application system with enhanced scalability System.
Background technology
In the software application system design of multi-request end, more server-sides, system load balancing and the system expandability are Important performance indicator.Good load balancing can give full play to the potentiality of server-side, improve the processing capacity of system, increase Adding system number of concurrent.Scalability has reacted system when increasing or decreasing server-side number, reduces the influence to system.
Following three kinds of schemes are used in the prior art:
(1)In a manner that hardware device carries out load balancing
This kind of mode carries out load balancing firstly the need of hardware is increased, by hardware to multiserver, and a) cost can increase;
B) when needing to increase or decrease server-side number, it is necessary to change hardware device parameter or even restart hardware device, It is inconvenient to use;
C) hardware load equalizing equipment is usually single point, so as to as system bottleneck;
D) hardware load equalizing equipment is usually located at the front end of application, when needing mutually to access between server-side, clothes Communication between business end just needs to communicate by the hardware load equalizing equipment of front end, and this mode adds system Intranet The complexity of network connection.
(2)Pass through soft load balancing mode
This kind of mode is one load balancing node of increase before multiserver, request end and service end communication, is first passed through Load balancing node, this kind of mode overcome the cost problem of hardware device, but still there are problems that system single-point;Meanwhile When needing interactive between server-side, it is still desirable to be carried out by load balancing node, can equally increase the complexity of network connection.
(3)Using the load balancing between processing itself and more server-sides
A) this kind of mode can increase the implementation complexity of request end, increase the realization difficulty of request end;
B) simultaneously, when the number of server-side needs to increase, reduce or change, by the information of server-side upgrade in time to Request end, the relevant information of server-side are opaque to request end;
C) can only be used using the load balancing of itself processing in application itself, versatility is inadequate.
The content of the invention
In view of the above problems, the present invention is intended to provide a kind of load equilibrium and the good software application of the system expandability System.
The present invention proposes a kind of system design scheme for software application system, and the program has enhanced scalability, is applicable in In the application with multi-request end, more server-sides.This software application system of the invention can realize the load balancing of server-side, It can ensure the transparency to request end simultaneously.
The software application system of the present invention, which is characterized in that including:
Using entrance, the front end of the software application system is arranged in;
It WEB layers, is connected with the application gate dielectric and possesses more WEB machines, wherein, to every WEB machine point Identical local virtual server is not disposed;And
It APP layers, is communicated to connect with described WEB layers and possesses more APP machines, wherein, to every APP machine difference portion Affix one's name to identical multiple services.
Preferably, the multiple set of service is abstracted into each described local virtual server.
Preferably, the local virtual server with it is APP layers described in all services can communicate.
Preferably, in the application entrance deployment WEB server.
Preferably, can communicate between each other to multiple services that every APP machine is disposed respectively.
Preferably, each of the multiple service is with unique service name.
Preferably, the local virtual server safeguards the service name of all services by the form of configuration file, In, the service name is including one or more in APP, IP address, port numbers, service list.
Preferably, SVR lists are provided at described WEB layers, every APP machine is configured in the SVR lists to WEB machines Device provides the correlation of service.
Preferably, the local virtual server inspects periodically the serviceability serviced accordingly of each APP machines.
Preferably, the local virtual server is called the respective service of each APP machines with polling mode, when certain One APP machines can equably be forwarded to other APP machines in the case of going wrong by calling.
Software application system according to the present invention need not increase hardware device, and APP layers of information on services are to WEB layers Transparent, WEB layers only communicate with local LVS, and the problem of load balancing between WEB application processing and rear end APP services is not required. Meanwhile every WEB machine will not become the performance bottleneck of system all there are one LVS, therefore LVS is not the single-point in system.And And request end and server-side, the communication between server-side and server-side are all local communications, can simplify the complexity of network connection Degree.Furthermore LVS can just dispose completion when preparing hardware environment, and each LVS is identical, is applied all to all It is general, there is no the costs of overlapping development.
Description of the drawings
Fig. 1 is the construction block diagram of the software application system of the present invention.
Specific embodiment
What is be described below is some in multiple embodiments of the invention, it is desirable to provide to the basic understanding of the present invention.And It is not intended to the crucial or conclusive element for confirming the present invention or limits scope of the claimed.
Fig. 1 is the construction block diagram of the software application system of the present invention.
In the following, it is illustrated with reference to Fig. 1 for the software application system of the present invention.
The software application system of the present invention includes:Be arranged in the front end of the software application system applies entrance 100; With being connected using gate dielectric and possessing the WEB layers 200 of more WEB machines;The APP layers 300 communicated to connect with WEB layers 100.
Wherein, usually WEB server is disposed in application entrance 100.
WEB layers 200 have more WEB machines(It is WEB1, WEB2, WEB3, WEB4 in Fig. 1, it is not right in the present invention The quantity of WEB machines is defined)Local virtual server i.e. LVS is disposed respectively with to every WEB machine.Wherein, to every WEB machines dispose local virtual server i.e. LVS to be identical respectively, that is to say, that as shown in Figure 1, LVS to WEB1 deployment, To WEB2 deployment LVS, to WEB3 deployment LVS, to WEB4 deployment LVS be all identical.
APP layers 300 possess more APP machines(It is in Fig. 1 APP1, APP2, APP3, APP4, APP5, in the present invention The quantity of APP machines is not defined), wherein, dispose identical multiple services respectively to every APP machine.That is, as schemed Shown in 1, for APP1 deployment services SVR1~SVR3, for APP2 deployment services SVR1~SVR3, for APP3 deployment services SVR1~SVR3, for APP4 deployment services SVR1~SVR3, for APP5 deployment services SVR1~SVR3.
Every WEB machine in WEB layers 200 needs to access the service that 300 machine of rear end APP layers is provided, and every APP machines(APP1~APP5)On all deploy identical service, such as SVR1, SVR2, SVR3, there are one global for each service Unique title, such as SVR1.APP layers 300 run when, between service may need be in communication with each other, as SVR1 operationally, it is necessary to Access SVR2 and SVR3.
In the present invention, it is a local virtual server by all service abstractions(Hereinafter also referred to as LVS), it is all Service can be obtained from LVS, LVS safeguards the information of all services by the form of configuration file, including APP, IP The information such as location, port numbers, service list.LVS is also responsible for the communication of processing and the 300 all services of rear end APP layers.
Moreover, deploying identical LVS to every, WEB machines, i.e. LVS has identical configuration information, the configuration information The service name of all APP machines in backstage is contained, if newly-increased WEB machines, original sample deployment LVS to newly-increased machine, If newly-increased APP machines, increase the LVS of every WEB machine newly, can simply and effectively realize front and back i.e. WEB Machine, APP machines it is extending transversely.
In the present invention, when increasing or reducing service, it is only necessary to change the configuration file of LVS, LVS can be regularly The relevant information of service is loaded, the function is transparent to WEB layers.Specifically, when increasing the service on APP machines or APP machines, The relevant configuration information of update configuration center is needed, APP machines is such as with the addition of or service is added on APP machines so that LVS loads update relevant configuration automatically.Have the configuration file controlled oneself on each LVS, but be entirely it is the same, therefore Can the configuration file of batch modification LVS add corresponding modification information, such as increase or delete APP machines or related service.
200 layers of WEB layers communicate according to service name and LVS, and the WEB machines as request end only need will be with local LVS communicates, as long as handling the information such as local network communication, number, IP address, the port numbers of 300 real service of APP layers It is transparent to WEB request ends.
When needing interactive between the service of every APP machine in APP layers, the service only and on same APP machine is handed over Mutually, every APP machine as server-side also only needs to be responsible for processing local network communication, if the SVR1 on APP1 is, it is necessary to visit Ask SVR2 and SVR3, then the SVR1 on APP1 only needs to access the SVR2 and SVR3 on APP1.Therefore, it is possible to realize request Communication between end and server-side is all local communication, simplifies the complexity of network connection.
Active all services keep connection in LVS and APP layers 300, the problem of load balancing being responsible between the more services of processing. Specifically, LVS is called the service in APP layers 300 with polling mode, but when some service of an APP machine is obstructed When, meeting automatic shield related service calls, in autobalance to other machines.Individual information service such as APP1 machines, which has gone out, asks Topic, then can skip APP1 for the calling of Individual information service, uniformly be forwarded to APP2 ~ APP5 automatically.If APP1 occurs Machine event of delaying, then it is all to each WEB machines of APP1 all requests to be skipped APP1 automatically, it is automatically forwarded to APP2 ~ APP5, thus, it is possible to realize high availability.
LVS can regularly check whether increase or decrease service and it is whether correct with the network connection of all services, when When having request arrival, according to above-mentioned load balancing, the request of request end is sent to a certain server-side and is handled, server-side After being disposed, LVS is received and is forwarded the handling result of server-side to request end.
Wherein, LVS inspects periodically the increase and decrease of service, the progress as so following:When an APP machine or some service can not Used time, LVS can automatically fall its mask, i.e., corresponding calling service is balanced on other machines;And it ought service accordingly extensive In the case of multiple, corresponding new request can be relayed to the service module of this APP machine by foreground WEB machines again, this function Realize to be exactly that the corresponding service serviceability of APP machines is inspected periodically by LVS to realize.Such as verification in 5 seconds once, more New machine(WEB machines)LVS memory configurations information.
On the other hand, LVS checks whether network connection is correct by following manner:By bottom-layer network interface API, pass through What correlation called the error code returned to judge, such as network interruption, network is unreachable to wait error codes.Another is exactly to pass through net Network time-out, if time-out is excessive, also illustrates that the machine service is unavailable, first covers, to treat that late detection is recovered.
Software application system according to the present invention can obtain following advantageous effects:
(1)Hardware device need not be increased;
(2)APP layers of information on services are transparent to WEB layers, and WEB layers only communicates with local LVS, and WEB application processing is not required Problem of load balancing between rear end APP services;
(3)Every WEB machine will not become the performance of system all there are one LVS, therefore LVS is not the single-point in system Bottleneck;
(4)Request end and server-side, the communication between server-side and server-side is all local communication, simplifies network connection Complexity;
(5)LVS can just dispose completion when preparing hardware environment, and each LVS is identical, to all applications All it is general, there is no the costs of overlapping development;
(6)When increasing or reducing service, it is only necessary to change the configuration file of LVS, LVS can regularly load service Relevant information, the function is transparent to WEB layers.
Example above primarily illustrates the construction block diagram of the software application system of the present invention.Although only to this some of hair Bright specific embodiment is described, but those of ordinary skill in the art it is to be appreciated that the present invention can without departing from Implemented in its spirit and scope in the form of many other.Therefore, the example shown is considered as schematical with embodiment And not restrictive, in the case where not departing from the spirit and scope of the present invention as defined in appended claims, the present invention Various modification and replacement may be covered.

Claims (8)

1. a kind of software application system, which is characterized in that including:
Using entrance, the front end of the software application system is arranged in;
It WEB layers, is connected with the application gate dielectric and possesses more WEB machines, wherein, to every WEB machine difference portion Affix one's name to identical local virtual server;And
It APP layers, is communicated to connect with described WEB layers and possesses more APP machines, wherein, phase is disposed respectively to every APP machine Same multiple services,
The multiple set of service is abstracted into each described local virtual server,
It can communicate between each other to multiple services that every APP machine is disposed respectively.
2. software application system as described in claim 1, which is characterized in that
The local virtual server with it is APP layers described in all services can communicate.
3. software application system as claimed in claim 2, which is characterized in that
In the application entrance deployment WEB server.
4. the software application system as described in claims 1 to 3 any one, which is characterized in that
Each of the multiple service is with unique service name.
5. software application system as claimed in claim 4, which is characterized in that
The local virtual server safeguards the service name of all services by the form of configuration file, wherein, the service Title is including one or more in APP, IP address, port numbers, service list.
6. software application system as claimed in claim 5, which is characterized in that
Described WEB layers is provided with SVR lists,
The correlation that every APP machine provides WEB machines service is configured in the SVR lists.
7. software application system as claimed in claim 4, which is characterized in that
The local virtual server inspects periodically the serviceability serviced accordingly of each APP machines.
8. software application system as claimed in claim 4, which is characterized in that
The local virtual server is called the respective service of each APP machines with polling mode, when a certain APP machines go out Other APP machines can be equably forwarded in the case of existing problem by calling.
CN201310383595.9A 2013-08-29 2013-08-29 A kind of software application system Active CN104423944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310383595.9A CN104423944B (en) 2013-08-29 2013-08-29 A kind of software application system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310383595.9A CN104423944B (en) 2013-08-29 2013-08-29 A kind of software application system

Publications (2)

Publication Number Publication Date
CN104423944A CN104423944A (en) 2015-03-18
CN104423944B true CN104423944B (en) 2018-05-18

Family

ID=52973037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310383595.9A Active CN104423944B (en) 2013-08-29 2013-08-29 A kind of software application system

Country Status (1)

Country Link
CN (1) CN104423944B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630505A (en) * 2015-12-28 2016-06-01 国云科技股份有限公司 A Dynamic Configuration Method of Multi-site Common Attributes
CN107197005B (en) * 2017-05-12 2020-12-29 广州视源电子科技股份有限公司 Data transmission method and device, client, server and data transmission system
CN109842651B (en) * 2017-11-27 2021-11-26 中国移动通信集团上海有限公司 Uninterrupted service load balancing method and system
CN108595247B (en) * 2018-03-29 2021-10-29 创新先进技术有限公司 Detection method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968283A (en) * 2006-05-12 2007-05-23 华为技术有限公司 Network management system and method
CN101458808A (en) * 2008-12-31 2009-06-17 中国建设银行股份有限公司 Bank management system, server cluster and correlation method
CN102917039A (en) * 2012-10-10 2013-02-06 大唐移动通信设备有限公司 Information processing method and system
CN103118142A (en) * 2013-03-14 2013-05-22 曙光信息产业(北京)有限公司 Load balancing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968283A (en) * 2006-05-12 2007-05-23 华为技术有限公司 Network management system and method
CN101458808A (en) * 2008-12-31 2009-06-17 中国建设银行股份有限公司 Bank management system, server cluster and correlation method
CN102917039A (en) * 2012-10-10 2013-02-06 大唐移动通信设备有限公司 Information processing method and system
CN103118142A (en) * 2013-03-14 2013-05-22 曙光信息产业(北京)有限公司 Load balancing method and system

Also Published As

Publication number Publication date
CN104423944A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
US11824962B2 (en) Methods and apparatus for sharing and arbitration of host stack information with user space communication stacks
US11003480B2 (en) Container deployment method, communication method between services, and related apparatus
CN108475251B (en) Virtual network, hot swapping, hot scaling and disaster recovery for containers
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
US9720682B2 (en) Integrated software and hardware system that enables automated provisioning and configuration of a blade based on its physical location
CN114008994B (en) Method and system for proxy server to receive request from client to network server and response from network server to client corresponding to the request
WO2020024413A1 (en) Method for controlling deployment of cloud computing platform, server, and storage medium
WO2005083984A1 (en) Protocol stack with modification facility
CN104423944B (en) A kind of software application system
US9935834B1 (en) Automated configuration of virtual port channels
CN114253707B (en) Micro-service request method based on API gateway
US10103995B1 (en) System and method for automated policy-based routing
US10742489B2 (en) Validating network configuration using shadow databases
CN115022408B (en) Data transmission method and device based on service grid, and electronic device
CN115086166B (en) Computing system, container network configuration method, and storage medium
CN112702362B (en) Method and device for enhancing TCP/IP protocol stack, electronic equipment and storage medium
CN118034588A (en) Data migration method, device, computer equipment and readable storage medium
CN115378993B (en) Method and system for supporting namespace-aware service registration and discovery
CN116743762A (en) Service registration cluster flow switching method, flow switching device and storage medium
US11455181B1 (en) Cross-network connector appliances
CN114489953B (en) Virtual machine migration method and device based on clusters, electronic equipment and storage medium
US12021739B2 (en) Distributed health monitoring and rerouting in a computer network
CN117527562A (en) Method, system, storage medium and equipment for accessing network by container group
CN119544824A (en) Network connection thermal migration method and corresponding device
CN119276928A (en) Service management method, device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant