Load balancing method, electronic device and computer program product
By automatically selecting a backup server according to the backup quota ratio of the server in the cloud infrastructure, the problem of data center load imbalance in the cloud infrastructure is solved, and balanced distribution of server loads and efficient utilization of resources are achieved.
Patent Information
- Application Number
- CN201910655507.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-07-19
AI Technical Summary
In cloud infrastructure, data backup in data centers leads to server load imbalance, causing some servers to be overloaded and other servers to be underloaded, resulting in resource waste and unnecessary loss of computing resources.
By determining the backup quota ratio of multiple servers within a polling cycle, the appropriate server is automatically selected for data backup to ensure load balancing and avoid waste of human resources.
It achieves balanced distribution of server load, avoids overload or underload on the server, improves the parallel processing capability of the back-end server, saves human resources, and reduces the waste of computing resources.
Smart Images

Figure CN112241319B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to load management systems, and more particularly, to a method of balancing loads, an electronic device, and a computer program product. Background Art
[0002] Currently, there are a variety of data protection products (such as Avamar vCP) that can back up data in a cloud environment for cloud infrastructure tools (such as VMware vCloud Director) to protect data in applications on the cloud service platform. In the current data protection solution, each data center on the organization on the cloud service platform is bound to a corresponding backend server to achieve data protection through backup. However, since each data center includes multiple applications, and each application includes multiple virtual machines, the amount of data generated by the data center may be very large, resulting in some servers used for backup being heavily loaded, or there may be fewer servers with lighter loads, which will cause the load of multiple servers used for backup to be unbalanced. Summary of the invention
[0003] The embodiment of the present disclosure designs a solution for balancing loads.
[0004] In a first aspect of the present disclosure, a method for load balancing is provided. The method includes determining a backup quota ratio of multiple servers associated with a cloud service platform for data backup within a polling cycle; selecting a server from the multiple servers based on the backup quota ratio; and in response to receiving a request for backing up data of an application on the cloud service platform, backing up data from the application to the selected server.
[0005] In a second aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processor; and a memory coupled to the at least one processor, the memory including instructions stored therein, and when the instructions are executed by at least one processing unit, the device performs actions, the actions including: determining a backup quota ratio of multiple servers associated with a cloud service platform for data backup within a polling cycle; selecting a server from the multiple servers based on the backup quota ratio; and in response to receiving a request for backing up data of an application on the cloud service platform, backing up data from the application to the selected server.
[0006] In a third aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions, which, when executed, cause a device to: determine a backup quota ratio of multiple servers associated with a cloud service platform for data backup within a polling cycle; select a server from the multiple servers based on the backup quota ratio; and, in response to receiving a request for backing up data of an application on the cloud service platform, back up data from the application to the selected server.
[0007] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other purposes, features and advantages of the embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0009] Figure 1 A schematic diagram of an example system for selecting servers for a data center is shown.
[0010] Figure 2 A schematic diagram of an example system for selecting a server for an application is shown.
[0011] Figure 3 A flow chart of a method for balancing loads according to an embodiment of the present disclosure is shown.
[0012] Figure 4 A flowchart of a method for determining a backup quota according to an embodiment of the present disclosure is shown.
[0013] Figure 5 A schematic block diagram of an electronic device that can be used to implement an embodiment of the present disclosure is shown.
[0014] The same or similar reference numerals are used throughout the drawings to designate the same or similar components. DETAILED DESCRIPTION
[0015] Hereinafter, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that these drawings and descriptions relate to exemplary embodiments only. It should be noted that, according to the subsequent description, it is easy to conceive of alternative embodiments of the structures and methods disclosed herein, and these alternative embodiments can be used without departing from the principles claimed in the present disclosure.
[0016] It should be understood that these exemplary embodiments are provided only to enable those skilled in the art to better understand and further implement the present disclosure, but are not intended to limit the scope of the present disclosure in any way.
[0017] The data generated on the cloud service platform is backed up to multiple servers at the back end to protect the data on the platform. Figure 1 The schematic diagram of an example system 100 for selecting servers for a data center is shown. The system 100 includes a cloud service platform 110, multiple data centers 140-1...140-L on the cloud service platform 110, multiple application groups 120-1...120-L on the data centers, and multiple servers 130-1...130-L for back-end backup.
[0018] like Figure 1 As shown, in order to back up the data generated on the cloud service platform 110 to multiple servers 130-1...130-L for backup at the back end, the backup administrator usually associates multiple data centers 140-1...140-L with multiple servers 130-1...130-L respectively, with one data center corresponding to one server. However, the storage space of the server is limited. As the data generated by the data center continues to increase, the server may not be able to store all the data from the data center. In addition, the load of the server 130-1...130-L depends entirely on the amount of data in the data center associated with it. For example, if the data center 120-1 generates more data, the load of the backup server 130-1 is heavier; if the data center 120-L generates less data, the load of the backup server 130-L is lighter. This results in an unbalanced load distribution of multiple servers 130-1...130-L, and the association process between the data center and the back-end server is manually completed by the backup administrator, which also causes a waste of human resources.
[0019] According to an embodiment of the present disclosure, the present disclosure proposes a load balancing solution, in which, based on the determined backup quota ratio of multiple backend servers, an associated server is selected for each application rather than a data center, and load balancing of multiple backend servers is achieved through polling.
[0020] Figure 2 A schematic diagram of an example system 200 for selecting a server for an application is shown. The system 200 includes: a cloud service platform 210, applications 220 (220-1...220-N) on the cloud service platform 210, a backend server 230 (230-1...230-L) for backing up data, and a computing device 240. It should be understood that the computing device 240 is used for the purpose of convenience of description only and not for limitation. Figure 2In some embodiments, the computing device 240 may also be integrated into the cloud service platform 210 or the server 230 .
[0021] like Figure 2 As shown, the computing device 240 selects an associated server from the servers 230-1...230-L for each of the applications 220-1...220-N on the cloud service platform 210 based on the backup quota ratio. For example, in a situation where the load on server 230-1 is light and the load on server 230-L is heavy, the computing device 240 can determine the backup quota ratio within a polling cycle, and allocate more applications to server 230-1 and fewer applications to server 230-L based on the ratio. As an example, the computing device 240 can select server 230-1 as a backup server for application 220-1, select server 230-1 for application 220-2, and select server 230-L for application 220-N based on the backup quota ratio. Figure 2 As shown. In this way, the data generated on the application 220 can be backed up to the server 230, so as to protect the data on the platform and achieve load balancing of multiple back-end servers. This avoids the situation where the server is insufficient to store all the data in the data center, and potentially improves the ability of the back-end server to process tasks in parallel. The above process is automatically completed by the computing device 240, which effectively saves human resources.
[0022] It should be understood that Figure 1 and 2 Only devices or components related to the embodiments of the present disclosure in the systems 100 and 200 are schematically shown. Figure 1 and 2 The specific devices or components depicted are not intended to be limiting, but are generally applicable to any data backup system based on a cloud service platform.
[0023] Figure 3 A flow chart of a method 300 for balancing loads according to an embodiment of the present disclosure. Figure 3 The method shown in can be applied to Figure 2 For ease of description, Figure 3 The same or similar parts are used in Figure 2 Consistent reference numerals.
[0024] In block 310 , the computing device 240 determines a backup quota ratio of a plurality of servers 230 associated with the cloud service platform 210 for data backup within a polling cycle.
[0025] In some embodiments, the cloud service platform 210 includes applications 220 (220-1...220-N). In order to back up the data generated in the application 220 on the cloud service platform 210 to the server 230, it is necessary to select a suitable server from multiple servers for the application 220. Among the multiple servers used for backup at the back end, each server has different performances in terms of performance, capacity, load, etc. In order to enable the server 230 to back up the data in the application 220 well, it is necessary to determine a suitable server based on the comprehensive performance of the server.
[0026] In some embodiments, there are multiple applications 220-1...220-N on the cloud service platform 210 that need to back up data, that is, a corresponding server needs to be selected for each of the multiple applications 220-1...220-N. The computing device 240 can determine a suitable server based on the comprehensive performance of multiple servers 230-1...230-L. For example, a server with the largest remaining space can be selected for the application 220. However, due to the limited storage capacity of a server, it is unrealistic to back up all multiple applications to the server 230-1. As the data of the application 220 is backed up to the server, its comprehensive performance will also change, and one of the other servers will become a server that is more suitable for backing up data. In other embodiments, after selecting a suitable server 230 for each application 220, a suitable server is determined again based on the comprehensive performance of the server 230. Although a suitable server for backing up data can be obtained by timely updating, each update process will consume a large amount of computing resources, causing unnecessary loss to the computing device and components.
[0027] Therefore, based on the above situation, a polling mechanism is required when selecting an appropriate server for an application. The polling mechanism can allocate multiple servers to applications that need to back up data in turn based on the backup quota ratio within a polling cycle. The comprehensive performance of multiple servers 230-1...230-L is different, and the number of times applications are allocated to each server is also different. The backup quota ratio represents the proportional relationship of the number of times multiple servers 230-1...230-L are allocated applications within a polling cycle. For example. Within a polling cycle, based on the backup quota ratio, the computing device 240 performs two allocations for server 230-1 and one allocation for server 230-L. In this way, whenever an application of the cloud service platform 210 needs to be associated with a server, the computing device 240 selects a suitable server for the application based on the backup quota ratio. The selected server can be a server with better overall performance, or it can be the second best, or it can be the worst. In this way, a server with better overall performance can be allocated more applications for it, while a server with poor overall performance can be allocated fewer applications for it. Allocation based on quota ratio can achieve load balancing among multiple servers while backing up data, avoiding the situation where some servers are overloaded while others are lightly loaded.
[0028] In some embodiments, the polling cycle can be determined based on different factors, for example, based on a predetermined time period, every three days or every seven days is a polling cycle, and the backup quota ratio is updated after the polling is completed. Or, for example, based on the number of times at least some of the multiple servers perform data backup operations, for example, 2000 times, the time taken to perform 2000 data backup operations is used as the polling cycle. By determining the polling cycle based on experience, not only can the load balancing of multiple servers within the polling cycle be achieved; it can also avoid unnecessary waste of computing resources and unnecessary loss of system components caused by excessive updates of the backup quota ratio.
[0029] In some embodiments, the determination of the polling cycle can also be based on the remaining space of at least some of the multiple servers. When it is detected that the remaining space of the server is lower than a threshold, it means that the server does not have enough remaining space to continue backing up data. At this time, the current polling duration is determined as the polling cycle, and the polling of the cycle is terminated, and the available servers are re-determined and the backup quota ratio of multiple servers is recalculated. Or it can also be based on the growth rate of storage space occupied by at least some of the multiple servers. For example, it is detected that the storage space occupancy rate of the server is higher than the threshold, that is, the server has backed up a large amount of data in a short period of time, and its remaining space, space occupancy rate, and load have all changed significantly. At this time, it can be determined to use the polling duration as the polling cycle and terminate the polling of the cycle. Determining the polling cycle based on the above method can avoid data backup failure caused by insufficient remaining space on the server or untimely update of the quota ratio due to excessive growth of server data.
[0030] It should be noted that the above method of determining the polling period is only an example and is not intended to limit the scope of the present disclosure.
[0031] At block 320 , the computing device 240 selects a server from the plurality of servers 230 - 1 . . . 230 -L based on the backup quota ratio.
[0032] In some embodiments, after obtaining the backup quota ratio, when selecting a server for an application, based on the backup quota ratio, polling can be performed among the servers according to a certain strategy, for example, a server with a high quota ratio is allocated first. In other embodiments, polling can be performed without a certain strategy, as long as the quota ratio is met. For example, the counting function of the computing device 240 is used to ensure that when selecting a server for an application, the ratio relationship between the servers follows the backup quota ratio. That is, the computing device 240 only needs to select a server for an application based on the backup quota ratio, and is not restricted by the relevant strategy for selecting the server.
[0033] In some embodiments, a corresponding logic unit may be established for each backend server to implement various logic functions, and there is a one-to-one correspondence between the logic unit and the server. When establishing an association relationship between an application and a server, the application may be associated with the logic unit first. Then, based on the association relationship between the logic unit and the server, a relationship between the application and the server is established. Directly associating the application with the logic unit rather than the storage entity is helpful for expansion and execution of various logic functions.
[0034] In some embodiments, after selecting a server 230 for an application 220 based on the backup quota ratio, the computing device 240 may also store the association relationship between the application 220 and the server 230, for example, storing the association relationship in a mapping table. For example, when the application 220-1 needs to back up data, the computing device 240 may directly search the mapping table stored therein, determine the server 230-1 associated with the application 220-1, and then back up the data to the server.
[0035] It can be seen that when the computing device 240 selects the associated server 230 for the application 220 , it only needs to follow the determined backup quota ratio and does not need to be restricted by the order of selecting the servers.
[0036] In block 330 , in response to receiving the request to back up the data of the application 220 on the cloud service platform 210 , the computing device 240 backs up the data from the application 220 to the selected server 230 .
[0037] In some embodiments, when the application 220 on the cloud service platform 210 generates data and needs to back up the data, a request for backing up the data is sent to the computing device 240, and the computing device 240 responds to the request and backs up the data to be backed up to the corresponding database. In some embodiments, when receiving the request for backing up data, the computing device 240 searches for the server 230 associated with the application 220 that issued the request based on the mapping table storing the association relationship, and then backs up the data.
[0038] In some embodiments, after a polling cycle, the backup quota ratios of multiple servers can be updated for subsequent backup of application data. As applications continue to back up their data to corresponding servers, the metadata of the server's attributes such as the number of clients, space, and load are constantly changing, which means that the server's polling quota ratio is also changing. After a polling cycle, the server's metadata is re-acquired to update the backup quota ratios of multiple servers for allocating applications to subsequent multiple servers. Timely updating of server quota ratios helps to achieve load balancing of servers.
[0039] In summary, the method 300 determines the backup quota ratio of the server 230 and selects a suitable server 230 for the application 220 based on the backup quota ratio; while realizing data backup, it can achieve load balancing of multiple servers 230 to solve the problem that some servers are overloaded while some servers are underloaded. At the same time, the above process is completed by the computing device instead of the backup administrator, which can also potentially avoid waste of resources.
[0040] Figure 4FIG. 4 is a flowchart of a method 400 for determining a backup quota according to an embodiment of the present disclosure. Figure 4 The process of determining the backup quota ratio is further described in detail. It should be noted that the specific values in the following examples are only illustrative and do not limit the protection scope of the present disclosure in any way.
[0041] At block 410 , computing device 240 obtains metadata for a plurality of servers 230 , the metadata describing properties of the plurality of servers 230 .
[0042] In some embodiments, the attributes of the server include but are not limited to the number of available clients, remaining space, rack performance, load index, backup window duration, and storage space occupancy growth rate. The above attributes can generally characterize the comprehensive performance of the server used to back up data.
[0043] In some embodiments, the client usually has a suggested value for the number of clients. The number of available clients can be obtained by subtracting the number of registered clients from the suggested value, and the more available clients are, the higher the priority of the server in allocation.
[0044] In some embodiments, a server with more remaining space has a higher priority, and when the remaining space of a server is less than a threshold, no application is allocated to the server.
[0045] In some embodiments, the total amount of server racks is used as a standard for measuring server rack performance. The larger the total amount of racks, the better the server rack performance is, and the higher the allocation priority is.
[0046] In some embodiments, the load indicator represents the load condition of the server. For example, the load condition of the server can be described by the total number of tasks executed by the server in the past period of time; if a newly enabled server has been running for less than a week, the median or average or specified value is taken for calculation; the lower the load, the higher the priority of the server.
[0047] In some embodiments, the server performs maintenance tasks at a fixed time every day to check the system to ensure data consistency. Backup tasks are usually not performed during this period, so servers with longer backup windows have higher allocation priorities.
[0048] In some embodiments, the storage occupancy growth rate indicates the rate at which the storage space occupied by the server increases over a period of time. Generally, a larger storage occupancy growth rate means that a large amount of storage space of the server is used in a short period of time; a smaller storage occupancy growth rate indicates that the server has a higher allocation priority.
[0049] In some embodiments, for example, the following four attributes may be selected: number of available clients, remaining space, rack performance, and load index to measure the comprehensive performance of multiple servers used for backup. Relevant metadata for describing the above four attributes of multiple servers are obtained respectively, as shown in Table 1.
[0050] server Number of available customers Remaining space Rack performance Load Indicator A 3800 900GB 1.8T 3500 B 5000 2800GB 3.9T 5200 C 2500 2550GB 7.8T 6000 D 4700 2100GB 7.8T 4900
[0051] Table 1
[0052] Taking server A as an example, the number of available customers for server A is 3800, the remaining space is 900GB, the rack performance is represented by the total rack capacity of 1.8T, and the load index is represented by 3500 tasks executed in the past period of time. The metadata in Table 1 above is used to describe the comprehensive performance of servers A, B, C, and D.
[0053] In block 420 , the backup quota ratio is determined based on a statistical model with the metadata as input, where the statistical model is trained to describe the association between different values of the metadata and different backup quota ratios.
[0054] In some embodiments, the statistical model can select any model that can describe the correlation between different values of metadata and different backup quota ratios. In this embodiment, a statistical model based on the hierarchical analysis method is selected as an example. The core concept of the hierarchical analysis method is to always compare multiple factors in pairs, which can achieve hierarchical qualitative and quantitative analysis of decisions, and is particularly suitable for obtaining quota ratios between different servers in this embodiment. In this example, the statistical model based on the hierarchical analysis method is defined as follows.
[0055] First, determine the mutual importance relationship between the four selected attributes, where the number 1 indicates equal importance, the number 3 indicates that one is slightly more important than the other, the number 5 indicates that one is more important than the other, the number 7 indicates that one is very important than the other, and the number 9 indicates that one is extremely important than the other. The mutual importance relationship between the four attributes in this example is shown in Table 2.
[0056]
[0057] Table 2
[0058] Taking the comparison between the number of available customers and the remaining space as an example, the importance of available customers is 1, and the importance of remaining space is 9. Therefore, the value of the second column of the first row in the table is 1 / 9, and the value of the first column of the second row is 9. Taking the rack performance and load index as an example, the importance of rack performance is 1, and the importance of load index is 3. Therefore, the value of the fourth column of the third row in the table is 1 / 3, and the value of the third column of the fourth row is 3. In this way, the standard matrix A of the statistical model based on the hierarchical analysis method in this example can be obtained. c :
[0059]
[0060] Next, calculate the maximum eigenvalue λ max , any commonly used method for calculating the maximum eigenvalue can be used. In this embodiment, the summation method is used for calculation, and the formula is as follows:
[0061]
[0062] Where n represents the feature scale, and W represents the feature vector. In some embodiments, the feature vector W can be calculated as follows: c The elements of A are normalized by column; c The elements of are added row by row; the added row vectors are normalized to finally get W. Further, the maximum eigenvalue λ can be calculated max In this example described in conjunction with Table 2, λ max =4.17.
[0063] According to the maximum eigenvalue and the dimension coefficient index RI, the standard weight W of the statistical model can be obtained max , where the dimension coefficient index RI is the value given in the hierarchical analysis method, as shown in Table 3.
[0064] Matrix dimensions 1 2 3 4 5 6 7 8 9 RI 0 0 0.58 0.9 1.12 1.24 1.32 1.41 1.45
[0065] Table 3
[0066] In this embodiment, the matrix dimension is 4, and the corresponding RI value is 0.9; based on the maximum eigenvalue λ max And RI value can get the standard weight W max :
[0067]
[0068] That is, in the calculation model based on the hierarchical analysis method in this embodiment, the standard weight values of the four attributes are: number of registered customers: 0.04, remaining space: 0.56, rack performance: 0.13 and load index: 0.27.
[0069] Additionally or selectively, the reliability of the statistical model can also be verified by calculating the one-time ratio. Specifically, the one-time index CI is first calculated as follows:
[0070]
[0071] The one-time ratio is determined based on the ratio of CI to the dimensionality coefficient index RI of the hierarchical analysis method:
[0072]
[0073] A CR value less than 0.1 indicates that the model is reliable, otherwise it indicates that the model is not reliable. In this embodiment, CR=0.0647, and the calculation model is reliable.
[0074] The above process completes the training of the statistical model based on the hierarchical analysis method and obtains the weight distribution results of the four attributes of the model.
[0075] The metadata in Table 1 is used as the input of the statistical model to calculate the backup quota ratio.
[0076] Importance Hierarchy settings 1 The relative number of available customers is less than 100 3 The relative number of available customers is greater than or equal to 100 and less than 1000 5 The relative number of available customers is greater than or equal to 1000 and less than 2000 7 The relative number of available customers is greater than or equal to 2000 and less than or equal to 3000 9 The relative number of available customers is greater than 3,000
[0077] Table 4a
[0078] The hierarchical setting of the importance of the attribute number of available customers is shown in Table 4a. For the attribute number of available customers, the number of available customers of the server is first determined based on the recommended value of the number of customers of the server and the number of registered customers; then the importance hierarchical relationship between the two servers on each of the four attributes is determined. For example, the number of available customers of server A is 1200 more than that of server B, so the importance value of A relative to B on the attribute number of available customers is 1 / 5, and the importance value of B relative to A is 5, as shown in Table 4b.
[0079] Number of available customers A B C D <![CDATA[W1]]> A 1 1 / 5 5 1 / 3 0.14 B 5 1 7 3 0.54 C 1 / 5 1 / 7 1 1 / 7 0.05 D 3 1 / 3 7 1 0.27
[0080] Table 4b
[0081] Where W1 is the calculated weight distribution of the four servers regarding the number of available clients of the attribute.
[0082] Similarly, the weight distribution of the four servers with respect to the other three attributes is calculated.
[0083] Table 5a shows the hierarchical settings of the remaining space of the four servers, Table 5b shows the importance table of the remaining space, and W2 shows the corresponding weight distribution.
[0084] Importance Hierarchy settings 1 Relative remaining capacity is less than 300GB 3 Relative remaining capacity is greater than or equal to 300 GB and less than 800 GB 5 Relative remaining capacity is greater than or equal to 800 GB and less than 1800 GB 7 Relative remaining capacity is greater than or equal to 1800 GB and less than or equal to 3900 GB 9 Relative remaining capacity is greater than 3900GB
[0085] Table 5a
[0086] Remaining space A B C D <![CDATA[W2]]> A 1 1 / 7 1 / 5 1 / 5 0.05 B 7 1 1 3 0.40 C 5 1 1 3 0.37 D 5 1 / 3 3 1 0.17
[0087] Table 5b
[0088] Table 6a is the hierarchical setting of the four servers regarding rack performance, Table 6b is the importance table regarding rack performance, and W3 is the corresponding weight distribution.
[0089] Importance Hierarchy settings 1 Relative total capacity is less than or equal to 1T 3 Relative total capacity is greater than 1T and less than or equal to 2T 5 Relative total capacity greater than 2T and less than or equal to 4T 7 Relative total capacity is greater than 4T 9
[0090] Table 6a
[0091]
[0092]
[0093] Table 6b
[0094] Table 7a is the hierarchical setting of the load indicators of the four servers, Table 7b is the importance table of the load indicators, and W4 is the corresponding weight distribution.
[0095] Importance Hierarchy settings 1 The relative number of executed tasks is less than 1000 3 The relative number of executed tasks is greater than or equal to 1000 and less than 2000 5 The relative number of executed tasks is greater than or equal to 2000 and less than 4000 7 The relative number of executed tasks is greater than or equal to 4000 and less than or equal to 8000 9 The relative number of executed tasks is greater than 8000
[0096] Table 7a
[0097] Load Indicator A B C D <![CDATA[W4]]> A 1 3 5 3 0.52 B 1 / 3 1 1 1 0.16 C 1 / 5 1 1 1 / 3 0.11 D 1 / 3 1 3 1 0.21
[0098] Table 7b
[0099] Thus, we can obtain the weight values of the four servers on the four attributes of the number of registered customers, remaining space, rack performance, and load index, and get the weight matrix W. total .
[0100] W total =|W1 W2 W3 W4| (6)
[0101] Further based on the weight values of the four attributes: number of registered customers: 0.04, remaining space: 0.56, rack performance: 0.13 and load index: 0.27, the final statistical results are obtained. The calculation process is shown in Table 6.
[0102]
[0103]
[0104] Table 6
[0105] The backup quota ratio of a polling cycle is determined based on the statistical results of the statistical model. Continuing with the above embodiment as an example, the weight values of the four servers calculated are A: 0.18, B: 0.30, C: 0.29 and D: 0.21. The above results can be rounded and simplified to obtain the backup quota ratio of the four servers: 18:30:29:21. In the process of determining the server for the application, it is necessary to follow the above proportional relationship, that is, for every 18 applications allocated to server A, 30 applications must be allocated to server B, 29 applications must be allocated to server C, and 21 applications must be allocated to server D. The above method of determining the backup quota ratio based on the weight value of the server is only exemplary, and other commonly used methods can also be used, such as rounding the above weights to obtain a backup quota ratio of 2:3:3:2.
[0106] Figure 5 A schematic block diagram of an example device 500 that can be used to implement an embodiment of the present disclosure is shown. As shown, the device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0107] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0108] The various processes and processing described above, such as methods 300 and 400, may be performed by the processing unit 501. For example, in some embodiments, the methods 300 and 400 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the CPU 501, one or more actions of the methods 300 and 400 described above may be performed.
[0109] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0110] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0111] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0112] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0113] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0114] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0115] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0116] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0117] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for balancing loads, the method comprising: include: Determine a backup quota ratio of multiple servers associated with the cloud service platform for data backup within a polling cycle, wherein determining the backup quota ratio includes: Calculates a weight value for each server based on the number of registered customers, remaining space, rack performance, and load metrics, and Rounding and simplifying the weight values, wherein for each server, each backup quota ratio indicates a proportional relationship of the number of times each of the multiple servers is allocated to the application on the cloud service platform in the polling cycle; selecting a server from the plurality of servers based on the backup quota ratio; In response to receiving a request for backing up data of an application on the cloud service platform, backing up data from the application to the selected server; After the polling cycle ends, updating the backup quota ratios of the multiple servers for subsequent backup of application data; and An association between the application and the selected server for backup is stored in a mapping table.
2. The method according to claim 1, wherein determining the backup quota ratio of the plurality of servers in a polling cycle include: Obtaining metadata of the plurality of servers, the metadata describing properties of the plurality of servers; The backup quota ratio is determined based on a statistical model with the metadata as input, wherein the statistical model is trained to describe associations between different values of the metadata and different backup quota ratios.
3. The method according to claim 2, wherein the attribute include: Number of registered customers, remaining space, rack performance, load indicators, backup window duration, and storage space usage growth rate.
4. The method of claim 2, wherein the statistical model is generated based on an analysis hierarchy process, and wherein the analysis hierarchy process generates a dimensionality coefficient index (RI).
5. The method according to claim 4, wherein the standard weight of the statistical model is determined based on the dimensionality coefficient index RI and the maximum eigenvalue, and the dimensionality coefficient index RI is determined based on the matrix dimension of the standard matrix of the statistical model.
6. The method of claim 1, wherein the polling period is determined based on one of the following factors: Scheduled time period, a number of times at least some of the plurality of servers perform data backup operations, remaining space of at least some of the plurality of servers, and A growth rate of storage space occupancy of at least some of the plurality of servers.
7. The method of claim 1, wherein the performance of the rack is determined based on a rack total for each server.
8. The method according to claim 1, wherein the load indicator represents the load of each server and is determined based on the total number of tasks that each server has executed in the past period of time.
9. An electronic device, include: at least one processor; as well as A memory coupled to the at least one processor, the memory including instructions stored therein, wherein when the instructions are executed by the at least one processor, the device performs actions, the actions comprising: Determine a backup quota ratio of multiple servers associated with a cloud service platform for data backup within a polling cycle, wherein determining the backup quota ratio includes: Calculates a weight value for each server based on the number of registered customers, remaining space, rack performance, and load metrics, and Rounding and simplifying the weight values, wherein for each server, each backup quota ratio indicates a proportional relationship of the number of times each of the multiple servers is allocated to the application on the cloud service platform in the polling cycle; selecting a server from the plurality of servers based on the backup quota ratio; In response to receiving a request for backing up data of an application on the cloud service platform, backing up data from the application to the selected server; After the polling cycle ends, updating the backup quota ratios of the multiple servers for subsequent backup of application data; and An association between the application and the selected server for backup is stored in a mapping table.
10. The device according to claim 9, wherein determining the backup quota ratio of the plurality of servers in a polling cycle include: Obtaining metadata of the plurality of servers, the metadata describing properties of the plurality of servers; The backup quota ratio is determined based on a statistical model with the metadata as input, wherein the statistical model is trained to describe associations between different values of the metadata and different backup quota ratios.
11. The apparatus of claim 10, wherein the attribute include: Number of registered customers, remaining space, rack performance, load indicators, backup window duration, and storage space usage growth rate.
12. The device of claim 9, wherein the polling period is determined based on one of the following factors: Scheduled time period, a number of times at least some of the plurality of servers perform data backup operations, remaining space of at least some of the plurality of servers, and A growth rate of storage space occupancy of at least some of the plurality of servers.
13. A computer program product tangibly stored on a non-transitory computer readable medium and comprising machine executable instructions which, when executed, cause a device to: Determine the backup quota ratio of multiple servers associated with the cloud service platform for data backup within a polling cycle, wherein the backup quota ratio is determined include: Calculates a weight value for each server based on the number of registered customers, remaining space, rack performance, and load metrics, and Rounding and simplifying the weight values, wherein for each server, each backup quota ratio indicates a proportional relationship of the number of times each of the multiple servers is allocated to the application on the cloud service platform in the polling cycle; selecting a server from the plurality of servers based on the backup quota ratio; In response to receiving a request for backing up data of an application on the cloud service platform, backing up data from the application to the selected server; After the polling cycle ends, updating the backup quota ratios of the multiple servers for subsequent backup of application data; as well as An association between the application and the selected server for backup is stored in a mapping table.
14. The computer program product of claim 13, wherein the machine executable instructions, when executed, cause the device to: Obtaining metadata of the plurality of servers, the metadata describing properties of the plurality of servers; The backup quota ratio is determined based on a statistical model with the metadata as input, wherein the statistical model is trained to describe associations between different values of the metadata and different backup quota ratios.
15. The computer program product of claim 14, wherein the attribute include: Number of registered customers, remaining space, rack performance, load indicators, backup window duration, and storage space usage growth rate.
16. The computer program product of claim 13, wherein the polling period is determined based on one of the following factors: Scheduled time period, a number of times at least some of the plurality of servers perform data backup operations, remaining space of at least some of the plurality of servers, and A growth rate of storage space occupancy of at least some of the plurality of servers.
Citation Information
Patent Citations
Data backup method and device and distributed file system
CN104142871A
Method and system for disaster recovery backup based on cluster technologies
CN107145406A
Load balancing method and device
CN108259603A
Method and system for backing up and recovering data in cluster systems
CN108733509A
Load balancing method, device, electronic equipment and storage medium
CN108809848A
