A fault isolation method and device based on business system

By setting up a gateway between the business system and the client, using preset fault isolation strategies and fertile automatic algorithms to match and intercept service requests, the problems of security risks and low efficiency in the fault isolation process in the existing technology are solved, and the problem of inefficient security risks and inefficient efficiency in the fault isolation process is realized. Efficient fault isolation and reduced safety risks.

CN116016126BActive Publication Date: 2024-12-06CHINA CONSTR BANK CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202211593954.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2024-12-06
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

Existing business systems require system reconstruction during failure isolation, resulting in increased security risks, and existing solutions are complex and inefficient.

Method used

Set up a gateway between the business system and the client, use preset fault isolation policies and fertile automata algorithms to match and intercept service requests, realize fault isolation, and analyze the hazard level through text classification model to generate reports.

Benefits of technology

It realizes efficient fault isolation, reduces security risks to business systems, and simplifies the original system transformation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016126B_ABST
    Figure CN116016126B_ABST
Patent Text Reader

Abstract

The present disclosure provides a fault isolation method and device based on a business system, which is applied to a gateway. The gateway is set between the business system and the client, and can obtain a preset fault isolation strategy, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system; when any business service of the business system fails, a service request sent by the client is obtained; a preset finite automaton algorithm is used to match the service request with the fault isolation granularity configuration corresponding to the business service, and if the match is successful, the service request is intercepted. The present disclosure sets a gateway between the business system and the client, and the gateway uses a preset fault isolation strategy to control the fault isolation granularity of the service request intercepted. This not only reduces the degree of modification of the original business system, but also achieves efficient fault isolation, which helps to reduce the system security risks of the business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a fault isolation method and device based on a business system. Background Art

[0002] During the operation of the business system, some business services in the business system may fail due to factors such as middleware failure, upstream and downstream system failure, and third-party failure.

[0003] The existing business system is mainly based on the JavaEE architecture, and multiple web services are centrally deployed in enterprise-level containers such as WebLogic / Tomcat. In the fault isolation scenario, the current mainstream solution is to reconstruct the system using microservice architectures such as Spring Cloud, and physically isolate faults by splitting code and deployment.

[0004] However, system reconstruction requires a comprehensive transformation of the business system's development framework, code, and packaging and deployment methods. At the same time, the new architecture and related open source components introduced during the reconstruction may bring new deployment processes and security vulnerabilities, increasing the system security risks of the business system.

[0005] Therefore, how to achieve efficient fault isolation function while reducing the system security risks of the business system has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0006] In view of the above problems, the present disclosure provides a fault isolation method and device based on a business system to overcome the above problems or at least partially solve the above problems. The technical solution is as follows:

[0007] A fault isolation method based on a business system is applied to a gateway, wherein the gateway is arranged between the business system and a client, and the method comprises:

[0008] Obtaining a preset fault isolation strategy, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system;

[0009] In the event that any of the business services of the business system fails, obtaining a service request sent by the client;

[0010] The service request is matched with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm, and if the match is successful, the service request is intercepted.

[0011] Optionally, after intercepting the service request, the method further includes:

[0012] The request content and the interception result of the service request are stored in a log corresponding to each other, and a request processing log corresponding to the fault is generated;

[0013] The request processing log is input into a preset text classification model for risk level classification, and the risk level corresponding to the fault output by the preset text classification model is obtained.

[0014] Optionally, after obtaining the danger level corresponding to the fault output by the preset text classification model, the method further includes:

[0015] Based on the risk level, an analysis report corresponding to the fault is generated.

[0016] Optionally, obtaining a preset fault isolation strategy includes:

[0017] When the gateway is started or refreshed, a preset fault isolation policy is read from a preset cache.

[0018] Optionally, obtaining a preset fault isolation strategy includes:

[0019] Get the preset fault isolation policy pushed by the fault isolation system through the message queue.

[0020] Optionally, the fault isolation granularity configuration is system service level isolation configuration, interface level service isolation configuration or business logic level isolation configuration.

[0021] Optionally, the matching the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm includes:

[0022] When the fault isolation granularity is configured as the system service-level isolation configuration, a preset finite automaton algorithm is used to determine whether the request URL of the service request includes the first URL prefix in the system service-level isolation configuration. If so, it is determined that the service request successfully matches the system service-level isolation configuration.

[0023] Optionally, the matching the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm includes:

[0024] In the case where the fault isolation granularity configuration is the interface-level service isolation configuration, using a preset finite automaton algorithm, determining whether the request URL of the service request includes the second URL prefix in the interface-level service isolation configuration, and if so, determining that the service request successfully matches the interface-level service isolation configuration;

[0025] Or, when the fault isolation granularity is configured as the interface-level service isolation configuration, a preset finite automaton algorithm is used to determine whether the request URL of the service request is any specified URL in the interface-level service isolation configuration; if so, it is determined that the service request successfully matches the interface-level service isolation configuration.

[0026] Optionally, the matching the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm includes:

[0027] When the fault isolation granularity is configured as the business logic level isolation configuration, a preset finite automaton algorithm is used to determine whether the request URL of the service request is any specified URL in the business logic level isolation configuration. If so, it is determined whether the request body in the request URL is the specified body in the specified URL. If so, it is determined that the service request successfully matches the business logic level isolation configuration.

[0028] A fault isolation device based on a business system is applied to a gateway, wherein the gateway is arranged between the business system and a client, and the device comprises: a fault isolation strategy obtaining unit, a service request obtaining unit, a fault isolation granularity configuration matching unit, and a service request intercepting unit.

[0029] The fault isolation strategy obtaining unit is used to obtain a preset fault isolation strategy, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system;

[0030] The service request obtaining unit is used to obtain the service request sent by the client when any of the business services of the business system fails;

[0031] The fault isolation granularity configuration matching unit is used to match the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm, and if the match is successful, trigger the service request interception unit;

[0032] The service request interception unit is used to intercept the service request.

[0033] By means of the above technical scheme, the present disclosure provides a fault isolation method and device based on a business system, which is applied to a gateway. The gateway is set between the business system and the client, and a preset fault isolation strategy can be obtained, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system; in the event of a failure in any business service of the business system, a service request sent by the client is obtained; a preset finite automaton algorithm is used to match the service request with the fault isolation granularity configuration corresponding to the business service, and if the match is successful, the service request is intercepted. The present disclosure sets a gateway between the business system and the client, and the gateway uses a preset fault isolation strategy to control the fault isolation granularity of the service request intercepted. This not only reduces the degree of modification of the original business system, but also achieves efficient fault isolation, which helps to reduce the system security risks of the business system.

[0034] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present disclosure. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0036] Figure 1 A flow chart showing an implementation of a fault isolation method based on a business system provided in an embodiment of the present disclosure;

[0037] Figure 2 A flow chart showing another implementation of a fault isolation method based on a business system provided in an embodiment of the present disclosure;

[0038] Figure 3 A flow chart showing another implementation of a fault isolation method based on a business system provided in an embodiment of the present disclosure;

[0039] Figure 4 A schematic diagram of the structure of a fault isolation device based on a business system provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0040] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0041] The service system-based fault isolation method provided in the embodiment of the present disclosure is applied to a gateway, and the gateway is arranged between the service system and the client.

[0042] The gateway can be a software-based API gateway, which is responsible for request routing, API composition, and protocol conversion. API requests from clients are first forwarded to the API gateway, which then routes the request to the corresponding business service.

[0043] The business system may be a banking business processing system for providing one or more corresponding business services.

[0044] The disclosed embodiment sets a gateway between the business system and the client, and the gateway uniformly processes the service requests sent by the client and forwards them to the business services in the business system, so that the gateway can uniformly filter and distribute the traffic of various heterogeneous services in the business system, thereby ensuring the normal operation of the business system.

[0045] like Figure 1 As shown, a flow chart of an implementation of a fault isolation method based on a business system provided in an embodiment of the present disclosure is provided. The fault isolation method based on a business system may include:

[0046] S100: Obtain a preset fault isolation strategy, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system.

[0047] Although different business systems use different frameworks and technology stacks, they are essentially one or more WEB services. Therefore, the scope of impact of business system failures is usually system scope, service scope, interface scope, and business logic scope, from large to small.

[0048] In the system scope, the fault usually affects the entire business system or multiple business services in the business system. In the service scope, the fault usually affects the entire business service or multiple interfaces in the business service. In the interface scope, the fault usually affects the entire interface or multiple businesses corresponding to the interface. In the business logic scope, the fault affects a specific business.

[0049] Therefore, the embodiments of the present disclosure can freely adjust the fault isolation granularity between the four levels of system, service, interface and business logic by pre-setting the fault isolation strategy, so as to pre-set the corresponding fault isolation granularity configuration when the business service fails, so that the service request affected by the business service failure can be intercepted according to the fault isolation granularity configuration, which helps to reduce the impact of fault isolation on other normal business services.

[0050] Among them, the fault isolation granularity configuration is composed of corresponding configuration expressions.

[0051] Optionally, the fault isolation granularity is configured as system service-level isolation configuration, interface-level service isolation configuration, or business logic-level isolation configuration.

[0052] Among them, the system service-level isolation configuration is mainly used to intercept batch interface URLs. The interface-level service isolation configuration is mainly used to intercept the specified feature interface URL. The business logic-level isolation configuration is mainly used to intercept the specified feature body in the specified feature interface.

[0053] Optionally, the embodiment of the present disclosure may read a preset fault isolation policy in a preset cache when the gateway is started or refreshed.

[0054] The preset cache may be a high-speed cache memory.

[0055] Optionally, the embodiment of the present disclosure may obtain a preset fault isolation strategy pushed by the fault isolation system through a message queue.

[0056] Optionally, when the fault isolation system pushes the preset fault isolation policy to the gateway through the message queue, the preset fault isolation policy can be synchronized to the preset cache.

[0057] Optionally, the embodiments of the present disclosure may subscribe to a preset cache, and obtain the preset fault isolation policy after the preset cache publishes the preset fault isolation policy.

[0058] 0In actual situations, users can set preset faults in real time in the front-end of the fault isolation system.

[0059] After the isolation strategy is set, the fault isolation system pushes the preset fault isolation strategy to the gateway through the message queue and synchronizes it to the preset cache, thereby speeding up the effectiveness of the preset fault isolation strategy and performing physical isolation in a timely manner.

[0060] S200: When any business service of the business system fails, obtain a service request sent by the client.

[0061] The disclosed embodiment can use the existing fault monitoring method to perform fault monitoring on the business system. When any business service of the business system is detected to have a fault, the gateway can obtain the message of the business service fault in a timely manner.

[0062] After a business service of a business system fails, the gateway needs to match the fault isolation granularity configuration for the service request 0 sent by the client to determine whether the service request is within the scope of influence of the fault, so as to intercept the service request within the scope of influence of the fault, avoid erroneous processing of the service request affected by the fault after entering the business system, and prevent failures of other normal business services, thereby achieving fault isolation effect.

[0063] S300. Use a preset finite automaton algorithm to match the service request with the fault 5 isolation granularity configuration corresponding to the business service. If the match is successful, execute step S400.

[0064] The preset finite automaton algorithm may be a deterministic finite automaton (DFA) algorithm.

[0065] Specifically, the embodiments of the present disclosure may utilize a real-time rule update search tree constructed using a preset finite automaton algorithm to achieve fault isolation granularity configuration matching with a time complexity at a constant level.

[0066] Optionally, when the service request fails to match the fault isolation granularity configuration corresponding to the business service, the gateway processes the service request according to the original forwarding rule.

[0067] Optionally, the embodiment of the present disclosure may utilize a preset finite automaton algorithm to determine whether the request URL of the service request includes the first URL prefix in the system service-level isolation configuration when the fault isolation granularity is configured as a system service-level isolation configuration; if so, it is determined that the service request successfully matches the system service-level isolation configuration.

[0068] Optionally, when it is determined that the request URL of the service request does not include the first URL prefix in the system service-level isolation configuration, it is determined that the service request fails to match the system service-level isolation configuration.

[0069] Optionally, the embodiment of the present disclosure may utilize a preset finite automaton algorithm to determine whether the request URL of the service request includes the second URL prefix in the interface-level service isolation configuration when the fault isolation granularity is configured as an interface-level service isolation configuration; if so, it is determined that the service request successfully matches the interface-level service isolation configuration.

[0070] The second URL prefix has a smaller degree of refinement than the first URL prefix.

[0071] Optionally, the embodiment of the present disclosure may determine that the service request fails to match the interface-level service isolation configuration when it is determined that the request URL of the service request does not include the second URL prefix in the interface-level service isolation configuration.

[0072] Optionally, the embodiment of the present disclosure may utilize a preset finite automaton algorithm to determine whether the request URL of the service request is any specified URL in the interface-level service isolation configuration when the fault isolation granularity is configured as an interface-level service isolation configuration; if so, it is determined that the service request successfully matches the interface-level service isolation configuration.

[0073] Optionally, the embodiment of the present disclosure may determine that the service request fails to match the interface-level service isolation configuration when it is determined that the request URL of the service request is not any specified URL in the interface-level service isolation configuration.

[0074] Optionally, in the embodiment of the present disclosure, when the fault isolation granularity is configured as a business logic level isolation configuration, a preset finite automaton algorithm may be used to determine whether the request URL of the service request is any specified URL in the business logic level isolation configuration; if so, whether the request body in the request URL is the specified body in the specified URL; if so, whether the service request is determined to be successfully matched with the business logic level isolation configuration.

[0075] Optionally, an embodiment of the present disclosure may determine that the service request fails to match the business logic level isolation configuration when it is determined that the request URL of the service request is not any specified URL in the business logic level isolation configuration, or when it is determined that the request body in the request URL is not a specified body in a specified URL.

[0076] The disclosed embodiment can construct a wildcard interpreter by presetting the equivalence of a finite automaton algorithm and a regular grammar, thereby providing a customizable fault isolation granularity configuration, thereby realizing matching rules of different granularities, and facilitating users to flexibly control the fault isolation granularity by configuring expressions.

[0077] S400: intercept the service request.

[0078] The present disclosure provides a fault isolation method based on a business system, which is applied to a gateway. The gateway is set between the business system and the client, and a preset fault isolation strategy can be obtained, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system; when any business service of the business system fails, a service request sent by the client is obtained; a preset finite automaton algorithm is used to match the service request with the fault isolation granularity configuration corresponding to the business service, and if the match is successful, the service request is intercepted. The present disclosure sets a gateway between the business system and the client, and the gateway uses a preset fault isolation strategy to control the fault isolation granularity of the service request intercepted. This not only reduces the degree of modification of the original business system, but also realizes efficient fault isolation, which helps to reduce the system security risks of the business system.

[0079] Optional, based on Figure 1 The method shown, such as Figure 2 As shown, a flow chart of another implementation of a fault isolation method based on a business system provided in an embodiment of the present disclosure is shown. After step S400, the fault isolation method based on a business system may further include:

[0080] S500: Log the request content and interception result of the service request in correspondence with each other, and generate a request processing log corresponding to the fault.

[0081] After the gateway intercepts the service request, it can asynchronously store the request content of the service request and the interception result corresponding to the interception process in a log, thereby generating a request processing log corresponding to the current fault.

[0082] S600: Input the request processing log into a preset text classification model for risk level classification, and obtain the risk level corresponding to the fault output by the preset text classification model.

[0083] The preset text classification model is a neural network model. Optionally, the preset text classification model can be a deep learning natural language processing (NLP) model based on the Transformer self-attention mechanism.

[0084] The disclosed embodiment uses a deep learning natural language processing (NLP) model based on the Transformer self-attention mechanism to analyze request processing logs, and can predict possible fault features.

[0085] Optionally, the preset text classification model may also be a deep learning natural language processing model based on a long short-term memory network (Long Short-Term Memory, LSTM). Optionally, the preset text classification model may also be a deep learning natural language processing model based on a recurrent neural network (Recurrent Neural Network, RNN).

[0086] The disclosed embodiment can use multiple log texts for unsupervised training in advance to train a BERT-based pre-training model, and then train a neural network for text classification, with the input being a log segment and the output being the classification result (danger level), thereby obtaining a preset text classification model, wherein the pre-training model serves to embed the input, and the embedded content is input into the neural network.

[0087] The disclosed embodiment helps to issue a fault alarm in a timely manner by determining the danger level corresponding to the fault, so that relevant technical personnel can understand the criticality of the fault and handle the fault in a timely manner.

[0088] Optional, based on Figure 2 The method shown, such as Figure 3 As shown, a flow chart of another implementation of a fault isolation method based on a business system provided in an embodiment of the present disclosure is shown. After step S600, the fault isolation method based on a business system may further include:

[0089] S700: Generate an analysis report corresponding to the fault based on the risk level.

[0090] The disclosed embodiment generates an analysis report of the fault so that relevant technical personnel can update the preset fault isolation strategy in a timely manner according to the analysis report, thereby forming a closed loop of fault analysis and fault isolation strategy update.

[0091] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0092] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0093] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a fault isolation device based on a business system, which is applied to a gateway, and the gateway is arranged between the business system and the client. The structure of the fault isolation device based on the business system is as follows: Figure 4 As shown, it may include: a fault isolation strategy obtaining unit 100 , a service request obtaining unit 200 , a fault isolation granularity configuration matching unit 300 and a service request intercepting unit 400 .

[0094] The fault isolation strategy obtaining unit 100 is used to obtain a preset fault isolation strategy, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system.

[0095] The service request obtaining unit 200 is used to obtain a service request sent by a client when any business service of the business system fails.

[0096] The fault isolation granularity configuration matching unit 300 is used to match the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm, and if the match is successful, the service request interception unit 400 is triggered.

[0097] The service request interception unit 400 is used to intercept the service request.

[0098] Optionally, the business system-based fault isolation device may further include: a request processing log generating unit and a danger level obtaining unit.

[0099] The request processing log generating unit is used to store the request content and the interception result of the service request in a corresponding log after the service request interception unit 400 intercepts the service request, and generate a request processing log corresponding to the fault.

[0100] The danger level obtaining unit is used to input the request processing log into a preset text classification model for danger level classification, and obtain the danger level corresponding to the fault output by the preset text classification model.

[0101] Optionally, the business system-based fault isolation device may further include: an analysis report generating unit.

[0102] The analysis report generating unit is used to generate an analysis report corresponding to the fault based on the danger level after the danger level obtaining unit obtains the danger level corresponding to the fault output by the preset text classification model.

[0103] Optionally, the fault isolation strategy obtaining unit 100 may be specifically configured to read a preset fault isolation strategy from a preset cache when the gateway is started or refreshed.

[0104] Optionally, the fault isolation strategy obtaining unit 100 may be specifically used to obtain a preset fault isolation strategy pushed by the fault isolation system through a message queue.

[0105] Optionally, the fault isolation granularity is configured as system service-level isolation configuration, interface-level service isolation configuration, or business logic-level isolation configuration.

[0106] Optionally, the fault isolation granularity configuration matching unit 300 can be specifically used to determine whether the request URL of the service request includes the first URL prefix in the system service level isolation configuration by using a preset finite automaton algorithm when the fault isolation granularity configuration is a system service level isolation configuration. If so, it is determined that the service request successfully matches the system service level isolation configuration.

[0107] Optionally, the fault isolation granularity configuration matching unit 300 can be specifically used to determine whether the request URL of the service request includes the second URL prefix in the interface-level service isolation configuration by using a preset finite automaton algorithm when the fault isolation granularity configuration is an interface-level service isolation configuration. If so, it is determined that the service request successfully matches the interface-level service isolation configuration.

[0108] Optionally, the fault isolation granularity configuration matching unit 300 can be specifically used to determine, when the fault isolation granularity configuration is an interface-level service isolation configuration, whether the request URL of the service request is any specified URL in the interface-level service isolation configuration by using a preset finite automaton algorithm; if so, it is determined that the service request successfully matches the interface-level service isolation configuration.

[0109] Optionally, the fault isolation granularity configuration matching unit 300 can be specifically used to determine, when the fault isolation granularity is configured as a business logic level isolation configuration, whether the request URL of the service request is any specified URL in the business logic level isolation configuration, and if so, whether the request body in the request URL is the specified body in the specified URL, and if so, whether the service request is determined to be successfully matched with the business logic level isolation configuration by using a preset finite automaton algorithm.

[0110] The present disclosure provides a fault isolation device based on a business system, which is applied to a gateway. The gateway is set between the business system and the client, and can obtain a preset fault isolation strategy, wherein the preset fault isolation configuration includes a fault isolation granularity configuration corresponding to each business service in the business system; when any business service of the business system fails, a service request sent by the client is obtained; a preset finite automaton algorithm is used to match the service request with the fault isolation granularity configuration corresponding to the business service, and if the match is successful, the service request is intercepted. The present disclosure sets a gateway between the business system and the client, and the gateway uses a preset fault isolation strategy to control the fault isolation granularity of the service request intercepted. This not only reduces the degree of modification of the original business system, but also realizes efficient fault isolation, which helps to reduce the system security risks of the business system.

[0111] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0112] The fault isolation device based on the business system includes a processor and a memory. The above-mentioned fault isolation strategy acquisition unit, service request acquisition unit, fault isolation granularity configuration matching unit and service request interception unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.

[0113] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set to control the fault isolation granularity of intercepting service requests using a preset fault isolation strategy by adjusting kernel parameters.

[0114] The embodiment of the present disclosure provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the fault isolation method based on the business system is implemented.

[0115] An embodiment of the present disclosure provides a processor, which is used to run a program, wherein the fault isolation method based on a business system is executed when the program is running.

[0116] The embodiment of the present disclosure provides an electronic device, which includes at least one processor, at least one memory connected to the processor, and a bus; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the above-mentioned fault isolation method based on the business system. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0117] The present disclosure also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program that initializes the steps of a fault isolation method based on a business system.

[0118] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, apparatuses, electronic devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] In a typical configuration, an electronic device includes one or more processors (CPU), a memory, and a bus. The electronic device may also include an input / output interface, a network interface, and the like.

[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0121] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0122] In the description of the present disclosure, it should be understood that the terms "up", "down", "front", "back", "left" and "right" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the positions or elements referred to must have specific directions, be constructed and operate in specific directions. Therefore, they should not be understood as limitations of the present disclosure.

[0123] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0124] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] The above are only embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.

Claims

1. A fault isolation method based on a business system, characterized in that: Applied to a gateway, the gateway being arranged between a business system and a client, the method comprising: Obtaining a preset fault isolation strategy, wherein the preset fault isolation strategy includes a fault isolation granularity configuration corresponding to each business service in the business system; In the event that any of the business services of the business system fails, obtaining a service request sent by the client; The service request is matched with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm, and if the match is successful, the service request is intercepted.

2. The method according to claim 1, characterized in that: After intercepting the service request, the method further includes: The request content and the interception result of the service request are stored in a log corresponding to each other, and a request processing log corresponding to the fault is generated; The request processing log is input into a preset text classification model for risk level classification, and the risk level corresponding to the fault output by the preset text classification model is obtained.

3. The method according to claim 2, characterized in that After obtaining the danger level corresponding to the fault output by the preset text classification model, the method further includes: Based on the risk level, an analysis report corresponding to the fault is generated.

4. The method according to claim 1, characterized in that: The obtaining of a preset fault isolation strategy includes: When the gateway is started or refreshed, a preset fault isolation policy is read from a preset cache.

5. The method according to claim 1, characterized in that The obtaining of a preset fault isolation strategy includes: Get the preset fault isolation policy pushed by the fault isolation system through the message queue.

6. The method according to claim 1, characterized in that The fault isolation granularity configuration is system service level isolation configuration, interface level service isolation configuration or business logic level isolation configuration.

7. The method according to claim 6, characterized in that The matching the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm includes: When the fault isolation granularity is configured as the system service-level isolation configuration, a preset finite automaton algorithm is used to determine whether the request URL of the service request includes the first URL prefix in the system service-level isolation configuration. If so, it is determined that the service request successfully matches the system service-level isolation configuration.

8. The method according to claim 6, characterized in that The matching the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm includes: In the case where the fault isolation granularity configuration is the interface-level service isolation configuration, using a preset finite automaton algorithm, determining whether the request URL of the service request includes the second URL prefix in the interface-level service isolation configuration, and if so, determining that the service request successfully matches the interface-level service isolation configuration; Or, when the fault isolation granularity is configured as the interface-level service isolation configuration, a preset finite automaton algorithm is used to determine whether the request URL of the service request is any specified URL in the interface-level service isolation configuration; if so, it is determined that the service request successfully matches the interface-level service isolation configuration.

9. The method according to claim 6, characterized in that The matching the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm includes: When the fault isolation granularity is configured as the business logic level isolation configuration, a preset finite automaton algorithm is used to determine whether the request URL of the service request is any specified URL in the business logic level isolation configuration. If so, it is determined whether the request body in the request URL is the specified body in the specified URL. If so, it is determined that the service request successfully matches the business logic level isolation configuration.

10. A fault isolation device based on a business system, characterized in that: Applied to a gateway, the gateway is arranged between a business system and a client, the device comprises: a fault isolation strategy obtaining unit, a service request obtaining unit, a fault isolation granularity configuration matching unit and a service request intercepting unit, The fault isolation strategy obtaining unit is used to obtain a preset fault isolation strategy, wherein the preset fault isolation strategy includes a fault isolation granularity configuration corresponding to each business service in the business system; The service request obtaining unit is used to obtain the service request sent by the client when any of the business services of the business system fails; The fault isolation granularity configuration matching unit is used to match the service request with the fault isolation granularity configuration corresponding to the business service by using a preset finite automaton algorithm, and if the match is successful, trigger the service request interception unit; The service request interception unit is used to intercept the service request.

Citation Information

Patent Citations

  • Method for implementing abnormal traffic interception based on SDN

    CN104683333A

  • Intelligent processing fault system architecture

    CN105119765A

  • Access control method and device and storage medium

    CN110545269A

  • Database request processing method and device, computer equipment and storage medium

    CN111949402A

  • Fault isolation method and device and multi-layer fault isolation system

    CN112181699A