CN113568746A - Load balancing method and device, electronic equipment and storage medium - Google Patents

Load balancing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113568746A
CN113568746A CN202110850608.3A CN202110850608A CN113568746A CN 113568746 A CN113568746 A CN 113568746A CN 202110850608 A CN202110850608 A CN 202110850608A CN 113568746 A CN113568746 A CN 113568746A
Authority
CN
China
Prior art keywords
target node
resource usage
instance
load balancing
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110850608.3A
Other languages
Chinese (zh)
Other versions
CN113568746B (en
Inventor
孙晓飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110850608.3A priority Critical patent/CN113568746B/en
Publication of CN113568746A publication Critical patent/CN113568746A/en
Application granted granted Critical
Publication of CN113568746B publication Critical patent/CN113568746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to a load balancing method, a load balancing device, an electronic device and a storage medium, and aims to solve the problems that the existing load balancing method is too complex in process and low in efficiency. The method comprises the following steps: determining a target node in the cluster, wherein the target node is a node with the resource usage meeting a preset condition; the preset condition is that the resource usage is larger than the upper limit value of the threshold range, or the resource usage is smaller than the lower limit value of the threshold range; performing a load balancing operation on the target node, the load balancing operation comprising: adjusting the dynamic coefficient of the target node in a mode corresponding to a preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node; determining the size relationship between the current resource usage amount and the current resource allocation amount of the target node; and updating the instance in the target node according to the determined size relationship.

Description

Load balancing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a load balancing method and apparatus, an electronic device, and a storage medium.
Background
The Kubernetes (K8S for short) cluster is often composed of many nodes, and when different instances are randomly deployed on the nodes, because the sizes of resources used by the different instances on the nodes are different, there may be a case where the loads of some nodes are high and the loads of some nodes are low. Thus, the problem of node load imbalance occurs in the K8S cluster.
In order to solve the above problem, the prior art provides a load balancing method. Specifically, when a high-load node occurs, firstly, the state of the high-load node is marked as non-schedulable, secondly, a part of instances on the high-load node are evicted, and in the process of eviction, an occupying instance is created to occupy the idle resources of the high-load node. After determining that the partial example eviction of the high-load node is finished, marking the state of the high-load node as schedulable. In addition, when the load of the high-load node is monitored to be restored to be within the normal threshold range, the occupied instance is deleted, and the situation that other new instances are added is waited to be realized. However, this method has a long flow, is too complex to operate, and has low efficiency in implementing load balancing.
Disclosure of Invention
The present disclosure provides a load balancing method, an apparatus, an electronic device, and a storage medium, so as to solve the problems of an existing load balancing method that a flow is too complex and efficiency is low.
The technical scheme of the disclosure is as follows:
in a first aspect, the present disclosure provides a load balancing method, including: the method comprises the steps that electronic equipment determines a target node in a cluster, wherein the target node is a node with resource usage meeting preset conditions; the preset condition is that the resource usage is larger than the upper limit value of the threshold range, or the resource usage is smaller than the lower limit value of the threshold range; performing a load balancing operation on the target node, the load balancing operation comprising: adjusting the dynamic coefficient of the target node in a mode corresponding to a preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node; determining the size relationship between the current resource usage amount and the current resource allocation amount of the target node; and updating the instance in the target node according to the determined size relationship.
In a possible implementation manner, the presetting condition is that the resource usage is greater than an upper limit value of a threshold range, the dynamic coefficient of the target node is adjusted in a manner corresponding to the presetting condition, and the current resource allocation amount of the target node is determined according to the adjusted dynamic coefficient and the resource supply amount of the target node, including: and reducing the dynamic coefficient of the target node in a manner corresponding to the upper limit value of the resource usage amount larger than the threshold range, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, wherein the dynamic coefficient is positively correlated with the current resource allocation amount.
In another possible implementation manner, updating the instance in the target node according to the determined size relationship includes: and if the current resource usage in the target node is larger than the current resource allocation amount, triggering instance eviction operation, wherein the instance eviction operation is used for evicting a target instance in the target node, and the target instance is used for occupying the proportion of the current resource usage exceeding a threshold value.
In another possible implementation manner, the presetting condition is that the resource usage amount is smaller than a lower limit value of the threshold range, the dynamic coefficient of the target node is adjusted in a manner corresponding to the presetting condition, and the current resource allocation amount of the target node is determined according to the adjusted dynamic coefficient and the resource supply amount of the target node, including: and increasing the dynamic coefficient of the target node in a manner corresponding to the lower limit value of the resource usage less than the threshold range, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, wherein the dynamic coefficient is positively correlated with the current resource allocation amount.
In another possible implementation manner, updating the instance in the target node according to the determined size relationship includes: and if the current resource usage amount in the target node is smaller than the current resource allocation amount, triggering instance adding operation, wherein the instance adding operation is to add an instance in the target node.
In another possible implementation manner, after updating the instance in the target node according to the determined size relationship, the method further includes: and if the resource usage of the target node after the instance update meets the preset condition, repeatedly executing the load balancing operation until the current resource usage does not meet the preset condition.
In another possible implementation, determining a target node in a cluster includes: acquiring the resource usage of each node in the cluster; and determining the node with the resource usage meeting the preset condition as a target node.
In a second aspect, the present disclosure provides a load balancing apparatus, including: the device comprises a processing module and an adjusting module. The processing module is configured to determine a target node in the cluster, wherein the target node is a node with resource usage meeting a preset condition; the preset condition is that the resource usage is larger than the upper limit value of the threshold range, or the resource usage is smaller than the lower limit value of the threshold range; an adjustment module configured to perform a load balancing operation on a target node, the load balancing operation comprising: adjusting the dynamic coefficient of the target node in a mode corresponding to a preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node to determine the size relationship between the current resource usage amount and the current resource allocation amount of the target node; and updating the instance in the target node according to the determined size relationship.
In another possible implementation manner, the adjusting module is further configured to reduce the dynamic coefficient of the target node in a manner corresponding to the resource usage being greater than the upper limit of the threshold range, and determine the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, where the dynamic coefficient is positively correlated with the current resource allocation amount.
In another possible implementation manner, the processing module is further configured to trigger an instance eviction operation if the current resource usage amount in the target node is greater than the current resource allocation amount, where the instance eviction operation is to evict a target instance in the target node, and the target instance is an instance occupying a proportion of the current resource usage amount that exceeds a threshold value.
In another possible implementation manner, the adjusting module is further configured to increase the dynamic coefficient of the target node in a manner corresponding to that the resource usage is smaller than the lower limit of the threshold range, and determine the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, where the dynamic coefficient is positively correlated with the current resource allocation amount.
In another possible implementation manner, the processing module is further configured to trigger an instance adding operation if the current resource usage amount in the target node is smaller than the current resource allocation amount, where the instance adding operation is to add an instance in the target node.
In another possible implementation manner, the processing module is further configured to, if the resource usage amount of the target node after the instance update meets a preset condition, repeatedly perform the load balancing operation until the current resource usage amount does not meet the preset condition.
In another possible implementation manner, the load balancing apparatus further includes an obtaining module, where the obtaining module is configured to obtain a resource usage amount of each node in the cluster; and the processing module is also configured to determine the node with the resource usage meeting the preset condition as the target node.
In a third aspect, the present disclosure provides an electronic device comprising: a processor; a memory for storing processor-executable instructions. Wherein the processor is configured to execute the instructions to implement the load balancing method as shown in any one of the possible implementations of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform a load balancing method as set forth in any one of the possible implementations of the first aspect.
In a fifth aspect, the present disclosure provides a computer program product directly loadable into an internal memory of an electronic device and containing software code, which, when loaded and executed by the electronic device, is capable of implementing the load balancing method as shown in any of the possible implementations of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the scheme, after the electronic equipment determines the target nodes meeting the preset conditions in the cluster, the dynamic coefficients of the target nodes are adjusted in a mode corresponding to the preset conditions, and the resource allocation amount of the target nodes is changed by adjusting the dynamic coefficients; and then judging the size relationship between the current resource usage amount and the resource allocation amount of the target node, and determining the specific operation executed on the instance running on the target node according to the size relationship. After the operation is performed on the instance running on the target node, the resource usage of the target node will be changed. The resource allocation amount of the target node is changed by adjusting the dynamic coefficient of the target node, the resource usage amount of the target node is influenced by the resource allocation amount, the resources on the target node are interfered from the original allocation level, and the source processing is realized. Therefore, the whole implementation method is more efficient, the process is shorter, and the operation is more convenient.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of a system architecture to which embodiments of the present disclosure are applicable, shown in accordance with an exemplary embodiment;
FIG. 2 is one of the flow diagrams illustrating a method of load balancing according to an example embodiment;
FIG. 3 is a second flowchart illustrating a method of load balancing according to an exemplary embodiment;
FIG. 4 is a third flowchart illustrating a method of load balancing according to an example embodiment;
FIG. 5 is a fourth flowchart illustrating a method of load balancing according to an example embodiment;
FIG. 6 is a fifth flowchart illustrating a method of load balancing according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating the structure of a load balancing apparatus in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating the structure of an electronic device in accordance with an exemplary embodiment;
fig. 9 is a schematic diagram of a computer program product of a load balancing method according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that in the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," in an embodiment of the present disclosure is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the embodiments of the present disclosure, "at least one" means one or more. "plurality" means two or more.
In the embodiment of the present disclosure, "and/or" is only one kind of association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
Based on the background art, the embodiment of the disclosure provides a load balancing method. After the target node is determined, the resource usage amount and the resource allocation amount of the target node are changed by adjusting the dynamic coefficient of the target node and the running instance on the target node, so that load balancing is realized. Compared with the prior art, the method is simpler, easy to realize and higher in efficiency.
Fig. 1 shows a structure of a load balancing system provided by an embodiment of the present disclosure. As shown in fig. 1, the load balancing system includes a load balancing apparatus 10 and a plurality of nodes 11. Wherein, the load balancing apparatus 10 and the plurality of nodes 11 may be interconnected and communicate through a network.
In some embodiments, the node 11 may be a physical machine (e.g., a server) or a Virtual Machine (VM) deployed on the physical machine.
The load balancing apparatus 10 is mainly used for managing a plurality of nodes 11, such as: deploying a new instance on the node 11, evicting an instance on the node 11, adjusting the dynamic coefficients of the node 11, and so on. In some embodiments, the load balancing apparatus 10 may be a separate physical machine or virtual machine, or may be any node in the load balancing system.
Those skilled in the art will appreciate that the above nodes and load balancing devices are merely exemplary and that other existing or future nodes and load balancing devices, as may be suitable for use with the present disclosure, are intended to be included within the scope of the present disclosure and are hereby incorporated by reference.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the scope of protection of the present disclosure.
Fig. 2 is a flow diagram illustrating a method of load balancing according to an example embodiment. The method can be applied to the system shown in fig. 1, and as shown in fig. 2, the method comprises steps 21-22.
Step 21: the electronic device determines a target node in the cluster.
Specifically, the target node is a node whose resource usage meets a preset condition, where the preset condition is that the resource usage is greater than an upper limit value of a threshold range, or the resource usage is less than a lower limit value of the threshold range.
In the embodiment of the disclosure, the electronic device determines a node meeting a preset condition from the cluster according to the preset condition, and defines the node meeting the preset condition as a target node. The preset condition defines the range of the resource usage of the node, and the preset condition is that the resource usage of the node is greater than the upper limit value of the threshold range, or the resource usage of the node is less than the lower limit value of the threshold range.
For example, the cluster in the present disclosure may be a K8S cluster, and may also be other clusters. Under the condition that the threshold range is 20% -80%, the preset condition is that the resource usage of the node is larger than 80% or the resource usage of the node is smaller than 20%. After the electronic device acquires a node with the resource usage amount of more than 80% or less than 20% from the K8S cluster, the node is defined as a target node. Specifically, a node whose node usage resource is greater than 80% is defined as a high-load node, and a node whose node usage resource is less than 20% is defined as a low-load node.
Step 22: the electronic equipment executes load balancing operation on the target node, and the load balancing operation comprises the following sub-steps:
step 221: and adjusting the dynamic coefficient of the target node in a mode corresponding to a preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node.
In the embodiment of the present disclosure, the resource allocation amount of the node in the K8S cluster is fixed and is determined by the hardware resource of the node (i.e., the resource supply amount of the node). For the instance on the node operation, along with the operation of the instance, the resource usage of the node occupied by the instance is changed, the resource usage occupied at some time is large, and the resource usage occupied at some time is low.
In conjunction with step 21, after the target node is determined, the electronic device may adjust the dynamic coefficient of the target node in a manner corresponding to the preset condition to change the resource allocation amount of the node. By reducing or increasing the resource allocation amount of the nodes, the effect of reducing or increasing the number of new instances on the nodes in the K8S cluster is achieved, and finally the load balance of the nodes is achieved.
For example, for a node that is a 50-core 100G memory, resources may be allocated for 5-core 10G instances for 10 lower resource usage limits (i.e., the least available resources for an instance when the node resources are tight); if the dynamic coefficient is adjusted to be 1.2, and the resource allocation amount of the node is the product of the dynamic coefficient (1.2) and the physical resource (50 cores and 100G), the resource allocation amount of the node is 60 cores and 120G, and resources can be allocated to 12 instances with the lower resource usage limit of 5 cores and 10G; if the dynamic coefficient is adjusted to be 0.8, and the resource allocation amount of the node is the product of the dynamic coefficient (0.8) and the physical resource (50 cores 100G), the resource allocation amount of the node is 40 cores 80G, and resources can be allocated to 8 instances with the lower resource usage limit of 5 cores 10G.
And if the resource usage of the target node is determined to be 90%, adjusting the dynamic coefficient of the target node in a manner corresponding to the case that the resource usage of the node is greater than 80%, and if the resource usage of the target node is determined to be 15%, adjusting the dynamic coefficient of the target node in a manner corresponding to the case that the resource usage of the node is less than 20%.
Step 222: the electronic equipment determines the size relation between the current resource usage amount and the current resource allocation amount of the target node.
In the embodiment of the disclosure, after determining the current resource allocation amount of the target node, the electronic device monitors the current resource usage amount of the target node, and after obtaining the current resource allocation amount and the current resource usage amount of the target node, obtains the size relationship between the current resource allocation amount and the current resource usage amount by comparing the size of the current resource allocation amount and the current resource usage amount. And determining which processing operation is subsequently executed on the instance in the target node according to the size relationship. The resource supply amount of the target node is the hardware resource amount of the target node; the current resource usage amount of the target node is the sum of the lower limits of the used resources allocated to all the instances running on the target node at the current moment.
Step 223: and the electronic equipment updates the instance in the target node according to the determined size relationship.
In the embodiment of the disclosure, the electronic device processes the instance running on the target node according to the determined size relationship between the current resource usage amount and the current resource allocation amount of the target node. Specifically, the electronic device can obtain whether the current resource usage amount of the target node is changed and whether the changed size meets the requirement according to the size relationship, and if not, the resource usage rate of the target resource is reduced or improved by deleting or adding the instance, so that load balancing is realized.
In the scheme, after the electronic equipment determines the target nodes meeting the preset conditions in the cluster, the dynamic coefficients of the target nodes are adjusted in a mode corresponding to the preset conditions, and the resource allocation amount of the target nodes is changed by adjusting the dynamic coefficients; and then judging the size relationship between the current resource usage amount and the resource allocation amount of the target node, and determining the specific operation executed on the instance running on the target node according to the size relationship. After the operation is performed on the instance running on the target node, the resource usage of the target node will be changed. The resource allocation amount of the target node is changed by adjusting the dynamic coefficient of the target node, the resource usage amount of the target node is influenced by the resource allocation amount, the resources on the target node are interfered from the original allocation level, and the source processing is realized. Therefore, the whole implementation method is more efficient, the process is shorter, and the operation is more convenient.
For example, in conjunction with fig. 2, as shown in fig. 3, the determining of the target node in the cluster in step 21 may be specifically implemented by steps 211 to 212 described below.
In step 211, the electronic device obtains a resource usage amount of each node in the cluster.
In step 212, the electronic device determines a node whose resource usage meets a preset condition as a target node.
In the embodiment of the disclosure, the electronic device may monitor and extract node information of each node in the cluster, obtain available information from the node information of the node, compare the available information in the node information with a preset condition, and define a node corresponding to the available information meeting the preset condition as a target node after the comparison. The node information of the node includes a name of the node, resource usage of the node, and the like, the available information is the resource usage of the node, and the preset condition is a range of the resource usage of the node.
For example, the electronic device extracts node information of all nodes in the K8S cluster, and searches available information in the node information of all nodes, where the available information is resource usage of the nodes. And comparing the resource usage amount of each node in the K8S cluster with a preset condition, and defining the node meeting the preset condition as a target node after the comparison.
In the above scheme, the electronic device determines the target node by using the resource usage amount and the preset condition. Because the load balancing is embodied by the resource usage amount, the method takes the resource usage amount as the basis for selecting the target node, and can provide a data basis for accurately solving the load balancing problem in the follow-up process.
In this embodiment of the present disclosure, with reference to fig. 2, as shown in fig. 4, when the preset condition is that the resource usage is greater than the upper limit value of the threshold range, step 221 includes: and 2211, reducing the dynamic coefficient of the target node in a manner corresponding to the resource usage being larger than the upper limit value of the threshold range, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node.
Wherein, the dynamic coefficient is positively correlated with the current resource allocation.
In the embodiment of the present disclosure, when the preset condition is that the resource usage is greater than the upper limit value of the threshold range, it indicates that the resource usage of the target node is too high, and the resource usage of the target node needs to be reduced. Since the dynamic coefficient is positively correlated with the current resource allocation amount, in order to reduce the resource usage amount of the target node, the electronic device may reduce the resource allocation amount of the target node by reducing the dynamic coefficient of the target node, thereby indirectly reducing the resource usage amount. The dynamic coefficient can be adjusted in small amplitude for multiple times or in larger amplitude for one time, and then adjusted to be optimal step by step. The specific lowering mode is only required according to actual use requirements, and the disclosure does not limit the specific lowering mode.
Illustratively, when the threshold range is 20% -80% and the resource usage amount of the target node is 90%, it is determined that the resource usage amount of the target node is greater than 80%, and the dynamic coefficient of the target node needs to be reduced. Wherein the dynamic coefficient of the target node can be reduced from standard data 1 to 0.8. The reduced data span may be determined based on actual demand, which is not limited by this disclosure.
In the above scheme, when the resource usage of the target node is greater than the upper limit value of the threshold range, the electronic device reduces the resource allocation amount of the target node by reducing the dynamic coefficient, so that excessive instances of subsequent access to the target node are avoided, the resource usage of the target node is reduced from the source, and the load balancing problem of the target node is further solved.
In the embodiment of the present disclosure, in combination with fig. 2 described above, as shown in fig. 4, step 223 includes: in step 2231, if the current resource usage in the target node is greater than the current resource allocation, an instance eviction operation is triggered.
The example eviction operation is to evict a target example in the target node, and the target example is an example occupying the current resource usage amount with a proportion exceeding a threshold value.
Specifically, the electronic device selects an instance occupying a ratio of the current resource usage amount exceeding a threshold value from the target node as a target instance, and marks the target instance after the target instance is selected, so that the marked target instance is directly evicted when an instance eviction operation is performed. The electronic equipment can select all target instances meeting the requirements at one time, then mark all target instances meeting the requirements, and delete the marked target instances successively when determining to execute instance eviction operation; it is also possible to select only one satisfactory target instance at a time, then mark the target instance, and delete only the target instance when it is determined to perform an instance eviction operation. And if the target instance is deleted and the instance in the target node still meets the preset condition, the electronic equipment selects the target instance again. The marking mode can be a text mark or a field mark. The present disclosure is not so limited.
In the embodiment of the present disclosure, when the preset condition is that the resource usage is greater than the upper limit of the threshold range, the dynamic coefficient of the target node is reduced, and after the dynamic coefficient of the target node is reduced, if the current resource usage in the target node is still greater than the current resource allocation amount, an instance eviction operation is triggered. The resource usage of the target node will be directly reduced after the instance eviction operation is performed. Wherein the instance eviction operation is to delete a target instance running in the target node. The device performing the instance eviction operation may be an electronic device, and may also be a K8S cluster, as this disclosure is not limited in this respect.
In the above solution, when the current resource usage amount in the target node is greater than the current resource allocation amount, the electronic device reduces the resource usage amount of the target node by evicting the target instance. Therefore, the problem of load balancing can be solved, and the response time and the service quality of the subsequent target node are improved.
In this embodiment of the present disclosure, with reference to fig. 2, as shown in fig. 5, when the preset condition is that the resource usage is smaller than the lower limit value of the threshold range, step 221 includes: and 2212, the electronic device increases the dynamic coefficient of the target node in a manner corresponding to the resource usage being less than the lower limit value of the threshold range, and determines the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node.
Wherein, the dynamic coefficient is positively correlated with the current resource allocation.
In the embodiment of the present disclosure, when the preset condition is that the resource usage is smaller than the lower limit value of the threshold range, it indicates that the resource usage of the target node is too low, and the resource usage of the target node needs to be increased. In order to increase the resource usage amount of the target node, the electronic device needs to increase the dynamic coefficient of the target node to increase the resource allocation amount of the target node, thereby indirectly increasing the resource usage amount. The dynamic coefficient can be adjusted to be high in a small range for multiple times or can be adjusted to be high in a one-time mode, and then the dynamic coefficient is adjusted to be optimal step by step. The specific height adjustment mode is only required according to actual use requirements, and the disclosure does not limit the specific height adjustment mode.
Illustratively, when the threshold range is 20% -80% and the resource usage amount of the target node is 15%, it is determined that the resource usage amount of the target node is less than 20%, and the dynamic coefficient of the target node needs to be improved. The dynamic coefficient of the target node can be increased from standard data 1 to 1.2, and the increased data span can be determined according to actual requirements, which is not limited by the present disclosure.
In the above scheme, when the resource usage of the target node is smaller than the upper limit value of the threshold range, the electronic device increases the resource allocation amount of the target node by increasing the dynamic coefficient, so as to increase the instances of subsequent access to the target node, and increase the resource usage of the target node from the source, thereby further solving the load balancing problem of the target node.
In the embodiment of the present disclosure, in combination with fig. 2 described above, as shown in fig. 5, step 223 includes: step 2232, if the current resource usage amount in the target node is less than the current resource allocation amount, triggering an instance adding operation, where the instance adding operation is to add an instance in the target node.
In the embodiment of the disclosure, when the preset condition is that the resource usage is smaller than the lower limit value of the threshold range, the dynamic coefficient of the target node is increased, and after the dynamic coefficient of the target node is increased, if the current resource usage in the target node is smaller than the current resource allocation amount, it is determined that the target node has the resource surplus. When the resource margin exists, the situation that enough resources are available on the target node to accommodate the new instance is shown. At this point, an instance add operation will be triggered. After the instance adding operation is executed, the resource usage of the target node is directly increased, so that the resource utilization rate of the target node is further increased.
In the embodiment of the disclosure, when the resource usage amount of the target node is smaller than the current resource allocation amount, the electronic device increases the resource usage amount of the target node by adding a new instance, so that not only is the load balancing problem of the target node solved, but also the resource utilization rate of the target node is increased.
In the embodiment of the present disclosure, in combination with fig. 2 described above, as shown in fig. 6, after step 223, the method further includes:
step 23: and judging whether the resource usage amount of the target node after the instance processing meets a preset condition.
Specifically, if the resource usage of the target node after the instance update meets the preset condition, the electronic device repeatedly executes the load balancing operation until the current resource usage does not meet the preset condition.
In the embodiment of the present disclosure, with reference to the above description, after the step 223 is executed, the electronic device obtains the resource usage amount of the target node after the instance processing, and determines whether the resource usage amount of the target node meets the preset condition. And if the resource usage of the target node meets the preset condition, continuing to execute the load balancing device until the current resource usage does not meet the preset condition.
Illustratively, the electronic device obtains the resource usage amount of the target node after the instance processing, determines whether the resource usage amount of the target node meets a preset condition (e.g., the resource usage amount of the target node is greater than 80% or less than 20%), if so, continues to perform operations such as dynamic coefficient adjustment (e.g., dynamic coefficient adjustment down or dynamic coefficient adjustment up), determines the current resource usage amount and the current resource allocation amount of the target node, and updates the instance on the target node (e.g., evicts the target instance or waits to add the instance), until the current resource usage amount does not meet the preset condition (e.g., the resource usage amount of the target node is greater than 20% and less than 80%).
Optionally, in the process of repeatedly performing the load balancing operation, the unit and the adjustment amplitude of the dynamic coefficient adjustment may be the same or different; the number of target instance evictions may be the same or different; the number of new instances added may be the same or different, and the disclosure is not limited thereto.
In the embodiment of the present disclosure, the above manner is adopted to represent that when the target node cannot reach the expected resource usage amount after the load balancing operation is performed once, the expected resource usage amount is reached by performing the load balancing operation for multiple times. After the expected resource usage is achieved, the data processing capacity of the target node is improved, and the data processing capacity of the K8S cluster containing the target node is also greatly improved.
The foregoing describes the scheme provided by the embodiments of the present disclosure, primarily from a methodological perspective. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for the various exemplary method steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The load balancing device in the embodiments of the present disclosure may be divided into functional modules according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiments of the present disclosure is illustrative, and is only one division of logic functions, and there may be another division in actual implementation.
The embodiment of the disclosure also provides a load balancing device. The load balancing device may be an electronic device, a chip in the electronic device, or a processing module in the electronic device.
Fig. 7 is a block diagram illustrating a logical structure of a load balancing apparatus 70 according to an exemplary embodiment. Referring to fig. 7, the load balancing apparatus 70 includes: a processing module 71, an adjusting module 72 and an obtaining module 73.
The processing module 71 is configured to determine a target node in the cluster, where the target node is a node whose resource usage meets a preset condition; the preset condition is that the resource usage is larger than the upper limit value of the threshold range, or the resource usage is smaller than the lower limit value of the threshold range. For example, referring to fig. 2, a processing module 71 is configured to perform step 21.
An adjustment module 72 configured to perform load balancing operations on the target node, the load balancing operations including: adjusting the dynamic coefficient of the target node in a mode corresponding to a preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node; determining the size relationship between the current resource usage amount and the current resource allocation amount of the target node; and updating the instance in the target node according to the determined size relationship. For example, referring to fig. 2, the adjusting module 72 is configured to perform step 221, step 222 and step 223 in step 22.
Optionally, the adjusting module 72 is further configured to reduce the dynamic coefficient of the target node in a manner corresponding to that the resource usage is greater than the upper limit of the threshold range, and determine the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, where the dynamic coefficient is positively correlated with the current resource allocation amount. For example, referring to fig. 4, the adjusting module 72 is configured to execute step 2211 in step 221.
Optionally, the processing module 71 is further configured to trigger an instance eviction operation if the current resource usage amount in the target node is greater than the current resource allocation amount, where the instance eviction operation is to evict a target instance in the target node, and the target instance is an instance occupying a proportion of the current resource usage amount that exceeds a threshold value. For example, referring to FIG. 4, processing module 71 is configured to perform step 2231 of step 223.
Optionally, the adjusting module 72 is further configured to increase the dynamic coefficient of the target node in a manner corresponding to that the resource usage is smaller than the lower limit of the threshold range, and determine the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, where the dynamic coefficient is positively correlated with the current resource allocation amount. For example, referring to fig. 5, the adjusting module 72 is configured to execute step 2212 in step 221.
Optionally, the processing module 71 is further configured to trigger an instance adding operation if the current resource usage amount in the target node is smaller than the current resource allocation amount, where the instance adding operation is to add an instance in the target node. For example, referring to FIG. 5, a processing module 71 is configured to perform step 2232 of step 223.
Optionally, the processing module 71 is further configured to, if the resource usage amount of the target node after the instance update meets the preset condition, repeatedly execute the load balancing operation until the current resource usage amount does not meet the preset condition. For example, referring to fig. 6, processing module 71 is configured to execute step 23 in step 22.
Optionally, the load balancing apparatus further includes an obtaining module 73. The obtaining module 73 is configured to obtain the resource usage of each node in the cluster. For example, referring to fig. 3, the obtaining module 73 is configured to execute step 211.
The processing module 71 is further configured to determine a node with a resource usage amount meeting a preset condition as a target node. For example, referring to fig. 3, the processing module 71 is configured to perform step 212.
In one example, referring to fig. 8, the receiving function of the obtaining module 73 may be implemented by the communication interface 801 in fig. 8. Of course, the load balancing apparatus provided by the embodiments of the present disclosure includes, but is not limited to, the above modules, for example, the load balancing apparatus may further include the storage module 74. The storage module 74 may be used to store the program code of the write load balancing apparatus, and may also be used to store data generated by the write load balancing apparatus during operation, such as data in a write request.
Fig. 8 is a diagram illustrating a hardware configuration of an electronic device according to an exemplary embodiment. The electronic device may include a processor 802, the processor 802 configured to execute application code to implement the load balancing method of the present disclosure.
The processor 802 may be a Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs in accordance with the present disclosure.
As shown in fig. 8, the electronic device may also include a memory 803. The memory 803 is used for storing application program code for performing aspects of the present disclosure, and is controlled in execution by the processor 802.
The memory 803 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 803 may be self-contained and coupled to the processor 802 via the bus 804. The memory 803 may also be integrated with the processor 802.
As shown in fig. 8, the electronic device may further comprise a communication interface 801, wherein the communication interface 801, the processor 802, and the memory 803 may be coupled to each other, for example, via a bus 804. The communication interface 801 is used for information interaction with other devices, for example, information interaction between the electronic device and other devices is supported.
It is noted that the device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in fig. 8, or combine some components, or a different arrangement of components, in addition to the components shown in fig. 8.
In practical implementation, the functions implemented by the processing module 71 and the adjusting module 72 can be implemented by the processor 802 calling the program code in the memory 803 as shown in fig. 8. For a specific implementation process, reference may be made to the description of the load balancing method portion shown in fig. 2, which is not described herein again.
The present disclosure also provides a computer-readable storage medium comprising instructions stored thereon, which, when executed by a processor of a computer device, enable a computer to perform the load balancing method provided by the above-described illustrated embodiment. For example, the computer readable storage medium may be the memory 803 including instructions executable by the processor 802 of the electronic device to perform the above-described method. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 9 schematically illustrates a conceptual partial view of a computer program product comprising a computer program for executing a computer process on a computing device provided by an embodiment of the present disclosure.
In one embodiment, the computer program product is provided using a signal bearing medium 910. The signal bearing medium 99 may include one or more program instructions that, when executed by one or more processors, may provide the functions or portions of the functions described above with respect to fig. 2. Thus, for example, referring to the embodiment shown in FIG. 2, one or more features of steps 21-22 may be undertaken by one or more instructions associated with the signal bearing medium 910. Further, the program instructions in FIG. 9 also describe example instructions.
In some examples, signal bearing medium 910 may include a computer readable medium 911 such as, but not limited to, a hard disk drive, a Compact Disc (CD), a Digital Video Disc (DVD), a digital tape, a memory, a read-only memory (ROM), a Random Access Memory (RAM), or the like.
In some embodiments, the signal bearing medium 910 may comprise a computer recordable medium 912 such as, but not limited to, memory, read/write (R/W) CD, R/W DVD, and the like.
In some implementations, the signal bearing medium 910 may include a communication medium 913, such as, but not limited to, a digital and/or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communications link, a wireless communication link, etc.).
The signal bearing medium 910 may be communicated by a wireless form of communication medium 913. The one or more program instructions may be, for example, computer-executable instructions or logic-implementing instructions.
In some examples, a load balancing apparatus such as described with respect to fig. 7 may be configured to provide various operations, functions, or actions in response to being programmed by one or more of computer readable medium 911, computer recordable medium 912, and/or communication medium 913.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete the above-described full-classification part or part of the functions.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. The purpose of the scheme of the embodiment can be realized by selecting a part of or a whole classification part unit according to actual needs.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute the whole classification part or part of the steps of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above is only a specific embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of load balancing, the method comprising:
determining a target node in a cluster, wherein the target node is a node with resource usage meeting a preset condition; the preset condition is that the resource usage is greater than the upper limit value of the threshold range, or the resource usage is less than the lower limit value of the threshold range;
performing a load balancing operation on the target node, the load balancing operation comprising: adjusting the dynamic coefficient of the target node in a mode corresponding to the preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node; determining the size relationship between the current resource usage amount of the target node and the current resource allocation amount; and updating the instance in the target node according to the determined size relationship.
2. The method according to claim 1, wherein the preset condition is that the resource usage is greater than an upper limit of the threshold range, the adjusting the dynamic coefficient of the target node in a manner corresponding to the preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource provision amount of the target node comprises:
and reducing the dynamic coefficient of the target node in a manner corresponding to the resource usage being larger than the upper limit value of the threshold range, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, wherein the dynamic coefficient is positively correlated with the current resource allocation amount.
3. The method of claim 2, wherein said updating the instance in the target node based on the determined magnitude relationship comprises:
if the current resource usage in the target node is larger than the current resource allocation amount, triggering an instance eviction operation, wherein the instance eviction operation is to evict a target instance in the target node, and the target instance is to occupy an instance in which the proportion of the current resource usage exceeds a threshold value.
4. The method according to claim 1, wherein the preset condition is that the resource usage amount is smaller than a lower limit value of the threshold range, the adjusting the dynamic coefficient of the target node in a manner corresponding to the preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource provision amount of the target node comprises:
and increasing the dynamic coefficient of the target node in a manner corresponding to the resource usage amount being smaller than the lower limit value of the threshold range, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node, wherein the dynamic coefficient is positively correlated with the current resource allocation amount.
5. The method of claim 4, wherein said updating the instance in the target node based on the determined magnitude relationship further comprises:
and if the current resource usage amount in the target node is smaller than the current resource allocation amount, triggering instance adding operation, wherein the instance adding operation is to add an instance in the target node.
6. The method according to any of claims 1-5, wherein after updating the instance in the target node according to the determined size relationship, further comprising:
and if the resource usage of the target node after the instance update meets the preset condition, repeatedly executing the load balancing operation until the current resource usage does not meet the preset condition.
7. A load balancing apparatus, comprising:
the processing module is configured to determine a target node in the cluster, wherein the target node is a node with resource usage meeting a preset condition; the preset condition is that the resource usage is greater than the upper limit value of the threshold range, or the resource usage is less than the lower limit value of the threshold range;
an adjustment module configured to perform load balancing operations on the target node, the load balancing operations including: adjusting the dynamic coefficient of the target node in a mode corresponding to the preset condition, and determining the current resource allocation amount of the target node according to the adjusted dynamic coefficient and the resource supply amount of the target node; determining the size relationship between the current resource usage amount of the target node and the current resource allocation amount; and updating the instance in the target node according to the determined size relationship.
8. An electronic device, comprising:
a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the load balancing method of any one of claims 1-6.
9. A computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method of load balancing according to any one of claims 1-6.
10. A computer program product, characterized in that the computer program product comprises computer instructions which, when run on a computer device, cause the computer device to perform the load balancing method according to any one of claims 1-6.
CN202110850608.3A 2021-07-27 2021-07-27 Load balancing method and device, electronic equipment and storage medium Active CN113568746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110850608.3A CN113568746B (en) 2021-07-27 2021-07-27 Load balancing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110850608.3A CN113568746B (en) 2021-07-27 2021-07-27 Load balancing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113568746A true CN113568746A (en) 2021-10-29
CN113568746B CN113568746B (en) 2024-01-02

Family

ID=78167890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110850608.3A Active CN113568746B (en) 2021-07-27 2021-07-27 Load balancing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113568746B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242798A (en) * 2022-06-30 2022-10-25 阿里巴巴(中国)有限公司 Task scheduling method based on edge cloud, electronic equipment and storage medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504620A (en) * 2009-03-03 2009-08-12 华为技术有限公司 Load balancing method, apparatus and system of virtual cluster system
KR20100073155A (en) * 2008-12-22 2010-07-01 한국전자통신연구원 Method and apparatus for managing workload and distributed computing system using the same
US20140137110A1 (en) * 2012-11-15 2014-05-15 Bank Of America Corporation Capacity reclamation and resource adjustment
US20140192653A1 (en) * 2013-01-07 2014-07-10 Electronics And Telecommunications Research Institute Method and apparatus for controlling load allocation in cluster system
CN105867998A (en) * 2016-03-24 2016-08-17 国云科技股份有限公司 Virtual machine cluster deployment algorithm
CN107370783A (en) * 2016-05-13 2017-11-21 北京金山云网络技术有限公司 A kind of dispatching method and device of cloud computing cluster resource
CN107515786A (en) * 2017-08-04 2017-12-26 北京奇虎科技有限公司 Resource allocation methods, master device, from device and distributed computing system
CN107908479A (en) * 2017-12-11 2018-04-13 北京奇艺世纪科技有限公司 A kind of node resource distribution method and device
WO2018130163A1 (en) * 2017-01-11 2018-07-19 杨立群 Scheduling method and device for mobile cloud computing platform
CN108429815A (en) * 2018-03-23 2018-08-21 重庆邮电大学 Dynamic resource scheduling method based on OpenStack
CN109271232A (en) * 2018-07-03 2019-01-25 广东省城乡规划设计研究院 A kind of cluster resource distribution method based on cloud computing platform
CN109960579A (en) * 2017-12-22 2019-07-02 航天信息股份有限公司 A kind of method and device of adjustment business container
CN110109753A (en) * 2019-04-25 2019-08-09 成都信息工程大学 Resource regulating method and system based on various dimensions constraint genetic algorithm
CN110347503A (en) * 2019-06-27 2019-10-18 杭州数梦工场科技有限公司 Resource rescheduling method and device
CN110457131A (en) * 2019-07-31 2019-11-15 华中科技大学 Electric system supercomputer platform method for scheduling task based on Docker container
CN110545326A (en) * 2019-09-10 2019-12-06 杭州数梦工场科技有限公司 Cluster load scheduling method and device, electronic equipment and storage medium
CN111767147A (en) * 2020-06-24 2020-10-13 北京工业大学 Load balancing method for distributed message system in cloud computing
US20200364086A1 (en) * 2019-05-16 2020-11-19 International Business Machines Corporation Redistributing Workloads Across Worker Nodes Based on Policy
CN111966453A (en) * 2020-07-29 2020-11-20 苏州浪潮智能科技有限公司 Load balancing method, system, equipment and storage medium
CN114416286A (en) * 2021-12-23 2022-04-29 北京三快在线科技有限公司 Resource quota processing method and device for PS (packet switched) node

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100073155A (en) * 2008-12-22 2010-07-01 한국전자통신연구원 Method and apparatus for managing workload and distributed computing system using the same
CN101504620A (en) * 2009-03-03 2009-08-12 华为技术有限公司 Load balancing method, apparatus and system of virtual cluster system
US20140137110A1 (en) * 2012-11-15 2014-05-15 Bank Of America Corporation Capacity reclamation and resource adjustment
US20140192653A1 (en) * 2013-01-07 2014-07-10 Electronics And Telecommunications Research Institute Method and apparatus for controlling load allocation in cluster system
CN105867998A (en) * 2016-03-24 2016-08-17 国云科技股份有限公司 Virtual machine cluster deployment algorithm
CN107370783A (en) * 2016-05-13 2017-11-21 北京金山云网络技术有限公司 A kind of dispatching method and device of cloud computing cluster resource
WO2018130163A1 (en) * 2017-01-11 2018-07-19 杨立群 Scheduling method and device for mobile cloud computing platform
CN107515786A (en) * 2017-08-04 2017-12-26 北京奇虎科技有限公司 Resource allocation methods, master device, from device and distributed computing system
CN107908479A (en) * 2017-12-11 2018-04-13 北京奇艺世纪科技有限公司 A kind of node resource distribution method and device
CN109960579A (en) * 2017-12-22 2019-07-02 航天信息股份有限公司 A kind of method and device of adjustment business container
CN108429815A (en) * 2018-03-23 2018-08-21 重庆邮电大学 Dynamic resource scheduling method based on OpenStack
CN109271232A (en) * 2018-07-03 2019-01-25 广东省城乡规划设计研究院 A kind of cluster resource distribution method based on cloud computing platform
CN110109753A (en) * 2019-04-25 2019-08-09 成都信息工程大学 Resource regulating method and system based on various dimensions constraint genetic algorithm
US20200364086A1 (en) * 2019-05-16 2020-11-19 International Business Machines Corporation Redistributing Workloads Across Worker Nodes Based on Policy
CN110347503A (en) * 2019-06-27 2019-10-18 杭州数梦工场科技有限公司 Resource rescheduling method and device
CN110457131A (en) * 2019-07-31 2019-11-15 华中科技大学 Electric system supercomputer platform method for scheduling task based on Docker container
CN110545326A (en) * 2019-09-10 2019-12-06 杭州数梦工场科技有限公司 Cluster load scheduling method and device, electronic equipment and storage medium
CN111767147A (en) * 2020-06-24 2020-10-13 北京工业大学 Load balancing method for distributed message system in cloud computing
CN111966453A (en) * 2020-07-29 2020-11-20 苏州浪潮智能科技有限公司 Load balancing method, system, equipment and storage medium
CN114416286A (en) * 2021-12-23 2022-04-29 北京三快在线科技有限公司 Resource quota processing method and device for PS (packet switched) node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王晶;何利力;: "基于虚拟机动态迁移的负载均衡策略", 计算机***应用, no. 05 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242798A (en) * 2022-06-30 2022-10-25 阿里巴巴(中国)有限公司 Task scheduling method based on edge cloud, electronic equipment and storage medium
CN115242798B (en) * 2022-06-30 2023-09-26 阿里巴巴(中国)有限公司 Task scheduling method based on edge cloud, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113568746B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
US9430388B2 (en) Scheduler, multi-core processor system, and scheduling method
CN103473142B (en) Virtual machine migration method under a kind of cloud computing operating system and device
US8103824B2 (en) Method for self optimizing value based data allocation across a multi-tier storage system
CN104679594B (en) A kind of middleware distributed computing method
CN111478857A (en) Interface current limiting control method and device and electronic equipment
CN103078933A (en) Method and device for determining data migration time
CN113867959A (en) Training task resource scheduling method, device, equipment and medium
CN112749135B (en) Method, apparatus and computer program product for balancing storage space of a file system
CN111104227A (en) Resource control method and device of K8s platform and related components
CN107092564A (en) A kind of data processing method and device
CN113918647A (en) Distributed database elastic expansion method, device, equipment and storage medium
CN108694083B (en) Data processing method and device for server
CN113568746A (en) Load balancing method and device, electronic equipment and storage medium
CN110019083A (en) Storage method, device, electronic equipment and the storage medium of distributed file system
CN113703670B (en) Wear balance control method, device, equipment and readable storage medium
CN111722908B (en) Virtual machine creating method, system, equipment and medium
CN104281587A (en) Connection establishing method and device
CN103078926B (en) The file access method of distributed memory system and device and system
CN117435343A (en) Memory management method and device
CN114880079A (en) Kubernetes cluster scale adjustment method, system and equipment based on reinforcement learning
CN114597967A (en) Method and device for distributing output power of power supply, storage medium and equipment
CN114237903A (en) Memory allocation optimization method, memory allocation optimization device, electronic equipment, memory allocation optimization medium and program product
EP3599547B1 (en) Elastic storage volume type selection and optimization engine for public cloud environments
JP6365027B2 (en) Allocation program, allocation device, allocation system, and allocation method
CN111221535B (en) Thread allocation method, server and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant