Fault positioning method, device and equipment of bank system and readable storage medium

By using the key node information in the HTTP request header to generate and filter sequence numbers in the banking system, the problem of low fault location efficiency in the banking system is solved, the fault node is quickly located, and the efficiency of troubleshooting is improved.

CN118642878APending Publication Date: 2024-09-13PING AN BANK CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410742150.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the banking system, the serial number generated by the system when printing logs cannot quickly help technicians locate the location of the upstream fault, resulting in low troubleshooting efficiency.

Method used

The client sends an HTTP request to the server. The request header contains key node information on the request path. The server extracts this information from the log, generates multiple sequence numbers, filters the abnormal logs to determine the target sequence number, and locates the faulty node based on the sequence number. Location.

Benefits of technology

Through this method, the node fault location on the request link can be quickly located, which improves the efficiency of troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642878A
    Figure CN118642878A
Patent Text Reader

Abstract

The embodiment of the invention provides a fault positioning method, device and equipment of a bank system and a readable storage medium, and belongs to the technical field of system fault positioning. The method comprises the steps that a client side sends an HTTP request to a server, the HTTP request comprises an HTTP request header, and the HTTP request header is provided with key node information on a request path; the server receives the HTTP request, acquires a log corresponding to the HTTP request, and extracts the key node information from an HTTP request header; the server obtains a plurality of serial numbers of the HTTP request according to the key node information; the server screens abnormal logs from the logs, and determines a target serial number from the plurality of serial numbers according to the abnormal logs; and the server locates the position of the fault node on the request path according to the target serial number. Through the provided fault positioning scheme of the bank system, the node fault position on the request link can be quickly positioned, and the troubleshooting efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of system fault location, and in particular to a method, device, equipment and readable storage medium for locating a fault of a banking system. Background Art

[0002] In the systems of various banking scenarios, the system often generates a serial number for each request through an algorithm when printing logs. Technicians can use this serial number to query and track logs related to the request, but cannot quickly locate the location of the upstream fault. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present application provide a fault location method, device, electronic device and computer-readable storage medium for a banking system.

[0004] In the first aspect, the client sends an HTTP request to the server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path;

[0005] The server receives the HTTP request, obtains a log corresponding to the HTTP request, and extracts the key node information from the HTTP request header;

[0006] The server obtains multiple sequence numbers of the HTTP request according to the key node information;

[0007] The server screens an abnormal log from the log, and determines a target sequence number from a plurality of sequence numbers according to the abnormal log;

[0008] The server locates the position of the faulty node on the request path according to the target sequence number.

[0009] In one implementation, the request path includes a plurality of nodes, and the key node information includes a node sequence number of a single node on the request path and node IP information of a single node on the request path.

[0010] In one implementation, the plurality of nodes include: a firewall and a hardware load.

[0011] In one embodiment, the method further comprises:

[0012] The node sequence number of a single node is determined according to the position of each node in the request path.

[0013] In one implementation, the server obtains multiple sequence numbers of the HTTP request according to the key node information, including:

[0014] A plurality of sequence numbers are generated according to the key node information, the sign bit, the timestamp, and the self-increment sequence.

[0015] In one implementation, the step of obtaining a unique sequence number according to key node information, a sign bit, a timestamp, and a self-incrementing sequence includes:

[0016] Multiple sequence numbers are obtained by sequentially splicing the sign bit, the key node information, the timestamp and the self-increment sequence.

[0017] In one embodiment, the method further comprises:

[0018] The server converts the binary serial number into a decimal serial number.

[0019] In a second aspect, an embodiment of the present application provides a fault location device for a banking system, the fault location device for the banking system comprising:

[0020] A sending module, used for the client to send an HTTP request to the server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path;

[0021] A receiving module, configured for the server to receive the HTTP request, obtain a log corresponding to the HTTP request, and extract the key node information from the HTTP request header;

[0022] A generating module, used for the server to obtain multiple sequence numbers of the HTTP request according to the key node information;

[0023] A screening module, used for the server to screen abnormal logs from the logs, and determine a target sequence number from a plurality of sequence numbers according to the abnormal logs;

[0024] A positioning module is used for the server to locate the position of the faulty node on the request path according to the target sequence number.

[0025] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the fault location method of the banking system provided in the first aspect is executed.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when running on a processor, executes the fault location method for the banking system provided in the first aspect.

[0027] The above-mentioned bank system fault location method provided by the present application is that the client sends an HTTP request to the server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; the server receives the HTTP request, obtains the log corresponding to the HTTP request, and extracts the key node information from the HTTP request header; the server obtains multiple sequence numbers of the HTTP request according to the key node information; the server screens the abnormal log from the log, and determines the target sequence number from multiple sequence numbers according to the abnormal log; the server locates the position of the fault node on the request path according to the target sequence number. Through the provided bank system fault location solution, the position of the node fault on the request link can be quickly located, which improves the efficiency of troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.

[0029] Figure 1 A schematic diagram of a process of a fault location method for a banking system provided in an embodiment of the present application is shown;

[0030] Figure 2 A schematic diagram of the structure of a fault location device for a banking system provided in an embodiment of the present application is shown;

[0031] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.

[0032] Icon: 200 - fault location device of banking system, 201 - sending module, 202 - receiving module, 203 - generating module, 204 - screening module, 205 - location module, 300 - electronic device, 301 - transceiver, 302 - processor, 303 - memory. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0034] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0035] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.

[0036] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0037] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0038] Example 1

[0039] An embodiment of the present application provides a fault locating method for a banking system.

[0040] See also Figure 1 ,The fault location methods of the banking system include:

[0041] S101: The client sends an HTTP request to the server, where the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path.

[0042] In this embodiment, when the client sends an HTTP request to the server of the bank system, the client first establishes a connection with the server of the bank system through the TCP protocol. The TCP protocol uses the IP address and port number to identify the location of the server. After the connection is established, the client will send an HTTP request to the server of the bank system. The HTTP request includes a request line, a request header and a request body. The request line uses the POST request method, including the requested resource path and the version of the HTTP protocol. The request header contains the client's IP address, the time of the request, etc. The request body is optional, such as form data or JSON data submitted by the POST method, which is used to transmit actual data and is not limited in this embodiment. It should be noted that the key node information on the request path refers to the hardware IP address and the serial number of the hardware on the request path. When the client sends an HTTP request, it will put the hardware serial number and hardware IP information on the request path into the HTTP request header. This information can help the server identify the client's request path.

[0043] S102: The server receives the HTTP request, obtains a log corresponding to the HTTP request, and extracts the key node information from the HTTP request header.

[0044] In this embodiment, after receiving the HTTP request, the server of the banking system will print the log information related to this request. The log information includes a detailed description of the request, including the operation type (such as read, write, update, etc.), the operation object (such as database table, file path, etc.), the operation time, the operation user or client information, etc. The server will extract the information related to the request and record it in the log. Developers and administrators can query and analyze these logs later to understand the operation of the system, find potential problems and track the history of data changes. In addition, these logs can also be used for data backup, recovery and bank flow compliance inspection. Extracting the key node information from the HTTP request header requires first obtaining the header information of the HTTP request. In the HTTP request header, the hardware IP information is usually stored in the "X-Forwarded-For" or "Remote-Addr" field. By searching these fields, the hardware IP address information is extracted; the hardware node serial number information is the unique hardware node serial number assigned to each hardware device. The hardware node serial number is used to identify and locate the location and order of the device in the network.

[0045] S103: The server obtains multiple sequence numbers of the HTTP request according to the key node information.

[0046] In this embodiment, in order to facilitate the investigation and identification of each request and the log information generated corresponding to each request, the server side will generate a serial number. When the server side receives a request, it will generate a serial number based on the node information on the request path. When the request passes through the downstream node of the request path, this serial number will be added with the node serial number and hardware IP information of the downstream node. This serial number is associated with the log information printed under each request. In this way, by investigating the abnormal log information, the corresponding serial number information can be quickly found. When a network failure or security incident occurs, by checking the relevant log information, it is associated with the hardware node serial number and hardware IP information to identify the involved equipment, so that the root cause of the problem can be found more quickly and corresponding measures can be taken.

[0047] S104: The server screens abnormal logs from the logs, and determines a target sequence number from a plurality of sequence numbers according to the abnormal logs.

[0048] In this embodiment, in banking and financial scenarios, a distributed cluster is a common architecture that is widely used to process large amounts of data and provide high-availability services. In this architecture, a group of independent computers are interconnected through a network to form a collaborative cluster. Each computer node has a certain processing power and storage capacity, and can handle part of the task alone, or collaborate with other nodes to complete more complex tasks. In order to ensure data security and high availability, these institutions usually adopt a distributed cluster architecture. The server side first needs to collect log data related to the request, which may involve multiple sources of hardware information, such as firewalls and hardware loads of different servers. To collect log information, the server side needs to analyze the collected log data to identify and filter out abnormal logs. Once the abnormal log is identified, the server side can determine a target serial number, which is associated with the abnormal log.

[0049] S105: The server locates the position of the faulty node on the request path according to the target sequence number.

[0050] In this embodiment, the serial number includes a unique node serial number for each node on the request path, which is used to identify the position and order of the node in the request path. If one of the nodes fails or has a performance bottleneck, the server can locate the specific faulty node based on the node serial number and hardware IP information.

[0051] In one implementation, the request path includes a plurality of nodes, and the key node information includes a node sequence number of a single node on the request path and node IP information of a single node on the request path.

[0052] In this embodiment, the node serial number is the sequential number of the node on the request path, which is used to identify the position of the node in the system. By recording the node serial number, a specific node on the request path can be quickly located, and troubleshooting and performance monitoring can be performed on it. The node IP information is the hardware IP information of the current node, for example: [{0001 (node ​​serial number of the firewall), 10101.10110.10111.10110 (firewall device IP)}, {0010 (node ​​serial number of hardware load F5, 10101.10110.10111.10111 (device IP of hardware load F5)}, {information of other hardware devices}…], the serial number generated by this method is used to uniquely identify the position of the node in the request path. In a scenario such as a bank website, the serial number is very important for network security and system stability. By analyzing the serial number, the faulty hardware can be quickly located to ensure the security and availability of the bank website.

[0053] In one implementation, the plurality of nodes include: a firewall and a hardware load.

[0054] In this embodiment, when the client sends an HTTP request to the server, it will first perform domain name resolution through the DNS server, convert the domain name of the bank website into the corresponding IP address, and filter the data packets through the firewall according to the source IP address, port number and other information, and only allow the data packets that meet the rules to pass. The firewall will screen and filter the traffic according to the pre-set security policy to prevent potential attacks and illegal access. The firewall is the first hardware load on the client request path, and it is necessary to generate a corresponding serial number and hardware IP information for it; the traffic passing through the firewall will reach the F5 load balancer, which is a network device that can balance network traffic to ensure that all requests can be Evenly distributed to the back-end servers, this can help the bank system maintain responsiveness and stability under high load conditions. The F5 load balancer is the second hardware on the HTTP request path, and it is necessary to generate a node serial number and hardware IP information for it; the traffic after F5 will further reach the Nginx load balancer, which is a high-performance Web server and reverse proxy server, which can further load balance the traffic and forward the request to the back-end server; finally, the traffic passing through the Nginx load balancer will reach the actual servers, which run various bank applications and services. The servers will process customer requests and return corresponding responses.

[0055] In one embodiment, the method further comprises:

[0056] The node sequence number of a single node is determined according to the position of each node in the request path.

[0057] In this embodiment, binary encoding is used to represent a variety of different hardware node serial numbers. For example, binary 0001 can represent the first hardware node serial number on the request link sent by the client, which can be represented as the node serial number of the firewall. Binary 0010 can represent the second hardware node serial number on the request link sent by the client, which can be represented as the node serial number of the hardware load F5. The hardware node serial numbers are generated by a program, and the server can obtain these hardware node serial numbers through a specific program interface or network communication, and then manage and monitor the hardware nodes.

[0058] In one implementation, the server obtains multiple sequence numbers of the HTTP request according to the key node information, including: generating multiple sequence numbers according to the key node information, a sign bit, a timestamp, and a self-incrementing sequence.

[0059] In this embodiment, the sign bit is used to indicate whether the generated serial number is a positive number or a negative number. By using the sign bit, two different states can be represented without changing the serial number. It should be noted that in the present invention, the sign bit is always 0 and occupies 1 bit, that is, the serial number in this embodiment is always a positive number; the timestamp records the time of passing through the nodes on the request path in the client request server, occupies 41 bits, and is accurate to milliseconds. Since each bit can represent 0 or 1, 41 bits can represent 2 to the 41th power different timestamp values. The use of timestamps can ensure that each request is correctly marked with time information for monitoring, analysis and troubleshooting when necessary; an auto-increment sequence is a digital sequence that increases each time. When generating a unique serial number, the auto-increment sequence may be a simple counter. Each time a new serial number is generated, the counter increases by 1. The auto-increment sequence is used to ensure that the generated serial number is unique, because each serial number is a unique auto-increment sequence value, occupying 12 bits. The auto-increment sequence is a sequence that increments each time. When generating a unique serial number, the auto-increment sequence usually starts from 0 and keeps incrementing, which means that each generated serial number will be 1 greater than the previous one. The use of the auto-increment sequence can ensure that the generated serial number is unique, because each serial number is a unique auto-increment sequence value. This method is simple and effective, especially in the case of a large number of requests in the financial industry. It can allow up to 4095 auto-increment sequence numbers to be accumulated from 0 within milliseconds. By combining the sign bit, timestamp, key node information and auto-increment sequence, a unique serial number corresponding to the client request can be generated to identify and track the path and order of the request.

[0060] In one embodiment, the obtaining of a unique serial number based on key node information, a sign bit, a timestamp, and a self-incrementing sequence includes: sequentially concatenating the sign bit, the key node information, the timestamp, and the self-incrementing sequence to obtain multiple serial numbers.

[0061] In this embodiment, the order of generated serial numbers is fixed, and the unique serial number needs to be spliced ​​in sequence according to the order of sign bit, key node information, timestamp and auto-increment sequence. By splicing these elements in this order, it can be ensured that the generated serial number is unique and contains sufficient information. The key node information can provide specific information on the request path, which is used to identify the nodes passed by the request, so as to ensure that the serial number is still unique even when the order of nodes on the path changes; the timestamp can provide time information of the request, ensuring that even if there are multiple requests at the same time, their serial numbers are unique; the auto-increment sequence is a sequence that increases each time, which can ensure that the generated serial number is unique. If the auto-increment sequence is spliced ​​first, the generated unique serial number will lose the incrementing feature, which may lead to the generation of duplicate serial numbers.

[0062] In one embodiment, the server converts the binary unique serial number into a decimal unique serial number.

[0063] In the present embodiment, at the actual monitoring request path node, the server converts the binary sequence number into a decimal sequence number for the convenience of understanding and processing. Although the binary sequence number is unique, it is not easy for humans to directly identify and interpret it. Converting it into a decimal sequence number can more intuitively represent the sequence number, which is convenient for monitoring and recording. In addition, converting it into a decimal sequence number can also reduce the use of storage space, because the binary sequence number is usually longer than the decimal sequence number, and takes up more storage space. After converting the binary sequence number into a decimal sequence number, the use of storage space can be significantly reduced, because the sequence number needs to be stored in the database at the end, and the decimal system can improve storage efficiency. The server interprets the binary unique sequence number as an integer, which can be implemented using a corresponding programming language or tool, such as using a conversion function or library of an integer value to convert the integer into a decimal unique sequence number, and converting the obtained integer into a decimal representation, which can be implemented using a built-in function or library in a programming language.

[0064] The fault location method of the banking system provided in this embodiment is as follows: the client sends an HTTP request to the server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; the server receives the HTTP request, obtains the log corresponding to the HTTP request, and extracts the key node information from the HTTP request header; the server obtains multiple sequence numbers of the HTTP request according to the key node information; the server screens the abnormal log from the log, and determines the target sequence number from the multiple sequence numbers according to the abnormal log; the server locates the position of the fault node on the request path according to the target sequence number. Through the provided banking system fault location solution, the position of the node fault on the request link can be quickly located, which improves the efficiency of troubleshooting.

[0065] Example 2

[0066] In addition, an embodiment of the present application provides a fault location device for a banking system, which is applied to electronic equipment.

[0067] like Figure 2 As shown, the fault location device 200 of the banking system includes:

[0068] A sending module 201 is used for the client to send an HTTP request to the server, where the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path;

[0069] A receiving module 202, configured for the server to receive the HTTP request, obtain a log corresponding to the HTTP request, and extract the key node information from the HTTP request header;

[0070] A generating module 203, configured for the server to obtain multiple sequence numbers of the HTTP request according to the key node information;

[0071] A screening module 204, configured for the server to screen abnormal logs from the logs, and determine a target sequence number from a plurality of sequence numbers according to the abnormal logs;

[0072] The positioning module 205 is used for the server to locate the position of the faulty node on the request path according to the target sequence number.

[0073] The sending module 201 is also used for: the request path includes multiple nodes, the key node information includes the node sequence number of a single node on the request path and the node IP information of a single node on the request path; the multiple nodes include: a firewall and a hardware load.

[0074] The generation module 203 is also used in the method, which also includes: determining the node serial number of a single node according to the position of each node in the request path; the server obtains multiple serial numbers of the HTTP request according to the key node information, including: generating multiple serial numbers according to the key node information, the sign bit, the timestamp, and the auto-increment sequence; obtaining a unique serial number according to the key node information, the sign bit, the timestamp, and the auto-increment sequence, including: sequentially splicing the multiple serial numbers in the order of the sign bit, the key node information, the timestamp, and the auto-increment sequence, and the server converting the binary serial number into a decimal serial number.

[0075] The bank system fault location device 200 provided in this embodiment can implement the bank system fault location method provided in Embodiment 1, and will not be described again here to avoid repetition.

[0076] The fault location device of the banking system provided by this embodiment comprises: a client sends an HTTP request to a server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; the server receives the HTTP request, obtains a log corresponding to the HTTP request, and extracts the key node information from the HTTP request header; the server obtains multiple sequence numbers of the HTTP request according to the key node information; the server screens abnormal logs from the logs, and determines the target sequence number from multiple sequence numbers according to the abnormal logs; the server locates the position of the fault node on the request path according to the target sequence number. Through the provided fault location solution for the banking system, the position of the node fault on the request link can be quickly located, thereby improving the efficiency of troubleshooting.

[0077] Example 3

[0078] In addition, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the fault location method of the banking system provided in Example 1 is executed.

[0079] For details, see Figure 3The electronic device 300 includes: a transceiver 301, a bus interface and a processor 302, wherein the processor 302 is used for the client to send an HTTP request to the server, wherein the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; the server receives the HTTP request, obtains a log corresponding to the HTTP request, and extracts the key node information from the HTTP request header; the server obtains multiple sequence numbers of the HTTP request according to the key node information; the server filters abnormal logs from the logs, and determines a target sequence number from multiple sequence numbers according to the abnormal logs; the server locates the position of the faulty node on the request path according to the target sequence number.

[0080] In one embodiment, the processor 302 is also used for: the request path includes multiple nodes, the key node information includes the node serial number of a single node on the request path and the node IP information of a single node on the request path; the multiple nodes include: a firewall and a hardware load.

[0081] In one implementation, the processor 302 is further configured to: determine a node sequence number of a single node according to a position of each node in the request path.

[0082] In one embodiment, the processor 302 is further used for: the server obtaining multiple serial numbers of the HTTP request according to the key node information, including: generating multiple serial numbers according to the key node information, a sign bit, a timestamp, and an auto-increment sequence.

[0083] In one embodiment, the processor 302 is also used for: the server obtains multiple serial numbers of the HTTP request according to the key node information, including: generating multiple serial numbers according to the key node information, the sign bit, the timestamp, and the auto-increment sequence; the obtaining of a unique serial number according to the key node information, the sign bit, the timestamp, and the auto-increment sequence includes: sequentially concatenating the sign bit, the key node information, the timestamp, and the auto-increment sequence to obtain multiple serial numbers, and the server converts the binary serial number into a decimal serial number.

[0084] In the embodiment of the present invention, the electronic device 300 further includes a memory 303. Figure 3In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 302 and memory represented by memory 303. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 301 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 302 is responsible for managing the bus architecture and general processing, and the memory 303 may store data used by the processor 302 when performing operations.

[0085] In the electronic device provided by this embodiment, the client sends an HTTP request to the server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; the server receives the HTTP request, obtains a log corresponding to the HTTP request, and extracts the key node information from the HTTP request header; the server obtains multiple sequence numbers of the HTTP request according to the key node information; the server screens abnormal logs from the logs, and determines the target sequence number from multiple sequence numbers according to the abnormal logs; the server locates the position of the fault node on the request path according to the target sequence number. Through the provided fault location solution for the banking system, the position of the node fault on the request link can be quickly located, which improves the efficiency of troubleshooting.

[0086] Example 4

[0087] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the fault location method of the banking system provided in Example 1 is implemented.

[0088] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0089] The computer-readable storage medium provided in this embodiment can implement the fault location method of the banking system provided in Example 1, and will not be described again here to avoid repetition.

[0090] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0092] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for locating a fault in a banking system, characterized in that: The method comprises: The client sends an HTTP request to the server, where the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; The server receives the HTTP request, obtains a log corresponding to the HTTP request, and extracts the key node information from the HTTP request header; The server obtains multiple sequence numbers of the HTTP request according to the key node information; The server screens an abnormal log from the log, and determines a target sequence number from a plurality of sequence numbers according to the abnormal log; The server locates the position of the faulty node on the request path according to the target sequence number.

2. The fault location method of the banking system according to claim 1, characterized in that: The request path includes multiple nodes, and the key node information includes a node sequence number of a single node on the request path and node IP information of a single node on the request path.

3. The fault location method of the banking system according to claim 2, characterized in that: The multiple nodes include: a firewall and a hardware load.

4. The fault location method of the banking system according to claim 3, characterized in that: The method further comprises: The node sequence number of a single node is determined according to the position of each node in the request path.

5. The fault location method of a banking system according to any one of claims 1 to 4, characterized in that: The server obtains multiple sequence numbers of the HTTP request according to the key node information, including: A plurality of sequence numbers are generated according to the key node information, the sign bit, the timestamp, and the self-increment sequence.

6. The fault location method of the banking system according to claim 5, characterized in that: The method of obtaining a unique serial number according to key node information, a sign bit, a timestamp, and a self-incrementing sequence includes: Multiple sequence numbers are obtained by sequentially splicing the sign bit, the key node information, the timestamp and the self-increment sequence.

7. The fault location method of a banking system according to any one of claims 1 to 4, characterized in that: The method further comprises: The server converts the binary serial number into a decimal serial number.

8. A fault location device for a banking system, characterized in that: The device comprises: A sending module, used for the client to send an HTTP request to the server, the HTTP request includes an HTTP request header, and the HTTP request header is provided with key node information on the request path; A receiving module, configured for the server to receive the HTTP request, obtain a log corresponding to the HTTP request, and extract the key node information from the HTTP request header; A generating module, used for the server to obtain multiple sequence numbers of the HTTP request according to the key node information; A screening module, used for the server to screen abnormal logs from the logs, and determine a target sequence number from a plurality of sequence numbers according to the abnormal logs; A positioning module is used for the server to locate the position of the faulty node on the request path according to the target sequence number.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run by the processor, the method for locating a fault of a banking system according to any one of claims 1 to 7 is executed.

10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when running on a processor, executes the fault location method of a banking system as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Database log time restoration method and device, electronic equipment and storage medium

    CN119848011A