Disclosure of Invention
The invention mainly aims to provide a system abnormal off-hook method, a device, a system and a readable storage medium, which aim to solve the problem of how to improve the accuracy of the system abnormal off-hook.
In order to achieve the above object, the present invention provides a system abnormal off-hook method, which includes the following steps:
acquiring monitoring data of a system according to a preset time interval, and determining an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data;
determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is off-hook according to the total application flow;
and/or determining the number of the online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, disconnecting the abnormal instance devices.
Optionally, the step of determining an abnormal interface and/or abnormal instance device in the system according to the monitoring data comprises:
acquiring interface error rate and interface response time corresponding to each interface in the monitoring data, and determining an abnormal interface in the system according to the interface error rate and the interface response time;
and/or obtaining an example equipment error rate and an example equipment response time corresponding to each example equipment in the monitoring data, and determining abnormal example equipment in the system according to the example equipment error rate and the example equipment response time.
Optionally, the step of determining an abnormal interface in the system according to the interface error rate and the interface response time includes:
comparing the interface error rate with an error rate threshold, and comparing the interface response time with a response time threshold;
and if the interface error rate is greater than the error rate threshold or the interface response time is greater than the response time threshold, determining that the interface corresponding to the interface error rate or the interface response time is an abnormal interface in the system.
Optionally, the step of determining an abnormal instance device in the system according to the instance device error rate and the instance device response time comprises:
comparing the error rate of the example equipment with an error rate threshold value, and comparing the response time of the example equipment with a response time threshold value;
and if the error rate of the instance equipment is larger than the error rate threshold or the response time of the instance equipment is larger than the response time threshold, determining that the instance equipment corresponding to the error rate of the instance equipment or the response time of the instance equipment is abnormal instance equipment in the system.
Optionally, if the abnormal interface is determined to be off-hook according to the total application flow, the step of closing the abnormal interface includes:
comparing the total flow of the application with a flow threshold;
if the total flow of the application is greater than the flow threshold, determining to take off the abnormal interface, determining the closing time of the abnormal interface, and closing the abnormal interface according to the closing time.
Optionally, if it is determined that the abnormal instance device is off-hook according to the number, the step of taking the abnormal instance device off line includes:
comparing the number to a number threshold;
if the number is greater than the number threshold, determining to take off the abnormal instance equipment, determining the offline time of the abnormal instance equipment, and offline the abnormal instance equipment according to the offline time.
Optionally, after the step of closing the abnormal interface and/or taking the abnormal instance device off line, the method includes:
opening the abnormal interface when the closing time length is determined to be reached or an opening instruction is received;
and/or, when the offline time is up or an online instruction is received, the abnormal instance equipment is online.
In addition, to achieve the above object, the present invention also provides a system abnormal off-hook apparatus, including:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for acquiring monitoring data of a system according to a preset time interval and determining an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data;
the closing module is used for determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is determined to be off-hook according to the total application flow;
and the offline module is used for determining the number of online instance equipment in the system, and if the abnormal instance equipment is off-hook according to the number, the abnormal instance equipment is offline.
Further, the determining module is further configured to:
acquiring interface error rate and interface response time corresponding to each interface in the monitoring data, and determining an abnormal interface in the system according to the interface error rate and the interface response time;
and/or obtaining an example equipment error rate and an example equipment response time corresponding to each example equipment in the monitoring data, and determining abnormal example equipment in the system according to the example equipment error rate and the example equipment response time.
Further, the determining module is further configured to:
comparing the interface error rate with an error rate threshold, and comparing the interface response time with a response time threshold;
and if the interface error rate is greater than the error rate threshold or the interface response time is greater than the response time threshold, determining that the interface corresponding to the interface error rate or the interface response time is an abnormal interface in the system.
Further, the determining module is further configured to:
comparing the error rate of the example equipment with an error rate threshold value, and comparing the response time of the example equipment with a response time threshold value;
and if the error rate of the instance equipment is larger than the error rate threshold or the response time of the instance equipment is larger than the response time threshold, determining that the instance equipment corresponding to the error rate of the instance equipment or the response time of the instance equipment is abnormal instance equipment in the system.
Further, the closing module is further configured to:
comparing the total flow of the application with a flow threshold;
if the total flow of the application is greater than the flow threshold, determining to take off the abnormal interface, determining the closing time of the abnormal interface, and closing the abnormal interface according to the closing time.
Further, the offline module is further configured to:
comparing the number to a number threshold;
if the number is greater than the number threshold, determining to take off the abnormal instance equipment, determining the offline time of the abnormal instance equipment, and offline the abnormal instance equipment according to the offline time.
Further, the determining module is further configured to:
opening the abnormal interface when the closing time length is determined to be reached or an opening instruction is received;
and/or, when the offline time is up or an online instruction is received, the abnormal instance equipment is online.
In addition, to achieve the above object, the present invention also provides an abnormal off-hook system, including: the system comprises a memory, a processor and a system exception off-hook program which is stored in the memory and can run on the processor, wherein the system exception off-hook program realizes the steps of the system exception off-hook method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a readable storage medium having stored thereon a system abnormal off-hook program which, when executed by a processor, implements the steps of the system abnormal off-hook method as described above.
The invention provides a system abnormal off-hook method, and discloses a system abnormal off-hook method, a device, a system and a readable storage medium, wherein the method comprises the following steps: acquiring monitoring data of the system according to a preset time interval, and determining an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data; determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is off-hook according to the total application flow; and/or determining the number of the online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, disconnecting the abnormal instance devices. The invention determines whether to close the abnormal interface according to the total application flow of the abnormal interface, determines whether to disconnect the abnormal example equipment according to the number of the online example equipment, comprehensively considers the influence of the off-hook on the system performance based on the total application flow and/or the number of the online example equipment, avoids the influence of the off-hook on the system performance, and further improves the accuracy of the off-hook.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be a PC or a server device.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a system abnormality off-hook program may be included in a memory 1005 as one type of computer storage medium.
The operating system is a program for managing and controlling the portable abnormal off-hook system and software resources and supports the operation of a network communication module, a user interface module, a system abnormal off-hook program and other programs or software; the network communication module is used to manage and control the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the abnormal off-hook system shown in fig. 1, the abnormal off-hook system executes a system abnormal off-hook program stored in a memory 1005 by a processor 1001 and performs operations in various embodiments of a system abnormal off-hook method described below.
Based on the hardware structure, the embodiment of the system abnormal off-hook method is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an abnormal off-hook method of the system according to the present invention, where the method includes:
step S10, acquiring monitoring data of a system according to a preset time interval, and determining an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data;
step S20, determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is determined to be off-hook according to the total application flow;
step S30, and/or determining the number of online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, disconnecting the abnormal instance devices.
The abnormal off-hook method of the system is applied to an abnormal off-hook system of a financial institution, the abnormal off-hook system can be applied to a terminal or PC equipment, the abnormal off-hook system is used for monitoring whether interfaces and example equipment in various systems such as a gateway system are abnormal, and on the premise of guaranteeing the performance of the system in abnormal conditions, the abnormal interfaces and/or off-line abnormal example equipment are closed, so that the abnormal off-hook system is described as an example for convenience of description; the abnormal off-hook system acquires monitoring data of the system according to a preset time interval, and determines an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data; the abnormal off-hook system determines the total application flow of the abnormal interface, and if the abnormal interface is off-hook according to the total application flow, the abnormal interface is closed; and/or the abnormal off-hook system determines the number of the online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, the abnormal instance devices are off-line. It should be noted that, the interface is a device in the system for receiving an access instruction or sending data to the outside, and the instance device is a device in the system in which various application instances are distributed, and typically, one application instance will be distributed to multiple devices.
According to the abnormal off-hook method of the system, monitoring data of the system are obtained according to a preset time interval, and an abnormal interface and/or abnormal instance equipment in the system are determined according to the monitoring data; determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is off-hook according to the total application flow; and/or determining the number of the online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, disconnecting the abnormal instance devices. The invention determines whether to close the abnormal interface according to the total application flow of the abnormal interface, determines whether to disconnect the abnormal example equipment according to the number of the online example equipment, comprehensively considers the influence of the off-hook on the system performance based on the total application flow and/or the number of the online example equipment, avoids the influence of the off-hook on the system performance, and further improves the accuracy of the off-hook.
The following will explain each step in detail:
step S10, acquiring monitoring data of a system according to a preset time interval, and determining an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data;
in this embodiment, the abnormal off-hook system obtains monitoring data of the system according to a preset time interval, and determines an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data; specifically, the abnormal off-hook system finds out the abnormality affecting the stable operation and the service quality of the system by analyzing the monitoring data based on the technologies of monitoring, cache refreshing, F5 flow intervention and the like, and further determines an abnormal interface and/or abnormal instance equipment in the system; it will be appreciated that in some abnormal situations, the system may only have an abnormal interface, in some abnormal situations, the system may only have an abnormal instance device, in some abnormal situations, the system may have both an abnormal interface and an abnormal instance device, and the specific need is determined by the abnormal off-hook system according to the acquired monitoring data of the system.
Specifically, step S10 includes:
step S101, obtaining interface error rate and interface response time corresponding to each interface in the monitoring data, and determining an abnormal interface in the system according to the interface error rate and the interface response time;
and/or;
step S102, obtaining an example device error rate and an example device response time corresponding to each example device in the monitoring data, and determining abnormal example devices in the system according to the example device error rate and the example device response time.
In step S101 to step S102, the abnormal off-hook system obtains the interface error rate and the interface response time corresponding to each interface in the monitoring data, and determines the abnormal interface in the system according to the interface error rate and the interface response time; the abnormal off-hook system acquires the error rate and the response time of the example equipment corresponding to each example equipment in the monitoring data, and determines abnormal example equipment in the system according to the error rate and the response time of the example equipment; it can be understood that the monitoring data includes an interface error rate and an interface response time corresponding to each interface and an instance device error rate and an instance device response time corresponding to each instance device, and the abnormal off-hook system can acquire the interface error rate, the interface response time, the instance device error rate and the instance device response time by querying the monitoring data, so that an abnormal interface and/or an abnormal instance device in the system are determined according to the interface error rate, the interface response time, the instance device error rate and the instance device response time.
Specifically, the abnormal off-hook system obtains the error number of each interface and the total access quantity of each interface on each channel and example equipment in monitoring data every 5 minutes (the specific time can be set according to actual conditions), obtains the response time of each interface and the total response time of each interface on each channel and example equipment, obtains the error number of each channel, interface and application example on each example equipment and the total access quantity of each example equipment, obtains the response time of each channel, interface and application example on each example equipment and the total access quantity of each example equipment, and obtains the monitoring data based on the data; the abnormal off-hook system calculates interface error rate and instance equipment error rate according to the acquired monitoring data, wherein the error number of the interface on each channel and machine/total access quantity of the interface = interface error rate, the error number of each channel, interface and application on the instance equipment/total access quantity of the application instance on the instance equipment = instance equipment error rate, and the abnormal off-hook system can be directly acquired from the monitoring data for interface response time and instance equipment response time.
Further, step S101 includes:
step S1011, comparing the interface error rate with an error rate threshold, and comparing the interface response time with a response time threshold;
step S1012, if the interface error rate is greater than the error rate threshold or the interface response time is greater than the response time threshold, determining that the interface corresponding to the interface error rate or the interface response time is an abnormal interface in the system.
In step S1011 to step S1012, after the abnormal off-hook system acquires the interface error rate and the interface response time, comparing the interface error rate with an error rate threshold, and comparing the interface response time with a response time threshold; if the interface error rate is greater than the error rate threshold or the interface response time is greater than the response time threshold, determining that the interface corresponding to the interface error rate or the interface response time is an abnormal interface in the system. It should be noted that, the error rate threshold and the response time threshold may be set according to practical situations, and when the interface error rate is too high or the interface response time is too long, the corresponding interface is basically incapable of providing services, so the corresponding interface is regarded as an abnormal interface. For example, the error rate threshold is set to 80% of the interface error rate, the abnormal off-hook system determines an interface with an interface error rate greater than 80% as an abnormal interface, or the abnormal off-hook system compares the interface response time of each interface with 2 times of the average response time of the interface near 7 days, if the interface response time is greater than 2 times of the average response time of the interface near 7 days, the interface response time is compared with a preset response time threshold (the preset response time threshold is a larger response time value, and can be set according to actual practice, for example, 2 seconds), and if the interface response time is greater than the preset response time threshold, the corresponding interface is determined to be an abnormal interface.
Further, step S102 includes:
step S1021, comparing the error rate of the example equipment with an error rate threshold value, and comparing the response time of the example equipment with a response time threshold value;
step S1022, if the error rate of the instance device is greater than the error rate threshold or the response time of the instance device is greater than the response time threshold, determining that the instance device corresponding to the error rate of the instance device or the response time of the instance device is an abnormal instance device in the system.
In steps S1021 to S1022, after obtaining the error rate of the instance device and the response time of the instance device, the abnormal off-hook system compares the error rate of the instance device with an error rate threshold, and compares the response time of the instance device with a response time threshold; if the error rate of the instance equipment is larger than the error rate threshold or the response time of the instance equipment is larger than the response time threshold, determining that the interface corresponding to the error rate of the instance equipment or the response time of the instance equipment is an abnormal interface in the system. It should be noted that, the error rate threshold and the response time threshold may be set according to practical situations, and when the error rate of the instance device is too high or the response time of the instance device is too long, the corresponding instance device is basically incapable of providing services, so that the corresponding instance device is regarded as an abnormal instance device. For example, the error rate threshold is set to be that the error rate of the instance device reaches 80%, the abnormal off-hook system determines the instance device with the error rate of the instance device being greater than 80% as an abnormal instance device, or the abnormal off-hook system compares the response time of the instance device of each instance device with 2 times of the average response time of the instance device in the near 7 days, if the response time of the instance device is greater than 2 times of the average response time of the instance device in the near 7 days, the response time of the instance device is compared with a preset response time threshold (the preset response time threshold is a larger response time value, and can be determined to be the abnormal instance device according to actual settings, for example, 2 seconds), and if the response time of the instance device is greater than the preset response time threshold, the corresponding instance device is determined to be the abnormal instance device.
Step S20, determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is determined to be off-hook according to the total application flow;
in this embodiment, the abnormal off-hook system obtains application flow data of the abnormal interface according to the monitoring data, determines total application flow of the abnormal interface according to a preset statistical period and the application flow data of the abnormal interface, and further judges whether to off-hook the abnormal interface according to the total application flow of the abnormal interface, if so, closes the abnormal interface; if not, the abnormal interface is kept open. The preset statistics period may be set according to a time situation, and is generally the same as a preset time interval for acquiring monitoring data of the system, and for example, the preset statistics period is generally 5 minutes, that is, a sum of application flow data of the abnormal interface within 5 minutes is an application total flow of the abnormal interface.
Specifically, if it is determined that the abnormal interface is off-hook according to the total application flow, the step of closing the abnormal interface includes:
step S201, comparing the total flow of the application with a flow threshold;
step S202, if the total flow of the application is greater than the flow threshold, determining to take off the abnormal interface, determining the closing time of the abnormal interface, and closing the abnormal interface according to the closing time.
In step S201 to step S202, after determining the total application flow of the abnormal interface, the abnormal off-hook system compares the total application flow with a flow threshold, and if the abnormal off-hook system determines that the total application flow is greater than the flow threshold, the abnormal off-hook system determines to off-hook the abnormal interface, determines the closing time of the abnormal interface, and closes the abnormal interface according to the closing time. The flow threshold and the closing time period can be set according to actual conditions, and in an exemplary embodiment, the flow threshold is set to be an average flow of all interfaces in the system for approximately 7 days, the closing time period is set to be 10 minutes, if the abnormal off-hook system determines that the total flow of the application is greater than the average flow of all the interfaces in the system for approximately 7 days, the corresponding abnormal interface is closed for 10 minutes, and the abnormal interface is automatically opened after 10 minutes.
Further, if the abnormal off-hook system determines that the total application flow is smaller than the flow threshold, it is determined that the corresponding abnormal interface does not affect the system performance, so that the abnormal interface is ignored in order to provide service to the maximum extent, and at this time, the abnormal off-hook system does not off-hook the abnormal interface, that is, does not close the abnormal interface, and keeps the abnormal interface open.
Further, before closing the abnormal interface, the abnormal off-hook system acquires the last state of the abnormal interface to be closed, and determines whether the last state is open or closed; if the last state of the abnormal interface is determined to be on, taking the preset closing time length as the closing time length of the abnormal interface, and closing the abnormal interface according to the closing time length; if the last state of the abnormal interface is determined to be closed, the last closing time length of the abnormal interface is obtained, the current closing time length is determined according to the preset multiple and the last closing time length of the abnormal interface, and the abnormal interface is closed according to the closing time length.
The preset closing time is 10 minutes, the preset multiple is 2 times, and if the last state of the abnormal interface is on, the abnormal interface is closed for 10 minutes; if the last state of the abnormal interface is closed, the current closing time length is 2 times of the last closing time length of the abnormal interface, if the last closing time length of the abnormal interface is 10 minutes, the current closing time length is 20 minutes, and if the last closing time length of the abnormal interface is 20 minutes, the current closing time length is 40 minutes.
Step S30, and/or determining the number of online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, disconnecting the abnormal instance devices.
In this embodiment, the abnormal off-hook system further determines whether to off-hook the abnormal instance device according to the number of online instance devices in the monitoring data acquisition system, and if so, the abnormal instance device is off-line. It should be noted that when the number of online instance devices is small, the flow pressure of the online instance devices in the system is easily caused to be too large, and the system performance is affected, so that whether to take off the off-hook of the abnormal instance devices is judged according to the number of the online instance devices, and the influence on the system performance caused by the small number of the online instance devices is avoided.
Specifically, if it is determined that the abnormal instance device is off-hook according to the number, the step of taking the abnormal instance device off line includes:
step S301, comparing the number with a number threshold;
step S302, if the number is greater than the number threshold, determining to take off the hook of the abnormal instance equipment, determining the offline duration of the abnormal instance equipment, and offline the abnormal instance equipment according to the offline duration.
In step S301 to step S302, after determining the number of online instance devices in the system, the abnormal off-hook system compares the number of online instance devices in the system with a number threshold, and if the number of online instance devices is determined to be greater than the number threshold, the abnormal off-hook system determines to off-hook the abnormal instance devices, determines an off-line duration of the abnormal instance devices, and off-line the abnormal instance devices according to the off-line duration. The number threshold and the offline time period can be set according to actual conditions, and in an exemplary embodiment, the number threshold is set to 3/4 of the total number of the instance devices in the system, the offline time period is set to 10 minutes, if the abnormal off-hook system determines that the number of the online instance devices is greater than 3/4 of the total number of the instance devices in the system, the corresponding abnormal instance devices are offline for 10 minutes, and the abnormal instance devices are automatically online after 10 minutes.
Further, if the number of the online instance devices is smaller than the number threshold, the abnormal off-hook system does not off-hook the abnormal instance devices, namely does not drop off the online abnormal instance devices, and keeps the abnormal instance devices online.
Further, before the offline abnormal instance equipment, the abnormal off-hook system acquires the last state of the abnormal instance equipment to be offline, and determines whether the last state is on or off; if the last state of the abnormal instance equipment is determined to be online, taking the preset offline time length as the offline time length of the abnormal instance equipment, and offline the abnormal instance equipment according to the offline time length; if the last state of the abnormal instance equipment is the offline state, acquiring last offline time of the abnormal instance equipment, determining current offline time according to a preset multiple and the last offline time of the abnormal instance equipment, and offline the abnormal instance equipment according to the current offline time.
The preset offline time is 10 minutes, the preset multiple is 2 times, and if the last state of the abnormal instance equipment is online, the abnormal instance equipment is offline for 10 minutes; if the last state of the abnormal instance equipment is offline, the current offline time length is 2 times the last offline time length of the abnormal instance equipment, if the last offline time length of the abnormal instance equipment is 10 minutes, the current offline time length is 20 minutes, the last offline time length of the abnormal instance equipment is 20 minutes, and the current offline time length is 40 minutes.
The abnormal off-hook system of the embodiment obtains monitoring data of the system according to a preset time interval, and determines an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data; determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is off-hook according to the total application flow; and/or determining the number of the online instance devices in the system, and if the abnormal instance devices are off-hook according to the number, disconnecting the abnormal instance devices. The invention determines whether to close the abnormal interface according to the total application flow of the abnormal interface, determines whether to disconnect the abnormal example equipment according to the number of the online example equipment, comprehensively considers the influence of the off-hook on the system performance based on the total application flow and/or the number of the online example equipment, avoids the influence of the off-hook on the system performance, and further improves the accuracy of the off-hook.
Further, referring to fig. 3, a second embodiment of the system abnormal off-hook method of the present invention is presented based on the first embodiment of the system abnormal off-hook method of the present invention. The second embodiment differs from the first embodiment in that after the step of closing the abnormal interface and/or taking the abnormal instance device off line, it includes:
step S40, when the closing time length is reached or an opening instruction is received, the abnormal interface is opened;
step S50, and/or, when it is determined that the offline duration is reached or an online instruction is received, online the abnormal instance device.
In step S40 to step S50, after the abnormal off-hook system closes the abnormal interface and/or disconnects the abnormal instance device, detailed information of the closed abnormal interface and/or the disconnected abnormal instance device is recorded, and related personnel can check when the interface is closed or the disconnected instance device is disconnected, and can check the instance device in the current closed state of the interface and the disconnected instance device; the abnormal off-hook system provides a manual recovery (forced interference) function, when receiving an opening instruction input by related personnel, the interface corresponding to the off state is opened, and when receiving an on-line instruction input by the related personnel, the example equipment corresponding to the on-line state is on-line. And after the interface and/or the offline example device are/is closed, the abnormal off-hook system starts timing, when the opening instruction is not received in the closing time period and the closing time period is reached, the corresponding interface in the closing state is opened, when the offline instruction is not received in the offline time period and the offline example device in the offline state is corresponding to the online example device when the offline time period is reached.
Further, after the abnormal off-hook system closes the abnormal interface and/or the abnormal instance equipment is off line, information of the abnormal interface and/or the abnormal instance equipment is sent to corresponding operation and maintenance personnel, so that the operation and maintenance personnel repair the abnormal interface and/or the abnormal instance equipment.
The abnormal off-hook system of the embodiment starts the abnormal interface when determining that the off-time is reached or receiving an opening instruction; and/or when the offline time is determined to be reached or the online instruction is received, the abnormal instance equipment is online, so that the interface is prevented from being in a closed state for a long time or the instance equipment is prevented from processing the offline state for a long time, and the performance of the system is prevented from being influenced.
The invention also provides a system abnormal off-hook device, which comprises:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for acquiring monitoring data of a system according to a preset time interval and determining an abnormal interface and/or abnormal instance equipment in the system according to the monitoring data;
the closing module is used for determining the total application flow of the abnormal interface, and closing the abnormal interface if the abnormal interface is determined to be off-hook according to the total application flow;
and the offline module is used for determining the number of online instance equipment in the system, and if the abnormal instance equipment is off-hook according to the number, the abnormal instance equipment is offline.
Further, the determining module is further configured to:
acquiring interface error rate and interface response time corresponding to each interface in the monitoring data, and determining an abnormal interface in the system according to the interface error rate and the interface response time;
and/or obtaining an example equipment error rate and an example equipment response time corresponding to each example equipment in the monitoring data, and determining abnormal example equipment in the system according to the example equipment error rate and the example equipment response time.
Further, the determining module is further configured to:
comparing the interface error rate with an error rate threshold, and comparing the interface response time with a response time threshold;
and if the interface error rate is greater than the error rate threshold or the interface response time is greater than the response time threshold, determining that the interface corresponding to the interface error rate or the interface response time is an abnormal interface in the system.
Further, the determining module is further configured to:
comparing the error rate of the example equipment with an error rate threshold value, and comparing the response time of the example equipment with a response time threshold value;
and if the error rate of the instance equipment is larger than the error rate threshold or the response time of the instance equipment is larger than the response time threshold, determining that the instance equipment corresponding to the error rate of the instance equipment or the response time of the instance equipment is abnormal instance equipment in the system.
Further, the closing module is further configured to:
comparing the total flow of the application with a flow threshold;
if the total flow of the application is greater than the flow threshold, determining to take off the abnormal interface, determining the closing time of the abnormal interface, and closing the abnormal interface according to the closing time.
Further, the offline module is further configured to:
comparing the number to a number threshold;
if the number is greater than the number threshold, determining to take off the abnormal instance equipment, determining the offline time of the abnormal instance equipment, and offline the abnormal instance equipment according to the offline time.
Further, the determining module is further configured to:
opening the abnormal interface when the closing time length is determined to be reached or an opening instruction is received;
and/or, when the offline time is up or an online instruction is received, the abnormal instance equipment is online.
The invention also provides an abnormal off-hook system.
The abnormal off-hook system of the present invention includes: the system comprises a memory, a processor and a system exception off-hook program which is stored in the memory and can run on the processor, wherein the system exception off-hook program realizes the steps of the system exception off-hook method when being executed by the processor.
The method implemented when the system exception off-hook program running on the processor is executed may refer to various embodiments of the system exception off-hook method of the present invention, which are not described herein.
The invention also provides a readable storage medium.
The readable storage medium of the present invention stores a system abnormal off-hook program which, when executed by a processor, implements the steps of the system abnormal off-hook method described above.
The method implemented when the system exception off-hook program running on the processor is executed may refer to various embodiments of the system exception off-hook method of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein, or any application, directly or indirectly, in the field of other related technology.