Hybrid cloud rapid expansion method, device, system, electronic device and storage medium
By monitoring the water level of the hybrid cloud resource pool and calculating business scores, using public cloud resources to warm up and add them to the private cloud resource pool, the problem of rapid expansion of hybrid cloud capacity is solved, and efficient resource provisioning and rapid response to user visits is achieved.
Patent Information
- Application Number
- CN202111470616.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-03
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2041-12-03
AI Technical Summary
In the prior art, hybrid cloud cannot achieve rapid capacity expansion, resulting in the inability to meet the sudden demand for high user visits in a timely manner.
By monitoring the resource water level of the private cloud and buffer resource pool, calculating business scores, and obtaining and warming up cloud resources from the public cloud when there is insufficient demand, and directly adding them to the private cloud resource pool to achieve rapid capacity expansion.
It has achieved rapid capacity expansion in hybrid cloud scenarios, which can promptly meet the sudden demand for high user visits, and avoid resource waste and cost increase.
Smart Images

Figure CN114253712B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer cloud computing technology, and in particular to a hybrid cloud rapid expansion method, device, system, electronic device and storage medium. Background Art
[0002] In internet business scenarios, user volume is relatively stable most of the time. However, certain periods, such as shopping festivals, major sales events, and hot events, often lead to sudden surges in user traffic, which can cause system downtime. Given this, if internet companies build private cloud data centers based on peak traffic, this not only increases production costs but also easily leaves computer infrastructure idle after the emergency ends, resulting in wasted computing resources.
[0003] In existing technologies, internet companies often manually temporarily access public cloud resources based on their private cloud, tailored to actual user demand, to meet peak business traffic demand. However, in hybrid cloud scenarios, numerous initialization steps are required to ensure the availability of cloud host resources and final business resources. As a result, these manually temporarily accessed public cloud resources often cannot be used directly for business operations, requiring them to wait for initialization to complete. This makes it impossible to rapidly scale hybrid clouds and meet sudden surges in user traffic in real time. Summary of the Invention
[0004] Embodiments of the present invention provide a hybrid cloud rapid capacity expansion method, device, system, electronic device, and storage medium to solve the problem that hybrid cloud rapid capacity expansion cannot be achieved in the prior art.
[0005] In order to solve the above problems, the embodiment of the present invention is implemented as follows:
[0006] In a first aspect, an embodiment of the present invention discloses a method for rapid capacity expansion of a hybrid cloud, comprising:
[0007] Monitor the first resource level of the private cloud resource pool and the second resource level of the buffer resource pool;
[0008] Calculating a business score of the private cloud resource pool based on the first resource water level, the second resource water level, and a historical resource water level of the private cloud resource pool;
[0009] When the service score is less than a first preset threshold, obtaining cloud resources from a public cloud resource pool to a buffer resource pool, and preheating the cloud resources in the buffer resource pool to obtain target cloud resources;
[0010] When the service score is less than a second preset threshold, the target cloud resource in the buffer resource pool is added to the private cloud resource pool.
[0011] Optionally, calculating the business score of the private cloud resource pool includes:
[0012] Determining a change in the resource water level of the private cloud resource pool based on the first resource water level and the historical resource water level;
[0013] Determining a change range of the resource water level of the private cloud resource pool according to the first resource water level and the resource water level change;
[0014] Performing weighted processing on the resource water level change amplitude to obtain a weighted score of the private cloud resource pool;
[0015] The weighted score is multiplied by the second resource water level to obtain the service score.
[0016] Optionally, after calculating the service score of the private cloud resource pool, the method further includes:
[0017] Based on the business score, confirming the target resource level corresponding to the business score in a preset correspondence relationship;
[0018] The resource water level of the buffer resource pool is maintained at the target resource water level.
[0019] Optionally, acquiring cloud resources from a public cloud resource pool to a buffer resource pool, and preheating the cloud resources in the buffer resource pool to obtain target cloud resources includes:
[0020] Calling the external interface of the public cloud resource pool;
[0021] Based on the external interface, acquiring cloud resources from the public cloud resource pool to a buffer resource pool, and initializing a preheating environment for the cloud resources in the buffer resource pool;
[0022] Deploy business resources in the cloud resources to obtain the target cloud resources.
[0023] Optionally, the method further includes:
[0024] The resource water level information and the business expansion information are sent to the display device through the application program interface so that the display device displays the resource water level information and the business expansion information; the resource water level information includes the first resource water level and the second resource water level; the business expansion information includes relevant information of the target cloud resources.
[0025] Optionally, the method further includes:
[0026] Monitoring a third resource level of the public cloud resource pool;
[0027] When the third resource water level is less than a third preset threshold, a preset alarm message is displayed.
[0028] In a second aspect, an embodiment of the present invention discloses a hybrid cloud rapid capacity expansion device, the hybrid cloud rapid capacity expansion device including a buffer preheating device, the buffer preheating device including:
[0029] A monitoring module, configured to monitor a first resource level of a private cloud resource pool and a second resource level of a buffer resource pool;
[0030] a control module, configured to calculate a service score of the private cloud resource pool based on the first resource water level, the second resource water level, and a historical resource water level of the private cloud resource pool;
[0031] The control module is further configured to, when the service score is less than a first preset threshold, obtain cloud resources from the public cloud resource pool to a buffer resource pool, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources;
[0032] The control module is further configured to add the target cloud resource in the buffer resource pool to the private cloud resource pool when the service score is less than a second preset threshold.
[0033] In a third aspect, an embodiment of the present invention discloses a hybrid cloud rapid expansion system, comprising a private cloud resource pool, a public cloud resource pool, and a buffer preheating device; the buffer preheating device comprises a buffer resource pool; wherein,
[0034] The buffer preheating device is used to monitor the first resource water level of the private cloud resource pool and the second resource water level of the buffer resource pool;
[0035] The buffer preheating device is used to calculate the business score of the private cloud resource pool based on the first resource water level, the second resource water level and the historical resource water level of the private cloud resource pool;
[0036] The buffer preheating device is used to obtain cloud resources from the public cloud resource pool to the buffer resource pool when the business score is less than a first preset threshold, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources;
[0037] The buffer preheating device is used to add the target cloud resources in the buffer resource pool to the private cloud resource pool when the business score is less than a second preset threshold.
[0038] In a fourth aspect, an embodiment of the present invention further provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of rapid hybrid cloud expansion as described in the first aspect are implemented.
[0039] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of rapid hybrid cloud expansion described in the first aspect are implemented.
[0040] In an embodiment of the present invention, a first resource water level of a private cloud resource pool and a second resource water level of a buffer resource pool are monitored; a business score of the private cloud resource pool is calculated based on the first resource water level, the second resource water level and the historical resource water level of the private cloud resource pool; when the business score is less than a first preset threshold, cloud resources are obtained from the public cloud resource pool to the buffer resource pool, and the cloud resources are preheated in the buffer resource pool to obtain target cloud resources; when the business score is less than a second preset threshold, the target cloud resources in the buffer resource pool are added to the private cloud resource pool.
[0041] In an embodiment of the present invention, the demand for cloud resources in the private cloud resource pool is characterized by calculating the business score. When the demand is high, cloud resources are obtained from the public cloud and transferred to the buffer resource pool and preheated to obtain target cloud resources. When the private cloud resources are insufficient, the preheated target cloud resources in the buffer resource pool can be directly added to the private cloud to operate the business, thereby realizing rapid capacity expansion in the hybrid cloud scenario and being able to promptly meet the sudden demand for high user access volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart showing the steps of a hybrid cloud rapid capacity expansion method according to an embodiment of the present invention is shown;
[0043] Figure 2 A schematic diagram showing a resource water level of a resource pool according to an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of interaction for rapid capacity expansion of a hybrid cloud according to an embodiment of the present invention is shown;
[0045] Figure 4 A schematic diagram showing the internal structure principle of a control module according to an embodiment of the present invention;
[0046] Figure 5 A structural block diagram of a hybrid cloud rapid capacity expansion device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0048] Reference Figure 1 , showing a flowchart of the steps of a hybrid cloud rapid expansion method according to an embodiment of the present invention. The execution subject of the method may be a buffer preheating device. The buffer preheating device includes a monitoring module, a control module, a display module and a buffer resource pool. Among them, the monitoring module is used to collect and monitor the resource water level of each resource pool; the control module is used to calculate the business score and adjust the water level relationship between the private cloud resource pool and the buffer resource pool according to the business score; the buffer resource pool is used to receive the cloud resources moved and initialized from the public cloud resource pool; the display module is used to display various information. It should be noted that the hybrid cloud rapid expansion method according to the embodiment of the present invention can be applied to cloud environments with virtual machine technology or non-virtual machine technology, and can also be applied to cloud environments with container technology or non-container technology, and can achieve the expansion of the overall global basic cloud resources of the private cloud.
[0049] The method may specifically include:
[0050] Step 101: Monitor a first resource water level of a private cloud resource pool and a second resource water level of a buffer resource pool.
[0051] In embodiments of the present invention, a private cloud resource pool may refer to a cloud resource server cluster within an enterprise. A private cloud is typically built for the sole use of an enterprise and provides the most effective control over data, security, and service quality. For example, internet companies typically have internal computer infrastructure and can control how applications are deployed on that infrastructure based on actual needs. A private cloud resource pool is typically deployed within an enterprise data center or a dedicated hosting Internet Data Center (IDC) computer room.
[0052] The buffer resource pool may refer to the cloud resource pool corresponding to the buffer preheating device. The buffer preheating device can play a role in buffer preheating and resource allocation in hybrid cloud scenarios. A resource level may refer to information consisting of the quantity and / or capacity of a resource. Specifically, such resources may include CPU, memory, disk capacity, network bandwidth, etc., which is not limited in this embodiment of the present invention. The first resource level may refer to the current level of the private cloud resource pool, and the second resource level may refer to the current level corresponding to the buffer resource pool.
[0053] In this step, in the hybrid cloud scenario, the monitoring module in the buffer preheating device can monitor the current water levels of the private cloud resource pool and the buffer resource pool in real time, and the subsequent control module can calculate the business score and allocate cloud resources based on the first resource water level and the second resource water level.
[0054] For example, Figure 2 FIG. 1 shows a schematic diagram of a resource water level of a resource pool according to an embodiment of the present invention. Figure 2 As shown in , the resource pool 201 can be regarded as a pool or a measuring cup, and the water in it can refer to cloud resources. The resource water level indicates how much cloud resources are currently in the cup. For example, a water level of 80% means that there are 4 / 5 of water in the cup, that is, cloud resources are relatively sufficient; a water level of 20% means that there is only 1 / 5 of water in the cup, that is, cloud resources are relatively scarce and need to be replenished. When the number of cloud resources in the resource pool 201 changes, the resource water level also changes accordingly. Figure 2 For example, the resource pool 201 in FIG. 5 is a private cloud resource pool, and the current first resource water level 202 of the private cloud resource pool is 50%.
[0055] Step 102: Calculate the business score of the private cloud resource pool based on the first resource water level, the second resource water level, and the historical resource water level of the private cloud resource pool.
[0056] In an embodiment of the present invention, the historical resource water level may refer to the water level of the private cloud resource pool before a preset time. The preset time is selected according to actual needs and may refer to 30 seconds or 60 seconds, etc. Correspondingly, the historical resource water level may be the water level of the private cloud resource pool 30 seconds ago or the water level of the private cloud resource pool 60 seconds ago, etc. The embodiment of the present invention does not limit the specific value of the preset time.
[0057] The business score can refer to the degree to which a private cloud resource pool requires cloud resource expansion when operating services based on the private cloud resource pool. This business score is used to indicate the degree to which a private cloud resource pool requires cloud resource expansion, and the business score is negatively correlated with the degree of demand. When the number of users is relatively stable, the cloud resources in the private cloud resource pool are sufficient to support the operation of user services. In this case, the private cloud resource pool has a low demand for cloud resource expansion and a high business score. When a hot event or other event causes a sudden increase in user traffic, the cloud resources in the private cloud resource pool are insufficient to support the operation of a large number of user services. In this case, the private cloud resource pool has a high demand for cloud resource expansion and a low business score.
[0058] In this step, after obtaining the current first resource water level of the private cloud resource pool and the current second resource water level of the buffer resource pool, the control module in the preheating buffer device can calculate the business score of the private cloud resource pool based on the first resource water level, the second resource water level and the historical resource water level of the private cloud resource pool, and subsequently realize the scheduling of cloud resources based on the business score.
[0059] Step 103: When the service score is less than a first preset threshold, obtain cloud resources from the public cloud resource pool to a buffer resource pool, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources.
[0060] In the embodiments of the present invention, public cloud resources may refer to server clusters provided by third-party providers for user use. Public clouds are generally accessible via the internet. The core attribute of public clouds is shared cloud computing resource services. Public clouds typically have a large number of cloud resources and can provide services over open public networks. A hybrid cloud scenario may refer to a scenario that utilizes cloud resources from both private and public clouds.
[0061] The first preset threshold may be a pre-set critical value of the business score. When the threshold is less than the first preset threshold, it indicates that the private cloud resource pool is facing a resource shortage and requires preheating cloud resources in advance to achieve rapid expansion of the private cloud. The first preset threshold may be set to a specific value such as 90 or 80, which can be determined based on actual needs and production costs, and is not limited in this embodiment of the present invention.
[0062] The preheating process typically involves heating test tubes in chemical experiments. To ensure faster and smoother progress, the test tubes are evenly heated to a certain temperature using an alcohol burner before heating to ensure uniform heating. In hybrid cloud scenarios, the preheating process can also refer to initializing and preheating cloud resources. These preheated cloud resources can be used directly to provide external services, accelerating business expansion. The target cloud resources can also refer to preheated cloud resources.
[0063] In this step, after the control module calculates the business score, if the business score is less than the first preset threshold, it indicates that the private cloud resource pool is currently facing a tendency of insufficient cloud resources. The control module obtains cloud resources from the public cloud resource pool to the buffer resource pool, and initializes and preheats the cloud resources in the buffer resource pool to obtain target cloud resources that can be directly used to operate the business, thereby facilitating the subsequent rapid expansion of the private cloud resource pool.
[0064] Step 104: When the service score is less than a second preset threshold, add the target cloud resource in the buffer resource pool to the private cloud resource pool.
[0065] In embodiments of the present invention, the second preset threshold may refer to a pre-set critical value for the business score, where the second preset threshold is less than the first preset threshold. When the business score is less than the second preset threshold, it indicates that the current cloud resources in the private cloud resource pool are insufficient to support the operation of the business and require expansion. The specific value of the second preset threshold can be set to 70, 60, etc., and can be determined based on actual needs and production costs, and is not limited in embodiments of the present invention.
[0066] In this step, when the business score of the private cloud resource pool is less than the second preset threshold, the control module can add the target cloud resources that have been preheated in the buffer resource pool to the private cloud resource pool. The private cloud resource pool can directly provide services to the outside world based on the target cloud resources, thereby achieving rapid expansion.
[0067] In summary, an embodiment of the present invention provides a hybrid cloud rapid expansion method, which monitors the first resource water level of the private cloud resource pool and the second resource water level of the buffer resource pool; based on the first resource water level, the second resource water level and the historical resource water level of the private cloud resource pool, the business score of the private cloud resource pool is calculated; when the business score is less than a first preset threshold, cloud resources are obtained from the public cloud resource pool to the buffer resource pool, and the cloud resources are preheated in the buffer resource pool to obtain target cloud resources; when the business score is less than a second preset threshold, the target cloud resources in the buffer resource pool are added to the private cloud resource pool. In an embodiment of the present invention, the demand for cloud resources by the private cloud resource pool is characterized by calculating the business score. When the demand is high, cloud resources are obtained from the public cloud to the buffer resource pool and preheated to obtain target cloud resources. When the private cloud resources are insufficient, the preheated target cloud resources in the buffer resource pool can be directly added to the private cloud to operate the business, thereby achieving rapid expansion in a hybrid cloud scenario and quickly meeting sudden demands for high user access volume.
[0068] Optionally, in the embodiment of the present invention, step 102 may specifically include the following steps 1021 to 1024:
[0069] Step 1021: Determine a change in the resource water level of the private cloud resource pool based on the first resource water level and the historical resource water level.
[0070] In embodiments of the present invention, the resource water level change may refer to the difference between the current first resource water level of a private cloud resource pool and the historical resource water level. Because the water level of a private cloud resource pool varies, the resource water level change may be positive or negative. A positive value indicates that the overall resource water level of the private cloud resource pool is rising; a negative value indicates that the overall resource water level of the private cloud resource pool is falling. For example, if the historical resource water level is W1 and the first resource water level is W2, the resource water level change may be W2 minus W1.
[0071] Step 1022: Determine the magnitude of the change in the resource water level of the private cloud resource pool according to the first resource water level and the amount of change in the resource water level.
[0072] In an embodiment of the present invention, the resource level change amplitude may refer to the percentage of the resource level change amplitude in the private cloud resource pool. Since the resource level change amount may be positive or negative, the corresponding resource level change amplitude may also be positive or negative. When the resource level change amplitude is positive, it can be used to represent the percentage increase in the resource level of the private cloud resource pool; if it is negative, it can be used to represent the percentage decrease in the resource level of the private cloud resource pool.
[0073] For example, if the historical resource water level is recorded as W1, the first resource water level is recorded as W2, and the resource water level change can be (W2-W1), then the resource water level change amplitude E can be expressed as:
[0074]
[0075] Step 1023: Perform weighted processing on the resource water level change range to obtain a weighted score of the private cloud resource pool.
[0076] In this embodiment of the present invention, the weighted score may refer to the weighted score corresponding to the magnitude of the change in resource levels in the private cloud resource pool. Assuming a base score of 100, if the magnitude of the resource level change is positive, the base score is added to obtain the weighted score; if the magnitude of the resource level change is negative, the base score is subtracted to obtain the weighted score.
[0077] Combining the same example above, the weighted score can be expressed as:
[0078] 100+E×100
[0079] Step 1024: Multiply the weighted score by the second resource water level to obtain the business score.
[0080] In an embodiment of the present invention, when calculating the business score of a private cloud resource pool, the current second resource water level of the buffer resource pool is a key factor in the private cloud resource pool's ability to quickly obtain cloud resources and achieve rapid expansion. At this time, the control module can multiply the weighted score calculated based on the change amplitude of the private cloud resource pool's resource water level by the second resource water level to obtain the business score corresponding to the private cloud resource pool.
[0081] In the same example above, let the second resource water level be W3, and the service score can be expressed as:
[0082] (100+E×100)×W3
[0083] Substituting the calculation formula of resource water level change amplitude E into the above formula and converting it, it can be expressed as:
[0084]
[0085] In this way, the control module can calculate the business score corresponding to the private cloud resource pool based on the above formula, and subsequently perform corresponding resource allocation actions based on the business score. For example, Table 1 shows a score table for business score calculation according to an embodiment of the present invention.
[0086]
[0087] Table 1
[0088] In an embodiment of the present invention, the change in the resource water level of the private cloud resource pool is determined based on the first resource water level and the historical resource water level; the amplitude of the change in the resource water level of the private cloud resource pool is determined based on the first resource water level and the amount of the change in the resource water level; weighted processing is performed on the amplitude of the change in the resource water level to obtain a weighted score for the private cloud resource pool; and the weighted score is multiplied by the second resource water level to obtain a business score. In this way, in an embodiment of the present invention, the control module calculates the business score based on the first resource water level, the second resource water level, and the historical resource water level. The business score can accurately reflect the demand for cloud resources by the private cloud resource pool, ensuring the accuracy of the subsequent cloud resource allocation by the control module. In addition, resource allocation based on the business score can not only achieve rapid expansion, but also avoid idle computing resources caused by the expansion of more cloud resources, thereby saving production costs.
[0089] Optionally, in the embodiment of the present invention, after step 102, the hybrid cloud capacity expansion method may further include the following steps S21 to S22:
[0090] Step S21: Based on the business score, confirm the target resource level corresponding to the business score in a preset corresponding relationship.
[0091] In an embodiment of the present invention, the target resource water level may refer to the target water level of the buffer resource pool corresponding to the business score. Different business scores result in different levels of demand for cloud resources in the private cloud resource pool, and accordingly, the number of preheated target cloud resources placed in the buffer resource pool, i.e., the target resource water level, is also different. The preset correspondence may refer to the correspondence between the pre-set business score and the target resource water level. The higher the business score, the lower the private cloud resource pool's demand for cloud resource expansion, and the corresponding target resource water level is lower, i.e., the target resource water level is negatively correlated with the business score. The specific value of the preset correspondence may be set based on actual needs.
[0092] For example, when the business score is greater than or equal to 80, the private cloud resource pool does not need to be expanded, and the target resource water level can be 0; when the business score is less than 80 but greater than or equal to 60, the target resource water level can be 50%; when the business score is less than 60 but greater than or equal to 40, the target resource water level can be 60%; when the business score is less than 40 but greater than or equal to 20, the target resource water level can be 70%; and when the business score is less than 20, the target resource water level can be 80%. The lower the business score, the higher the demand for cloud resources in the private cloud resource pool, and the corresponding target resource water level is also higher, so that the private cloud resource pool can be quickly expanded based on the target cloud resources in the buffer resource pool. Of course, the specific values in the preset corresponding relationship can be determined based on actual needs. It is only necessary to ensure that the business score is negatively correlated with the target resource water level to ensure the rapid expansion of the private cloud resource pool. This embodiment of the present invention is not limited to this.
[0093] Step S22: Maintain the resource level of the buffer resource pool at the target resource level.
[0094] In an embodiment of the present invention, after determining the target resource water level corresponding to the business score, the control module can automatically obtain cloud resources from the public cloud resource pool to the buffer resource pool, and preheat the cloud resources in the buffer resource pool to obtain the target cloud resources to ensure that the water level of the buffer resource pool is maintained at the target resource water level, thereby ensuring the rapid expansion needs of the private cloud resource pool and realizing rapid expansion of the private cloud at any time.
[0095] It should be noted that in one implementation, the buffer resource pool can always be maintained at a high level, but when the business volume is small, the private cloud resource pool has a small demand for cloud resources. Preheating more target cloud resources can easily cause idle cloud resources, increasing production costs.
[0096] In this embodiment of the present invention, based on the business score, the target resource level corresponding to the business score is determined in a preset correspondence relationship; the resource level of the buffer resource pool is maintained at the target resource level. Thus, by determining the target resource level corresponding to the business score based on the preset correspondence relationship and maintaining the target resource level in the buffer resource pool, the embodiment of the present invention can provide the preheated target cloud resources required for rapid expansion of the private cloud resource pool, while also preventing idle cloud resources caused by the buffer resource pool being maintained at a high level, thereby reducing production costs.
[0097] Optionally, in the embodiment of the present invention, step 103 may specifically include the following steps 1031 to 1033:
[0098] Step 1031: Call the external interface of the public cloud resource pool.
[0099] In an embodiment of the present invention, the external interface may refer to an application program interface of a public cloud resource pool. When the service score is less than a first preset threshold, the control module may call the external interface in the public cloud resource pool to obtain cloud resources to perform a subsequent warm-up process.
[0100] Step 1032: Based on the external interface, obtain cloud resources from the public cloud resource pool to a buffer resource pool, and initialize a preheating environment for the cloud resources in the buffer resource pool.
[0101] In the embodiment of the present invention, cloud resources may refer to computer resources required for business operations. The preheating environment may refer to an environment for preheating cloud resources, and the cloud resources may be subsequently initialized based on the preheating environment.
[0102] In this step, when the control module determines that the service score is less than a first preset threshold, it executes the corresponding resource allocation action. The control module can first call the API interface of the public cloud resource pool, then create a general-purpose public cloud resource, and then mark the general-purpose public cloud resource as a cloud resource in the buffer resource pool. This achieves the acquisition of cloud resources from the public cloud resource pool to the buffer resource pool. The preheating environment in the buffer resource pool can then be initialized to implement the subsequent preheating process of the cloud resources.
[0103] Step 1033: Deploy business resources in the cloud resources to obtain the target cloud resources.
[0104] In embodiments of the present invention, business resources may refer to various computing resources corresponding to supporting business operations. When the business score falls below a first preset threshold, the control module automatically retrieves cloud resources from the public cloud resource pool and transfers them to the buffer resource pool. The control module then initializes a preheating environment and deploys business resources in the buffer resource pool, obtaining target cloud resources that can subsequently be directly used for business operations. Thus, through the preheating process, the control module can convert cloud resources in the public cloud resource pool into business resource information required for enterprise business operations, namely, target cloud resources that can directly operate the business.
[0105] In this embodiment of the present invention, the external interface of the public cloud resource pool is called; based on the external interface, cloud resources are retrieved from the public cloud resource pool to the buffer resource pool, and a preheating environment for the cloud resources is initialized in the buffer resource pool; and service resources are deployed in the cloud resources to obtain the target cloud resources. In this way, the control module obtains the target cloud resources by preheating the cloud resources in the buffer resource pool. Subsequently, the target cloud resources can be expanded to the private cloud resource pool and then directly provided to the outside world. This improves real-time performance and enables rapid expansion in hybrid cloud scenarios, quickly meeting cloud resource demands when user traffic suddenly increases.
[0106] Optionally, in an embodiment of the present invention, the hybrid cloud rapid capacity expansion method may further include the following step S31:
[0107] Step S31: Send the resource water level information and the business expansion information to the display device through the application program interface so that the display device displays the resource water level information and the business expansion information; the resource water level information includes the first resource water level and the second resource water level; the business expansion information includes relevant information of the target cloud resources.
[0108] In embodiments of the present invention, an application programming interface (API) may refer to an external connection channel of a buffer preheating device. A display device may refer to a device used to display various parameters in a hybrid cloud scenario. The display device may be included in the buffer preheating device as a display module. Resource level information may refer to resource levels in various resource pools of the hybrid cloud. Service expansion information may include various information about target cloud resources and the results of rapid expansion.
[0109] In this step, the display module of the buffer preheating device can obtain the water level information and business expansion information of each resource pool from the API interface of the monitoring module and the control module, and display it for enterprise Internet Technology (IT) managers to view, so as to facilitate users to conduct real-time monitoring.
[0110] In this embodiment of the present invention, resource level information and service expansion information are sent to a display device via an application programming interface, so that the display device displays the resource level information and service expansion information. The resource level information includes a first resource level and a second resource level; the service expansion information includes information related to the target cloud resources. This allows for an intuitive display of the resource level and service expansion status of each resource pool in a hybrid cloud scenario, facilitating real-time monitoring by operations and maintenance personnel.
[0111] Optionally, in an embodiment of the present invention, the hybrid cloud rapid capacity expansion method may further include the following steps S41 to S42:
[0112] Step S41: Monitor the third resource level of the public cloud resource pool.
[0113] In this embodiment of the present invention, the third resource level may refer to the current level of the public cloud resource pool. When the private cloud resource pool is running low on cloud resources, the control module needs to obtain resources from the public cloud resource pool. To ensure the success rate of cloud resource acquisition and expansion, it is necessary to monitor the real-time level of the public cloud resource pool, i.e., the third resource level.
[0114] Step S42: When the third resource water level is lower than a third preset threshold, a preset alarm message is displayed.
[0115] In an embodiment of the present invention, the third preset threshold may refer to a preset alarm value of the public cloud resource pool water level. Different from the first preset threshold and the second preset threshold used to judge the high and low business scores, the third preset threshold is used to judge the resource water level of the public cloud resource pool. When the third resource water level is less than the third preset threshold, it indicates that there are fewer cloud resources in the public cloud resource pool at this time, and expansion failure may occur. At this time, the control module in the buffer preheating device can control the display module to display the preset alarm information to prompt IT management personnel, so that IT management personnel can take corresponding measures in time to ensure the normal operation of user access services. The preset alarm information can be a preset sound and light alarm information or text information, etc. The embodiment of the present invention does not limit the specific type of preset alarm information.
[0116] In this embodiment of the present invention, a third resource level in the public cloud resource pool is monitored; when the third resource level falls below a third preset threshold, a preset alarm message is displayed. By monitoring the real-time level of the public cloud and issuing an alarm when public cloud resources are scarce, the success rate of rapid capacity expansion can be ensured. Furthermore, by alerting IT managers, the normal operation of user services can be ensured.
[0117] Optionally, in the embodiment of the present invention, before step 101, the hybrid cloud rapid capacity expansion method may further include the following steps S51 to S53:
[0118] Step S51: Obtain preset connection information of the private cloud resource pool and the public cloud resource pool.
[0119] In the embodiment of the present invention, the preset connection information may refer to the docking information between the private cloud resource pool and the public cloud resource pool, and may specifically include API interface information and user authority information.
[0120] Step S52: Install a buffer preheating device in the hybrid cloud environment; the buffer preheating device includes the buffer resource pool.
[0121] In an embodiment of the present invention, after obtaining the preset connection information of the public cloud and the private cloud, a buffer preheating device can be installed in the hybrid cloud scenario to achieve rapid expansion and buffer preheating of cloud resources.
[0122] Step S53: configuring the preset connection information in the buffer preheating device and starting the buffer preheating device.
[0123] In an embodiment of the present invention, after the buffer preheating device is installed, the preset connection information can be configured into the buffer preheating device, and the buffer preheating device can be connected to the public cloud resource pool and the private cloud resource pool. Then, the buffer preheating device can be started. In this way, the buffer preheating device can normally collect information and allocate resources for the hybrid cloud, thereby realizing rapid expansion of hybrid cloud services.
[0124] It should be noted that the executor of steps S51 to S53 can be an IT manager. After starting the buffer preheating device, the subsequent hybrid cloud rapid expansion method can be automatically completed by the buffer preheating device, without the need for IT managers to manually expand the capacity, thereby improving operational efficiency and reducing labor costs.
[0125] For example, Figure 3 FIG1 shows an interactive diagram of a hybrid cloud rapid expansion according to an embodiment of the present invention. Figure 3 As shown, a buffer preheating device is installed in a hybrid cloud environment. The buffer preheating device includes a monitoring module 304, a control module 305, a display module 306, and a buffer resource pool 302. The monitoring module 304 of the buffer preheating device is connected to the private cloud resource pool 301, the buffer resource pool 302, and the public cloud resource pool 303, respectively, to monitor the resource levels of each resource pool in real time. The control module 305 is connected to the monitoring module 304 and is configured to calculate the business score corresponding to the private cloud resource pool 301 based on the first resource level of the private cloud resource pool 301 and the second resource level of the buffer resource pool 302. The control module 305 is configured to automatically analyze the water level threshold of the private cloud resource pool and predict the growth and decline trends of the private cloud resource pool water level. The water level relationship between the private cloud resource pool 301 and the buffer resource pool 302 is then adjusted based on the business score. The display module 306 is connected to the monitoring module 304 and the control module 305 to display resource water level information and business expansion information for easy viewing by IT managers.
[0126] Specifically, the user access service is operated based on the existing cloud resources of the private cloud resource pool 301. When the user access volume increases and the private cloud resource pool 301 is short of cloud resources, the monitoring module 304 sends the first resource water level and the second resource water level it obtains to the control module 305; the control module 305 calculates the service score of the private cloud resource pool based on the resource water level information. When the service score is less than the first preset threshold, the control module 305 automatically obtains cloud resources from the public cloud resource pool 303 to the buffer resource pool 302, and initializes the preheating environment and deploys service resources in the buffer resource pool 302 to obtain the target cloud resources, while maintaining the buffer resource pool 302 at the target resource water level corresponding to the service score; when the service score is less than the first preset threshold, the control module 305 places the target cloud resources in the buffer resource pool 302 into the private cloud resource pool 301 to formally provide services to the outside world, and continues the preheating process to maintain the resource water level of the buffer resource pool 302. In this way, the buffer preheating device can achieve rapid expansion of the private cloud by preheating the cloud resources in the buffer resource pool to obtain target cloud resources that can be directly used for business operations; during the rapid expansion process, users can always access the services of the private cloud resource pool normally, ensuring the normal operation of user businesses.
[0127] It should be noted that when the cloud resources in the private cloud resource pool 301 and the buffer resource pool 302 are extremely scarce, cloud resources can be temporarily and urgently transferred from the public cloud resource pool 303 to the private cloud resource pool to meet the emergency situation. This embodiment of the present invention does not limit this.
[0128] For example, Figure 4 FIG. 1 is a schematic diagram showing the internal structure principle of a control module according to an embodiment of the present invention. Figure 4 As shown, the internal structure of the control module 402 includes three logical units: an analysis unit 4021, a cache unit 4022, and a scheduling unit 4023. The analysis unit 4021 is connected to the monitoring module 401 and is responsible for analyzing the water level threshold of the private cloud resource pool, predicting the trend of water level growth and decline, and calculating the business score corresponding to the private cloud resource pool. The cache unit 4022 is responsible for temporarily caching and storing the score table of business scores. The scheduling unit 4023 determines the execution of resource allocation actions based on the score table in the cache unit 4022. In this way, the control module can dynamically allocate public cloud resources to the buffer resource pool based on the business score, and further allocate preheated cloud resources, i.e., target cloud resources, to the private cloud resource pool.
[0129] It should be noted that the analysis unit 4021 in the control module 402 receives raw water level information for each resource pool, such as CPU, memory, disk capacity, and network bandwidth. After analysis and conversion, it generates a score table containing service scores. The service scores in this score table are important information for resource pool resource allocation and service initialization, and can also serve as a reference for the service pressure of the hybrid cloud.
[0130] Resource scheduling in a hybrid cloud scenario refers to the scheduling of computer resources (e.g., cloud hosts) through network channels, according to specific scheduling policies. In this embodiment of the present invention, based on service scores and pre-defined correspondences, the control module can achieve rational allocation of cloud resources and rapid expansion of the hybrid cloud. For example, Table 2 shows a correspondence between service scores and control module resource allocation actions in this embodiment of the present invention.
[0131]
[0132]
[0133] Table 2
[0134] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0135] Reference Figure 5 , shows a structural block diagram of a hybrid cloud rapid capacity expansion device of the present invention. Specifically, the hybrid cloud rapid capacity expansion device 50 includes a buffer preheating device 500, which may include the following modules:
[0136] A monitoring module 5001 is configured to monitor a first resource level of a private cloud resource pool and a second resource level of a buffer resource pool;
[0137] A control module 5002 is configured to calculate a service score of the private cloud resource pool based on the first resource water level, the second resource water level, and a historical resource water level of the private cloud resource pool;
[0138] The control module 5002 is further configured to, when the service score is less than a first preset threshold, obtain cloud resources from the public cloud resource pool to a buffer resource pool, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources;
[0139] The control module 5002 is further configured to add the target cloud resource in the buffer resource pool to the private cloud resource pool when the service score is less than a second preset threshold.
[0140] In summary, the hybrid cloud rapid capacity expansion device provided by the embodiment of the present invention monitors the first resource water level of the private cloud resource pool and the second resource water level of the buffer resource pool; based on the first resource water level, the second resource water level and the historical resource water level of the private cloud resource pool, the business score of the private cloud resource pool is calculated; when the business score is less than the first preset threshold, cloud resources are obtained from the public cloud resource pool to the buffer resource pool, and the cloud resources are preheated in the buffer resource pool to obtain the target cloud resources; when the business score is less than the second preset threshold, the target cloud resources in the buffer resource pool are added to the private cloud resource pool. In the embodiment of the present invention, the demand for cloud resources by the private cloud resource pool is characterized by calculating the business score. When the demand is high, cloud resources are obtained from the public cloud to the buffer resource pool and preheated to obtain the target cloud resources. When the private cloud resources are insufficient, the preheated target cloud resources in the buffer resource pool can be directly added to the private cloud to operate the business, thereby realizing rapid capacity expansion in the hybrid cloud scenario and being able to quickly meet the sudden demand of high user access volume.
[0141] Optionally, the control module 5002 is specifically configured to:
[0142] Determining a change in the resource water level of the private cloud resource pool based on the first resource water level and the historical resource water level;
[0143] Determining a change range of the resource water level of the private cloud resource pool according to the first resource water level and the resource water level change;
[0144] Performing weighted processing on the resource water level change amplitude to obtain a weighted score of the private cloud resource pool;
[0145] The weighted score is multiplied by the second resource water level to obtain the service score.
[0146] Optionally, the device 500 is further configured to:
[0147] Based on the business score, confirming the target resource level corresponding to the business score in a preset corresponding relationship; the preset corresponding relationship is the corresponding relationship between the business score and the target resource level;
[0148] The resource water level of the buffer resource pool is maintained at the target resource water level.
[0149] Optionally, the control module 5002 is further configured to:
[0150] Calling the external interface of the public cloud resource pool;
[0151] Based on the external interface, acquiring cloud resources from the public cloud resource pool to a buffer resource pool, and initializing a preheating environment for the cloud resources in the buffer resource pool;
[0152] Deploy business resources in the cloud resources to obtain the target cloud resources.
[0153] Optionally, the device 500 is further configured to:
[0154] The resource water level information and the business expansion information are sent to the display device through the application program interface so that the display device displays the resource water level information and the business expansion information; the resource water level information includes the first resource water level and the second resource water level; the business expansion information includes relevant information of the target cloud resources; the display device can be included in the buffer preheating device 500 as a display module.
[0155] Optionally, the monitoring module 5001 is further configured to monitor a third resource level of the public cloud resource pool;
[0156] The display module is further configured to display a preset alarm message when the third resource water level is less than a third preset threshold.
[0157] Optionally, an embodiment of the present invention further provides a hybrid cloud rapid expansion system, comprising a private cloud resource pool, a public cloud resource pool, and a buffer preheating device; the buffer preheating device comprises a buffer resource pool; wherein,
[0158] The buffer preheating device is used to monitor the first resource water level of the private cloud resource pool and the second resource water level of the buffer resource pool;
[0159] The buffer preheating device is used to calculate the business score of the private cloud resource pool based on the first resource water level, the second resource water level, and the historical resource water level of the private cloud resource pool; the buffer preheating device is used to obtain cloud resources from the public cloud resource pool to the buffer resource pool when the business score is less than a first preset threshold, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources;
[0160] The buffer preheating device is used to add the target cloud resources in the buffer resource pool to the private cloud resource pool when the business score is less than a second preset threshold.
[0161] The hybrid cloud rapid capacity expansion system can implement each process of the above hybrid cloud rapid capacity expansion method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0162] Optionally, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned hybrid cloud rapid expansion method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0163] Optionally, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned hybrid cloud rapid expansion method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0164] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0165] It is easy for those skilled in the art to think that any combination of the above embodiments is feasible, so any combination of the above embodiments is an implementation scheme of the present invention. However, due to space limitations, this specification will not describe them in detail here.
[0166] In the description provided herein, numerous specific details are described. However, it is understood that embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0167] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Accordingly, the claims that follow the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of the present invention.
[0168] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed herein may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0169] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, combinations of features from different embodiments are intended to be within the scope of the present invention and to form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
[0170] It should be noted that the above embodiments illustrate rather than limit the invention, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising several different elements and by means of appropriately programmed computers. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
Claims
1. A hybrid cloud rapid expansion method, characterized in that: include: Monitor the first resource level of the private cloud resource pool and the second resource level of the buffer resource pool; Calculating a business score of the private cloud resource pool based on the first resource water level, the second resource water level, and a historical resource water level of the private cloud resource pool; When the service score is less than a first preset threshold, obtaining cloud resources from a public cloud resource pool to a buffer resource pool, and preheating the cloud resources in the buffer resource pool to obtain target cloud resources; When the service score is less than a second preset threshold, adding the target cloud resource in the buffer resource pool to the private cloud resource pool; The business score is used to indicate the degree of demand of the private cloud resource pool for expansion of the cloud resources; Calculating the business score of the private cloud resource pool includes: Determining a change in the resource water level of the private cloud resource pool based on the first resource water level and the historical resource water level; Determining a change range of the resource water level of the private cloud resource pool according to the first resource water level and the resource water level change; Performing weighted processing on the resource water level change amplitude to obtain a weighted score of the private cloud resource pool; The weighted score is multiplied by the second resource water level to obtain the service score.
2. The method according to claim 1, characterized in that After calculating the service score of the private cloud resource pool, the method further includes: Based on the business score, confirming the target resource level corresponding to the business score in a preset correspondence relationship; The resource water level of the buffer resource pool is maintained at the target resource water level.
3. The method according to claim 1, characterized in that The step of acquiring cloud resources from a public cloud resource pool to a buffer resource pool, and preheating the cloud resources in the buffer resource pool to obtain target cloud resources, includes: Calling the external interface of the public cloud resource pool; Based on the external interface, acquiring cloud resources from the public cloud resource pool to a buffer resource pool, and initializing a preheating environment for the cloud resources in the buffer resource pool; Deploy business resources in the cloud resources to obtain the target cloud resources.
4. The method according to claim 1, wherein The method further comprises: The resource water level information and the business expansion information are sent to the display device through the application program interface so that the display device displays the resource water level information and the business expansion information; the resource water level information includes the first resource water level and the second resource water level; the business expansion information includes relevant information of the target cloud resources.
5. The method according to claim 1, wherein The method further comprises: Monitoring a third resource level of the public cloud resource pool; When the third resource water level is less than a third preset threshold, a preset alarm message is displayed.
6. A hybrid cloud rapid expansion device, characterized in that: The hybrid cloud rapid capacity expansion device includes a buffer preheating device, and the buffer preheating device includes: A monitoring module, configured to monitor a first resource level of a private cloud resource pool and a second resource level of a buffer resource pool; a control module, configured to calculate a service score of the private cloud resource pool based on the first resource water level, the second resource water level, and a historical resource water level of the private cloud resource pool; The control module is further configured to, when the service score is less than a first preset threshold, obtain cloud resources from the public cloud resource pool to a buffer resource pool, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources; The control module is further configured to add the target cloud resource in the buffer resource pool to the private cloud resource pool when the service score is less than a second preset threshold; The business score is used to indicate the degree of demand of the private cloud resource pool for expansion of the cloud resources; Calculating the business score of the private cloud resource pool includes: Determining a change in the resource water level of the private cloud resource pool based on the first resource water level and the historical resource water level; Determining a change range of the resource water level of the private cloud resource pool according to the first resource water level and the resource water level change; Performing weighted processing on the resource water level change amplitude to obtain a weighted score of the private cloud resource pool; The weighted score is multiplied by the second resource water level to obtain the service score.
7. A hybrid cloud rapid expansion system, characterized in that: It includes a private cloud resource pool, a public cloud resource pool and a buffer preheating device; the buffer preheating device includes a buffer resource pool; The buffer preheating device is used to monitor the first resource water level of the private cloud resource pool and the second resource water level of the buffer resource pool; The buffer preheating device is used to calculate the business score of the private cloud resource pool based on the first resource water level, the second resource water level and the historical resource water level of the private cloud resource pool; The buffer preheating device is used to obtain cloud resources from the public cloud resource pool to the buffer resource pool when the business score is less than a first preset threshold, and preheat the cloud resources in the buffer resource pool to obtain target cloud resources; The buffer preheating device is used to add the target cloud resources in the buffer resource pool to the private cloud resource pool when the business score is less than a second preset threshold; The business score is used to indicate the degree of demand of the private cloud resource pool for expansion of the cloud resources; Calculating the business score of the private cloud resource pool includes: Determining a change in the resource water level of the private cloud resource pool based on the first resource water level and the historical resource water level; Determining a change range of the resource water level of the private cloud resource pool according to the first resource water level and the resource water level change; Performing weighted processing on the resource water level change amplitude to obtain a weighted score of the private cloud resource pool; The weighted score is multiplied by the second resource water level to obtain the service score.
8. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for rapid capacity expansion of a hybrid cloud as claimed in any one of claims 1 to 5 is implemented.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the hybrid cloud rapid expansion method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Configuring methods and devices of equipment resources, server and storage medium
CN109412874A
Method and apparatus for managing resource on cloud platform
US20180337984A1