CN113778763B - Intelligent switching method and system for three-way interface service faults - Google Patents

Intelligent switching method and system for three-way interface service faults Download PDF

Info

Publication number
CN113778763B
CN113778763B CN202110972764.7A CN202110972764A CN113778763B CN 113778763 B CN113778763 B CN 113778763B CN 202110972764 A CN202110972764 A CN 202110972764A CN 113778763 B CN113778763 B CN 113778763B
Authority
CN
China
Prior art keywords
interface service
fault
data center
party interface
state
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
CN202110972764.7A
Other languages
Chinese (zh)
Other versions
CN113778763A (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.)
Bairong Zhixin Beijing Technology Co ltd
Original Assignee
Bairong Zhixin Beijing 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 Bairong Zhixin Beijing Technology Co ltd filed Critical Bairong Zhixin Beijing Technology Co ltd
Priority to CN202110972764.7A priority Critical patent/CN113778763B/en
Publication of CN113778763A publication Critical patent/CN113778763A/en
Application granted granted Critical
Publication of CN113778763B publication Critical patent/CN113778763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2033Failover techniques switching over of hardware resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The application provides a three-way interface service fault intelligent switching method and a system, wherein the method is applied to a three-way interface service fault intelligent switching system, and comprises the following steps: reading a first three-party interface service working state of a first server, wherein the working state comprises a fault state and a normal state; if the working state is a normal state, accessing a first three-party interface service through a first data center; and if the working state is a fault state, accessing the first three-party interface service through the second data center. The technical problem that the prior art lacks a high-feasibility local switching scheme aiming at interface-level service faults is solved.

Description

Intelligent switching method and system for three-way interface service faults
Technical Field
The application relates to the technical field of data processing, in particular to an intelligent switching method and system for three-way interface service faults.
Background
In data services, in order to guarantee the stability of system services, we usually adopt a disaster recovery scheme of double activity. Double-activity is a resource-saving computer disaster recovery scheme. The implementation mode is that the main data center and the standby data center bear the service of the user at the same time, and at the moment, the main data center and the standby data center are mutually backed up and are backed up in real time. And when one side of the service fails, the service cannot be processed.
However, the foregoing failure should generally refer to a large-scale failure, if some service in our system service depends on a large number of three-way interface services, when accessing a failure of some three-way interface service, the service is unavailable, and the processing of the failure cannot be uniformly implemented by adopting a mode of switching the data center, so that the prior art mainly performs overall switching by directly switching the data center or aiming at the three-way interface service.
However, in the process of implementing the technical scheme of the embodiment of the application, the inventor discovers that the above technology has at least the following technical problems:
the prior art lacks the technical problem of a local switching scheme aiming at interface-level service faults, which has strong feasibility.
Disclosure of Invention
The embodiment of the application solves the technical problem that the prior art lacks a strong feasibility scheme for carrying out local switching aiming at interface-level service faults by providing the intelligent switching method and the intelligent switching system for the three-way interface service faults. By monitoring the working states of a plurality of servers and corresponding three-way interface services in the first data center, when a certain link is monitored to fail, the corresponding server is called to access the second data center and then access the corresponding three-way interface service, so that smooth working is ensured, excessive switching is avoided due to switching of local links, and the possibility of falling to the ground of a scheme is improved by automatically monitoring the failure and switching, so that the technical effect of high feasibility is achieved.
In view of the above problems, the embodiment of the application provides a three-way interface service fault intelligent switching method and system.
In a first aspect, an embodiment of the present application provides a method for intelligently switching a service failure of a three-way interface, where the method is applied to a system for intelligently switching a service failure of a three-way interface, and the method includes: reading a first three-party interface service working state of a first server, wherein the working state comprises a fault state and a normal state; if the working state is a normal state, accessing a first three-party interface service through a first data center; and if the working state is a fault state, accessing the first three-party interface service through the second data center.
In another aspect, an embodiment of the present application provides a system for intelligent switching between three-way interface service failures, where the system includes: the first reading unit is used for reading the working state of the first three-party interface service of the first server, wherein the working state comprises a fault state and a normal state; the first access unit is used for accessing a first three-party interface service through a first data center if the working state is a normal state; and the second access unit is used for accessing the first three-party interface service through the second data center if the working state is a fault state.
In a third aspect, an embodiment of the present application provides a three-way interface service failover system, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to any one of the first aspects when the processor executes the program.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
the working state of the first three-party interface service of the first server is read, and the working state comprises a fault state and a normal state; if the working state is a normal state, accessing a first three-party interface service through a first data center; if the working state is a fault state, the first three-party interface service technical scheme is accessed through the second data center, and the working states of a plurality of servers and corresponding three-party interface services in the first data center are monitored.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
FIG. 1 is a schematic flow chart of a three-way interface service fault intelligent switching method according to an embodiment of the application;
FIG. 2 is a flowchart illustrating a method for reading a service operating status of a first three-way interface of a first server according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a three-way interface service fail-over system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
Reference numerals illustrate: the device comprises a first reading unit 11, a first access unit 12, a second access unit 13, an electronic device 300, a memory 301, a processor 302, a communication interface 303, a bus architecture 304.
Detailed Description
The embodiment of the application solves the technical problem that the prior art lacks a strong feasibility scheme for carrying out local switching aiming at interface-level service faults by providing the intelligent switching method and the intelligent switching system for the three-way interface service faults. By monitoring the working states of a plurality of servers and corresponding three-way interface services in the first data center, when a certain link is monitored to fail, the corresponding server is called to access the second data center and then access the corresponding three-way interface service, so that smooth working is ensured, excessive switching is avoided due to switching of local links, and the possibility of falling to the ground of a scheme is improved by automatically monitoring the failure and switching, so that the technical effect of high feasibility is achieved.
Summary of the application
In data services, in order to guarantee the stability of system services, we usually adopt a disaster recovery scheme of double activity. Double-activity is a resource-saving computer disaster recovery scheme. The implementation mode is that the main data center and the standby data center bear the service of the user at the same time, and at the moment, the main data center and the standby data center are mutually backed up and are backed up in real time. And when one side of the service fails, the service cannot be processed. However, the foregoing failure should generally refer to a large-scale failure, if some service in our system service depends on a large number of three-way interface services, when accessing a failure of some three-way interface service, the service is unavailable, and the processing of the failure cannot be uniformly implemented by adopting a mode of switching the data center, so that the prior art mainly performs overall switching by directly switching the data center or aiming at the three-way interface service. However, the prior art lacks the technical problem of a local switching scheme aiming at interface-level service faults, which has strong feasibility.
Aiming at the technical problems, the technical scheme provided by the application has the following overall thought:
the embodiment of the application provides a three-way interface service fault intelligent switching method, wherein the method is applied to a three-way interface service fault intelligent switching system, and comprises the following steps: reading a first three-party interface service working state of a first server, wherein the working state comprises a fault state and a normal state; if the working state is a normal state, accessing a first three-party interface service through a first data center; and if the working state is a fault state, accessing the first three-party interface service through the second data center.
Having described the basic principles of the present application, various non-limiting embodiments of the present application will now be described in detail with reference to the accompanying drawings.
Example 1
As shown in fig. 1, an embodiment of the present application provides a method for intelligently switching a service failure of a three-way interface, where the method is applied to a system for intelligently switching a service failure of a three-way interface, and the method includes:
s100: reading a first three-party interface service working state of a first server, wherein the working state comprises a fault state and a normal state;
specifically, the double-activity computer disaster recovery scheme saves resources. The implementation mode is that the main data center and the standby data center bear the service of the user at the same time, and at the moment, the main data center and the standby data center are mutually backed up and are backed up in real time. However, in the dual-activity environment, when certain functions of the system service depend on a large number of three-way interface services, the system burden is easily increased by integrally switching the main and standby data centers, and based on the system load, the intelligent switching scheme for the three-way interface service faults in the dual-activity environment is provided.
The first three-party interface service refers to a large number of external three-party interface services of the system for completing work; the first server refers to a plurality of servers in one data center and linked with the first three-party interface service for working; the working state is that the working condition of the first three-party interface service of each first server is monitored, and the working specific data are obtained according to the working condition and the working condition is analyzed to obtain a result. The fault state refers to that the abnormal working condition is determined after analysis according to the working feedback information, for example: and obtaining feedback information from the first three-party interface service for more than a preset value. Preferably, the first three-way interface service of the first server in the fault state is marked, and the call is waited. By monitoring the working state of the server at the interface level, a reference basis is provided for local switching, and feasibility is enhanced.
S200: if the working state is a normal state, accessing the first three-party interface service through a first data center;
further, based on the fact that the working state is the normal state, accessing the first three-way interface service through the first data center, step S200 includes:
s210: accessing a first internet device through the first data center, wherein the first data center comprises the first internet device;
s220: the first third party interface service is accessed through the first internet device.
Specifically, the first data center refers to one of the data centers in a dual-activity environment; the first internet device refers to an internet outlet device corresponding to the first data center. When the read working state of the first three-way interface service of the first server is the normal state, the link is indicated that the first three-way interface service works normally, the system confirms that switching is not needed, accesses the first internet equipment through the first data center according to the original setting, and accesses the first three-way interface service through the first internet equipment to work. By determining the normal working state, the working link corresponding to the first three-party interface service of the first server, which is not abnormal, is ensured not to be switched, and the technical effect of avoiding excessive switching is achieved.
S300: and if the working state is a fault state, accessing the first three-party interface service through a second data center.
Further, based on the operating state being the failure state, accessing the first three-way interface service through the second data center, the step S300 includes
S310: accessing a second internet appliance through the second data center, wherein the second data center includes the second internet appliance;
s320: and accessing the first three-party interface service through the second internet device.
In particular, the second data center refers to another data center in a dual-activity environment; the second internet device refers to an internet outlet device corresponding to the second data center. When the read working state of the first three-way interface service of the first server is the fault state, indicating that the working of the first three-way interface service of the link is abnormal, confirming that a local link corresponding to the first three-way interface service needs to be switched by a system, reading the working state of the link accessing the first three-way interface service through the second internet equipment of the second data center, calling the second data center to access the second internet equipment if the second data center works normally, and accessing the first three-way interface service through the second internet equipment; if the state is the fault state, the link switching is not performed. By determining the fault working state, the working link corresponding to the first three-way interface service of the first server is switched only under the condition that the first data center is abnormal and the second data center is normal, and the whole process is performed through intelligent judgment of a system, so that the technical effect of intelligent local switching of the fault of the three-way interface service, which is feasible, is achieved.
Further, based on the reading the working state of the first three-way interface service of the first server, the working state includes a fault state and a normal state, as shown in fig. 2, step S100 includes:
s110: obtaining a first three-party interface service list;
s120: obtaining a first preset detection period;
s130: detecting the first three-party interface service list according to the first preset detection frequency to obtain a first detection result, wherein the first detection result comprises a first fault three-party interface service name;
s140: storing the first fault three-way interface service name into a first database, and setting a first storage time, wherein the first storage time is longer than the first preset detection period;
s150: marking the first three-party interface service corresponding to the first fault three-party interface service name to obtain first identification information;
s160: and obtaining the working state of the first three-party interface service according to the first identification information.
Further, the method step S100 further includes:
s170: the first data center comprises the first server and the first database.
In particular, the first three-party interface service list refers to all the first three-party interface services on which the system operation depends; the first preset detection period refers to a preset frequency of monitoring the working state of the first three-party interface service list, for example without limitation: detecting the first three-party interface service list every 10 s; in order to ensure normal operation, all the first three-way interface services in the first three-way interface service list are monitored through the first preset detection period.
Further, the first detection result refers to a result of detecting the first three-way interface service list according to the first preset detection period, and the detection content includes but is not limited to: the working state of accessing the first internet device via each server in the first data center to revisit the first three-way interface service list and accessing the second internet device via each server in the first data center to revisit the first three-way interface service list; and accessing the second internet device via each server in the second data center to access the first three-way interface service list and accessing the first internet device via each server in the second data center to access the working state of the first three-way interface service list. For example, if the first three-party interface service name and the number are in normal operation, the first three-party interface service name and the number are in abnormal operation, corresponding fault link information and the like; the first database refers to a database for storing working data with abnormal links of the first data center and normal links of the first three-party interface service accessed through the second internet equipment, and the second data center also has a database for storing working data with abnormal links of the second data center and normal links of the first three-party interface service accessed through the first internet equipment; the first fault three-way interface service name refers to the first three-way interface service name of abnormal work in the first detection result; and the first storage time refers to a preset storage time for calling the first database to store the corresponding name of the first fault three-way interface service when the first detection result shows that the first three-way interface service in the first three-way interface service list has the abnormal working state. Preferably, the first storage time is slightly longer than the first preset detection period, and still taking the first preset detection period as an example, the first storage time may be 10+s (11.5 s, 11.6s, etc.), so as to ensure that the working state of the third party interface service corresponding to the first fault party interface service name is abnormal when the first fault party interface service name is detected again.
Further, the first identification information refers to information for marking the first three-way interface service corresponding to the first fault three-way interface service name, and characterizing that the working state of the first three-way interface service is the fault state, so that system identification is facilitated; and the first three-way interface service that is functioning properly will not have a flag. The working state of the first three-party interface service of the first server is characterized by the first marking information, so that the first server is easy to identify and train, and the feasibility is enhanced.
Further, based on the storing the first failure three-way interface service name in the first database, and setting a first storage time, step S140 further includes:
s141: when the first fault three-way interface service name is stored in a first database, a first timing system is started, and a first storage timing is obtained;
s142: and when the first storage time is equal to the first storage time, the first three-party interface service corresponding to the first fault three-party interface service name is recovered to a normal working state.
Specifically, the first timing system refers to a timing module for storing time of the first fault three-way interface service name in the first database, and the implementation manner is as a preferred example: when each new first fault three-way interface service name is stored in the first database, starting a group of timing, wherein a plurality of first fault three-way interface service names correspond to a plurality of groups of timing, and when the first fault three-way interface service name is deleted from the first database, stopping corresponding group timing; the first stored timing refers to the timing displayed by the first timing system. Further, comparing the first storage time with the first storage time, if the first storage time is equal to the first storage time, indicating that the first fault three-way interface service name is not updated in the preset storage time of the first database, indicating that the first three-way interface service corresponding to the first fault three-way interface service name has recovered to normal operation, deleting the first fault three-way interface service name from the first database, and deleting the first storage time of the corresponding group. And deleting the first fault three-way interface service name which does not meet the requirement from the first database by comparing the first storage timing with the preset first storage time, so that the first fault three-way interface service name stored in the first database is ensured to be the first fault three-way interface service name, and the technical effect of avoiding excessive switching is achieved.
Further, based on the storing the first failure three-way interface service name in the first database, step S140 further includes:
s141: traversing in the first database according to the first fault three-party service interface name, and judging whether the first database stores the first fault three-party interface service name or not;
s142: if the first database stores the first fault three-way interface service name, updating the storage time of the first fault three-way interface service name to obtain a second storage time.
Specifically, before storing the first fault three-way interface service name into a first database, comparing the first fault three-way interface service name with the names stored in the first database, and if the first fault three-way interface service name does not exist in the first database, storing according to the first storage time; if the first fault three-way interface service name exists in the first database, when the original remaining storage time and the first storage timing are deleted, resetting the first storage time for the first fault three-way interface service name, and restarting the first storage timing, wherein the updated first storage time is the second storage time. After the storage time is updated, comparing the first storage timing with the second storage time, and judging whether the corresponding first fault three-way interface service is recovered to be normal or not. By updating the storage time of the first failure three-way interface service, the occurrence of the situation that the first failure three-way interface service is identified to work normally is avoided, and the feasibility is enhanced.
In summary, the method and the system for intelligently switching the three-way interface service faults provided by the embodiment of the application have the following technical effects:
1. the working state of the first three-party interface service of the first server is read, and the working state comprises a fault state and a normal state; if the working state is a normal state, accessing a first three-party interface service through a first data center; if the working state is a fault state, the first three-party interface service technical scheme is accessed through the second data center, and the working states of a plurality of servers and corresponding three-party interface services in the first data center are monitored.
Example two
Based on the same inventive concept as the three-way interface service fault intelligent switching method in the foregoing embodiment, as shown in fig. 3, an embodiment of the present application provides a three-way interface service fault intelligent switching system, where the system includes:
the first reading unit 11 is configured to read a working state of a first three-party interface service of the first server, where the working state includes a fault state and a normal state;
the first access unit 12, where the first access unit 12 is configured to access a first three-party interface service through a first data center if the working state is a normal state;
and the second access unit 13 is configured to access the first three-way interface service through the second data center if the working state is a fault state.
Further, the system further comprises:
the first obtaining unit is used for obtaining a first three-party interface service list;
a second obtaining unit configured to obtain a first preset detection period;
the third obtaining unit is used for detecting the first three-party interface service list according to the first preset detection frequency to obtain a first detection result, wherein the first detection result comprises a first fault three-party interface service name;
the first storage unit is used for storing the first fault three-way interface service name into a first database and setting a first storage time, wherein the first storage time is longer than the first preset detection period;
the first identification unit is used for marking the first three-party interface service corresponding to the first fault three-party interface service name to obtain first identification information;
and the fourth obtaining unit is used for obtaining the working state of the first three-party interface service according to the first identification information.
Further, the system further comprises:
the fifth obtaining unit is used for starting a first timing system when the first fault three-way interface service name is stored in the first database, and obtaining a first storage timing;
and the first recovery unit is used for recovering the first three-party interface service corresponding to the first fault three-party interface service name to a normal working state when the first storage time is equal to the first storage time.
Further, the system further comprises:
the first judging unit is used for traversing in the first database according to the first fault three-party interface service name and judging whether the first database stores the first fault three-party interface service name or not;
and the first timing unit is used for updating the storage time of the first fault three-party interface service name and obtaining a second storage time if the first database stores the first fault three-party interface service name.
Further, the system further comprises:
and the first data unit comprises the first data center, the first server and the first database.
Further, the system further comprises:
a third access unit for accessing a first internet device through the first data center, wherein the first data center includes the first internet device;
and the fourth access unit is used for accessing the first three-party interface service through the first internet equipment.
Further, the system also comprises
A fifth access unit for accessing a second internet appliance through the second data center, wherein the second data center includes the second internet appliance;
and the sixth access unit is used for accessing the first three-party interface service through the second internet equipment.
Exemplary electronic device
An electronic device of an embodiment of the application is described below with reference to figure 4,
based on the same inventive concept as the three-way interface service fault intelligent switching method in the foregoing embodiment, the embodiment of the present application further provides a three-way interface service fault intelligent switching system, including: a processor coupled to a memory for storing a program that, when executed by the processor, causes the system to perform the method of any of the first aspects
The electronic device 300 includes: a processor 302, a communication interface 303, a memory 301. Optionally, the electronic device 300 may also include a bus architecture 304. Wherein the communication interface 303, the processor 302 and the memory 301 may be interconnected by a bus architecture 304; the bus architecture 304 may be a peripheral component interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry Standard architecture, EISA) bus, among others. The bus architecture 304 may be divided into address buses, data buses, control buses, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Processor 302 may be a CPU, microprocessor, ASIC, or one or more integrated circuits for controlling the execution of the programs of the present application.
The communication interface 303 uses any transceiver-like system for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), wired access network, etc.
The memory 301 may be, but is not limited to, ROM or other type of static storage device that may store static information and instructions, RAM or other type of dynamic storage device that may store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor through bus architecture 304. The memory may also be integrated with the processor.
The memory 301 is used for storing computer-executable instructions for executing the inventive arrangements, and is controlled by the processor 302 for execution. The processor 302 is configured to execute computer-implemented instructions stored in the memory 301, so as to implement the three-way interface service failover method provided in the above embodiment of the present application.
Alternatively, the computer-executable instructions in the embodiments of the present application may be referred to as application program codes, which are not particularly limited in the embodiments of the present application.
The embodiment of the application provides a three-way interface service fault intelligent switching method, wherein the method is applied to a three-way interface service fault intelligent switching system, and comprises the following steps: reading a first three-party interface service working state of a first server, wherein the working state comprises a fault state and a normal state; if the working state is a normal state, accessing a first three-party interface service through a first data center; if the working state is a fault state, the first three-way interface service is accessed through the second data center, the working states of a plurality of servers and corresponding three-way interface services in the first data center are monitored, when a certain link is monitored to be faulty, the corresponding server is called to access the second data center and then access the corresponding three-way interface service, so that smooth working is ensured, excessive switching is avoided due to switching of local links, the possibility of falling to the ground of a scheme is improved due to automatic fault monitoring and switching, and the technical effect of high feasibility is achieved.
Those of ordinary skill in the art will appreciate that: the first, second, etc. numbers referred to in the present application are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application, nor represent the sequence. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one" means one or more. At least two means two or more. "at least one," "any one," or the like, refers to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one of a, b, or c (species ) may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable system. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The various illustrative logical blocks and circuits described in connection with the embodiments of the present application may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic system, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the general purpose processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing systems, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software unit executed by a processor, or in a combination of the two. The software elements may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. In an example, a storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may reside in a terminal. In the alternative, the processor and the storage medium may reside in different components in a terminal. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the application. It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the scope of the application. Thus, it is intended that the present application cover the modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.

Claims (7)

1. A three-way interface service failover method, wherein the method is applied to a three-way interface service failover system, the method comprising:
reading the working state of a first three-party interface service of a first server, wherein the working state comprises a fault state and a normal state, and the first server is a plurality of servers which work with a first three-party interface service link in a first data center;
if the working state is a normal state, accessing the first three-party interface service through the first data center;
if the working state is a fault state, accessing the first three-party interface service through a second data center;
the reading the working state of the first three-party interface service of the first server, wherein the working state comprises a fault state and a normal state and comprises the following steps:
obtaining a first three-party interface service list;
obtaining a first preset detection period;
detecting the first three-party interface service list according to the first preset detection period to obtain a first detection result, wherein the first detection result comprises a first fault three-party interface service name;
storing the first fault three-way interface service name into a first database, and setting a first storage time, wherein the first storage time is longer than the first preset detection period;
marking the first three-party interface service corresponding to the first fault three-party interface service name to obtain first identification information;
acquiring the working state of the first three-party interface service according to the first identification information;
wherein, the storing the first fault three-way interface service name into a first database, setting a first storage time, and further comprises:
when the first fault three-way interface service name is stored in a first database, a first timing system is started, and a first storage timing is obtained;
and when the first storage timing is equal to the first storage time, the first three-party interface service corresponding to the first fault three-party interface service name is recovered to a normal working state.
2. The method of claim 1, wherein before storing the first failure three-way interface service name in a first database, further comprising:
traversing in the first database according to the first fault three-party interface service name, and judging whether the first database stores the first fault three-party interface service name or not;
if the first database stores the first fault three-way interface service name, updating the storage time of the first fault three-way interface service name to obtain a second storage time.
3. The method of claim 1, wherein the method further comprises:
the first data center comprises the first server and a first database.
4. The method of claim 1, wherein accessing the first three-way interface service through a first data center if the operational state is a normal state comprises:
accessing a first internet device through the first data center, wherein the first data center comprises the first internet device;
the first third party interface service is accessed through the first internet device.
5. The method of claim 1, wherein accessing the first three-way interface service through a second data center if the operational state is a failure state comprises
Accessing a second internet appliance through the second data center, wherein the second data center includes the second internet appliance;
and accessing the first three-party interface service through the second internet device.
6. A three-way interface service failover intelligent switching system, wherein the system comprises:
the first reading unit is used for reading the working state of the first three-party interface service of a first server, wherein the working state comprises a fault state and a normal state, and the first server is a plurality of servers which are in a first data center and work with the first three-party interface service in a linked mode;
the first access unit is used for accessing the first three-party interface service through the first data center if the working state is a normal state;
the second access unit is used for accessing the first three-party interface service through a second data center if the working state is a fault state;
the system further comprises:
the first obtaining unit is used for obtaining a first three-party interface service list;
a second obtaining unit for obtaining a first preset detection period;
the third obtaining unit is used for detecting the first three-party interface service list according to the first preset detection period to obtain a first detection result, wherein the first detection result comprises a first fault three-party interface service name;
the first storage unit is used for storing the first fault three-way interface service name into a first database and setting a first storage time, wherein the first storage time is longer than the first preset detection period;
the first identification unit is used for marking the first three-party interface service corresponding to the first fault three-party interface service name to obtain first identification information;
a fourth obtaining unit, configured to obtain, according to the first identification information, a service working state of the first three-way interface;
a fifth obtaining unit, configured to start a first timing system when the first failure three-way interface service name is stored in the first database, to obtain a first storage timing;
and the first recovery unit is used for recovering the first three-party interface service corresponding to the first fault three-party interface service name to a normal working state when the first storage timing is equal to the first storage time.
7. A three-way interface service failover intelligent switching system, comprising: a processor coupled to a memory for storing a program that, when executed by the processor, causes the system to perform the method of any one of claims 1 to 5.
CN202110972764.7A 2021-08-24 2021-08-24 Intelligent switching method and system for three-way interface service faults Active CN113778763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110972764.7A CN113778763B (en) 2021-08-24 2021-08-24 Intelligent switching method and system for three-way interface service faults

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110972764.7A CN113778763B (en) 2021-08-24 2021-08-24 Intelligent switching method and system for three-way interface service faults

Publications (2)

Publication Number Publication Date
CN113778763A CN113778763A (en) 2021-12-10
CN113778763B true CN113778763B (en) 2023-10-24

Family

ID=78838990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110972764.7A Active CN113778763B (en) 2021-08-24 2021-08-24 Intelligent switching method and system for three-way interface service faults

Country Status (1)

Country Link
CN (1) CN113778763B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302350B (en) * 2021-12-30 2023-06-20 胜斗士(上海)科技技术发展有限公司 Service provider failover method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721223A (en) * 2016-03-30 2016-06-29 苏州美天网络科技有限公司 Network server system with backup service function
CN109698765A (en) * 2017-10-23 2019-04-30 慧与发展有限责任合伙企业 The transfer of server network interface grade failure
CN111385170A (en) * 2020-03-18 2020-07-07 杭州迪普科技股份有限公司 Interface state synchronization system and method thereof
CN112395155A (en) * 2020-11-06 2021-02-23 微民保险代理有限公司 Service monitoring method and device, storage medium and electronic device
CN112583648A (en) * 2021-02-24 2021-03-30 北京城建设计发展集团股份有限公司 Intelligent service fault processing method based on DNS
CN212933511U (en) * 2020-05-29 2021-04-09 北京赛博云睿智能科技有限公司 Distributed processing system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092395B2 (en) * 2012-12-20 2015-07-28 International Business Machines Corporation Provide an appliance like test vehicle for IT disaster recovery
US10409697B2 (en) * 2017-02-23 2019-09-10 Salesforce.Com, Inc. Automated self-healing database system and method for implementing the same
US10394670B2 (en) * 2017-06-02 2019-08-27 Verizon Patent And Licensing Inc. High availability and disaster recovery system architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721223A (en) * 2016-03-30 2016-06-29 苏州美天网络科技有限公司 Network server system with backup service function
CN109698765A (en) * 2017-10-23 2019-04-30 慧与发展有限责任合伙企业 The transfer of server network interface grade failure
CN111385170A (en) * 2020-03-18 2020-07-07 杭州迪普科技股份有限公司 Interface state synchronization system and method thereof
CN212933511U (en) * 2020-05-29 2021-04-09 北京赛博云睿智能科技有限公司 Distributed processing system
CN112395155A (en) * 2020-11-06 2021-02-23 微民保险代理有限公司 Service monitoring method and device, storage medium and electronic device
CN112583648A (en) * 2021-02-24 2021-03-30 北京城建设计发展集团股份有限公司 Intelligent service fault processing method based on DNS

Also Published As

Publication number Publication date
CN113778763A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
US10491671B2 (en) Method and apparatus for switching between servers in server cluster
CN111355610A (en) Exception handling method and device based on edge network
CN107682172B (en) Control center device, service system processing method and medium
CN111901176B (en) Fault determination method, device, equipment and storage medium
US7278048B2 (en) Method, system and computer program product for improving system reliability
CN113778763B (en) Intelligent switching method and system for three-way interface service faults
CN108243031B (en) Method and device for realizing dual-computer hot standby
CN109271270A (en) The troubleshooting methodology, system and relevant apparatus of bottom hardware in storage system
CN116719657A (en) Firmware fault log generation method, device, server and readable medium
CN116319421A (en) Fault detection method and device based on cloud platform, fault detection system and medium
CN114528350B (en) Cluster brain fracture processing method, device, equipment and readable storage medium
CN114168071B (en) Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium
CN115269252A (en) Application program fault processing method, device, equipment and storage medium
CN113596195B (en) Public IP address management method, device, main node and storage medium
CN115268785A (en) Management method and device applied to distributed storage system and storage medium
CN112068935A (en) Method, device and equipment for monitoring deployment of kubernets program
CN113238893A (en) Disaster recovery system, method, computer device and medium for multiple data centers
US20220342788A1 (en) Anomaly location estimating apparatus, method, and program
CN111090491A (en) Method and device for recovering task state of virtual machine and electronic equipment
CN116506327B (en) Physical node monitoring method, device, computer equipment and storage medium
CN115473793B (en) Automatic recovery method, device, terminal and medium for cluster EI host environment
CN115269556A (en) Database fault processing method, device, equipment and storage medium
CN114020399A (en) Service fault detection method and device for switch operating system
JPH10171683A (en) Fault information management device
CN115484267A (en) Multi-cluster deployment processing method and device, electronic equipment and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100000 floors 1-3, block a, global creative Plaza, No. 10, Furong street, Chaoyang District, Beijing

Applicant after: Bairong Zhixin (Beijing) Technology Co.,Ltd.

Address before: 100000 floors 1-3, block a, global creative Plaza, No. 10, Furong street, Chaoyang District, Beijing

Applicant before: Bairong Zhixin (Beijing) credit investigation Co.,Ltd.

GR01 Patent grant
GR01 Patent grant