Single point failure processing method, device, computer equipment and storage medium
Through the management of dynamic routing tables and FIX service node status bits, the available nodes are selected to process order requests and the weight value is added when the failed node is restored, which solves the problem of poor FIX Session fault handling in the existing technology, and achieves elegant recovery and high availability of the transaction system.
Patent Information
- Application Number
- CN202111362959.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-17
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-11-17
AI Technical Summary
When handling FIX Session failures, it is difficult to achieve elegant recovery in the event of an upstream channel quotient failure, resulting in unavailability of the trading system.
By setting the dynamic routing table and the status bits of the FIX service node, the status bits are selected as available FIX service nodes for business processing in response to order requests. The status bits of the failed FIX service node are disabled, and their weight value is gradually increased when their status is restored to be available.
It ensures that the trading system can still operate normally in a single point of failure, realizes the removal and recovery of the faulty nodes, and improves the overall availability of the system.
Smart Images

Figure CN116137589B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of computer technology, and in particular to a single point failure processing method, apparatus, computer equipment and storage medium. Background Art
[0002] The securities trading system implements the FIX protocol through the Financial Information Exchange (FIX) service and uses the Transmission Control Protocol (TCP) to establish a long connection with the upstream channel provider. This long connection is called a FIX Session. Through this FIX Session, transaction information can be accurately exchanged.
[0003] Due to the special features of FIX Session, namely, FIX service can only be deployed on certain fixed machines, the same order must be changed and cancelled through the original FIX Session after it is placed, and if a FIX service is connected to a FIX Session, other FIX services cannot connect to the FIX Session until the existing connection is disconnected. These special features will make it impossible for FIX service to scale horizontally. In this case, once a FIX Session fails, it may cause the serious consequence of paralysis of securities trading of users in a certain category or partition.
[0004] At present, the relevant technologies establish a network dedicated line with master-slave switching capability between the FIX service and the upstream channel, automatically switch to the backup line when the main line fails, and automatically switch to the public network when both the main and backup lines fail; or configure a master and backup node for a single FIX service, the two nodes compete for the same distributed lock, when the master node goes down, the backup node automatically upgrades to the master node, and re-establishes the FIX Session. However, both methods are based on the fact that the FIX service of the remote upstream channel provider has not failed. Once the upstream fails, the FIX connection cannot be established normally, making the trading system unavailable. At the same time, the processing process is extensive, and it is difficult to achieve elegant recovery after the failure. Summary of the invention
[0005] In view of the above-mentioned defects or deficiencies in the related art, it is desired to provide a single point failure handling method, apparatus, computer equipment and storage medium, which can ensure the normal operation of the trading system when the single point is completely unavailable and cannot be restored in a short time.
[0006] In a first aspect, the present disclosure provides a single point failure processing method, the method comprising:
[0007] In response to the received order request, determining the type of the order request;
[0008] According to the dynamic routing table and the type of the order request, a FIX service node with an available status in the dynamic routing table is selected for business processing, wherein the status bit of a faulty FIX service node is disabled.
[0009] Optionally, in some embodiments of the present disclosure, selecting a FIX service node with an available status in the dynamic routing table for business processing according to the dynamic routing table and the type of the order request includes:
[0010] If the type of the order request is a new order, selecting a node according to the weight value of the available FIX service node;
[0011] If the type of the order request is to modify or cancel an order, the routing identification code corresponding to the order request when placing the order is obtained, and the available FIX service node is determined according to the routing identification code.
[0012] Optionally, in some embodiments of the present disclosure, determining the available FIX service node according to the routing identification code includes:
[0013] If the status bit of the node corresponding to the routing identification code is available, the node corresponding to the routing identification code is used as the available FIX service node;
[0014] If the status bit of the node corresponding to the routing identification code is disabled, the order modification or order cancellation is suspended until the status bit of the node corresponding to the routing identification code is enabled.
[0015] Optionally, in some embodiments of the present disclosure, after performing node selection according to the weight value of the available FIX service node, the method further includes:
[0016] Obtain access protocol parameters and access endpoint parameters of the selected FIX service node;
[0017] When the access protocol parameter is HTTP, searching the registration center for the service instance defined by the access endpoint parameter for invocation;
[0018] When the access protocol parameter is KAFKA, the order request is encapsulated as a KAFKA message, and the KAFKA message is delivered to the title defined by the access endpoint parameter.
[0019] Optionally, in some embodiments of the present disclosure, the method further includes:
[0020] When the status bit of the faulty FIX service node is restored to available, the weight value of the faulty FIX service node is gradually increased until a preset weight is reached.
[0021] Optionally, in some embodiments of the present disclosure, the method further includes:
[0022] Check the health status of the FIX service node;
[0023] If the health status is abnormal for multiple consecutive times, the FIX service node is removed, and the health status of the FIX service node is continuously monitored.
[0024] Optionally, in some embodiments of the present disclosure, the method further includes performing a scheduled backup and / or an updated backup of the dynamic routing table.
[0025] In a second aspect, the present disclosure provides a single point failure processing device, the device comprising:
[0026] A determination module, configured to determine the type of the order request in response to the received order request;
[0027] The routing module is configured to select a FIX service node with an available status in the dynamic routing table for business processing according to the dynamic routing table and the type of the order request, wherein the status bit of the faulty FIX service node is disabled.
[0028] In a third aspect, the present disclosure provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the single point failure handling method described in any one of the first aspects when executing the computer program.
[0029] In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used to implement the steps of the single point failure handling method described in any one of the first aspects.
[0030] It can be seen from the above technical solutions that the embodiments of the present disclosure have the following advantages:
[0031] The embodiments of the present disclosure provide a single point failure processing method, apparatus, computer equipment and storage medium. By setting the status bits of a dynamic routing table and a FIX service node, when an order request is received, the FIX service node whose status bit is available in the dynamic routing table can be called to perform business processing, so that the faulty FIX service node whose status bit is disabled can be removed and restored, thereby ensuring the overall availability and normal operation of the trading system. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0033] Figure 1 A basic flow chart of a single point failure handling method provided by an embodiment of the present disclosure;
[0034] Figure 2 A schematic diagram of the overall architecture corresponding to a single point failure processing method provided in an embodiment of the present disclosure;
[0035] Figure 3 A schematic diagram of a business processing process provided by an embodiment of the present disclosure;
[0036] Figure 4 A schematic diagram of a fault recovery process provided by an embodiment of the present disclosure;
[0037] Figure 5 A schematic diagram of a dynamic routing table backup process provided by an embodiment of the present disclosure;
[0038] Figure 6 A schematic diagram of the structure of a single point failure processing device provided in an embodiment of the present disclosure;
[0039] Figure 7 A schematic diagram of the structure of another single point failure processing device provided by an embodiment of the present disclosure;
[0040] Figure 8 A schematic diagram of the structure of another single point failure processing device provided by an embodiment of the present disclosure;
[0041] Fig. 9 A schematic diagram of the structure of another single point failure processing device provided in an embodiment of the present disclosure;
[0042] Fig.10 A schematic diagram of the structure of a single point failure processing device provided by another embodiment of the present disclosure;
[0043] Fig.11 A schematic diagram of the structure of another single point failure processing device provided by another embodiment of the present disclosure;
[0044] Fig.12 A structural block diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the disclosed solution, the technical solution in the disclosed embodiment will be clearly and completely described below in conjunction with the drawings in the disclosed embodiment. Obviously, the described embodiment is only a part of the disclosed embodiment, not all of the embodiments. Based on the embodiments in the disclosed embodiment, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the disclosed embodiment.
[0046] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described can be implemented in sequences other than those illustrated or described herein.
[0047] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or apparatuses.
[0048] The technical terms involved in the embodiments of the present disclosure are as follows:
[0049] FIX Protocol: An open protocol provided by the International FIX Association to promote the process of electronic international trade and establish a real-time electronic communication protocol between various participants (including investment managers, brokers, buyers and sellers, etc.).
[0050] Service registration: registers the module information that provides a service (usually the IP and port of the service) to a common component (such as zookeeper or consul).
[0051] Service discovery: means that newly registered service modules can be discovered by other callers in a timely manner, and automatic discovery can be achieved regardless of whether a service is added or deleted.
[0052] Single Point of Failure: When a single point failure occurs in a computer system or network, it will affect the entire system or network, causing the entire system or network to be paralyzed.
[0053] For ease of understanding and explanation, the following Figures 1 to 12 The single point failure handling method, apparatus, computer equipment and storage medium provided by the embodiments of the present disclosure are described in detail.
[0054] Please refer to Figure 1 , which is a basic flow chart of a single point failure handling method provided by an embodiment of the present disclosure. The method comprises the following steps:
[0055] S101, in response to a received order request, determining the type of the order request.
[0056] For example, the types of order requests in the embodiments of the present disclosure may include, but are not limited to, new orders, order changes, and order cancellations. Among them, new orders refer to newly placed orders, that is, there is no historical record; order changes refer to modifying the original order, and order cancellations refer to canceling the original order. It can be understood that there are historical records for these two situations. The advantage of such a setting is that the securities trading system in the embodiments of the present disclosure can process different order requests, thereby meeting diverse usage requirements and expanding the scope of application.
[0057] S102, according to the dynamic routing table and the type of the order request, selecting a FIX service node in the dynamic routing table whose status bit is available for business processing, wherein the status bit of the faulty FIX service node is disabled.
[0058] Exemplarily, as shown in Table 1, the dynamic routing table in the embodiment of the present disclosure includes description information of the FIX service node. For example, the description information may include but is not limited to the FIX service node name (name), the FIX Session status (session_status), the access endpoint parameter (end_point), the access protocol parameter (access_protocol) and the weight value of the FIX Session (session_priority), etc.
[0059] Table 1 Dynamic routing table example
[0060]
[0061] It should be noted that when the FIX Session status is available, it is represented by the number 1, and conversely when the FIXSession status is disabled, it is represented by the number 0. Further, in the process of a single point failure, the disclosed embodiment can shut down the FIX service node through the management interface, and actually call the control service to set the session_status status bit of the dynamic routing table to 0 to indicate the shutdown state. At the same time, this state change will also be notified to each business service, so that it can immediately update the local cache.
[0062] To better understand the single point failure processing method provided by the embodiment of the present disclosure, Figure 2 The overall architecture shown in FIG. 1 is described in detail. The overall architecture may include but is not limited to management interface, control service, business service and stateful single point service.
[0063] It should be noted that the business service queries the dynamic routing table when routing orders, that is, lazy loading, and caches it locally. Figure 3As shown, after the business service receives the order request, it first determines whether the dynamic routing table cache is in the local cache. If it does not exist, it queries the control service and caches the queried dynamic routing table locally. Furthermore, after the business service obtains the dynamic routing table, it first filters out the routes with session_status 0, and then processes them accordingly according to the types of different order requests, thereby improving efficiency.
[0064] Optionally, in some embodiments of the present disclosure, if the type of order request is a new order, node selection is performed based on the weight values of the available FIX service nodes, such as using the FIX service node with the largest weight value. If the type of order request is to change or cancel an order, the routing identification code (identification, ID) corresponding to the order request when placing the order is obtained, and based on the routing identification code, the available FIX service nodes are determined, thereby implementing a sticky routing method. For example, if the status bit of the node corresponding to the routing identification code is available, the node corresponding to the routing identification code is used as an available FIX service node. For another example, if the status bit of the node corresponding to the routing identification code is disabled, the order change or cancellation is suspended until the status bit of the node corresponding to the routing identification code is available.
[0065] Optionally, some embodiments of the present disclosure may also obtain the access protocol parameters (access_protocol) and access endpoint parameters (end_point) of the selected FIX service node after selecting the node according to the weight values of the available FIX service nodes. Furthermore, when the access protocol parameter is HTTP, the service instance defined by the access endpoint parameter is searched in the registration center for calling, and when the access protocol parameter is KAFKA, the order request is encapsulated as a KAFKA message, and the KAFKA message is delivered to the title (topic) defined by the access endpoint parameter. Further, the FIX service node will monitor the corresponding KAFKA topic and consume the order request message therein.
[0066] Optionally, in some embodiments of the present disclosure, when the status bit of the faulty FIX service node is restored to available, the weight value of the faulty FIX service node may be gradually increased until a preset weight is reached. Figure 4As shown, after the faulty FIX service node is restored, the embodiment of the present disclosure can set the route corresponding to the faulty FIX service node to be turned on through the management interface. It should be noted that in the initial stage of fault recovery, although the session_status status will be set to 1 to indicate that it is turned on, the session_priority will be initialized to 0. When it is confirmed that the FIX Session has been fully restored, the weight of the faulty route can be re-added as needed from the management interface, so that some new orders are routed to the FIX Session, thereby further ensuring the normal operation of the system.
[0067] Optionally, in some embodiments of the present disclosure, when FIX Session recovery is required, a recovery strategy can also be configured. For example, the weight value is set to 1 after 1 minute, the weight value is set to 10 after 10 minutes, and the weight value is set to 100 after 60 minutes. The advantage of such a setting is that it can reduce manual monitoring of the disk and is safer and more reliable.
[0068] Optionally, in some embodiments of the present disclosure, the health status of the FIX service node can be checked regularly or irregularly, so that if the health status is abnormal for many consecutive times, the FIX service node is actively removed through the control service, and the health status of the FIX service node is continuously monitored. When the status of the FIX service node returns to normal, if it is automatically closed by the control service, it is automatically turned on, thereby realizing automated operation and maintenance. Alternatively, other embodiments of the present disclosure can also check the health status of the service node through a registration center (such as zookeeper or consul), and remove the service node if it is unhealthy. Once the service node can be restarted, it will re-register with the registration center, and other business services can be called through service discovery.
[0069] Optionally, in some embodiments of the present disclosure, the dynamic routing table may also be backed up regularly and / or updated. Figure 5 As shown in the figure, since the dynamic routing table is a key configuration, it needs to be backed up regularly every day through the control service. If the dynamic routing table is manually configured from the management interface, a backup will also be generated. The backup method is to package all current data into a file format and upload it to AWS S3 (Simple Storage Service) for storage. At the same time, the control service will record all backups, so that you can select a backup from the management interface for recovery.
[0070] The disclosed embodiment provides a single point failure handling method, which sets the status bits of a dynamic routing table and a FIX service node so that when an order request is received, the FIX service node whose status bit is available in the dynamic routing table can be called to perform business processing, so that the faulty FIX service node whose status bit is disabled can be removed and restored, thereby ensuring the overall availability and normal operation of the trading system.
[0071] Based on the above embodiments, the present disclosure provides a single point fault processing device, which can be applied to Figure 1 to Figure 5 The single point failure handling method provided in the corresponding embodiment. Please refer to Figure 6 As shown, the single point failure processing device 100 includes:
[0072] A determination module 101 is configured to determine the type of the order request in response to the received order request;
[0073] The routing module 102 is configured to select a FIX service node with an available status bit in the dynamic routing table for business processing according to the dynamic routing table and the type of the order request, wherein the status bit of the faulty FIX service node is disabled.
[0074] Optionally, in some embodiments of the present disclosure, Figure 7 As shown, the routing module 102 includes:
[0075] A selection unit 1021 is configured to select a node according to a weight value of an available FIX service node if the type of the order request is a new order;
[0076] The determination unit 1022 is configured to obtain a routing identification code corresponding to the order request when placing the order if the type of the order request is to modify or cancel the order, and determine an available FIX service node according to the routing identification code.
[0077] Optionally, in some embodiments of the present disclosure, the determining unit 1022 is further configured to use the node corresponding to the routing identification code as an available FIX service node if the status bit of the node corresponding to the routing identification code is available;
[0078] If the status bit of the node corresponding to the routing identification code is disabled, the order modification or cancellation is suspended until the status bit of the node corresponding to the routing identification code is enabled.
[0079] Optionally, in some embodiments of the present disclosure, Figure 8 As shown, the routing module 102 includes:
[0080] The acquisition unit 1023 is configured to acquire the access protocol parameters and access endpoint parameters of the selected FIX service node;
[0081] A search unit 1024 is configured to search for a service instance defined by an access endpoint parameter in a registration center for invocation when the access protocol parameter is HTTP;
[0082] The encapsulation unit 1025 is configured to encapsulate the order request into a KAFKA message when the access protocol parameter is KAFKA, and deliver the KAFKA message to the title defined by the access endpoint parameter.
[0083] Optionally, in some embodiments of the present disclosure, Fig. 9 As shown, the single point failure processing device 100 also includes:
[0084] The weight increasing module 103 is configured to gradually increase the weight value of the faulty FIX service node when the status bit of the faulty FIX service node is restored to available, until the preset weight is reached.
[0085] Optionally, in some embodiments of the present disclosure, Fig.10 As shown, the single point failure processing device 100 also includes:
[0086] A checking module 104, configured to check the health status of the FIX service node;
[0087] The monitoring module 105 is configured to remove the FIX service node if the health status is abnormal for multiple consecutive times, and continuously monitor the health status of the FIX service node.
[0088] Optionally, in some embodiments of the present disclosure, Fig.11 As shown, the single point failure processing device 100 also includes:
[0089] The backup module 106 is configured to perform regular backup and / or update backup of the dynamic routing table.
[0090] The disclosed embodiment provides a single point fault processing device, wherein the judgment module is configured to respond to the received order request and judge the type of the order request; the routing module is configured to select a FIX service node with an available status bit in the dynamic routing table for business processing according to the dynamic routing table and the type of the order request, wherein the status bit of the faulty FIX service node is disabled. The disclosed embodiment can call the available FIX service node to process the order request by setting the dynamic routing table and the status bit of the FIX service node, so that the faulty FIX service node with a disabled status bit can be removed and restored, thereby ensuring the overall availability and normal operation of the trading system.
[0091] Based on the foregoing embodiments, an embodiment of the present disclosure provides a computer device, which may include but is not limited to a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor can implement the steps of the single point failure handling method of any of the foregoing embodiments when executing the computer program.
[0092] For example, Fig.12 As shown, it is a block diagram of a computer device provided by an embodiment of the present disclosure. The computer device 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 202 or the program loaded from the storage part 203 to the random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the computer device 200 are also stored. The CPU 201, the ROM 202 and the RAM 203 are connected to each other through the bus 204. The input / output (I / O) interface 205 is also connected to the bus 204.
[0093] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.
[0094] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 203, and / or installed from a removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, the above-mentioned functions defined in the computer device of the present disclosure are executed.
[0095] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be set in a processor, for example, may be described as: a processor including: a judgment module and a routing module.
[0098] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be included in the computer device described in the above embodiments; or may exist independently and not be assembled into the computer device. The computer-readable storage medium stores a computer program, which is used to implement the steps of the single point failure handling method of any of the above embodiments.
[0099] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A single point failure processing method, characterized in that: The method comprises: In response to the received order request, determining the type of the order request; According to the dynamic routing table and the type of the order request, select a FIX service node in the dynamic routing table whose status bit is available for business processing, wherein the status bit of the faulty FIX service node is disabled; The dynamic routing table includes description information of the FIX service node, and the description information includes at least one of the following: a FIX service node name, a FIX Session state, an access endpoint parameter, an access protocol parameter, and a weight value of the FIX Session; The selecting, according to the dynamic routing table and the type of the order request, a FIX service node whose status bit is available in the dynamic routing table for business processing comprises: If the type of the order request is a new order, selecting a node according to the weight value of the available FIX service node; If the type of the order request is to modify or cancel an order, the routing identification code corresponding to the order request when placing the order is obtained, and the available FIX service node is determined according to the routing identification code.
2. The single point failure processing method according to claim 1, characterized in that: The step of determining the available FIX service node according to the routing identification code includes: If the status bit of the node corresponding to the routing identification code is available, the node corresponding to the routing identification code is used as the available FIX service node; If the status bit of the node corresponding to the routing identification code is disabled, the order modification or order cancellation is suspended until the status bit of the node corresponding to the routing identification code is enabled.
3. The single point failure processing method according to claim 1, characterized in that: After performing node selection according to the weight value of the available FIX service node, the method further includes: Obtain access protocol parameters and access endpoint parameters of the selected FIX service node; When the access protocol parameter is HTTP, searching the registration center for the service instance defined by the access endpoint parameter for invocation; When the access protocol parameter is KAFKA, the order request is encapsulated as a KAFKA message, and the KAFKA message is delivered to the title defined by the access endpoint parameter.
4. The single point failure processing method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the status bit of the faulty FIX service node is restored to available, the weight value of the faulty FIX service node is gradually increased until a preset weight is reached.
5. The single point failure processing method according to claim 4, characterized in that: The method further comprises: Check the health status of the FIX service node; If the health status is abnormal for multiple consecutive times, the FIX service node is removed, and the health status of the FIX service node is continuously monitored.
6. The single point failure processing method according to claim 4, characterized in that: The method further comprises performing a regular backup and / or an update backup of the dynamic routing table.
7. A single point fault handling device, characterized in that: The device comprises: A determination module, configured to determine the type of the order request in response to the received order request; A routing module configured to select a FIX service node with an available status bit in the dynamic routing table for business processing according to the dynamic routing table and the type of the order request, wherein the status bit of the faulty FIX service node is disabled; The dynamic routing table includes description information of the FIX service node, and the description information includes at least one of the following: a FIX service node name, a FIX Session state, an access endpoint parameter, an access protocol parameter, and a weight value of the FIX Session; The routing module includes: A selection unit, configured to select a node according to a weight value of an available FIX service node if the type of the order request is a new order; The determination unit is configured to obtain a routing identification code corresponding to the order request when placing the order if the type of the order request is to modify the order or cancel the order, and determine an available FIX service node according to the routing identification code.
8. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the single point failure handling method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to implement the steps of the single point failure processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Host group decision system in high availability cluster and switching method for host group decision system
CN103647668A