CN110300004A - A kind of method and apparatus of handover network service - Google Patents

A kind of method and apparatus of handover network service Download PDF

Info

Publication number
CN110300004A
CN110300004A CN201810235030.9A CN201810235030A CN110300004A CN 110300004 A CN110300004 A CN 110300004A CN 201810235030 A CN201810235030 A CN 201810235030A CN 110300004 A CN110300004 A CN 110300004A
Authority
CN
China
Prior art keywords
server
network
database
file
network server
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.)
Granted
Application number
CN201810235030.9A
Other languages
Chinese (zh)
Other versions
CN110300004B (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810235030.9A priority Critical patent/CN110300004B/en
Publication of CN110300004A publication Critical patent/CN110300004A/en
Application granted granted Critical
Publication of CN110300004B publication Critical patent/CN110300004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a kind of method and apparatus of handover network service, are related to field of computer technology.One specific embodiment of this method includes: to monitor the service state of first network server and the first file server;When first network server and/or the first file server service abnormal state;Switch to the second network server and/or the second file server;After switching, the second network server and/or the second file server replace the first network server and/or first file server, operational network service;Wherein, first network server or the second network server are used for operational network attendant application;First file server is synchronous with the holding of the second file server, is respectively used to provide file for first network server or the second network server.The serious forgiveness of present embodiment lifting system, while also improving the scalability and availability of system.

Description

A kind of method and apparatus of handover network service
Technical field
The present invention relates to field of computer technology more particularly to a kind of method, apparatus of handover network service, electronic equipment And computer-readable medium.
Background technique
Network service refers to some running on network, service-oriented, based on distributed program softwares, network clothes Business uses the internets universal standard such as HTTP and XML (subset of standard generalized markup language), allows people on different ground Side accesses the data on WEB by different terminal devices, and status is checked in such as booking tickets on net.Network service is in electronics quotient The application fields such as business, E-Government, corporate business process electronization are widely used.
Network server (Web Server) is the core component of network service, and network service application is taken in network It is run on business device, the efficiency of network server directly affects the efficiency of whole network service.Therefore, it is generally calculated with high-grade Machine or dedicated server computer are as network server.Network server mainly has following 4 effects: (1) operational network is grasped Make system, the work in control and coordination network between each computer meets the requirement of user, and respond to the maximum extent And processing.(2) shared resource in storage and management network, as database, file, application program, disk space, printer, Plotter etc..(3) it is the application program service of each work station, net is such as made using client/server (Client/Server) structure Network server does not act only as network server, and also acts as apps server.(4) network activity is exercised supervision and is controlled System carries out actual management to network, and distributing system resource understands and adjust system running state, the certain resources of closing/starting Deng.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Since the function that network server integrates is more, if wherein a certain function (software or hardware) is abnormal, meeting Cause whole system that can not provide service, so serious forgiveness substantially reduces, scalability and availability be not also high.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of handover network service, it can be by decomposing net The function of network server, the executing subject of handover network service, the serious forgiveness of lifting system, while also improving the extension of system Property and availability.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side of handover network service is provided Method, comprising: the service state of monitoring first network server and the first file server;When the first network server and/ Or when the first file server service abnormal state;Switch to the second network server and/or the second file server;It cuts After changing, second network server and/or second file server replace the first network server and/or described First file server operational network service;Wherein, the first network server or second network server are for transporting Row network service application;First file server is synchronous with the second file server holding, be respectively used to for The first network server or second network server provide file.
Optionally, the service state of first database is monitored;When the service state exception of the first database, switching To the second database;After switching, second database replaces the first database operational network service;Wherein, described One database is synchronous with the second database holding, is respectively used to take for the first network server or second network Business device provides data.
Optionally, the first network server, first file server, the first database, described second It is logical separation between network server, second file server and second database.
Optionally, the first network server, first file server, the first database, described second It is a physically separate between network server, second file server and second database.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of handover network service Device, comprising: monitoring modular, for monitoring the service state of first network server and the first file server;Switching module, For when the first network server and/or the first file server service abnormal state;Switch to the second network Server and/or the second file server, wherein the first network server or the second network server operational network Attendant application;Module is run, for making second network server call the file rope of second file server Draw, operational network service;Synchronization module, for making first file server and second file server keep same Step, and the respectively described first network server or second network server provide file.
Optionally, the monitoring modular is also used to monitor the service state of first database;The switching module is also used to When the service state exception of the first database, the second database is switched to;After the operation module is also used to switching, make Second database replaces the first database operational network service;Described device further include: the second synchronization module is used for Keep the first database synchronous with the second database holding;Wherein, wherein the first database and second number It keeps synchronizing according to library, is respectively used to provide data for the first network server or second network server.
Optionally, the first network server, first file server, the first database, described second It is logical separation between network server, second file server and second database.
Optionally, the first network server, first file server, the first database, described second It is a physically separate between network server, second file server and second database.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of electronic equipment, comprising: One or more processors;Storage device, for storing one or more programs, when one or more of programs are by described one A or multiple processors execute, so that one or more of processors realize any institute in a kind of method of handover network service The method stated.
To achieve the above object, another aspect according to an embodiment of the present invention provides a kind of computer-readable medium, It is stored thereon with computer program, a kind of side of handover network service is realized when described program is executed by one or more processors Any method in method.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because monitors that network takes using basis The technological means of business state handover network service, so overcoming because server service abnormal state causes network service unavailable The technical issues of, and then reach the technical effect for improving System Fault Tolerance rate.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is a kind of schematic diagram of the key step of the method for handover network service according to an embodiment of the present invention;
Fig. 2 is a preferred embodiment schematic diagram according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the major part of the device of handover network service according to an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is a kind of schematic diagram of the key step of the method for handover network service according to an embodiment of the present invention, such as Fig. 1 It is shown:
Step S101 indicates the service state of monitoring first network server and the first file server, the purpose of this step It is that handover network service is judged whether according to the service state of first network server and the first file server.Wherein, it services State includes normal and abnormal two states, and abnormality shows that first network server and the first file server are unavailable, Abnormality is possible as caused by software reason, for example the excessive caused crash of program process, memory are overflowed, rope Situations such as drawing refreshing, application program updating and publication;It may also is that caused by hardware reason, such as power-off, suspension, periodically Situations such as maintenance.Normal condition shows that first network server and the first file server can normally provide network service.The One network server is used to provide file for first network server for running application program, the first file server.
Further, since network service is needed by application program and its corresponding running paper, so in server When system is built, by application deployment on network server, by application program corresponding file (picture, document, view Frequency etc.) it is deployed on file server.
Step S102 indicates to work as the first network server and/or the first file server service abnormal state When;Switch to the second network server and/or the second file server;Wherein, the first network server or described second Network server is for operational network attendant application (jira that such as Atlassian company produces), first file Server is synchronous with the second file server holding, is respectively used to as the first network server or second network Server provides file.The purpose of this step is to use the second network server and the second file server as active service Device, to play the role of continuing network service.Such as when the power-off of first network server, network service can be switched to second It is run on network server and the second file server;Or when the first file server software fault, switching uses the second text Part server.First file server is synchronous with the holding of the second file server, so network service can continue to run.It needs It can be asynchronous and synchronous it is noted that synchronizing described in the embodiment of the present invention, it can there are certain synchronization delay, mesh The maintenance for being easy for system, and system performance can be saved, such as with 30 seconds to synchronize a synchronizing cycle.
After step S103 indicates switching, described in second network server and/or second file server replacement First network server and/or first file server, operational network service;The wherein text of second file server Part index can generate or refresh according to the synchronized result of second file server.The file index is used to indicate file clothes Be engaged in the storage location of each file in device, and establish file in application program and file server in network server it Between incidence relation, when the file in file server changes (as changed because of synchronous), need to generate or Refresh file index, guarantees the consistency of the file in file index and file server, first network server or the second net Application program in network server can pass through file needed for calling file index to inquire in the second file server.This step Purpose is that the second network server is enable to replace first network server, and the second file server can replace the second file to take Business device, the system of network consisting server add file server continue to run network service.
The method may also include that the service state of monitoring first database;When the service state of the first database When abnormal, the second database is switched to;After switching, second database replaces the first database operational network service; Wherein, the first database is synchronous with the second database holding, is respectively used to as the first network server or institute It states the second network server and data is provided.The purpose of this step is, when being communicated between network server and database When, the second synchronous database is established, when service exception occurs for first database, the second database can be switched to after reforwarding Row network service further increases the serious forgiveness and availability of system.Wherein the data directory of the second database can be according to second The synchronized result of database generates or refreshes, and the second network server operational network can also call the number of the second database when servicing According to index, data directory is used to indicate the storage location of data in the database.
Further, the first network server, first file server, the first database, described It is logical separation between two network servers, second file server and second database, i.e. these servers It may be provided on same hardware device, but be separated from each other in software function.Such as by network I/O (input and output) It is mutually separated with logical process, operation etc. in independent thread respectively.Purpose is that the software service state of these servers occurs When abnormal, starting network service switching improves the serious forgiveness and availability of system.
Further, the first network server, first file server, the first database, described It is a physically separate between second network server, second file server and second database, i.e., these are serviced Device is separately positioned on different hardware devices.Purpose is the software of these servers or when hardware service state is abnormal, Start network service switching, further increases the serious forgiveness and availability of system.
Fig. 2 is a preferred embodiment schematic diagram according to an embodiment of the present invention, as shown in Figure 2:
(1) in data plane, by a kind of client/server form of MySQL database (relevant database), by first Data asynchronous and synchronous in database (DB1) is in the second database (DB2);
(2) pass through Network File System (a kind of Network File System) carry of Linux (a kind of operating system) File in first network server, is disposed the application deployment of Trident (research and development project management platform) a kind of by technology On the first file server, the physical separation of application program and file is realized;
(3) it was with 30 seconds by the file that application program generates by the Rsync of Linux (a kind of mirror back-up of data tool) A cycle is synchronized to the second file server;And synchronous installation is identical as first network server on the second network server Application program;
(4) pass through a kind of Crontab of Linux (timing execution task mechanism) the second file server of periodic refreshing and The index of two databases;
(5) pass through a kind of Heathcheck (monitoring of software) real-time monitoring first network server, the first file server Network service is switched into the second network server, the second file when there is service exception with the service state of first database Server and the second database;
(6) after switching, the application call file index in the second network server continues to run network service.
Fig. 3 is a kind of schematic diagram of the major part of the device 300 of handover network service according to an embodiment of the present invention, such as Shown in Fig. 3:
Monitoring modular 301 is used to monitor the service state of first network server and the first file server;Purpose is root Judge whether handover network service according to the service state of first network server and the first file server.Wherein, service state Including normal and abnormal two states, abnormality shows that first network server and the first file server are unavailable, abnormal State is possible as caused by software reason, for example the excessive caused crash of program process, memory are overflowed, index brush Newly, application program updating and publication situations such as;It may also is that caused by hardware reason, such as power-off, suspension, periodic maintenance Situations such as.Normal condition shows that first network server and the first file server can normally provide network service.First net Network server is used to provide file for first network server for running application program, the first file server.
Further, since network service is needed by application program and its corresponding running paper, so in server When system is built, by application deployment on network server, by application program corresponding file (picture, document, view Frequency etc.) it is deployed on file server.
Switching module 302 is used for when the first network server and/or the first file server service state are different Chang Shi;Switch to the second network server and/or the second file server;The wherein first network server or described second Network server operational network attendant application (jira that such as Atlassian company produces);Purpose is using the second net Network server and the second file server are as standby server, to play the role of continuing network service.Such as when the first net When network server powers off, network service is switched on the second network server and the second file server and is run.
Operation module 303 is for making second network server and/or second file server replace described the One network server and/or the first file server operational network service;Purpose is to enable for the second network server generation For first network server, the second file server can replace the second file server, network consisting server add file clothes The system of business device, continues to run network service.
Synchronization module 304 is used to keep first file server synchronous with the second file server holding, and The respectively described first network server or second network server provide file.First file server and the second file Server keeps synchronizing, so network service can continue to run.It should be noted that synchronization described in the embodiment of the present invention It can be asynchronous and synchronous, it can there are certain synchronization delays, it is therefore an objective to convenient for the maintenance of system, and system can be saved Performance, such as synchronized with 30 seconds for a synchronizing cycle.
Device 300 may also include that
Index module, for making the file index of second file server according to the same of second file server Result is walked to generate or refresh.The file index is used to indicate the storage location of each file in file server, and establishes The incidence relation between the file in application program and file server in network server.When the file in file server It when changing (as changed because of synchronous), needs to generate or refresh file index, guarantees that file index and file take The consistency for the file being engaged in device, the application program in first network server or the second network server, which can pass through, calls file File needed for index is inquired in the second file server.
Monitoring modular 301 is also used to monitor the service state of first database;Switching module 302 is also used to when described first When the service state exception of database, the second database is switched to;After operation module 303 is also used to switching, make second number The first database operational network service is replaced according to library;Device 300 further include: the second synchronization module, for making described first Database is synchronous with the second database holding;Wherein, wherein the first database and second database keep same Step, is respectively used to provide data for the first network server or second network server.Purpose is when network service When being communicated between device and database, the second synchronous database is established, when service exception occurs for first database, The second database can be switched to and continue to run network service, further increase the serious forgiveness and availability of system.Wherein second The data directory of database can generate or refresh according to the synchronized result of the second database, the second network server operational network clothes The data directory of the second database can also be called when business, data directory is used to indicate the storage location of data in the database.
Further, the first network server, first file server, the first database, described It is logical separation between two network servers, second file server and second database, i.e. these servers It may be provided on same hardware device, but be separated from each other in software function.Such as by network I/O (input and output) It is mutually separated with logical process, operation etc. in independent thread respectively.Purpose is that the software service state of these servers occurs When abnormal, starting network service switching improves the serious forgiveness and availability of system.
Further, the first network server, first file server, the first database, described It is a physically separate between second network server, second file server and second database, i.e., these are serviced Device is separately positioned on different hardware devices.Purpose is the software of these servers or when hardware service state is abnormal, Start network service switching, further increases the serious forgiveness and availability of system.
Fig. 4 is shown can be using a kind of handover network method of servicing of the embodiment of the present invention or the exemplary system of device Framework 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 The application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server supported.Back-stage management server can believe the product received The data such as breath inquiry request carry out the processing such as analyzing, and processing result (such as target push information, product information) is fed back to Terminal device.
It should be noted that a kind of method of handover network service provided by the embodiment of the present invention is generally by server 405 execute, and correspondingly, a kind of device of handover network service is generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Fig. 5 show the structural representation for being suitable for the computer system 500 for the terminal device for being used to realize the embodiment of the present invention Figure.Terminal device shown in fig. 5 is only an example, should not function to the embodiment of the present invention and use scope bring it is any Limitation.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process of above step figure description may be implemented as computer according to the present invention Software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer-readable Computer program on medium, the computer program include the program code for executing method shown in block diagram.In this way Embodiment in, which can be downloaded and installed from network by communications portion 509, and/or from detachable Medium 511 is mounted.When the computer program is executed by central processing unit (CPU) 501, executes and limited in system of the invention Fixed above-mentioned function.
It should be noted that computer-readable medium shown in the present invention includes computer-readable signal media or computer Readable storage medium storing program for executing or the two any combination.Computer readable storage medium include but is not limited to electricity, magnetic, light, Electromagnetism, infrared ray, the system of semiconductor, any combination of device or device or above content.Computer readable storage medium Be specifically including but not limited to: electrical connection, portable computer diskette with one or more conducting wires, hard disk, random access are deposited Reservoir (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact Disk read-only memory (CD-ROM), light storage device, magnetic memory device or above content any combination.In the present invention In, computer readable storage medium, which includes any, includes or the tangible medium of storage program, which can be commanded and execute system System, device or device use or in connection;Computer-readable signal media includes in a base band or conduct The data-signal that carrier wave a part is propagated, wherein carrying computer-readable program code, the data-signal of this propagation can To take various forms, including but not limited to electromagnetic signal, any combination of optical signal or above-mentioned signal.Computer-readable letter Number medium can also be any computer-readable medium other than computer readable storage medium, which can be with It sends, propagate or transmits for by the use of instruction execution system, device or device or program in connection.Meter The program code for including on calculation machine readable medium can transmit with any suitable medium, including but not limited to: wireless, electric wire, Any combination of optical cable, RF (radio frequency) etc. or above-mentioned medium.
Step figure or block diagram in attached drawing, illustrate according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product, each box in block diagram or block diagram can represent a mould A part of block, program segment or code, a part of above-mentioned module, program segment or code include it is one or more for realizing The executable instruction of defined logic function.It should be noted that in some implementations as replacements, function marked in the box It can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated can actually be parallel Ground executes, and can also execute in the opposite order sometimes, and execution sequence depends on the functions involved.It is also noted that Each box in block diagram or block diagram with and combinations thereof, can the dedicated of the functions or operations as defined in executing be based on hardware System realize, or can realize using a combination of dedicated hardware and computer instructions.
Being described in the embodiment of the present invention involved module or unit can be realized by way of software, can also be with It is realized by way of hardware.Described module or unit also can be set in the processor, for example, can be described as: A kind of processor includes monitoring modular, switching module, operation module and synchronization module.Wherein, these modules or the title of unit The restriction to the module or unit itself is not constituted under certain conditions, for example, monitoring modular is also described as " being used for Monitor the module of the service state of first network server and the first file server ".
On the other hand, the embodiment of the invention also provides a kind of computer-readable medium, which can be with It is included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned meter Calculation machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, So that the equipment includes: to monitor the service state of first network server and the first file server;When the first network takes When business device and/or the first file server service abnormal state;Switch to the second network server and/or the second file clothes Business device;After switching, second network server and/or second file server replace the first network server And/or the first file server operational network service;Wherein, the first network server or the second network service Device is used for operational network attendant application;First file server is synchronous with the second file server holding, point File Yong Yu not be provided for the first network server or second network server.
Technical solution according to an embodiment of the present invention, using according to the skill for monitoring network service state handover network service Art means so overcoming because server service abnormal state causes network to service not available technical problem, and then reach and mention The technical effect of high System Fault Tolerance rate.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (10)

1. a kind of method of handover network service characterized by comprising
Monitor the service state of first network server and the first file server;
When the first network server and/or the first file server service abnormal state;
Switch to the second network server and/or the second file server;
After switching, second network server and/or second file server replace the first network server and/ Or the first file server operational network service;
Wherein, the first network server or second network server are used for operational network attendant application;It is described First file server is synchronous with the second file server holding, is respectively used to as the first network server or described Second network server provides file.
2. the method according to claim 1, wherein the method also includes:
Monitor the service state of first database;
When the service state exception of the first database, the second database is switched to;
After switching, second database replaces the first database operational network service;
Wherein, the first database is synchronous with the second database holding, is respectively used to as the first network server Or second network server provides data.
3. according to the method described in claim 2, it is characterized in that, the first network server, first file service It is between device, the first database, second network server, second file server and second database Logical separation.
4. according to the method described in claim 2, it is characterized in that, the first network server, first file service It is between device, the first database, second network server, second file server and second database Physical separation.
5. a kind of device of handover network service characterized by comprising
Monitoring modular, for monitoring the service state of first network server and the first file server;
Switching module, for when the first network server and/or the first file server service abnormal state;It cuts Shift to the second network server and/or the second file server;Wherein the first network server or second network clothes Business device operational network attendant application;
Module is run, for making second network server and/or second file server replace the first network Server and/or first file server, operational network service;
Synchronization module for keeping first file server synchronous with the second file server holding, and is respectively The first network server or second network server provide file.
6. device according to claim 5, which is characterized in that the monitoring modular is also used to monitor the clothes of first database Business state;
The switching module is also used to switch to the second database when the service state exception of the first database;
After the operation module is also used to switching, second database is made to replace the first database operational network service;
Described device further include:
Second synchronization module, for keeping the first database synchronous with the second database holding;
Wherein, wherein the first database is synchronous with the second database holding, is respectively used to as first network clothes Business device or second network server provide data.
7. device according to claim 6, which is characterized in that the first network server, first file service It is between device, the first database, second network server, second file server and second database Logical separation.
8. device according to claim 6, which is characterized in that the first network server, first file service It is between device, the first database, second network server, second file server and second database Physical separation.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-4.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is by one or more The method as described in any in claim 1-4 is realized when a processor executes.
CN201810235030.9A 2018-03-21 2018-03-21 Method and device for switching network services Active CN110300004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810235030.9A CN110300004B (en) 2018-03-21 2018-03-21 Method and device for switching network services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810235030.9A CN110300004B (en) 2018-03-21 2018-03-21 Method and device for switching network services

Publications (2)

Publication Number Publication Date
CN110300004A true CN110300004A (en) 2019-10-01
CN110300004B CN110300004B (en) 2023-12-08

Family

ID=68025479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810235030.9A Active CN110300004B (en) 2018-03-21 2018-03-21 Method and device for switching network services

Country Status (1)

Country Link
CN (1) CN110300004B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11249977A (en) * 1998-03-03 1999-09-17 Mitsubishi Electric Corp Data transfer network system
US20020194523A1 (en) * 2001-01-29 2002-12-19 Ulrich Thomas R. Replacing file system processors by hot swapping
JP2004032103A (en) * 2002-06-21 2004-01-29 Ntt Docomo Tokai Inc Network system and server switching method
US20040236798A1 (en) * 2001-09-11 2004-11-25 Sudhir Srinivasan Migration of control in a distributed segmented file system
US7039828B1 (en) * 2002-02-28 2006-05-02 Network Appliance, Inc. System and method for clustered failover without network support
CN101593211A (en) * 2008-05-30 2009-12-02 富士通株式会社 Web data provides system, web data that method and computer-readable medium are provided
CN101753374A (en) * 2008-12-15 2010-06-23 丛林网络公司 Server-to-server integrity checking
CN104901834A (en) * 2015-05-20 2015-09-09 广东睿江科技有限公司 Method and system for automatically switching between network servers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11249977A (en) * 1998-03-03 1999-09-17 Mitsubishi Electric Corp Data transfer network system
US20020194523A1 (en) * 2001-01-29 2002-12-19 Ulrich Thomas R. Replacing file system processors by hot swapping
US20040236798A1 (en) * 2001-09-11 2004-11-25 Sudhir Srinivasan Migration of control in a distributed segmented file system
US7039828B1 (en) * 2002-02-28 2006-05-02 Network Appliance, Inc. System and method for clustered failover without network support
JP2004032103A (en) * 2002-06-21 2004-01-29 Ntt Docomo Tokai Inc Network system and server switching method
CN101593211A (en) * 2008-05-30 2009-12-02 富士通株式会社 Web data provides system, web data that method and computer-readable medium are provided
CN101753374A (en) * 2008-12-15 2010-06-23 丛林网络公司 Server-to-server integrity checking
CN104901834A (en) * 2015-05-20 2015-09-09 广东睿江科技有限公司 Method and system for automatically switching between network servers

Also Published As

Publication number Publication date
CN110300004B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN109905286A (en) A kind of method and system of monitoring device operating status
CN109245908B (en) Method and device for switching master cluster and slave cluster
CN109189835A (en) The method and apparatus of the wide table of data are generated in real time
CN110351323A (en) A kind of parameter management method and device of application system
CN110245011A (en) A kind of method for scheduling task and device
CN110019339A (en) A kind of data query method and system
CN109257320A (en) Message storage method and device
CN108681777A (en) A kind of method and apparatus of the machine learning program operation based on distributed system
CN110120961A (en) A kind of method of Distributed Services cluster and its route synchronization
CN109995801A (en) A kind of method for message transmission and device
CN108874828A (en) The method and apparatus of Data Migration
CN110377416A (en) Distributed subregion method for scheduling task and device
CN108932157A (en) Method, system, electronic equipment and the readable medium of distributed treatment task
CN108984544A (en) A kind of method and apparatus of distributed system modification configuration information
CN112199353A (en) Data processing method and electric power customer service platform
CN110019539A (en) A kind of method and apparatus that the data of data warehouse are synchronous
CN110691131A (en) Micro-service framework system based on intelligent mobile terminal
CN111858040A (en) Resource scheduling method and device
CN109976919A (en) A kind of transmission method and device of message request
CN110083457A (en) A kind of data capture method, device and data analysing method, device
CN112398669B (en) Hadoop deployment method and device
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device
CN110300004A (en) A kind of method and apparatus of handover network service
CN108833147A (en) A kind of update method and device of configuration information
CN110309157A (en) A kind of data synchronization updating method and apparatus

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