A load balancing method and device for virtualized database proxy service

By obtaining the database access request and service status information, the target database proxy service is determined to achieve load balancing, which solves the problem of low resource utilization of the database proxy service in the existing technology and improves the resource utilization and efficiency of the database proxy service.

CN113377866BActive Publication Date: 2024-09-17GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110649643.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-10
Publication Date
2024-09-17
Estimated Expiration
2041-06-10

AI Technical Summary

Technical Problem

When the network scale is large, the existing technology only performs load balancing on the database proxy service based on the load of the communication link, which cannot effectively guarantee the resource utilization of the database proxy service.

Method used

By obtaining the database access request and the service status information and resource indicator information of each database proxy service, including memory usage ratio, CPU usage ratio, number of business database connections and SQL statement execution rate, the target database proxy service is determined and the request is sent to the services to achieve load balancing.

Benefits of technology

It improves the resource utilization and efficiency of the database proxy service and balances the load of each database proxy service by allocating services based on the current load and service status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113377866B
    Figure CN113377866B
Patent Text Reader

Abstract

The present application provides a load balancing method and device for a virtualized database proxy service, the method comprising: obtaining a database access request and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate; determining the target database proxy service to which the load is to be applied according to the service status information and resource indicator information of each database proxy service; and sending the database access request to the target database proxy service through a load balancing service. The method provided by the above scheme allocates services to the database proxy service according to the current load situation and service status of each database proxy service to balance the load of each database proxy service, and dynamically feeds back the status of the database proxy service, thereby improving the resource utilization of the database proxy service and laying a foundation for improving the efficiency of the database proxy service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of database technology, and in particular to a load balancing method and device for a virtualized database proxy service. Background Art

[0002] With the development of Internet technology and the continuous increase in application business volume, more and more businesses have adopted multi-node clusters and used load balancers to share business pressure to each node in the cluster.

[0003] In the prior art, a load balancer usually evaluates the load of a database communication link based on a single performance indicator such as network bandwidth, throughput, and network connection, and then performs database load balancing regulation.

[0004] However, when the network scale is large, the operation of the database is usually controlled by a database proxy service, and the load of the database proxy service is balanced only according to the load of the communication link, which is not conducive to ensuring the resource utilization of the database proxy service. Summary of the invention

[0005] The present application provides a load balancing method and device for a virtualized database proxy service to solve the defects of the prior art such as the inability to guarantee resource utilization of the database proxy service.

[0006] The first aspect of the present application provides a load balancing method for a virtualized database proxy service, comprising:

[0007] Obtaining database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate;

[0008] Determine the target database proxy service according to the service status information and resource indicator information of each database proxy service;

[0009] The database access request is sent to the target database proxy service.

[0010] Optionally, determining the target database proxy service according to the service status information and resource indicator information of each database proxy service includes:

[0011] Filter available database proxy services according to the service status information of each database proxy service;

[0012] Calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service;

[0013] According to the load value of each available database proxy service, a target database proxy service is selected from the available database proxy services.

[0014] Optionally, calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service includes:

[0015] Obtaining the weight corresponding to each indicator in the resource indicator information;

[0016] The load value of the available database proxy service is calculated according to the resource indicator information of the available database proxy service and the weight corresponding to each indicator.

[0017] Optionally, before calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service, the method further includes:

[0018] Determine whether each indicator in the resource indicator information of the available database proxy service exceeds a preset threshold;

[0019] When all indicators of the available database proxy service do not exceed the preset threshold, the step of calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service is performed.

[0020] Optionally, also include:

[0021] When any indicator of the available database proxy service exceeds the preset threshold, the available database proxy service is marked as being in an overload state.

[0022] Optionally, the obtaining of the database access request and the service status information and resource indicator information of each database proxy service includes:

[0023] Obtaining the database access request and a source address corresponding to the database access request;

[0024] Determine a target database proxy service group according to the source address;

[0025] The service status information and resource indicator information of each database proxy service in the target database proxy service group are obtained.

[0026] Optionally, determining the target database proxy service group according to the source address includes:

[0027] Obtaining historical service records of the source address;

[0028] A target database proxy service group is selected from a plurality of database proxy service groups according to the historical service records.

[0029] A second aspect of the present application provides a load balancing device for a virtualized database proxy service, comprising:

[0030] An acquisition module is used to acquire database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate;

[0031] A determination module, used to determine a target database proxy service according to the service status information and resource indicator information of each database proxy service;

[0032] A management module is used to send the database access request to the target database proxy service.

[0033] Optionally, the determining module is specifically used to:

[0034] Filter available database proxy services according to the service status information of each database proxy service;

[0035] Calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service;

[0036] According to the load value of each available database proxy service, a target database proxy service is selected from the available database proxy services.

[0037] Optionally, the determining module is specifically used to:

[0038] Obtaining the weight corresponding to each indicator in the resource indicator information;

[0039] The load value of the available database proxy service is calculated according to the resource indicator information of the available database proxy service and the weight corresponding to each indicator.

[0040] Optionally, the determining module is further used to:

[0041] Determine whether each indicator in the resource indicator information of the available database proxy service exceeds a preset threshold;

[0042] When all indicators of the available database proxy service do not exceed the preset threshold, the step of calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service is performed.

[0043] Optionally, the determining module is further used to:

[0044] When any indicator of the available database proxy service exceeds the preset threshold, the available database proxy service is marked as being in an overload state.

[0045] Optionally, the acquisition module is specifically used to:

[0046] Obtaining the database access request and a source address corresponding to the database access request;

[0047] Determine a target database proxy service group according to the source address;

[0048] The service status information and resource indicator information of each database proxy service in the target database proxy service group are obtained.

[0049] Optionally, the acquisition module is specifically used to:

[0050] Obtaining historical service records of the source address;

[0051] A target database proxy service group is selected from a plurality of database proxy service groups according to the historical service records.

[0052] A third aspect of the present application provides an electronic device, comprising: at least one processor and a memory;

[0053] The memory stores computer-executable instructions;

[0054] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect and various possible designs of the first aspect.

[0055] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in the first aspect and various possible designs of the first aspect are implemented.

[0056] The technical solution of this application has the following advantages:

[0057] The load balancing method and device for virtualized database proxy services provided by the present application obtain database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate; determine the target database proxy service according to the service status information and resource indicator information of each database proxy service; and send the database access request to the target database proxy service. The method provided by the above scheme distributes services to the database proxy service according to the current load situation and service status of each database proxy service to balance the load of each database proxy service, thereby improving the resource utilization of the database proxy service and laying a foundation for improving the efficiency of the database proxy service. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present application 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 described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0059] Figure 1 A schematic diagram of the structure of a load balancing system for a virtualized database proxy service based on an embodiment of the present application;

[0060] Figure 2 A flow chart of a load balancing method for a virtualized database proxy service provided in an embodiment of the present application;

[0061] Figure 3 A schematic diagram of the structure of an exemplary load balancing system for a virtualized database proxy service provided in an embodiment of the present application;

[0062] Figure 4 A schematic diagram of the structure of a load balancing device for a virtualized database proxy service provided in an embodiment of the present application;

[0063] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0064] The above drawings have shown clear embodiments of the present application, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0066] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0067] In the prior art, load balancing usually evaluates the load of the database communication link based on single performance indicators such as network bandwidth, throughput and network connection, and then performs database load balancing regulation. However, in the case of a large network scale, a database proxy service is usually used to control the operation of the database, and balancing the database proxy service load only based on the load of the communication link is not conducive to ensuring the resource utilization of the database proxy service.

[0068] In response to the above problems, the load balancing method and device of the virtualized database proxy service provided in the embodiment of the present application obtains the database access request and the service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes the memory occupancy rate, the CPU occupancy rate, the number of business database connections and the SQL statement execution rate; determines the target database proxy service according to the service status information and resource indicator information of each database proxy service; and sends the database access request to the target database proxy service. The method provided by the above scheme distributes business to the database proxy service according to the current load situation and service status of each database proxy service to balance the load of each database proxy service, thereby improving the resource utilization of the database proxy service and laying a foundation for improving the efficiency of the database proxy service.

[0069] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0070] First, the structure of the load balancing system of the virtualized database proxy service on which this application is based is described:

[0071] The load balancing method and device for virtualized database proxy services provided in the embodiments of the present application are suitable for managing clustered database proxy services. Figure 1 As shown, it is a structural diagram of the load balancing system of the virtualized database proxy service based on the embodiment of the present application, which mainly includes multiple database proxy services, a business system and a load balancing device of the virtualized database proxy service. Specifically, the load balancing device of the virtualized database proxy service receives the database access request sent by the business system, and determines the target database proxy service according to the current load of each database proxy service, and then sends the database access request to the target database proxy service.

[0072] The embodiment of the present application provides a load balancing method for a virtualized database proxy service, which is used to reasonably allocate services for the database proxy service. The execution subject of the embodiment of the present application is an electronic device, such as a server, a desktop computer, a laptop computer, a tablet computer, and other electronic devices that can be used to manage database proxy services.

[0073] like Figure 2 FIG. 1 is a flow chart of a load balancing method for a virtualized database proxy service provided in an embodiment of the present application, the method comprising:

[0074] Step 201: Obtain database access requests and service status information and resource indicator information of each database proxy service.

[0075] The resource indicator information includes at least the memory usage ratio, the CPU usage ratio, the number of business database connections and the SQL statement execution rate.

[0076] It should be noted that the database access request corresponds to the business generated by the business system; the service status information at least includes the network connection status information of the database proxy service, etc.

[0077] The SQL statement execution rate specifically refers to the SQL statement usage rate per second of the database proxy service.

[0078] It should be further explained that the database proxy service is a service program deployed on the security device, and multiple database proxy services can be deployed on one security device. The function of the database proxy service is to accept user requests (database access requests) sent by the dedicated JDBC driver, and then forward the request to the physical database server (database) after completing the security analysis function, and return the execution result to the user. For users, the database proxy service is equivalent to a virtual database, and currently uses a general hardware load balancer for load forwarding.

[0079] Step 202: Determine the target database proxy service according to the service status information and resource indicator information of each database proxy service.

[0080] Specifically, the current status information of the database proxy service can be determined based on the service status information of the database proxy service, and then it can be determined whether it can provide the proxy service normally. The current load condition of the database proxy service can be determined based on the resource indicator information of the database proxy service. Furthermore, the target database proxy service can be screened from multiple database proxy services (database proxy service cluster) in combination with the current status information and load condition of each database proxy service.

[0081] Step 203: Send the database access request to the target database proxy service.

[0082] Specifically, when the target database proxy service receives a database access request, it will provide the database proxy service to the business system according to the database access request.

[0083] The business system may specifically refer to a database application end, and the database proxy service is a network proxy service located between the database service end and the database application end, and is used to proxy requests from the database application end when accessing the database.

[0084] On the basis of the above embodiments, in order to improve the management efficiency of the database proxy service, as an implementable method, in one embodiment, according to the service status information and resource indicator information of each database proxy service, the target database proxy service is determined, including:

[0085] Step 2021, screening available database proxy services according to the service status information of each database proxy service;

[0086] Step 2022, calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service;

[0087] Step 2023: Select a target database proxy service from the available database proxy services according to the load value of each available database proxy service.

[0088] It should be noted that in order to adapt to product upgrades, the database proxy service in the network also needs to be upgraded or maintained regularly. The database proxy service will not be able to provide proxy services normally during this period. Therefore, in order to avoid wasting management resources, such database proxy services (unavailable database proxy services) will not be load evaluated.

[0089] Specifically, in order to facilitate comparison and analysis of the load conditions of various database proxy services, the load conditions thereof may be quantified as load values.

[0090] Specifically, in one embodiment, the weight corresponding to each indicator in the resource indicator information is obtained; and the load value of the available database proxy service is calculated according to the resource indicator information of the available database proxy service and the weight corresponding to each indicator.

[0091] It should be noted that the weight corresponding to each indicator can be determined by relevant managers based on the hierarchical analysis method.

[0092] In order to facilitate those skilled in the art to better understand the load value calculation process provided in the embodiment of the present application, the embodiment of the present application provides the following exemplary hierarchical analysis process:

[0093] First, according to the importance of each indicator, construct the indicator comparison matrix corresponding to the resource indicator information, for example:

[0094]

[0095] Then, according to the above indicator comparison matrix, evaluate the weight corresponding to each indicator:

[0096]

[0097] Finally, the weights are verified, specifically, whether the sum of the weights is 1. If it is 1, the current weights are determined to be legal, otherwise, they are re-evaluated.

[0098] Furthermore, the load value can be calculated based on the following formula:

[0099] Key=0.41*P c +0.41*P m +0.13P d +0.05P s

[0100] Among them, Key represents the load value, P c Indicates the CPU usage ratio, P m Indicates the memory usage ratio, P d Indicates the number of business database connections, P s Indicates the SQL statement execution rate.

[0101] It should be noted that the weight can be adjusted according to the importance of each indicator in different application scenarios, and the specific weight value is not limited in the embodiments of the present application.

[0102] Based on the above embodiment, as an implementable manner, in one embodiment, before calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service, the method further includes:

[0103] Step 301, determining whether each indicator in the resource indicator information of the available database proxy service exceeds a preset threshold;

[0104] Step 302 : when all indicators of the available database proxy service do not exceed the preset threshold, a step of calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service is executed.

[0105] It should be noted that if an indicator of a database proxy service exceeds its corresponding threshold, it can be determined that the database proxy service is overloaded. In order to avoid wasting computing resources for the load value, the load of the overloaded database proxy service may not be evaluated.

[0106] Specifically, in one embodiment, when any indicator of the available database proxy service exceeds a preset threshold, the available database proxy service is marked as being in an overload state.

[0107] Specifically, when any indicator of an available database proxy service exceeds a preset threshold, the database proxy service is determined to be an overloaded database proxy service. It is not currently load evaluated and will not be used as a target database proxy service. This saves computing load evaluation resources while improving the management efficiency of the database proxy service.

[0108] On the basis of the above embodiment, in order to further improve the management efficiency of the database proxy service, the database proxy service cluster can be grouped and managed in advance. As an implementable method, the database access request and the service status information and resource indicator information of each database proxy service are obtained, including:

[0109] Step 211, obtaining a database access request and a source address corresponding to the database access request;

[0110] Step 212, determining the target database proxy service group according to the source address;

[0111] Step 2013: Obtain service status information and resource indicator information of each database proxy service in the target database proxy service group.

[0112] It should be noted that the servers in the database proxy service cluster can be clustered according to their operating systems and architectures and divided into multiple database proxy service groups, which reduces the probability of exploitation of vulnerabilities in the operating system and database proxy services and improves the security of the service.

[0113] Specifically, in one embodiment, a historical service record of a source address may be obtained; and a target database proxy service group may be selected from a plurality of database proxy service groups according to the historical service record.

[0114] For example, if there are currently five groups of database proxy service groups, marked as Group 1, Group 2, Group 3, Group 4 and Group 5 respectively, and the business system corresponding to the current source address last visited Group 2, then it will be assigned to Group 3 at this time. If there are no available data proxy servers in the current Group 3, or the servers in the group are all overloaded, they will be reallocated to Group 4; if it was Group 5 that was last visited, it will be assigned to Group 1 at this time, and so on.

[0115] Furthermore, a target database proxy service is selected within the selected target database proxy service group, thereby completing subsequent operations such as data access.

[0116] For example, Figure 3As shown, it is a schematic diagram of the structure of the load balancing system of the exemplary virtualized database proxy service provided in the embodiment of the present application. Among them, the business system configures the load balancing URL through the JDBC driver and connects to the load balancing address. The load balancing of the virtualized database proxy service provided in the embodiment of the present application can be specifically deployed in the load balancing module in the figure. The service status information of each database proxy service can be obtained from the device status table, the resource indicator information can be obtained from the device resource information table, and the threshold information table records the threshold corresponding to each indicator.

[0117] The load balancing method for virtualized database proxy services provided in the embodiment of the present application obtains database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information includes at least memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate; determines the target database proxy service according to the service status information and resource indicator information of each database proxy service; and sends the database access request to the target database proxy service. The method provided by the above scheme distributes services to the database proxy services according to the current load conditions and service status of each database proxy service to balance the load of each database proxy service, thereby improving the resource utilization of the database proxy service and laying a foundation for improving the efficiency of the database proxy service. In addition, the load balancing efficiency of the virtualized database proxy service is improved.

[0118] An embodiment of the present application provides a load balancing device for a virtualized database proxy service, which is used to execute the load balancing method for a virtualized database proxy service provided in the above embodiment.

[0119] like Figure 4 , which is a schematic diagram of the structure of a load balancing device for a virtualized database proxy service provided by an embodiment of the present application. The load balancing device 40 for a virtualized database proxy service includes an acquisition module 401 , a determination module 402 and a management module 403 .

[0120] Among them, the acquisition module is used to obtain database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate; the determination module is used to determine the target database proxy service based on the service status information and resource indicator information of each database proxy service; the management module is used to send the database access request to the target database proxy service.

[0121] Specifically, in one embodiment, the determination module is specifically used to:

[0122] Filter available database proxy services according to the service status information of each database proxy service;

[0123] Calculate the load value of the available database proxy service according to the resource indicator information of the available database proxy service;

[0124] A target database proxy service is selected from the available database proxy services according to the load value of each available database proxy service.

[0125] Specifically, in one embodiment, the determination module is specifically used to:

[0126] Get the weight corresponding to each indicator in the resource indicator information;

[0127] The load value of the available database proxy service is calculated according to the resource indicator information of the available database proxy service and the weight corresponding to each indicator.

[0128] Specifically, in one embodiment, the determination module is further used to:

[0129] Determine whether each indicator in the resource indicator information of the available database proxy service exceeds a preset threshold;

[0130] When all indicators of the available database proxy service do not exceed the preset threshold, a step of calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service is executed.

[0131] Specifically, in one embodiment, the determination module is further used to:

[0132] When any indicator of the available database proxy service exceeds a preset threshold, the available database proxy service is marked as being in an overload state.

[0133] Specifically, in one embodiment, the acquisition module is specifically used to:

[0134] Obtain a database access request and a source address corresponding to the database access request;

[0135] Determine the target database proxy service group based on the source address;

[0136] Obtain service status information and resource indicator information of each database proxy service in the target database proxy service group.

[0137] Specifically, in one embodiment, the acquisition module is specifically used to:

[0138] Get historical service records of the source address;

[0139] According to the historical service records, a target database proxy service group is selected from multiple database proxy service groups.

[0140] Regarding the load balancing device for the virtualized database proxy service in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0141] The load balancing device for the virtualized database proxy service provided in the embodiment of the present application is used to execute the load balancing method for the virtualized database proxy service provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.

[0142] An embodiment of the present application provides an electronic device for executing the load balancing method of the virtualized database proxy service provided in the above embodiment.

[0143] like Figure 5 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 50 includes: at least one processor 51 and a memory 52;

[0144] The memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the load balancing method for the virtualized database proxy service provided in the above embodiment.

[0145] An electronic device provided in an embodiment of the present application is used to execute the load balancing method of the virtualized database proxy service provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.

[0146] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a load balancing method for a virtualized database proxy service provided in any of the above embodiments is implemented.

[0147] The storage medium containing computer executable instructions in the embodiment of the present application can be used to store computer executable instructions of the load balancing method of the virtualized database proxy service provided in the aforementioned embodiment. Its implementation method and principle are the same and will not be repeated here.

[0148] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A load balancing method for a virtualized database proxy service, characterized in that: include: Obtaining database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate; Determine the target database proxy service according to the service status information and resource indicator information of each database proxy service; Sending the database access request to the target database proxy service; The obtaining of database access requests and service status information and resource indicator information of each database proxy service includes: Obtaining the database access request and a source address corresponding to the database access request; Determine a target database proxy service group according to the source address; Obtaining service status information and resource indicator information of each database proxy service in the target database proxy service group; The step of determining the target database proxy service according to the service status information and resource indicator information of each database proxy service includes: Filter available database proxy services according to the service status information of each database proxy service; Calculating a load value of the available database proxy service according to the resource indicator information of the available database proxy service; According to the load value of each available database proxy service, a target database proxy service is selected from the available database proxy services.

2. The method according to claim 1, characterized in that The calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service comprises: Obtaining the weight corresponding to each indicator in the resource indicator information; The load value of the available database proxy service is calculated according to the resource indicator information of the available database proxy service and the weight corresponding to each indicator.

3. The method according to claim 1, characterized in that Before calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service, the method further includes: Determine whether each indicator in the resource indicator information of the available database proxy service exceeds a preset threshold; When all indicators of the available database proxy service do not exceed the preset threshold, the step of calculating the load value of the available database proxy service according to the resource indicator information of the available database proxy service is performed.

4. The method according to claim 3, characterized in that Also includes: When any indicator of the available database proxy service exceeds the preset threshold, the available database proxy service is marked as being in an overload state.

5. The method according to claim 1, characterized in that The step of determining the target database proxy service group according to the source address includes: Obtaining historical service records of the source address; A target database proxy service group is selected from a plurality of database proxy service groups according to the historical service records.

6. A load balancing device for a virtualized database proxy service, characterized in that: include: An acquisition module is used to acquire database access requests and service status information and resource indicator information of each database proxy service; wherein the resource indicator information at least includes memory occupancy rate, CPU occupancy rate, number of business database connections and SQL statement execution rate; A determination module, used to determine a target database proxy service according to the service status information and resource indicator information of each database proxy service; A management module, used for sending the database access request to the target database proxy service; The determination module is specifically used for: Filter available database proxy services according to the service status information of each database proxy service; Calculating a load value of the available database proxy service according to the resource indicator information of the available database proxy service; Selecting a target database proxy service from the available database proxy services according to the load value of each available database proxy service; The acquisition module is specifically used for: Obtaining the database access request and a source address corresponding to the database access request; Determine a target database proxy service group according to the source address; The service status information and resource indicator information of each database proxy service in the target database proxy service group are obtained.

7. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 5 is implemented.