CN108616597B - Distributed operation method for realizing service uninterrupted forever - Google Patents

Distributed operation method for realizing service uninterrupted forever Download PDF

Info

Publication number
CN108616597B
CN108616597B CN201810438046.XA CN201810438046A CN108616597B CN 108616597 B CN108616597 B CN 108616597B CN 201810438046 A CN201810438046 A CN 201810438046A CN 108616597 B CN108616597 B CN 108616597B
Authority
CN
China
Prior art keywords
service
server
layer code
code packet
pool node
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
CN201810438046.XA
Other languages
Chinese (zh)
Other versions
CN108616597A (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.)
Beijing Guoke Taxtong Technology Development Co.,Ltd.
Original Assignee
Sichuan Huachuang Shiji Technology 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 Sichuan Huachuang Shiji Technology Co ltd filed Critical Sichuan Huachuang Shiji Technology Co ltd
Priority to CN201810438046.XA priority Critical patent/CN108616597B/en
Publication of CN108616597A publication Critical patent/CN108616597A/en
Application granted granted Critical
Publication of CN108616597B publication Critical patent/CN108616597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the field of online software service, and discloses a distributed operation method for realizing uninterrupted service. The invention can provide a solution for highly stabilizing the usability of the service software program, namely, the service software program with the traditional MVC architecture is separated into an MC layer code packet (namely, a model layer code packet and a control layer code packet) and a V layer code packet (namely, a view layer code packet), and the MC layer code packet and the V layer code packet are installed in a distributed mode and called and run by adopting a reverse proxy technology, so that the stability of the system can be improved in a medium-large service software system, the concurrent processing capability and the transverse expansion capability are realized, and the practical application and popularization are facilitated. In addition, by introducing the DNS domain name resolution server, the problem of service interruption caused by crash or abnormity of a single reverse proxy server can be further avoided.

Description

Distributed operation method for realizing service uninterrupted forever
Technical Field
The invention belongs to the field of online software service, and particularly relates to a distributed operation method for realizing uninterrupted service.
Background
Currently, most of the known online service software programs are run on a single server, and the software programs are complete on the single server. However, a single point of failure of a server, either system hardware failure, system software failure, or application software single/joint failure, is unavoidable or circumvented, resulting in an interruption of the functionality and services provided by the currently running service software.
In order to prevent service interruption, in the conventional server software, the same software is generally installed on a plurality of servers to form a master-slave structure, but the problem is not fundamentally solved. There are still several problems as follows: (1) only the master server works and the slave server is idle when the system works normally; (2) if the main server is abnormal, the service is switched from the main server to the slave server, the switching time is needed, and the same is true when the main server is recovered to be normal and the service is switched back; (3) when the fault is switched, the connection established between the client and the main server is forcibly interrupted, all the developed services are completely suspended, and after the main server is recovered to be normal, the connection between the client and the standby server is also completely interrupted, and the connection with the main server needs to be established again; (4) the configuration of the master server is higher than that of the slave servers, and if the master server goes down in a traffic peak, the standby server cannot support the traffic; (5) if the traffic volume of a certain service is increased sharply, hardware configuration needs to be added to compensate for the increase in the traffic volume, but the accumulation of the hardware performance of the server is limited, and if the traffic volume increases exponentially, the configuration requirement of the server becomes infinite.
Disclosure of Invention
In order to solve the above problems in the prior art, the present invention aims to provide a distributed operation method for implementing a service never interrupted.
The technical scheme adopted by the invention is as follows:
a distributed operation method for realizing service uninterrupted forever comprises the following steps:
s101, installing view layer code packages of service software programs on a plurality of view servers, and installing model layer code packages and control layer code packages of the service software programs on a plurality of function pool node servers;
s102, registering the unique identifier of the service software program, the IP address of the function pool node server and the communication port in a registration center;
s103, when the client requests for service, the service request of the client is transferred to at least one view server through the scheduling of a reverse proxy server;
s104, after receiving the service request, the view server checks the unique identifier of the current available service software program in the registration center, then searches the IP address and the communication port of the corresponding function pool node server in the registration center according to the unique identifier of the selected available service software program, and finally calls the model layer code packet and the control layer code packet of the corresponding function pool node server corresponding to the selected available service software program according to the searched IP address and communication port to complete service data processing;
s105, consuming a service data processing result from the function pool node server through a view layer code packet of the view server corresponding to the selected available service software program to obtain a service output image;
and S106, feeding back the service output image to the client through the reverse proxy server.
Preferably, when the number of the reverse proxy servers is multiple, before the step S103, the client obtains the IP address and the communication port of each reverse proxy server through the DNS nameresolution server.
Further preferably, the DNS nameresolution server includes a master DNS nameresolution server and at least one slave DNS nameresolution server.
Preferably, in the step S102, the registered IP address of each function pool node server is "0.0.0.0".
And optimally, the client is a webpage service terminal, a user service terminal or a WeChat service terminal.
Preferably, the function pool node server comprises a provider for realizing service functions and services and/or a user for scheduling the use services.
Preferably, the registry is a network server with a UPS.
The invention has the beneficial effects that:
(1) the invention has created and provided a solution that can highly stabilize the usability of the service software program, namely the service software program with traditional MVC framework is separated into MC layer code packet (namely model layer code packet and control layer code packet) and V layer code packet (namely view layer code packet), and carry on distributed installation and use the reverse proxy technology to call and run to them, can improve the stability of the system in the medium-and-large-scale service software system, realize concurrent processing ability and horizontal expansion ability, facilitate the actual application and popularization;
(2) by introducing the DNS domain name resolution server, the problem of service interruption caused by crash or abnormity of a single reverse proxy server can be further avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flow chart of a distributed operation method for implementing service never interruption provided by the present invention.
Fig. 2 is a schematic structural diagram of a distributed system for implementing service never interruption provided by the present invention.
FIG. 3 is a schematic diagram of the distributed installation and invocation of service software programs provided by the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, B exists alone, and A and B exist at the same time, and the term "/and" is used herein to describe another association object relationship, which means that two relationships may exist, for example, A/and B, may mean: a alone, and both a and B alone, and further, the character "/" in this document generally means that the former and latter associated objects are in an "or" relationship.
Example one
As shown in fig. 1 to 3, the distributed operation method for implementing uninterrupted service provided by this embodiment includes the following steps.
S101, installing view layer code packages of service software programs on a plurality of view servers, and installing model layer code packages and control layer code packages of the service software programs on a plurality of function pool node servers.
In the step S101, the service software program is used for performing service data processing when called, and returning a service output image, which may be, but is not limited to, a service software program for medical informatization management. The view server and the function pool node server can be connected in a remote communication mode to achieve distributed deployment of service software programs. As shown in fig. 2 and 3, by installing the service software program in a distributed manner, one view can be provided by a plurality of function pool node servers at the same time, thereby avoiding the problem of service interruption caused by the crash or abnormality of a single function pool node server. In addition, the function pool node server includes a provider for implementing service functions and services and/or a user for scheduling service usage, and the provider and the user are respectively packaged with their communication ports.
And S102, registering the unique identifier of the service software program, the IP address of the function pool node server and the communication port in a registration center.
In step S102, the unique identifier is used to uniquely identify the corresponding service software program, which may be, but is not limited to, a service software program name or a digital code. The registry is used for registering and discovering the provider and the user corresponding to the service software program, and preferably adopts a network server with a UPS (Uninterruptible Power System) uninterrupted Power supply. In addition, the registration IP address of each function pool node server adopts 0.0.0.0, so that synchronous calling of a plurality of function pool node servers can be ensured during subsequent calling, and service interruption caused by breakdown or abnormity of a single function pool node server is avoided.
And S103, when the client requests for service, the service request of the client is transferred to at least one view server through the scheduling of the reverse proxy server.
In the step S103, the client is configured to initiate a service request, and acquire and display a returned service output image, which may be, but is not limited to, a web service terminal, a user service terminal, or a wechat service terminal. Considering that the view server may also have a fault, the present embodiment introduces multiple view servers to consume the service data processing results of multiple function pool node servers at the same time, and introduces a reverse proxy technology to solve the scheduling problem of multiple view servers, thereby further avoiding the problem of service interruption caused by a single view server being crashed or abnormal.
In step S103, the number of the reverse proxy servers may also be set to be multiple, and before step S103, the client may obtain the IP address and the communication port of each reverse proxy server through a Domain Name System (DNS) Domain Name resolution server, so that the client can be ensured to transfer the service request to the view server through the reverse proxy server, and the problem of service interruption caused by a crash or an abnormality of a single reverse proxy server is avoided. Preferably, in order to prevent the DNS nameresolution server from malfunctioning, the DNS nameresolution server includes a master DNS nameresolution server and at least one slave DNS nameresolution server. Since the DNS nameresolution server itself does not process traffic and has no requirement for configuration, it can be determined that the DNS nameresolution server is never disconnected.
S104, after receiving the service request, the view server checks the unique identifier of the current available service software program in the registration center, then searches the IP address and the communication port of the corresponding function pool node server in the registration center according to the unique identifier of the selected available service software program, and finally calls the model layer code packet and the control layer code packet of the corresponding function pool node server corresponding to the selected available service software program according to the searched IP address and communication port to complete service data processing.
And S105, consuming the service data processing result from the function pool node server through the view layer code packet of the view server corresponding to the selected available service software program to obtain a service output image.
And S106, feeding back the service output image to the client through the reverse proxy server.
Through the steps S101-S106, the service software program can be installed in a distributed mode and called and run by adopting a reverse proxy technology, and service data processing and service output image returning can be completed during calling, so that the normal calling purpose is realized, the stability of the system can be improved in a medium-large service software system, the concurrent processing capability and the transverse expansion capability are realized, and the practical application and popularization are facilitated.
In summary, the distributed operation method for realizing uninterrupted service provided by the embodiment has the following technical effects:
(1) the embodiment provides a solution capable of highly stabilizing the usability of a service software program, namely, the service software program with the traditional MVC architecture is separated into an MC layer code packet (namely, a model layer code packet and a control layer code packet) and a V layer code packet (namely, a view layer code packet), and distributed installation is performed on the MC layer code packet and the V layer code packet and calling operation is performed by adopting a reverse proxy technology, so that the stability of the system can be improved in a medium-large service software system, the concurrent processing capability and the transverse expansion capability are realized, and the practical application and popularization are facilitated;
(2) by introducing the DNS domain name resolution server, the problem of service interruption caused by crash or abnormity of a single reverse proxy server can be further avoided.
The present invention is not limited to the above-described alternative embodiments, and various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.

Claims (7)

1. A distributed operation method for realizing service uninterrupted forever is characterized by comprising the following steps:
s101, installing view layer code packages of service software programs on a plurality of view servers, and installing model layer code packages and control layer code packages of the service software programs on a plurality of function pool node servers;
s102, registering the unique identifier of the service software program, the IP address of the function pool node server and the communication port in a registration center;
s103, when the client requests for service, the service request of the client is transferred to at least one view server through the scheduling of a reverse proxy server;
s104, after receiving the service request, the view server checks the unique identifier of the current available service software program in the registration center, then searches the IP address and the communication port of the corresponding function pool node server in the registration center according to the unique identifier of the selected available service software program, and finally calls the model layer code packet and the control layer code packet of the corresponding function pool node server corresponding to the selected available service software program according to the searched IP address and communication port to complete service data processing;
s105, consuming a service data processing result from the function pool node server through a view layer code packet of the view server corresponding to the selected available service software program to obtain a service output image;
and S106, feeding back the service output image to the client through the reverse proxy server.
2. A method for achieving never-interrupted, distributed operation of a service as in claim 1, wherein: when the number of the reverse proxy servers is multiple, before the step S103, the client acquires the IP address and the communication port of each reverse proxy server through the DNS nameresolution server.
3. A method for achieving never-interrupted, distributed operation of a service as in claim 2, wherein: the DNS domain name resolution server comprises a master DNS domain name resolution server and at least one slave DNS domain name resolution server.
4. A method for achieving never-interrupted, distributed operation of a service as in claim 1, wherein: in the step S102, the registered IP address of each function pool node server is adopted
“0.0.0.0”。
5. A method for achieving never-interrupted, distributed operation of a service as in claim 1, wherein: the client is a webpage service terminal, a user service terminal or a WeChat service terminal.
6. A method for achieving never-interrupted, distributed operation of a service as in claim 1, wherein:
the function pool node server comprises a provider for realizing service functions and services;
or, the function pool node server comprises a provider for realizing service functions and services and a user for scheduling the service.
7. A method for achieving never-interrupted, distributed operation of a service as in claim 1, wherein: the registration center is a network server with a UPS uninterrupted power supply.
CN201810438046.XA 2018-05-09 2018-05-09 Distributed operation method for realizing service uninterrupted forever Active CN108616597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810438046.XA CN108616597B (en) 2018-05-09 2018-05-09 Distributed operation method for realizing service uninterrupted forever

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810438046.XA CN108616597B (en) 2018-05-09 2018-05-09 Distributed operation method for realizing service uninterrupted forever

Publications (2)

Publication Number Publication Date
CN108616597A CN108616597A (en) 2018-10-02
CN108616597B true CN108616597B (en) 2021-06-15

Family

ID=63662459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810438046.XA Active CN108616597B (en) 2018-05-09 2018-05-09 Distributed operation method for realizing service uninterrupted forever

Country Status (1)

Country Link
CN (1) CN108616597B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474710B (en) * 2018-10-30 2022-05-10 北京网众共创科技有限公司 Method and device for acquiring information

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192937A (en) * 2006-11-24 2008-06-04 华为技术有限公司 A hot deployable method and its system
KR20120106909A (en) * 2011-03-16 2012-09-27 엔에이치엔비즈니스플랫폼 주식회사 System and method for providing service uninterruptedly in java enterprise editions environment
CN103064690A (en) * 2012-12-16 2013-04-24 互动在线(北京)科技有限公司 Development framework based on Android operating system and execution method thereof
CN105117938A (en) * 2015-08-19 2015-12-02 江苏农牧人电子商务股份有限公司 E-commerce framework request data analysis method based on model view controller
CN105404474A (en) * 2015-12-07 2016-03-16 上海爱数信息技术股份有限公司 Data migration method of heterogeneous distributed memory system
CN106210160A (en) * 2016-06-17 2016-12-07 乐视控股(北京)有限公司 A kind of domain name method to set up and device
WO2017070599A1 (en) * 2015-10-23 2017-04-27 Oracle International Corporation Automatic operation detection on protected field with support for federated search
CN106790067A (en) * 2016-12-21 2017-05-31 浙江省公众信息产业有限公司 Method for processing business, device and system based on MVC layerings
CN107656777A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170365B (en) * 2010-02-26 2013-12-25 阿里巴巴集团控股有限公司 Method and system for realizing hot deployment of software system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192937A (en) * 2006-11-24 2008-06-04 华为技术有限公司 A hot deployable method and its system
KR20120106909A (en) * 2011-03-16 2012-09-27 엔에이치엔비즈니스플랫폼 주식회사 System and method for providing service uninterruptedly in java enterprise editions environment
CN103064690A (en) * 2012-12-16 2013-04-24 互动在线(北京)科技有限公司 Development framework based on Android operating system and execution method thereof
CN105117938A (en) * 2015-08-19 2015-12-02 江苏农牧人电子商务股份有限公司 E-commerce framework request data analysis method based on model view controller
WO2017070599A1 (en) * 2015-10-23 2017-04-27 Oracle International Corporation Automatic operation detection on protected field with support for federated search
CN105404474A (en) * 2015-12-07 2016-03-16 上海爱数信息技术股份有限公司 Data migration method of heterogeneous distributed memory system
CN106210160A (en) * 2016-06-17 2016-12-07 乐视控股(北京)有限公司 A kind of domain name method to set up and device
CN107656777A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN106790067A (en) * 2016-12-21 2017-05-31 浙江省公众信息产业有限公司 Method for processing business, device and system based on MVC layerings

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MVC模式在B/S结构政务系统的应用研究;任广震,侯进,王献;《计算机应用与软件》;20140815;第31卷(第8期);第54-58页 *
高效分布式作战应用框架设计与实现;夏扬,施卫峰,王海青;《指挥信息系统与技术》;20170628;第8卷(第3期);第49-53页 *

Also Published As

Publication number Publication date
CN108616597A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
US10140112B2 (en) Update management system and update management method
US11172023B2 (en) Data synchronization method and system
CN110990047B (en) Fusion method and device for multiple microservice architectures
CN111615066B (en) Distributed micro-service registration and calling method based on broadcast
CN110535676B (en) SMF dynamic disaster tolerance realization method, device, equipment and storage medium
CN110391940B (en) Service address response method, device, system, equipment and storage medium
CN110120961B (en) Distributed service cluster and route synchronization method thereof
WO2011026430A1 (en) Method and system for data synchronization in content delivery network
WO2023046088A1 (en) End-to-end system solution method applied to audio and video data transmission
CN107682460B (en) Distributed storage cluster data communication method and system
CN104158707A (en) Method and device of detecting and processing brain split in cluster
CN106790084A (en) A kind of heterogeneous resource integrated framework and its integrated approach based on ICE middlewares
CN101227333B (en) Disaster tolerance network managing system and login method of network managing subscriber end
CN110932876B (en) Communication system, method and device
CN113727464A (en) Method and device for establishing high-concurrency call of SIP streaming media server
WO2022007908A1 (en) Method for service collaboration between network element devices, and network element device
CN108616597B (en) Distributed operation method for realizing service uninterrupted forever
WO2017000589A1 (en) Flexible capacity expansion method, apparatus and system
CN108762780B (en) Method for realizing service software program separation operation
CN114640633B (en) Load balancer, realization method thereof, load balancing method and gateway system
CN112948177A (en) Disaster recovery backup method and device, electronic equipment and storage medium
CN114422335A (en) Communication method, communication device, server and storage medium
CN111858193A (en) Method and system for realizing server pool service
JP2001216174A (en) Application substituting method and storage medium in which application substitution program is stored
CN106161580A (en) A kind of connection status control method, Apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221024

Address after: 100000 A005, Floor 4, Tower A, Zhizhen Building, No. 7, Zhichun Road, Haidian District, Beijing

Patentee after: Beijing Guoke Taxtong Technology Development Co.,Ltd.

Address before: 610000 First Floor, 219 Tianshun Road, Chengdu High-tech Zone, Sichuan Province

Patentee before: SICHUAN HUACHUANG SHIJI TECHNOLOGY Co.,Ltd.