Method, system, device and medium for optimizing fault balance of load balancing service

By using the fuse client and database to save polling information in the load balancing service, the problem of lowering the polling policy after service failure or node changes is solved, and the reliability of the load balancing service is improved.

CN113806079BActive Publication Date: 2024-11-01JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110999544.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-29
Publication Date
2024-11-01
Estimated Expiration
2041-08-29

AI Technical Summary

Technical Problem

After the existing load balancing service fails or changes to the service node, it starts polling again from the first IP, resulting in a decrease in the equalization of the polling policy.

Method used

By mounting the fuse client in the storage cluster and saving the polling policy and polling location information in the database, we ensure that after the service restart or node changes, the previous polling record can be restored and the previous polling policy can be continued. Perform analysis.

Benefits of technology

Improve the balance and reliability of the polling policy, ensure that the domain name resolution can still be carried out according to the original policy after a service failure or node change, and avoid the imbalance of the polling policy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806079B_ABST
    Figure CN113806079B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for optimizing the fault balance of a load balancing service. The method includes: in response to the start of the load balancing service, judging whether a node in a storage cluster has mounted a fuse client; in response to the node having mounted a fuse client, judging whether a database is included in the storage directory having mounted the fuse client; in response to the storage directory having included a database, obtaining cluster node information and judging whether the database needs to be updated based on the cluster node information; in response to the database not needing to be updated and the load balancing service receiving a domain name request sent by a client, querying a polling position from a database, and resolving the domain name request according to the polling position and in accordance with a polling strategy; returning the resolution result to the client, and updating the current polling position to the database. Through the scheme of the present invention, the balance and reliability of the polling strategy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server technology, and in particular to a method, system, device and medium for optimizing the fault balance of a load balancing service. Background Art

[0002] In the prior art, the advanced load balancing service provides domain name resolution services, and allocates IPs to users according to the established balancing strategy during resolution, thereby achieving the balance of customer services. The advanced load balancing service adopts a one-master-multiple-standby mode, and each node belongs to the same storage cluster. For example, when processing a large number of user requests through the advanced load balancing service, the requests should be distributed to multiple servers as evenly as possible for processing, and each server processes a part of them instead of all user requests to complete high-concurrency request processing, avoiding the problem of system crash and inability to provide services due to the upper limit of the processing capacity of a single machine. The polling strategy is a simple but commonly used load balancing strategy. The core idea is that the server takes turns to process user requests so that the number of requests processed by each server is as equal as possible. When the advanced load balancing service processes domain name requests from multiple users, it will respond to the domain name requests in turn with the IPs corresponding to the domain names as the resolution results through the polling strategy. For example, there are three IPs A / B / C now. The resolution result of the first domain name request is A, the resolution result of the second request is B, the third result is C, the fourth result is A, and so on. For the existing load balancing polling strategy, the last resolved IP address is only recorded in the service memory. When the load balancing service is restarted or the service node is changed, the memory will be initialized. When there is a domain name request, polling will start again from the first IP address as the resolution result, which reduces the balance of the polling strategy. Summary of the invention

[0003] In view of this, the present invention proposes a method, system, device and medium for optimizing the fault balance of a load balancing service, which solves the problem that when a load balancing service fails and causes the service to be restarted or the service node to be changed, polling will start again from the first IP when there is a domain name request, thereby improving the balance and reliability of the polling strategy.

[0004] Based on the above purpose, an embodiment of the present invention provides a method for optimizing the fault balance of a load balancing service, which specifically includes the following steps:

[0005] In response to the load balancing service being started, determining whether the nodes in the storage cluster are mounted with the fuse client;

[0006] In response to the node mounting the fuse client, determining whether the storage directory where the fuse client is mounted includes a database, wherein the database includes a polling strategy and a polling position of a previous polling;

[0007] In response to the storage directory including the database, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information;

[0008] In response to the database not needing to be updated and the load balancing service receiving a domain name request sent by a client, querying the polling position from the database, and resolving the domain name request according to the polling position and in accordance with the polling strategy;

[0009] The parsing result is returned to the client, and the current polling position is updated in the database.

[0010] In some implementations, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information includes:

[0011] The configuration files of each node in the cluster are obtained, and the configuration information of the corresponding node is read from the database, and the configuration files are compared with the configuration information to determine whether the database needs to be updated.

[0012] In some embodiments, the method further comprises:

[0013] In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated;

[0014] The database interface is called to update the content to be updated to the database.

[0015] In some embodiments, the method further comprises:

[0016] The database is locked before the configuration information of the corresponding node is read from the database, and the database is unlocked after the update is completed.

[0017] In some embodiments, the method further comprises:

[0018] In response to not finding the polling location, resolving the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy.

[0019] In some embodiments, the method further comprises:

[0020] In response to the database not existing in the storage directory, creating a database;

[0021] In response to the node not having the fuse client mounted thereon, mounting the fuse client to the node.

[0022] In some implementations, updating the current polling position into the database includes:

[0023] A database interface is called to modify the polling position in the database based on the current polling position.

[0024] Another aspect of the embodiment of the present invention further provides a system for optimizing the fault balance of a load balancing service, the system comprising:

[0025] A judgment module, wherein the judgment module is configured to judge whether a node in the storage cluster is mounted with a fuse client in response to the start of the load balancing service;

[0026] The judgment module is further configured to judge whether the storage directory where the fuse client is mounted includes a database in response to the node mounting the fuse client, wherein the database includes a polling strategy and a polling position of a previous polling;

[0027] an acquisition module, the acquisition module being configured to, in response to the storage directory including the database, acquire cluster node information and determine whether the database needs to be updated based on the cluster node information;

[0028] a resolution module, the resolution module being configured to query the polling position from the database in response to the database not needing to be updated and the load balancing service receiving a domain name request sent by the client, and resolve the domain name request according to the polling position and in accordance with the polling strategy;

[0029] A return module is configured to return the parsing result to the client and update the current polling position into the database.

[0030] In some implementations, the acquisition module is further configured to: acquire a configuration file of each node in the cluster, read configuration information of the corresponding node from the database, and compare the configuration file with the configuration information to determine whether the database needs to be updated.

[0031] In some embodiments, the system further includes an update module, and the update module is configured to:

[0032] In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated;

[0033] The database interface is called to update the content to be updated to the database.

[0034] In some embodiments, the system further includes a locking module, which is configured to: lock the database before reading the configuration information of the corresponding node from the database, and unlock the database after the update is completed.

[0035] In some implementations, the resolution module is further configured to: in response to failure to find the polling location, resolve the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy.

[0036] In some embodiments, the system further comprises a processing module, wherein the processing module is configured to:

[0037] In response to the database not existing in the storage directory, creating a database;

[0038] In response to the node not having the fuse client mounted thereon, mounting the fuse client to the node.

[0039] In some implementations, updating the current polling position into the database includes:

[0040] A database interface is called to modify the polling position in the database based on the current polling position.

[0041] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.

[0042] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0043] The present invention has the following beneficial technical effects: by mounting a fuse client on each node in a storage cluster, building a database for a load balancing service, and storing polling strategies and polling location information in the database, it is ensured that after a load balancing service fails and causes a service restart or a service node change, when the domain name resolution is performed again, the previous IP polling record can still be obtained, and the previous polling strategy is continued for resolution, thereby ensuring the balance of the polling strategy and improving the balance and reliability of the polling strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0045] Figure 1A block diagram of an embodiment of a method for optimizing the fault balance of a load balancing service provided by the present invention;

[0046] Figure 2 A schematic diagram of an embodiment of a system for optimizing the fault balance of a load balancing service provided by the present invention;

[0047] Figure 3 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention;

[0048] Figure 4 A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0049] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0050] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0051] Based on the above purpose, the first aspect of the embodiment of the present invention provides an embodiment of a method for optimizing the fault balance of a load balancing service. Figure 1 As shown, it includes the following steps:

[0052] Step S101: In response to the load balancing service being started, determining whether a node in the storage cluster has a fuse client mounted thereon;

[0053] Step S103: In response to the node mounting the fuse client, determining whether the storage directory where the fuse client is mounted includes a database, wherein the database includes a polling strategy and a polling location of a previous poll;

[0054] Step S105: in response to the storage directory including the database, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information;

[0055] Step S107: In response to the database not needing to be updated and the load balancing service receiving the domain name request sent by the client, querying the polling position from the database, and resolving the domain name request according to the polling position and the polling strategy;

[0056] Step S109: Return the parsing result to the client, and update the current polling position into the database.

[0057] The present invention mounts a fuse client on each node in a storage cluster, builds a database for load balancing services, and stores polling strategies and polling location information in the database, thereby ensuring that after a load balancing service fails and causes a service restart or a service node change, when domain name resolution is performed again, the previous IP polling record can still be obtained, and the previous polling strategy is continued for resolution, thereby ensuring the balance of the polling strategy and improving the balance and reliability of the polling strategy.

[0058] In some implementations, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information includes:

[0059] The configuration files of each node in the cluster are obtained, and the configuration information of the corresponding node is read from the database, and the configuration files are compared with the configuration information to determine whether the database needs to be updated.

[0060] In some embodiments, the method further comprises:

[0061] In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated;

[0062] Call the database interface to update the content to be updated to the database.

[0063] In some embodiments, the method further comprises:

[0064] The database is locked before the configuration information of the corresponding node is read from the database, and the database is unlocked after the update is completed.

[0065] In some embodiments, the method further comprises:

[0066] In response to not finding the polling location, resolving the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy.

[0067] In some embodiments, the method further comprises:

[0068] In response to the database not existing in the storage directory, creating a database;

[0069] In response to the node not having the fuse client mounted thereon, mounting the fuse client to the node.

[0070] In some implementations, updating the current polling position into the database includes:

[0071] A database interface is called to modify the polling position in the database based on the current polling position.

[0072] The following describes several embodiments of the present invention in detail through specific examples.

[0073] When the advanced load balancing service is started for the first time, the storage cluster has no database, and the nodes in the cluster do not have the fuse client mounted. You need to create a database for the storage cluster and mount the fuse client on each node in the storage cluster so that each node accesses the same database, ensuring the uniqueness of data information.

[0074] Specifically, a database loadbalance.bd is created for the load balancing service and stored in the storage cluster for use by all nodes in the storage cluster. The database includes a database interface. When the system adds, deletes, modifies, or queries database information, this interface can be called to operate the database. The database also includes the configuration information of each node, domain name, node IP, polling strategy, and polling location of the last poll.

[0075] When an advanced load balancing service fails and causes the service to restart or the service node to change,

[0076] Determine whether the fuse client is mounted on each node. If not, mount the fuse client (icfs-fuse / mnt / icfs / ). If the mounting fails, issue an alarm and restart.

[0077] Then determine whether the storage directory contains a database. If not, create the database. If the database exists, obtain the configuration files of each node in the cluster, read the configuration information of the corresponding node from the database, and compare the configuration files with the configuration information to determine whether the database needs to be updated.

[0078] If the database needs to be updated, the database interface is called to update the content to be updated.

[0079] To ensure data accuracy, the database is locked before it is updated and unlocked after the update is completed.

[0080] When the advanced load balancing service receives a domain name request, it queries the polling location of the current polling strategy from the database that has been updated with the latest information, and resolves the result according to the polling strategy based on the location information of the polling location and returns it to the client. If the query to the database fails, polling and resolution are performed based on the location information currently cached by the load balancing service, giving priority to ensuring the normal resolution of the domain name, and issuing an alarm log. After the advanced load balancing service completes the domain name resolution, it calls the database interface to update the location information of the current polling strategy to the database of the storage directory. If the update fails, an alarm log is issued.

[0081] Through the embodiments of the present invention, by mounting a fuse client on each node in the storage cluster, building a database for load balancing services, and storing polling strategies and polling location information in the database, it is ensured that after a load balancing service fails and causes a service restart or a service node change, when the domain name resolution is performed again, the previous IP polling record can still be obtained, and the previous polling strategy is continued for resolution, thereby ensuring the balance of the polling strategy and improving the balance and reliability of the polling strategy.

[0082] Based on the same inventive concept, according to another aspect of the present invention, Figure 2 As shown, an embodiment of the present invention further provides a fault balance optimization system for a load balancing service, the system comprising:

[0083] A determination module 110, wherein the determination module 110 is configured to determine whether a node in the storage cluster is mounted with a fuse client in response to the start of the load balancing service;

[0084] The determination module 110 is further configured to determine, in response to the node mounting the fuse client, whether the storage directory mounting the fuse client includes a database, wherein the database includes a polling strategy and a polling location of a previous polling;

[0085] An acquisition module 120, wherein the acquisition module 120 is configured to acquire cluster node information in response to the storage directory including the database and determine whether the database needs to be updated based on the cluster node information;

[0086] A resolution module 130, wherein the resolution module 130 is configured to query the polling position from the database in response to the database not needing to be updated and the load balancing service receiving a domain name request sent by the client, and resolve the domain name request according to the polling position and in accordance with the polling strategy;

[0087] The returning module 140 is configured to return the parsing result to the client and update the current polling position into the database.

[0088] In some implementations, the acquisition module 120 is further configured to: acquire a configuration file of each node in the cluster, read configuration information of the corresponding node from the database, and compare the configuration file with the configuration information to determine whether the database needs to be updated.

[0089] In some embodiments, the system further includes an update module, and the update module is configured to:

[0090] In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated;

[0091] Call the database interface to update the content to be updated to the database.

[0092] In some embodiments, the system further includes a locking module, which is configured to: lock the database before reading the configuration information of the corresponding node from the database, and unlock the database after the update is completed.

[0093] In some implementations, the resolution module 130 is further configured to: in response to failure to find the polling location, resolve the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy.

[0094] In some embodiments, the system further comprises a processing module, wherein the processing module is configured to:

[0095] In response to the database not existing in the storage directory, creating a database;

[0096] In response to the node not having the fuse client mounted thereon, mounting the fuse client to the node.

[0097] In some implementations, updating the current polling position into the database includes:

[0098] A database interface is called to modify the polling position in the database based on the current polling position.

[0099] Based on the same inventive concept, according to another aspect of the present invention, Figure 3 As shown, an embodiment of the present invention further provides a computer device 20, in which the computer device 20 includes a processor 210 and a memory 220, the memory 220 stores a computer program 221 that can be run on the processor, and the processor 210 executes the following method when executing the program:

[0100] In response to the load balancing service being started, determining whether the nodes in the storage cluster are mounted with the fuse client;

[0101] In response to the node mounting the fuse client, determining whether the storage directory where the fuse client is mounted includes a database, wherein the database includes a polling strategy and a polling position of a previous polling;

[0102] In response to the storage directory including the database, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information;

[0103] In response to the database not needing to be updated and the load balancing service receiving a domain name request sent by a client, querying the polling position from the database, and resolving the domain name request according to the polling position and in accordance with the polling strategy;

[0104] The parsing result is returned to the client, and the current polling position is updated in the database.

[0105] In some implementations, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information includes:

[0106] The configuration files of each node in the cluster are obtained, and the configuration information of the corresponding node is read from the database, and the configuration files are compared with the configuration information to determine whether the database needs to be updated.

[0107] In some embodiments, the method further comprises:

[0108] In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated;

[0109] The database interface is called to update the content to be updated to the database.

[0110] In some embodiments, the method further comprises:

[0111] The database is locked before the configuration information of the corresponding node is read from the database, and the database is unlocked after the update is completed.

[0112] In some embodiments, the method further comprises:

[0113] In response to not finding the polling location, resolving the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy.

[0114] In some embodiments, the method further comprises:

[0115] In response to the database not existing in the storage directory, creating a database;

[0116] In response to the node not having the fuse client mounted thereon, mounting the fuse client to the node.

[0117] In some implementations, updating the current polling position into the database includes:

[0118] A database interface is called to modify the polling position in the database based on the current polling position.

[0119] Based on the same inventive concept, according to another aspect of the present invention, Figure 4 As shown, an embodiment of the present invention further provides a computer-readable storage medium 30, which stores a computer program 310 that is executed by a processor in the following manner:

[0120] In response to the load balancing service being started, determining whether the nodes in the storage cluster are mounted with the fuse client;

[0121] In response to the node mounting the fuse client, determining whether the storage directory where the fuse client is mounted includes a database, wherein the database includes a polling strategy and a polling position of a previous polling;

[0122] In response to the storage directory including the database, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information;

[0123] In response to the database not needing to be updated and the load balancing service receiving a domain name request sent by a client, querying the polling position from the database, and resolving the domain name request according to the polling position and in accordance with the polling strategy;

[0124] The parsing result is returned to the client, and the current polling position is updated in the database.

[0125] In some implementations, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information includes:

[0126] The configuration files of each node in the cluster are obtained, and the configuration information of the corresponding node is read from the database, and the configuration files are compared with the configuration information to determine whether the database needs to be updated.

[0127] In some embodiments, the method further comprises:

[0128] In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated;

[0129] Call the database interface to update the content to be updated to the database.

[0130] In some embodiments, the method further comprises:

[0131] The database is locked before the configuration information of the corresponding node is read from the database, and the database is unlocked after the update is completed.

[0132] In some embodiments, the method further comprises:

[0133] In response to not finding the polling location, resolving the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy.

[0134] In some embodiments, the method further comprises:

[0135] In response to the database not existing in the storage directory, creating a database;

[0136] In response to the node not having the fuse client mounted thereon, mounting the fuse client to the node.

[0137] In some implementations, updating the current polling position into the database includes:

[0138] A database interface is called to modify the polling position in the database based on the current polling position.

[0139] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.

[0140] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0141] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0142] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0143] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0144] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0145] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for optimizing the fault balance of a load balancing service, characterized in that: include: In response to the load balancing service being started, determining whether the nodes in the storage cluster are mounted with the fuse client; In response to the node mounting the fuse client, determining whether the storage directory where the fuse client is mounted includes a database, wherein the database includes a polling strategy and a polling position of a previous polling; In response to the storage directory including the database, obtaining cluster node information and determining whether the database needs to be updated based on the cluster node information; In response to the database not needing to be updated and the load balancing service receiving a domain name request sent by a client, querying the polling position from the database, and resolving the domain name request according to the polling position and in accordance with the polling strategy; Returning the parsing result to the client, and updating the current polling position in the database; In response to failure to find the polling location, resolving the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy; In response to the database not existing under the storage directory, creating a database; in response to the fuse client not being mounted on the node, mounting the fuse client to the node.

2. The method according to claim 1, characterized in that Acquiring cluster node information and determining whether the database needs to be updated based on the cluster node information includes: The configuration files of each node in the cluster are obtained, and the configuration information of the corresponding node is read from the database, and the configuration files are compared with the configuration information to determine whether the database needs to be updated.

3. The method according to claim 2, characterized in that Further including: In response to the comparison result between the configuration file and the configuration information being inconsistent, the database needs to be updated; The database interface is called to update the content to be updated to the database.

4. The method according to claim 3, characterized in that Further including: The database is locked before the configuration information of the corresponding node is read from the database, and the database is unlocked after the update is completed.

5. The method according to claim 1, characterized in that Updating the current polling position into the database comprises: A database interface is called to modify the polling position in the database based on the current polling position.

6. A fault balance optimization system for load balancing service, characterized in that: include: A judgment module, wherein the judgment module is configured to judge whether a node in the storage cluster is mounted with a fuse client in response to the start of the load balancing service; The judgment module is further configured to judge whether the storage directory where the fuse client is mounted includes a database in response to the node mounting the fuse client, wherein the database includes a polling strategy and a polling position of a previous polling; an acquisition module, the acquisition module being configured to, in response to the storage directory including the database, acquire cluster node information and determine whether the database needs to be updated based on the cluster node information; a resolution module, the resolution module being configured to query the polling position from the database in response to the database not needing to be updated and the load balancing service receiving a domain name request sent by the client, and resolve the domain name request according to the polling position and in accordance with the polling strategy; A return module, the return module is configured to return the parsing result to the client and update the current polling position into the database; The parsing module is further configured to parse the domain name request according to the polling location stored in the cache of the load balancing service and the polling strategy in response to failure to find the polling location; The return module is also configured to create a database in response to the database not being present in the storage directory; and to mount the fuse client to the node in response to the fuse client not being mounted on the node.

7. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 5 when executing the program.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are performed.