CN112866030A - Flow switching method, device, equipment and storage medium - Google Patents
Flow switching method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112866030A CN112866030A CN202110153047.1A CN202110153047A CN112866030A CN 112866030 A CN112866030 A CN 112866030A CN 202110153047 A CN202110153047 A CN 202110153047A CN 112866030 A CN112866030 A CN 112866030A
- Authority
- CN
- China
- Prior art keywords
- target interface
- performance index
- data center
- index data
- preset threshold
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a traffic switching method, a device, equipment and a storage medium, wherein the traffic switching method comprises the following steps: acquiring performance index data and interface state information of a target interface of a first data center; judging whether the target interface is in a flow switching state or not according to the interface state information; when the target interface is not in a flow cutting state, judging whether the performance index data is greater than or equal to a first preset threshold value; when the performance index data is greater than or equal to a first preset threshold, judging whether the performance index data is greater than or equal to a second preset threshold; and when the performance index data is greater than or equal to a second preset threshold value, performing flow switching on the target interface. The data center service stability improvement method and device achieve the purpose of improving the stability of the data center service.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, a device, and a storage medium for switching traffic.
Background
The multi-activity data center refers to a data center with two or more than two data centers simultaneously bearing various business production and operation functions of enterprises so as to improve the overall service capacity and the system resource utilization rate of the data centers, and the multi-activity service center refers to a server cluster which is deployed in a plurality of independent data centers and provides the same service interface. In the current architecture of a multi-active data center, when a certain data center has a serious disaster or failure, switching of service traffic is triggered, and the service traffic carried by the failed data center is switched to another data center, but at this time, a part of ongoing service flows are affected by the failure, the operation of a part of users is interrupted by the failure, and the stability of the data center to external services is poor, which seriously affects user experience.
Disclosure of Invention
An object of the present invention is to provide a method, an apparatus, a device, and a storage medium for switching traffic, so as to improve stability of data center services.
A first aspect of the embodiments of the present application provides a traffic switching method, including: acquiring performance index data and interface state information of a target interface of a first data center; judging whether the target interface is in a flow switching state or not according to the interface state information; when the target interface is not in a flow cutting state, judging whether the performance index data is greater than or equal to a first preset threshold value; when the performance index data is greater than or equal to a first preset threshold, judging whether the performance index data is greater than or equal to a second preset threshold; and when the performance index data is greater than or equal to a second preset threshold value, performing flow switching on the target interface.
In one embodiment, the method further comprises: and outputting first early warning information when the performance index data is smaller than a second preset threshold value.
In one embodiment, the method further comprises: when the target interface is in a flow switching state, judging whether the flow switching time length of the target interface reaches a first preset time length; and when the current switching duration of the target interface reaches a first preset duration, carrying out flow recovery on the target interface according to the performance index data.
In an embodiment, the performing the flow cutting on the target interface includes: acquiring performance index data of the target interface of a second data center; judging whether the performance index data is greater than or equal to the first preset threshold value or not; if the performance index data is larger than or equal to a first preset threshold value, outputting second early warning information; if the performance index data is smaller than a first preset threshold value, detecting the availability of the target interface of the second data center; switching traffic of the target interface of the first data center to the target interface of the second data center when the target interface of the second data center is available; and updating interface state information of the target interface of the first data center.
In an embodiment, the detecting the availability of the target interface of the second data center includes: sending a test request to the target interface of the second data center; judging whether error information is received or not; if error information is received, the target interface of the second data center is unavailable; if no error message is received, the target interface of the second data center is available.
In an embodiment, the performing, according to the performance indicator data, traffic recovery on the target interface includes: detecting an availability of the target interface of the first data center; when the target interface of the first data center is available, scheduling flow to the target interface of the first data center according to a preset proportion; and updating interface state information of the target interface of the first data center.
A second aspect of the embodiments of the present application provides a traffic switching apparatus, including: the acquisition module is used for acquiring performance index data and interface state information of a target interface of the first data center; the first judgment module is used for judging whether the target interface is in a flow switching state or not according to the interface state information; the second judging module is used for judging whether the performance index data is larger than or equal to a first preset threshold value or not when the target interface is not in a tangential flow state; the third judging module is used for judging whether the performance index data is greater than or equal to a second preset threshold value or not when the performance index data is greater than or equal to a first preset threshold value; and the flow switching module is used for switching the flow of the target interface when the performance index data is greater than or equal to a second preset threshold value.
In one embodiment, the method further comprises: and the output module is used for outputting first early warning information when the performance index data is smaller than a second preset threshold value.
In one embodiment, the method further comprises: the fourth judging module is used for judging whether the current switching time length of the target interface reaches a first preset time length or not when the target interface is in the current switching state; and the recovery module is used for carrying out flow recovery on the target interface according to the performance index data when the flow switching duration of the target interface reaches a first preset duration.
In one embodiment, the tangential flow module is configured to: acquiring performance index data of the target interface of a second data center; judging whether the performance index data is greater than or equal to the first preset threshold value or not; if the performance index data is larger than or equal to a first preset threshold value, outputting second early warning information; if the performance index data is smaller than a first preset threshold value, detecting the availability of the target interface of the second data center; switching traffic of the target interface of the first data center to the target interface of the second data center when the target interface of the second data center is available; and updating interface state information of the target interface of the first data center.
In one embodiment, the tangential flow module is specifically configured to: sending a test request to the target interface of the second data center; judging whether error information is received or not; if error information is received, the target interface of the second data center is unavailable; if no error message is received, the target interface of the second data center is available.
In one embodiment, the recovery module is configured to: detecting an availability of the target interface of the first data center; when the target interface of the first data center is available, scheduling flow to the target interface of the first data center according to a preset proportion; and updating interface state information of the target interface of the first data center.
A third aspect of embodiments of the present application provides an electronic device, including: a memory to store a computer program; a processor configured to perform the method of the first aspect of the embodiments of the present application and any of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a non-transitory electronic device-readable storage medium, including: a program which, when run by an electronic device, causes the electronic device to perform the method of the first aspect of an embodiment of the present application and any embodiment thereof.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic view of an application scenario of a traffic switching method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a traffic switching method according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating the sub-steps of step 350 according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a flow switching device according to an embodiment of the present application.
Reference numerals:
100-electronic equipment, 110-bus, 120-processor, 130-memory, 210-first data center, 220-second data center, 500-flow switching device, 510-obtaining module, 520-first judging module, 530-second judging module, 540-third judging module, 550-current switching module, 560-output module, 570-fourth judging module and 580-recovery module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In the description of the present application, the terms "first," "second," and the like are used for distinguishing between descriptions and do not denote an order of magnitude, nor are they to be construed as indicating or implying relative importance.
In the description of the present application, the terms "comprises," "comprising," and/or the like, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof.
In the description of the present application, the terms "mounted," "disposed," "provided," "connected," and "configured" are to be construed broadly unless expressly stated or limited otherwise. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be mechanically or electrically connected; either directly or indirectly through intervening media, or may be internal to two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Please refer to fig. 1, which is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application, and includes at least one processor 120 and a memory 130, where fig. 1 illustrates one processor as an example. The processors 120 and the memory 130 are coupled by a bus 110, and the memory 130 stores instructions executable by the at least one processor 120, the instructions being executed by the at least one processor 120 to cause the at least one processor 120 to perform a traffic switching method as in the embodiments described below.
In one embodiment, the Processor 120 may be a general-purpose Processor, including but not limited to a Central Processing Unit (CPU), a Network Processor (NP), etc., a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 120 is the control center of the electronic device 100 and connects the various parts of the entire electronic device 100 using various interfaces and lines. The processor 120 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application.
In one embodiment, the Memory 130 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, including but not limited to Random Access Memory (RAM), Read Only Memory (ROM), Static Random Access Memory (SRAM), Programmable Read-Only Memory (PROM), Erasable Read-Only Memory (EPROM), electrically Erasable Read-Only Memory (EEPROM), and the like.
The structure of the electronic device 100 shown in fig. 1 is merely illustrative, and the electronic device 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
As shown in fig. 2, which is a schematic view of an application scenario of the traffic switching method according to an embodiment of the present application, in the scenario of a multi-activity data center, the data center may also be referred to as a computer room, in this embodiment, two data centers are taken as an example, which are a first data center 210 and a second data center 220, respectively, and the first data center 210 and the second data center 220 are connected through a network, where the network may be any wired and/or wireless network. Alternatively, the network may include, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a Virtual Private Network (VPN), a wireless communication network, and so forth. The first data center 210 includes a server cluster that may provide a plurality of service interfaces, and the second data center 220 includes a server cluster that may provide the same service interfaces as the first data center 210.
Fig. 3 is a flowchart illustrating a traffic switching method according to an embodiment of the present application, where the method may be executed by the electronic device 100 shown in fig. 1 to improve stability of data center services. The method comprises the following steps:
step 310: and acquiring performance index data and interface state information of a target interface of the first data center.
In the above step, the target interface may be any one of a plurality of service interfaces of the first data center, and the performance index data includes: the average response time, the 1s timeout rate and the response error rate, wherein the interface state information is used for representing the current traffic state of a corresponding interface of a certain service in a certain data center, and comprises the following steps: a normal state and a tangential state, in one embodiment, the tangential state may include: the method comprises the steps of cut flow, initial recovery and half recovery, wherein the cut flow refers to that the interface flow is switched to other data centers except a first data center, the initial recovery refers to that a small part of the interface flow is in the first data center and a large part of the interface flow is in other data centers, and the half recovery refers to that the initial recovery state is kept for a state exceeding a preset time period.
Step 320: and judging whether the target interface is in a flow switching state or not according to the interface state information.
In the above steps, it is determined whether the target interface is in the flow switching state, if the target interface is not in the flow switching state, step 330 is executed, and if the target interface is in the flow switching state, step 370 is executed. In an embodiment, if the interface state information is a cut flow, an initial recovery, or a semi-recovery, it indicates that the target interface is in a cut flow state.
Step 330: and judging whether the performance index data is greater than or equal to a first preset threshold value.
In the above steps, the performance index data being greater than or equal to the first preset threshold indicates that the interface has a failure risk, which may cause a corresponding service interruption, and determines whether the performance index data is greater than or equal to the first preset threshold, if the performance index data is greater than or equal to the first preset threshold, step 340 is executed, and if the performance index data is less than the first preset threshold, the process is ended.
Step 340: and judging whether the performance index data is greater than or equal to a second preset threshold value.
In the above steps, the second preset threshold is greater than the first preset threshold, the performance index data being greater than or equal to the second preset threshold indicates that there is a great fault risk in the interface, and it is determined whether the performance index data is greater than or equal to the second preset threshold, if the performance index data is greater than or equal to the second preset threshold, step 350 is executed, and if the performance index data is less than the second preset threshold, step 360 is executed.
In an embodiment, the first preset threshold may include a first average response time threshold, a first 1s timeout rate threshold, and a first response error rate threshold, and the second preset threshold may include a second average response time threshold, a second 1s timeout rate threshold, and a second response error rate threshold, respectively, where any one of the average response time, the 1s timeout rate, and the response error rate is greater than or equal to its corresponding threshold, and is that the performance indicator data is greater than or equal to the second preset threshold.
In an embodiment, the first preset threshold and the second preset threshold may be set according to actual service requirements and service history data, and different first preset thresholds and different second preset thresholds may be set for different types of service interfaces, respectively.
For example, in a search engine, for an interface that undertakes primary search services, the first average response time threshold may be 60ms, the first 1s timeout rate threshold may be 0.2%, the first response error rate threshold may be 0.2%, the second average response time threshold may be 120ms, the second 1s timeout rate threshold may be 0.3%, and the second response error rate threshold may be 0.3%, for an interface that does not undertake primary search services, the first average response time threshold may be 80ms, the first 1s timeout rate threshold may be 0.5%, the first response error rate threshold may be 0.5%, the second average response time threshold may be 150ms, the second 1s timeout rate threshold may be 0.8%, and the second response error rate threshold may be 0.8%.
Step 350: and performing flow cutting on the target interface.
In the above steps, the flow of the target interface of the first data center may be switched to other data centers, the performance index data of the target interface of the other data centers should be smaller than a first preset threshold, and if there is no data center whose performance index data of the target interface is smaller than the first preset threshold in the current scene, only the alarm information is output, and no flow switching is performed.
For example, the current scenario only includes two data centers, the performance index data of the target interface of one data center is greater than a second preset threshold, and if the performance index data of the target interface of another data center is smaller than a first preset threshold, the target interface traffic of the data center whose performance index data is greater than the second preset threshold may be switched to another data center; and if the performance index data of the target interface of the other data center is greater than or equal to a first preset threshold, only outputting alarm information and not performing flow switching.
Step 360: and outputting the first early warning information.
In the above steps, the first warning information is used to prompt the operation and maintenance personnel that the service interface has a failure risk and needs to be processed as soon as possible.
Step 370: and judging whether the stream switching time length of the target interface reaches a first preset time length.
In the above steps, the flow switching duration of the target interface refers to the duration that the target interface is in the flow switching state, and it is determined whether the flow switching duration of the target interface reaches the first preset duration, if the flow switching duration of the target interface reaches the first preset duration, step 380 is executed, and if the flow switching duration of the target interface does not reach the first preset duration, step 370 is repeated. In one embodiment, the first predetermined time period may be generally 10 minutes to 20 minutes.
Step 380: and according to the performance index data, carrying out flow recovery on the target interface.
In an embodiment, performing traffic recovery on the target interface according to the performance indicator data includes: detecting availability of a target interface of a first data center; when the target interface of the first data center is available, scheduling the flow to the target interface of the first data center according to a preset proportion; and updating interface state information of a target interface of the first data center.
In the above step, part of the traffic may be switched back to the target interface of the first data center, the interface state information of the target interface of the first data center is updated to the initial recovery state, after a second preset time, the performance index data of the target interface of the first data center is obtained again, whether the performance index data is greater than or equal to a third preset threshold is determined, if the performance index data is greater than or equal to the third preset threshold, the switched back part of the traffic is switched back again, and the interface state information of the target interface of the first data center is updated to the switched state.
And if the performance index data is smaller than a third preset threshold value, updating the interface state information of the target interface of the first data center to be in a semi-recovery state. And after the third preset time, acquiring the performance index data of the target interface of the first data center again, judging whether the performance index data is greater than or equal to a fourth preset threshold, if so, re-switching the switched-back part of the flow, updating the interface state information of the target interface of the first data center to be a switched flow state, and if the performance index data is less than the fourth preset threshold, switching all the flow switched-back from the target interface of the first data center to the first data center, and updating the interface state information of the target interface of the first data center to be a normal state.
The second predetermined time period is generally less than the third predetermined time period, and in an embodiment, the second predetermined time period may be one minute, and the third predetermined time period may be three minutes to five minutes.
In an embodiment, each service interface of the first data center may be sequentially used as a target interface, and the steps 310 to 380 may be repeatedly performed, so as to detect all the service interfaces.
According to the traffic switching method, the performance index data of each service interface of each data center is detected, when the condition that the service is unavailable according to the performance index data is judged, early warning and traffic switching are carried out on the service interface with the risk in advance, the service flow is prevented from being influenced when the service fails, and the stability of the service of the data center is improved. Meanwhile, after the flow is switched to other data centers, whether the service interface is available in the original data center or not is automatically detected, and when the original data center is available, the flow is switched back in batches, so that the pressure on other data centers caused by the long-term flow in other data centers is avoided, and the waste of server resources is also avoided.
As shown in fig. 4, which is a schematic flow chart of the sub-steps of step 350 in an embodiment of the present application, step 350: the flow cutting of the target interface may include:
step 351: and acquiring performance index data of a target interface of the second data center.
In the above steps, the second data center refers to a data center other than the first data center in the scene.
Step 352: and judging whether the performance index data is greater than or equal to a first preset threshold value.
In the above steps, it is determined whether the performance index data is greater than or equal to the first preset threshold, if the performance index data is greater than or equal to the first preset threshold, step 353 is executed, and if the performance index data is less than the first preset threshold, step 354 is executed.
Step 353: and outputting second early warning information.
In the above steps, the second warning information is used to prompt the operation and maintenance personnel that there is a great risk of failure in the service interface and needs to be immediately processed.
Step 354: availability of a target interface of a second data center is detected.
In one embodiment, detecting the availability of the target interface of the second data center includes: sending a test request to a target interface of a second data center; judging whether error information is received or not; if the error report information is received, the target interface of the second data center is unavailable; if the error message is not received, the target interface of the second data center is available.
Step 355: and when the target interface of the second data center is available, switching the flow of the target interface of the first data center to the target interface of the second data center.
Step 356: and updating interface state information of a target interface of the first data center.
In the above steps, the interface state information of the target interface of the first data center is updated to the cut flow state, and the cut flow duration is recorded.
As shown in fig. 5, which is a schematic structural diagram of a traffic switching apparatus 500 according to an embodiment of the present application, the apparatus can be applied to the electronic device 100 shown in fig. 1, and includes: the device comprises an acquisition module 510, a first judgment module 520, a second judgment module 530, a third judgment module 540 and a flow cutting module 550. The principle relationship of the modules is as follows:
the obtaining module 510 is configured to obtain performance index data and interface state information of a target interface of a first data center.
The first determining module 520 is configured to determine whether the target interface is in a flow cut state according to the interface state information.
A second determining module 530, configured to determine whether the performance indicator data is greater than or equal to the first preset threshold when the target interface is not in the flow switching state.
The third determining module 540 is configured to determine whether the performance indicator data is greater than or equal to a second preset threshold value when the performance indicator data is greater than or equal to the first preset threshold value.
And a flow switching module 550, configured to switch the target interface when the performance indicator data is greater than or equal to a second preset threshold.
In an embodiment, the flow switching device 500 further includes: the output module 560 is configured to output the first warning information when the performance index data is smaller than a second preset threshold.
In an embodiment, the flow switching device 500 further includes: the fourth judging module 570 is configured to, when the target interface is in the flow switching state, judge whether the flow switching duration of the target interface reaches a first preset duration; and a recovery module 580, configured to perform traffic recovery on the target interface according to the performance index data when the flow switching duration of the target interface reaches a first preset duration.
In one embodiment, the tangential flow module 550 is configured to: acquiring performance index data of a target interface of a second data center; judging whether the performance index data is greater than or equal to a first preset threshold value or not; if the performance index data is larger than or equal to the first preset threshold value, outputting second early warning information; if the performance index data is smaller than a first preset threshold value, detecting the availability of a target interface of a second data center; when the target interface of the second data center is available, switching the flow of the target interface of the first data center to the target interface of the second data center; and updating interface state information of a target interface of the first data center.
In one embodiment, the tangential flow module 550 is specifically configured to: sending a test request to a target interface of a second data center; judging whether error information is received or not; if the error report information is received, the target interface of the second data center is unavailable; if the error message is not received, the target interface of the second data center is available.
In one embodiment, the recovery module 580 is configured to: detecting availability of a target interface of a first data center; when the target interface of the first data center is available, scheduling the flow to the target interface of the first data center according to a preset proportion; and updating interface state information of a target interface of the first data center.
For a detailed description of the above flow switching device 500, please refer to the description of the related method steps in the above embodiments.
An embodiment of the present invention further provides a storage medium readable by an electronic device, including: a program that, when run on an electronic device, causes the electronic device to perform all or part of the procedures of the methods in the above-described embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like. The storage medium may also comprise a combination of memories of the kind described above.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).
In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The above description is only a preferred embodiment of the present application, and is only for the purpose of illustrating the technical solutions of the present application, and not for the purpose of limiting the present application. Any modification, equivalent replacement, improvement or the like, which would be obvious to one of ordinary skill in the art and would be within the spirit and principle of the present application, should be included within the scope of the present application.
Claims (10)
1. A traffic switching method, comprising:
acquiring performance index data and interface state information of a target interface of a first data center;
judging whether the target interface is in a flow switching state or not according to the interface state information;
when the target interface is not in a flow cutting state, judging whether the performance index data is greater than or equal to a first preset threshold value;
when the performance index data is greater than or equal to a first preset threshold, judging whether the performance index data is greater than or equal to a second preset threshold;
and when the performance index data is greater than or equal to a second preset threshold value, performing flow switching on the target interface.
2. The method of claim 1, further comprising:
and outputting first early warning information when the performance index data is smaller than a second preset threshold value.
3. The method of claim 1, further comprising:
when the target interface is in a flow switching state, judging whether the flow switching time length of the target interface reaches a first preset time length;
and when the current switching duration of the target interface reaches a first preset duration, carrying out flow recovery on the target interface according to the performance index data.
4. The method of claim 1, wherein the offloading the target interface comprises:
acquiring performance index data of the target interface of a second data center;
judging whether the performance index data is greater than or equal to the first preset threshold value or not;
if the performance index data is larger than or equal to a first preset threshold value, outputting second early warning information;
if the performance index data is smaller than a first preset threshold value, detecting the availability of the target interface of the second data center;
switching traffic of the target interface of the first data center to the target interface of the second data center when the target interface of the second data center is available;
and updating interface state information of the target interface of the first data center.
5. The method of claim 4, wherein the detecting the availability of the target interface of the second data center comprises:
sending a test request to the target interface of the second data center;
judging whether error information is received or not;
if error information is received, the target interface of the second data center is unavailable;
if no error message is received, the target interface of the second data center is available.
6. The method of claim 3, wherein the performing traffic restoration on the target interface according to the performance indicator data comprises:
detecting an availability of the target interface of the first data center;
when the target interface of the first data center is available, scheduling flow to the target interface of the first data center according to a preset proportion;
and updating interface state information of the target interface of the first data center.
7. A flow switching device, comprising:
the acquisition module is used for acquiring performance index data and interface state information of a target interface of the first data center;
the first judgment module is used for judging whether the target interface is in a flow switching state or not according to the interface state information;
the second judging module is used for judging whether the performance index data is larger than or equal to a first preset threshold value or not when the target interface is not in a tangential flow state;
the third judging module is used for judging whether the performance index data is greater than or equal to a second preset threshold value or not when the performance index data is greater than or equal to a first preset threshold value;
and the flow switching module is used for switching the flow of the target interface when the performance index data is greater than or equal to a second preset threshold value.
8. The apparatus of claim 7, further comprising:
the output module is used for outputting first early warning information when the performance index data is smaller than a second preset threshold value;
the fourth judging module is used for judging whether the current switching time length of the target interface reaches a first preset time length or not when the target interface is in the current switching state;
and the recovery module is used for carrying out flow recovery on the target interface according to the performance index data when the flow switching duration of the target interface reaches a first preset duration.
9. An electronic device, comprising:
a memory to store a computer program;
a processor to perform the method of any one of claims 1 to 6.
10. A non-transitory electronic device readable storage medium, comprising: program which, when run by an electronic device, causes the electronic device to perform the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110153047.1A CN112866030B (en) | 2021-02-03 | 2021-02-03 | Flow switching method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110153047.1A CN112866030B (en) | 2021-02-03 | 2021-02-03 | Flow switching method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112866030A true CN112866030A (en) | 2021-05-28 |
CN112866030B CN112866030B (en) | 2022-08-12 |
Family
ID=75986576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110153047.1A Active CN112866030B (en) | 2021-02-03 | 2021-02-03 | Flow switching method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112866030B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115834344A (en) * | 2022-11-16 | 2023-03-21 | 中国工商银行股份有限公司 | Flow switching method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6819664B1 (en) * | 1999-02-05 | 2004-11-16 | Lg Electronics Inc. | Voice communication system |
CN104184661A (en) * | 2014-08-27 | 2014-12-03 | 中国联合网络通信集团有限公司 | Service back-fitting control method and device |
US20160000337A1 (en) * | 2014-07-04 | 2016-01-07 | ARC Devices, Ltd | Thermometer having a digital infrared sensor |
CN107872402A (en) * | 2017-11-15 | 2018-04-03 | 北京奇艺世纪科技有限公司 | The method, apparatus and electronic equipment of global traffic scheduling |
CN108199861A (en) * | 2016-12-08 | 2018-06-22 | 腾讯科技(深圳)有限公司 | A kind of computer lab management method and device |
CN108809730A (en) * | 2018-06-25 | 2018-11-13 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that stream is cut in computer room control |
CN110086711A (en) * | 2019-04-29 | 2019-08-02 | 新华三技术有限公司 | Flow switchback method, apparatus, electronic equipment and readable storage medium storing program for executing |
-
2021
- 2021-02-03 CN CN202110153047.1A patent/CN112866030B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6819664B1 (en) * | 1999-02-05 | 2004-11-16 | Lg Electronics Inc. | Voice communication system |
US20160000337A1 (en) * | 2014-07-04 | 2016-01-07 | ARC Devices, Ltd | Thermometer having a digital infrared sensor |
CN104184661A (en) * | 2014-08-27 | 2014-12-03 | 中国联合网络通信集团有限公司 | Service back-fitting control method and device |
CN108199861A (en) * | 2016-12-08 | 2018-06-22 | 腾讯科技(深圳)有限公司 | A kind of computer lab management method and device |
CN107872402A (en) * | 2017-11-15 | 2018-04-03 | 北京奇艺世纪科技有限公司 | The method, apparatus and electronic equipment of global traffic scheduling |
CN108809730A (en) * | 2018-06-25 | 2018-11-13 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that stream is cut in computer room control |
CN110086711A (en) * | 2019-04-29 | 2019-08-02 | 新华三技术有限公司 | Flow switchback method, apparatus, electronic equipment and readable storage medium storing program for executing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115834344A (en) * | 2022-11-16 | 2023-03-21 | 中国工商银行股份有限公司 | Flow switching method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112866030B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109495322B (en) | Network fault positioning method, related equipment and computer storage medium | |
CN110213068B (en) | Message middleware monitoring method and related equipment | |
EP3379419A2 (en) | Situation analysis | |
US20180212819A1 (en) | Troubleshooting Method and Apparatus | |
CN108737132B (en) | Alarm information processing method and device | |
CN110740072B (en) | Fault detection method, device and related equipment | |
CN108989135B (en) | Network equipment fault detection method and device | |
JP2015510201A (en) | Method and apparatus for rapid disaster recovery preparation in a cloud network | |
WO2021208184A1 (en) | Method and system for calling-in and recovery of node traffic and central server | |
US8516295B2 (en) | System and method of collecting and reporting exceptions associated with information technology services | |
CN110677480B (en) | Node health management method and device and computer readable storage medium | |
WO2018125628A1 (en) | A network monitor and method for event based prediction of radio network outages and their root cause | |
US20170351560A1 (en) | Software failure impact and selection system | |
CN109101371B (en) | Disaster recovery switching method and device | |
CN112866030B (en) | Flow switching method, device, equipment and storage medium | |
CN114363151A (en) | Fault detection method and device, electronic equipment and storage medium | |
CN110875841A (en) | Alarm information pushing method and device and readable storage medium | |
CN106878096B (en) | VNF state detection notification method, device and system | |
CN111565133B (en) | Private line switching method and device, electronic equipment and computer readable storage medium | |
CN114168071B (en) | Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium | |
CN107968727A (en) | A kind of detection method, device and the medium of CIFS services | |
CN117880053A (en) | Method, apparatus, device, storage medium and program product for providing alarm | |
CN109510730B (en) | Distributed system, monitoring method and device thereof, electronic equipment and storage medium | |
CN108512698B (en) | Network disaster tolerance method and device and electronic equipment | |
CN107025148B (en) | Mass data processing method and device |
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 |