Resource processing method and device based on multi-cloud platform
By obtaining resource balancing strategies and adjusting multi-cloud platform resource data, it solves the problems of resource waste and performance failure in multi-cloud environments, achieves efficient resource organization and dynamic balancing, and improves resource utilization efficiency.
Patent Information
- Application Number
- CN202011553672.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-24
AI Technical Summary
Existing technology makes it difficult to fully consider the characteristics of multi-cloud resources in the early stages of business system design, leading to resource waste and performance failure to meet demand. Moreover, existing methods are difficult and costly, and cannot achieve dynamic balance and efficient arrangement of resources.
By receiving resource processing requests from multi-cloud platforms, we obtain resource balancing strategies, combine resource capability data from multiple cloud platforms, determine and adjust resource data, and achieve resource balancing on multi-cloud platforms, including determining scalable cloud platforms and resource adjustments to ensure resource distribution. Consistent with strategy.
It improves the accuracy and efficiency of resource balancing, solves the difficulty and high cost of migration tools, and achieves a dynamic balance of multi-cloud platform resources.
Smart Images

Figure CN113760528B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a resource processing method and device based on a multi-cloud platform. Background Art
[0002] Multi-cloud technology allows a user to own multiple cloud platforms at the same time, and to effectively organize and manage the IaaS (i.e., the service layer on the cloud platform that provides computing, storage, and network services, such as cloud hosts, etc.) and PaaS (i.e., the service layer on the cloud platform that provides system development capability support services, such as databases, etc.) resources on the cloud platform based on the amount of resources purchased by the user, and to build their own business systems on them.
[0003] Since the performance provided by cloud platforms with the same configuration is likely to be different, and the price-performance ratio, resources provided, and resource capabilities of the same cloud platform may also change at different times, it is difficult to fully consider the resource characteristics of multiple clouds in the early stages of business system design, which will result in unnecessary waste of resources or business system performance not meeting requirements.
[0004] At present, the following methods are mainly used to achieve resource balance: 1. Through migration tools and relying on the operation and implementation of technical personnel, there are problems of great difficulty and high cost, and it cannot ensure that the business system after migration has a deployment that is more in line with performance and cost strategies; 2. Re-develop the business system. In addition, the existing methods have the problem of not being able to accurately achieve resource balance, nor can they achieve dynamic balance of resources, and the efficiency of resource arrangement is low. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a resource processing method and device based on a multi-cloud platform, which can achieve resource balancing of the multi-cloud platform, and can also improve the accuracy of resource balancing and improve resource organization efficiency.
[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a resource processing method based on a multi-cloud platform is provided.
[0007] A resource processing method based on a multi-cloud platform according to an embodiment of the present invention includes: receiving a resource processing request of a multi-cloud platform, and obtaining a target business system and a resource balancing strategy corresponding to the target business system according to the resource processing request; based on the resource balancing strategy, determining resource adjustment data corresponding to the multiple cloud platforms under the target business system according to resource capability data corresponding to multiple cloud platforms and resource data corresponding to the multiple cloud platforms under the target business system; and adjusting the resource data corresponding to the multiple cloud platforms under the target business system according to the resource adjustment data to achieve resource balance of the multi-cloud platform.
[0008] Optionally, the method also includes: according to a request for creating a new target business system, obtaining the target business system and a first cloud platform, creating cloud resources required for the target business system on the first cloud platform, and deploying the target business system on the cloud resources; determining whether an extensible cloud platform exists for the target business system, and if so, transmitting system data corresponding to the target business system to the extensible cloud platform; saving the system data corresponding to the target business system on a second cloud platform; wherein the system data includes system image files, program packages and configuration files corresponding to the business system.
[0009] Optionally, the determining whether there is an scalable cloud platform for the target business system, and if so, transmitting system data corresponding to the target business system to the scalable cloud platform, includes: obtaining the access traffic source corresponding to the target business system, and determining whether there is a cloud platform with an access distance less than the access distance corresponding to the first cloud platform based on the access traffic source; if so, confirming that the cloud platform with an access distance less than the access distance corresponding to the first cloud platform is the scalable cloud platform, if not, confirming that the scalable cloud platform does not exist; and, determining whether there is a cloud platform with available resources greater than a preset resource threshold, and if so, confirming that the cloud platform with available resources greater than the preset resource amount is the scalable cloud platform, if not, confirming that the scalable cloud platform does not exist.
[0010] Optionally, the resource data corresponding to the multiple cloud platforms under the target business system are adjusted in accordance with the resource adjustment data, including: obtaining the cloud platform that needs to increase resources based on the resource adjustment data; determining whether the cloud platform that needs to increase resources is the scalable cloud platform; if so, adjusting the resources of the cloud platform that needs to increase resources; if not, transmitting the system data corresponding to the target business system stored on the second cloud platform to the cloud platform that needs to increase resources, and then adjusting the resources of the cloud platform that needs to increase resources.
[0011] Optionally, after adjusting the resource data corresponding to the multiple cloud platforms under the target business system according to the resource adjustment data, the method also includes: analyzing the operation status of the target business system to obtain analysis results; judging whether it complies with the resource balancing strategy based on the analysis results; if so, confirming that the resource balance of the multi-cloud platform is achieved; if not, continuing to adjust the resource data corresponding to the multiple cloud platforms under the target business system to achieve resource balance of the multi-cloud platform.
[0012] Optionally, the method further includes: when the target business system is a core business system, saving system data corresponding to the target business system on each cloud platform.
[0013] Optionally, the method also includes: if a faulty cloud platform is detected and the target business system is a core business system, obtaining a target cloud platform corresponding to the faulty cloud platform, wherein the target cloud platform is a cloud platform other than the faulty cloud platform; determining whether the target business system is running on the target cloud platform; if so, adding resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform; if not, starting the target business system on the target cloud platform based on the system data corresponding to the target business system, and then adding resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform.
[0014] To achieve the above objective, according to another aspect of an embodiment of the present invention, a resource processing device based on a multi-cloud platform is provided.
[0015] A resource processing device based on a multi-cloud platform according to an embodiment of the present invention includes: a policy management module, which is used to receive a resource processing request from a multi-cloud platform, and obtain a target business system and a resource balancing strategy corresponding to the target business system according to the resource processing request; a resource management module, which is used to determine, based on the resource balancing strategy, resource adjustment data corresponding to the multiple cloud platforms under the target business system according to resource capability data corresponding to the multiple cloud platforms and resource data corresponding to the multiple cloud platforms under the target business system; and a resource adjustment module, which is used to adjust the resource data corresponding to the multiple cloud platforms under the target business system according to the resource adjustment data to achieve resource balance of the multi-cloud platform.
[0016] Optionally, the resource management module also includes a resource pre-configuration management module, which is used to: obtain the target business system and the first cloud platform according to a request for creating a new target business system, create cloud resources required for the target business system on the first cloud platform, and deploy the target business system on the cloud resources; determine whether an extensible cloud platform exists for the target business system, and if so, transmit system data corresponding to the target business system to the extensible cloud platform; save the system data corresponding to the target business system on a second cloud platform; wherein the system data includes system image files, program packages and configuration files corresponding to the business system.
[0017] Optionally, the resource pre-configuration management module is also used to: obtain the access traffic source corresponding to the target business system, and determine whether there is a cloud platform whose access distance is less than the access distance corresponding to the first cloud platform based on the access traffic source; if so, confirm that the cloud platform whose access distance is less than the access distance corresponding to the first cloud platform is the scalable cloud platform, and if not, confirm that the scalable cloud platform does not exist; and determine whether there is a cloud platform whose available resources are greater than a preset resource threshold, and if so, confirm that the cloud platform whose available resources are greater than the preset resources is the scalable cloud platform, and if not, confirm that the scalable cloud platform does not exist.
[0018] Optionally, the resource adjustment module is also used to: obtain the cloud platform that needs to increase resources based on the resource adjustment data; determine whether the cloud platform that needs to increase resources is the scalable cloud platform; if so, adjust the resources of the cloud platform that needs to increase resources; if not, transmit the system data corresponding to the target business system stored on the second cloud platform to the cloud platform that needs to increase resources, and then adjust the resources of the cloud platform that needs to increase resources.
[0019] Optionally, the resource management module also includes a resource feedback management module, which is used to: analyze the operation status of the target business system to obtain analysis results; determine whether it complies with the resource balancing strategy based on the analysis results; if so, confirm that the resource balance of the multi-cloud platform is achieved; if not, continue to adjust the resource data corresponding to the multiple cloud platforms under the target business system to achieve resource balance of the multi-cloud platform.
[0020] Optionally, the resource pre-configuration management module is further used to: when the target business system is a core business system, save the system data corresponding to the target business system on each cloud platform.
[0021] Optionally, the device also includes a disaster recovery management module, which is used to: if a faulty cloud platform is detected and the target business system is a core business system, obtain the target cloud platform corresponding to the faulty cloud platform, wherein the target cloud platform is a cloud platform other than the faulty cloud platform; determine whether the target business system is running on the target cloud platform; if so, add resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform; if not, start the target business system on the target cloud platform based on the system data corresponding to the target business system, and then add resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform.
[0022] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0023] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the resource processing method based on a multi-cloud platform according to an embodiment of the present invention.
[0024] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0025] A computer-readable medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements the resource processing method based on a multi-cloud platform according to an embodiment of the present invention.
[0026] An embodiment of the above invention has the following advantages or beneficial effects: it can determine the resource adjustment data corresponding to multiple cloud platforms under the business system based on the obtained resource balancing strategy and in combination with the resource capability data corresponding to multiple cloud platforms, and then adjust the resource data corresponding to the multiple cloud platforms under the business system according to the determined resource adjustment data, thereby achieving resource balance of multiple cloud platforms, solving the problem of difficulty and high cost caused by the need to use migration tools to achieve resource balancing in the prior art, and can also improve the accuracy of resource balancing and improve resource management efficiency.
[0027] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0029] Figure 1 is a schematic diagram of main steps of a resource processing method based on a multi-cloud platform according to an embodiment of the present invention;
[0030] Figure 2 is a schematic diagram of the main process of creating new resources and presetting resources according to an embodiment of the present invention;
[0031] Figure 3 is a schematic diagram of the main process of the resource processing method based on a multi-cloud platform according to an embodiment of the present invention;
[0032] Figure 4 Schematic diagram of main modules of a resource processing device based on a multi-cloud platform according to an embodiment of the present invention
[0033] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0034] Figure 6It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0036] Figure 1 Schematic diagram of the main steps of the resource processing method based on a multi-cloud platform according to an embodiment of the present invention. As a reference embodiment of the present invention, Figure 1 As shown, the main steps of the resource processing method based on the multi-cloud platform may include steps S101 to S103.
[0037] Step S101: receiving a resource processing request from a multi-cloud platform, and obtaining a target business system and a resource balancing strategy corresponding to the target business system according to the resource processing request.
[0038] Users use cloud platform products provided by multiple cloud platform vendors, establish accounts on multiple cloud platforms and build business systems on multiple cloud platform systems to adapt to the purpose of providing services to end users in different regions and ensuring high availability of the system. However, due to the resource characteristics of multiple clouds, the actual resource service capacity will decrease under the condition of large resource costs, which will cause unnecessary waste of resources or business system performance not meeting the requirements. Therefore, it is necessary to sort out the resources corresponding to multiple cloud platforms to achieve resource balance corresponding to multiple cloud platforms. Among them, the resource processing request of the multi-cloud platform refers to a request to sort out the resources corresponding to multiple platforms, that is, a request for achieving resource balance corresponding to multiple platforms. After receiving the resource processing request of the multi-cloud platform, the target business system corresponding to the resource processing request and the resource balancing strategy corresponding to the target business system can be obtained, that is, it is necessary to make the target business system deployed on multiple cloud platforms comply with the resource balancing strategy. On the other hand, the resources in the embodiment of the present invention refer to the resources on the cloud platform, that is, the cloud host, cloud storage, cloud network, etc. of the IaaS layer and the cloud database, cloud middleware and other resources of the PaaS layer.
[0039] In an embodiment of the present invention, the resource balancing strategy can be a combination of one or more of the cost-effectiveness strategy, user experience strategy, and low-cost strategy. Among them, the cost-effectiveness strategy is to determine the resources corresponding to each cloud platform while meeting the high-speed access requirements of the business system, so as to minimize the resource cost; the user experience strategy is a strategy that needs to improve the performance of the overall business system. This strategy can achieve the coordination and consistency of computing, storage, network, data, cache and other resources, and can also eliminate the performance bottleneck of user access, and can carry a large amount of business; the low-cost strategy is to select the resource distribution plan with the lowest cost while being able to carry the access requirements of the business system, but it cannot guarantee that users can access the system at high speed. In an embodiment of the present invention, the resource balancing strategy can be a combination of one or more of the cost-effectiveness strategy, user experience strategy, and low-cost strategy, which can enable users to better use the multi-cloud environment and improve user experience.
[0040] Step S102: Based on the resource balancing strategy, the resource adjustment data corresponding to the multiple cloud platforms under the target business system is determined according to the resource capability data corresponding to the multiple cloud platforms and the resource data corresponding to the multiple cloud platforms under the target business system.
[0041] Among them, resource capability is to measure the performance, stability, function and other capabilities of the resources on the cloud platform to export services to the outside, and can be used to measure the actual technical value that the resources on the cloud platform bring to users. In addition, the resource capability data corresponding to multiple cloud platforms can be obtained by measuring multiple cloud platforms using a multi-cloud resource capability calculator. Specifically, the resource capabilities of multiple cloud platforms can be measured at the same time by random sampling, and the resource capabilities can be standardized, so as to measure the resource capabilities corresponding to each cloud platform under a unified standard. According to the resource balancing strategy and the resource capability data corresponding to multiple cloud platforms, the resource demand data corresponding to multiple cloud platforms under the target business system can be obtained. The resource demand data can be understood as: in order to comply with the resource balancing strategy, the resource distribution scheme corresponding to multiple cloud platforms. On the other hand, the resource data corresponding to multiple cloud platforms under the target business system is: the resource distribution of multiple cloud platforms under the current target business system. Therefore, through the resource demand data corresponding to multiple cloud platforms under the target business system and the resource distribution of multiple cloud platforms under the current target business system, the resource adjustment data corresponding to multiple cloud platforms under the target business system can be calculated, that is, how the resources corresponding to each cloud platform under the target business system need to be adjusted.
[0042] For ease of understanding, the following example is provided for illustration. A target business system S needs to create 1,000 virtual machine resources on the three cloud platforms A, B, and C. According to the cost-performance strategy corresponding to the target business system S and the resource capacity data corresponding to the three cloud platforms A, B, and C, it is necessary to create 300 virtual machine resources on the A cloud platform, 450 virtual machine resources on the B cloud platform, and 250 virtual machine resources on the C cloud platform. Currently, for the target business system S, 200 virtual machine resources have been created on the A cloud platform, 600 virtual machine resources have been created on the B cloud platform, and 200 virtual machine resources have been created on the C cloud platform. Then, for the target business system S, the resource adjustment data corresponding to the A cloud platform is to increase 100 virtual machine resources, the resource adjustment data corresponding to the B cloud platform is to reduce 150 virtual machine resources, and the resource adjustment data corresponding to the C cloud platform is to increase 50 virtual machine resources.
[0043] Step S103: According to the resource adjustment data, the resource data corresponding to the multiple cloud platforms under the target business system are adjusted to achieve resource balance of the multi-cloud platforms.
[0044] After obtaining the resource adjustment data, that is, after obtaining the resource adjustment data corresponding to each cloud platform, the resource data corresponding to multiple cloud platforms under the target business system can be adjusted to achieve resource balance of multiple cloud platforms. According to the above example, for cloud platform A, increase the 100 virtual machine resources corresponding to the target business system S; for cloud platform B, reduce the 150 virtual machine resources corresponding to the target business system S; for cloud platform C, increase the 50 virtual machine resources corresponding to the target business system S.
[0045] Furthermore, after adjusting the resource data corresponding to multiple cloud platforms under the target business system according to the resource adjustment data, the resource processing method based on the multi-cloud platform may also include: analyzing the operation status of the target business system to obtain analysis results; judging whether it complies with the resource balancing strategy based on the analysis results; if so, confirming that the resource balance of the multi-cloud platform is achieved; if not, continuing to adjust the resource data corresponding to multiple cloud platforms under the target business system to achieve resource balance of the multi-cloud platform.
[0046] The resource data corresponding to the multiple cloud platforms under the target business system are gradually adjusted according to the resource adjustment data, and the access traffic is gradually switched according to the adjusted resource distribution. Then, the resource operation status corresponding to the adjusted target business system can be analyzed, and combined with the analysis results, it can be judged whether the resource data corresponding to the multiple cloud platforms under the current target business system conforms to the resource balancing strategy. If so, it is confirmed that the resource balance of the multi-cloud platform is achieved. If not, it is necessary to continue to adjust the resource data corresponding to the multiple cloud platforms under the target business system to achieve the resource balance of the multi-cloud platform. By balancing resources through the resource balancing strategy, the operation status after balancing can also be analyzed, and feedback adjustments can be made based on the analysis results, so as to continuously improve the effectiveness of the resource balancing system and its adaptability to the multi-cloud platform environment.
[0047] The resource processing method based on a multi-cloud platform in an embodiment of the present invention can determine the resource adjustment data corresponding to the multiple cloud platforms under the business system based on the acquired resource balancing strategy and in combination with the resource capability data corresponding to the multiple cloud platforms, and then adjust the resource data corresponding to the multiple cloud platforms under the business system according to the determined resource adjustment data, thereby achieving resource balance of the multi-cloud platform, solving the problem of the difficulty and high cost caused by the need to use migration tools to achieve resource balance in the prior art, and can also improve the accuracy of resource balancing and improve resource sorting efficiency.
[0048] In order to achieve resource balance on a multi-cloud platform, the resource processing method based on a multi-cloud platform also includes the process of creating new resources and pre-setting resources. Pre-setting resources means placing system data such as system image files, program packages, and configuration files corresponding to the business system in advance on a cloud platform that does not have the business system operating environment, so that when the business system resources need to be established, they can be directly generated through the system data corresponding to the business system. Figure 2 Schematic diagram of the main process of creating new resources and presetting resources according to an embodiment of the present invention. As a reference embodiment of the present invention, the main process of creating new resources and presetting resources may include:
[0049] Step S201: according to a request for creating a new target business system, the target business system and the first cloud platform are acquired, cloud resources required for creating the new target business system are created on the first cloud platform, and the target business system is deployed on the cloud resources.
[0050] Among them, the first cloud platform is the location of the newly built business system resources. In the embodiment of the present invention, the first cloud platform can be randomly selected from multiple cloud platforms, or it can be selected according to actual needs, or it can be selected according to experience. In addition, the number of first cloud platforms is one or more. The cloud resources required by the target business system are virtual cloud resources required to realize the functions of the business system, such as virtual computing resources, virtual storage resources, virtual network resources, etc.; that is, IaaS and PaaS resources such as computing, storage, network, and database allocated to the target business system. The cloud resources required for the newly built target business system on the first cloud platform can meet the business functions provided by the target business system. Next, build the target business system on the newly built cloud resources, so that the business modules and resource capabilities can be tested.
[0051] Step S202: Determine whether the target business system has an extensible cloud platform. If so, execute step S203 to transmit system data corresponding to the target business system to the extensible cloud platform.
[0052] The scalable cloud platform is a cloud platform that can expand resources corresponding to the target business system. Further, it can be determined whether the target business system has an scalable cloud platform in the following two ways.
[0053] (1) Obtain the access traffic source corresponding to the target business system, and determine, based on the access traffic source, whether there is a cloud platform whose access distance is less than the access distance corresponding to the first cloud platform; if so, confirm that the cloud platform whose access distance is less than the access distance corresponding to the first cloud platform is an extensible cloud platform; if not, confirm that there is no extensible cloud platform.
[0054] After the deployment of the target business system is completed, the target business system can provide services to the outside world normally. Therefore, the source of the access traffic of the target business system can be obtained based on the network access situation. For example, if most of the visiting users are from city D1, then the source of the access traffic can be considered to be city D1. Next, determine whether there is a cloud platform whose access distance is less than the access distance corresponding to the first cloud platform, that is, determine whether there is a cloud platform closer to the visiting users. For example, the source of the access traffic is city D1, and the first cloud platform is a cloud platform located in city D2. Considering that the access distance between the cloud platform located in city D1 and the visiting users (that is, the source of the access traffic is the visiting users in city D1) is less than the access distance between the cloud platform located in city D2 and the visiting users, then the cloud platform located in city D1 is a scalable cloud platform.
[0055] (ii) Determine whether there is a cloud platform with available resources greater than the preset resource threshold. If so, confirm that the cloud platform with available resources greater than the preset resource threshold is a scalable cloud platform. If not, confirm that there is no scalable cloud platform. If the available resources corresponding to a cloud platform are greater than the preset resource threshold, then the cloud platform is a scalable cloud platform.
[0056] Since the scalable cloud platform corresponding to the target business system is the cloud platform that gives priority to adding resources to the target business system, after obtaining the scalable cloud platform corresponding to the target business system, the system data corresponding to the target business system can be transferred to the scalable cloud platform, that is, the system image files, program packages, configuration files and other system data corresponding to the target business system can be transferred to the scalable cloud platform, so that when the target business system needs to be run on the scalable platform, the system data corresponding to the target business system can be quickly used to generate system resource instances, and resources can also be quickly switched, further improving resource organization efficiency.
[0057] Step S204: Save the system data corresponding to the target business system on the second cloud platform, so that resource pre-setting can be achieved, so that when the business system resources need to be established, the system data can be obtained from the second cloud platform, and then the target business system can be directly operated using the obtained system data. Among them, the second cloud platform is a cloud platform that does not have the target business system operating environment, so the second cloud platform cannot operate the target business system, so the problem of loss of system data corresponding to the target business system due to failure of the second cloud platform can be avoided.
[0058] In addition, it should be noted that the execution order of step S204 can be adjusted according to actual conditions, and it can be executed after step S201.
[0059] The resource adjustment data is the amount of resources that need to be increased or reduced for each cloud platform under the target business system. For example, for cloud platform A, increase the resources of 100 virtual machines corresponding to the target business system S; for cloud platform B, reduce the resources of 150 virtual machines corresponding to the target business system S; for cloud platform C, increase the resources of 50 virtual machines corresponding to the target business system S. Among them, for a certain cloud platform, it is necessary to reduce the resource data corresponding to the cloud platform under the target business system, then directly execute the resource reduction. However, for a certain platform, it is necessary to increase the resource data corresponding to the cloud platform under the target business system, then it is necessary to first determine whether the cloud platform has the system data corresponding to the target business system. As has been explained above, the system data corresponding to the target business system is transferred to the scalable cloud platform, then it can be determined whether the cloud platform is an scalable cloud platform. Therefore, as a reference embodiment of the present invention, adjusting the resource data corresponding to multiple cloud platforms under the target business system according to the resource adjustment data may include: obtaining the cloud platform that needs to increase resources according to the resource adjustment data; determining whether the cloud platform that needs to increase resources is an expandable cloud platform; if so, adjusting the resources of the cloud platform that needs to increase resources; if not, transmitting the system data corresponding to the target business system stored on the second cloud platform to the cloud platform that needs to increase resources, and then adjusting the resources of the cloud platform that needs to increase resources.
[0060] Figure 3 FIG. 1 is a schematic diagram of the main process of the resource processing method based on a multi-cloud platform according to an embodiment of the present invention. Figure 3 As shown, the main process of the resource processing method based on the multi-cloud platform may include:
[0061] Step S301, receiving a resource processing request from the multi-cloud platform, and obtaining a target business system and a resource balancing strategy corresponding to the target business system according to the resource processing request;
[0062] Step S302, based on the resource balancing strategy, according to the resource capacity data corresponding to the multiple cloud platforms and the resource data corresponding to the multiple cloud platforms under the target business system, determining the resource adjustment data corresponding to the multiple cloud platforms under the target business system;
[0063] Step S303, obtaining cloud platforms that need to increase resources and cloud platforms that need to reduce resources according to the resource adjustment data;
[0064] Step S304, determining whether the cloud platform to which resources need to be added is an expandable cloud platform, if so, executing step S306, if not, executing step S305;
[0065] Step S305, transmitting the system data corresponding to the target business system stored on the second cloud platform to the cloud platform to which resources need to be added;
[0066] Step S306, increasing resources for the cloud platform that needs to increase resources, and reducing resources for the cloud platform that needs to reduce resources;
[0067] Step S307, analyzing the operation status of the target business system to obtain analysis results;
[0068] Step S308, judging whether the resource balancing strategy is met according to the analysis result, if so, executing step S309, if not, executing step S310;
[0069] Step S309, confirming that resource balance of the multi-cloud platform is achieved;
[0070] Step S310, continue to adjust the resource data corresponding to the multiple cloud platforms under the target business system to achieve resource balance of the multi-cloud platforms.
[0071] It should be noted that the scalable cloud platform and the second cloud platform in steps S301 to S310 have been described in detail in steps S201 to S204 above, and will not be described in detail here.
[0072] The resource processing method based on a multi-cloud platform also includes a disaster recovery processing process. Specifically, after a cloud platform fails, resources can be sorted out for multiple cloud platforms except the failed cloud platform to achieve resource balance. In addition, if it is monitored that the failed cloud platform resumes normal operation, resources are sorted out for multiple cloud platforms including the failed cloud platform to rebalance resources. Considering the existence of core business systems, that is, business systems specified by users that need to remain accessible during disasters, if a failed cloud platform occurs, it is necessary to adjust the resources corresponding to the core business systems running on the failed cloud platform in a short time. Therefore, in an embodiment of the present invention, when the target business system is a core business system, the system data corresponding to the target business system is saved on each cloud platform.
[0073] Furthermore, if a faulty cloud platform is detected and the target business system is a core business system, obtain the target cloud platform corresponding to the faulty cloud platform, wherein the target cloud platform is a cloud platform other than the faulty cloud platform; determine whether the target business system is running on the target cloud platform; if so, add resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform; if not, start the target business system on the target cloud platform based on the system data corresponding to the target business system, and then add resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform.
[0074] For ease of understanding, the disaster recovery process is described in detail below.
[0075] a. When a cloud platform fails, it is determined whether the core business system is running on the failed cloud platform;
[0076] b. If the core business system is not running on the failed cloud platform, resources of multiple cloud platforms other than the failed cloud platform can be sorted out to achieve resource balance, and if it is monitored that the failed cloud platform has resumed normal operation, resources of multiple cloud platforms including the failed cloud platform can be sorted out to achieve resource balance again;
[0077] c. If the core business system is running on the failed cloud platform, it is necessary to determine whether the core business system is running on cloud platforms other than the failed cloud platform;
[0078] c1. If the core business system is running on a cloud platform other than the faulty cloud platform, the resource data corresponding to the cloud platform where the core business system fails can be added to the cloud platform other than the faulty cloud platform;
[0079] c2. If there is no core business system running on the cloud platform other than the faulty cloud platform, the core business system is automatically started, and then the resource data corresponding to the cloud platform where the core business system fails is added on the cloud platform other than the faulty cloud platform;
[0080] c3. After c1 and c2, resources of multiple cloud platforms except the failed cloud platform can be sorted out to achieve resource balance, and if it is monitored that the failed cloud platform resumes normal operation, resources of multiple cloud platforms including the failed cloud platform can be sorted out to achieve resource balance again.
[0081] The resource organization method based on a multi-cloud platform in an embodiment of the present invention includes a disaster recovery process, which can ensure that after a cloud platform fails in a multi-cloud environment, the business system can be quickly restored based on the resources on other cloud platforms to provide business service capabilities.
[0082] Figure 4 Schematic diagram of the main modules of the resource processing device based on the multi-cloud platform according to an embodiment of the present invention. Figure 4 As shown, the main modules of the resource processing device 400 based on the multi-cloud platform may include: a policy management module 401, a resource management module 402 and a resource adjustment module 403.
[0083] Among them, the policy management module 401 can be used to: receive resource processing requests from multi-cloud platforms, and obtain the target business system and the resource balancing strategy corresponding to the target business system according to the resource processing requests; the resource management module 402 can be used to: based on the resource balancing strategy, according to the resource capability data corresponding to multiple cloud platforms and the resource data corresponding to multiple cloud platforms under the target business system, determine the resource adjustment data corresponding to multiple cloud platforms under the target business system; the resource adjustment module 403 can be used to: according to the resource adjustment data, adjust the resource data corresponding to multiple cloud platforms under the target business system to achieve resource balance of the multi-cloud platform.
[0084] As a reference embodiment of the present invention, the resource management module 402 may include: a resource pre-set management module 4021. The resource pre-set management module 4021 may be used to: obtain the target business system and the first cloud platform according to the request of the newly-built target business system, build the cloud resources required by the newly-built target business system on the first cloud platform, and deploy the target business system on the cloud resources; determine whether the target business system has an extensible cloud platform, and if so, transmit the system data corresponding to the target business system to the extensible cloud platform; save the system data corresponding to the target business system on the second cloud platform; wherein the system data includes the system image file, program package and configuration file corresponding to the business system.
[0085] As a reference embodiment of the present invention, the resource preset management module 4021 can also be used to: obtain the access traffic source corresponding to the target business system, and determine whether there is a cloud platform with an access distance less than the access distance corresponding to the first cloud platform based on the access traffic source; if so, confirm that the cloud platform with an access distance less than the access distance corresponding to the first cloud platform is a scalable cloud platform, if not, confirm that there is no scalable cloud platform; and, determine whether there is a cloud platform with available resources greater than a preset resource threshold, and if so, confirm that the cloud platform with available resources greater than the preset resource amount is a scalable cloud platform, if not, confirm that there is no scalable cloud platform.
[0086] As a reference embodiment of the present invention, the resource adjustment module 403 can also be used to: obtain the cloud platform that needs to increase resources based on the resource adjustment data; determine whether the cloud platform that needs to increase resources is an expandable cloud platform; if so, adjust the resources of the cloud platform that needs to increase resources; if not, transmit the system data corresponding to the target business system stored on the second cloud platform to the cloud platform that needs to increase resources, and then adjust the resources of the cloud platform that needs to increase resources.
[0087] As a reference embodiment of the present invention, the resource management module 402 may include: a resource feedback management module 4022. The resource feedback management module 4022 may be used to: analyze the operation of the target business system to obtain analysis results; determine whether the resource balancing strategy is met according to the analysis results; if so, confirm that the resource balance of the multi-cloud platform is achieved; if not, continue to adjust the resource data corresponding to the multiple cloud platforms under the target business system to achieve the resource balance of the multi-cloud platform.
[0088] As a reference embodiment of the present invention, the resource pre-configuration management module 4021 can also be used to: when the target business system is a core business system, save the system data corresponding to the target business system on each cloud platform.
[0089] like Figure 4 As shown, as a reference embodiment of the present invention, the resource processing device 400 based on the multi-cloud platform may further include: a disaster recovery management module 404. The disaster recovery management module 404 may be used to: if a faulty cloud platform is detected and the target business system is a core business system, obtain a target cloud platform corresponding to the faulty cloud platform, wherein the target cloud platform is a cloud platform other than the faulty cloud platform; determine whether the target business system is running on the target cloud platform; if so, add resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform; if not, start the target business system on the target cloud platform based on the system data corresponding to the target business system, and then add resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform.
[0090] According to the resource processing device based on a multi-cloud platform in an embodiment of the present invention, it is possible to determine the resource adjustment data corresponding to the multiple cloud platforms under the business system based on the acquired resource balancing strategy and in combination with the resource capability data corresponding to the multiple cloud platforms, and then adjust the resource data corresponding to the multiple cloud platforms under the business system according to the determined resource adjustment data, thereby achieving resource balance of the multi-cloud platform, solving the problem of the difficulty and high cost caused by the need to use migration tools to achieve resource balance in the prior art, and can also improve the accuracy of resource balancing and improve resource sorting efficiency.
[0091] Figure 5 An exemplary system architecture 500 is shown to which a resource processing method based on a multi-cloud platform or a resource processing device based on a multi-cloud platform according to an embodiment of the present invention can be applied.
[0092] like Figure 5As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0093] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Terminal devices 501, 502, 503 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.
[0094] Server 505 can be a server that provides various services, for example, a background management server that provides support when a user uses terminal devices 501, 502, and 503 to perform resource processing based on a multi-cloud platform (only as an example); for another example, server 505 can complete the resource processing based on a multi-cloud platform in an embodiment of the present invention.
[0095] It should be noted that the resource processing method based on the multi-cloud platform provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the resource processing device based on the multi-cloud platform is generally arranged in the server 505 .
[0096] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0097] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0098] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0099] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0100] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0101] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The modules described may also be provided in a processor. For example, they may be described as follows: a processor includes a policy management module, a resource management module, and a resource adjustment module. Among them, the names of these modules do not constitute a limitation on the module itself in certain cases. For example, the policy management module may also be described as a "module that receives resource processing requests from a multi-cloud platform, obtains a target business system and a resource balancing strategy corresponding to the target business system based on the resource processing request."
[0104] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving a resource processing request of a multi-cloud platform, and obtaining a target business system and a resource balancing strategy corresponding to the target business system according to the resource processing request; based on the resource balancing strategy, according to the resource capability data corresponding to the multiple cloud platforms and the resource data corresponding to the multiple cloud platforms under the target business system, determining the resource adjustment data corresponding to the multiple cloud platforms under the target business system; adjusting the resource data corresponding to the multiple cloud platforms under the target business system according to the resource adjustment data to achieve resource balance of the multi-cloud platform.
[0105] According to the technical solution of the embodiment of the present invention, it is possible to determine the resource adjustment data corresponding to the multiple cloud platforms under the business system based on the acquired resource balancing strategy and the resource capability data corresponding to the multiple cloud platforms, and then adjust the resource data corresponding to the multiple cloud platforms under the business system according to the determined resource adjustment data, thereby achieving resource balance of multiple cloud platforms, solving the problem of the difficulty and high cost caused by the need to use migration tools to achieve resource balance in the prior art, and also improving the accuracy of resource balancing and the efficiency of resource organization.
[0106] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A resource processing method based on a multi-cloud platform, It is characterized in that include: Receive a resource processing request from the multi-cloud platform, and obtain a target business system and a resource balancing strategy corresponding to the target business system according to the resource processing request; Based on the resource balancing strategy, determining resource adjustment data corresponding to the multiple cloud platforms under the target business system according to resource capacity data corresponding to the multiple cloud platforms and resource data corresponding to the multiple cloud platforms under the target business system; According to the resource adjustment data, the resource data corresponding to the multiple cloud platforms under the target business system are adjusted to achieve resource balance of the multi-cloud platforms; according to the request for creating a new target business system, the target business system and the first cloud platform are acquired, cloud resources required for creating the target business system are created on the first cloud platform, and the target business system is deployed on the cloud resources; Determine whether the target business system has an extensible cloud platform, and if so, transmit the system data corresponding to the target business system to the extensible cloud platform; Saving the system data corresponding to the target business system on the second cloud platform; The system data includes system image files, program packages and configuration files corresponding to the business system.
2. The method according to claim 1, It is characterized in that The determining whether the target business system has an extensible cloud platform, and if so, transmitting the system data corresponding to the target business system to the extensible cloud platform, includes: Obtaining an access traffic source corresponding to the target business system, and determining, based on the access traffic source, whether there is a cloud platform whose access distance is less than the access distance corresponding to the first cloud platform; If yes, confirm that the cloud platform whose access distance is less than the access distance corresponding to the first cloud platform is the scalable cloud platform; if no, confirm that the scalable cloud platform does not exist; and, Determine whether there is a cloud platform with available resources greater than a preset resource threshold. If so, confirm that the cloud platform with available resources greater than the preset resource threshold is the scalable cloud platform. If not, confirm that the scalable cloud platform does not exist.
3. The method according to claim 1, It is characterized in that The adjusting, according to the resource adjustment data, resource data corresponding to the multiple cloud platforms under the target business system includes: According to the resource adjustment data, obtaining a cloud platform for which resources need to be added; Determining whether the cloud platform that needs to increase resources is the scalable cloud platform; If yes, adjust the resources of the cloud platform that needs to increase resources; If not, the system data corresponding to the target business system stored on the second cloud platform is transmitted to the cloud platform that needs to increase resources, and then the resources of the cloud platform that needs to increase resources are adjusted.
4. The method according to claim 1, It is characterized in that After adjusting the resource data corresponding to the multiple cloud platforms under the target business system according to the resource adjustment data, the method further includes: Analyze the operation status of the target business system to obtain analysis results; According to the analysis result, determining whether the resource balancing strategy is met; If yes, confirm that the resource balance of the multi-cloud platform is achieved; If not, continue to adjust the resource data corresponding to the multiple cloud platforms under the target business system to achieve resource balance of the multi-cloud platforms.
5. The method according to claim 1, It is characterized in that The method further comprises: In the case where the target business system is a core business system, the system data corresponding to the target business system is saved on each cloud platform.
6. The method according to claim 5, It is characterized in that The method further comprises: If a faulty cloud platform is detected and the target business system is a core business system, obtaining a target cloud platform corresponding to the faulty cloud platform, wherein the target cloud platform is a cloud platform other than the faulty cloud platform; Determine whether the target business system is running on the target cloud platform; If so, adding resource data corresponding to the faulty cloud platform under the target business system on the target cloud platform; If not, based on the system data corresponding to the target business system, the target business system is started on the target cloud platform, and then the resource data corresponding to the faulty cloud platform under the target business system is added on the target cloud platform.
7. A resource processing device based on a multi-cloud platform, It is characterized in that include: A policy management module is used to receive a resource processing request from a multi-cloud platform, and obtain a target business system and a resource balancing policy corresponding to the target business system according to the resource processing request; A resource management module is used to determine the resource adjustment data corresponding to the multiple cloud platforms under the target business system based on the resource balancing strategy, according to the resource capacity data corresponding to the multiple cloud platforms and the resource data corresponding to the multiple cloud platforms under the target business system; and is also used to: obtain the target business system and the first cloud platform according to a request for creating a new target business system, create the cloud resources required by the target business system on the first cloud platform, and deploy the target business system on the cloud resources; determine whether the target business system has an extensible cloud platform, and if so, transmit the system data corresponding to the target business system to the extensible cloud platform; save the system data corresponding to the target business system on the second cloud platform; wherein the system data includes the system image file, program package and configuration file corresponding to the business system; The resource adjustment module is used to adjust the resource data corresponding to the multiple cloud platforms under the target business system according to the resource adjustment data to achieve resource balance of the multi-cloud platforms.
8. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Resource scheduling method, device and system
CN103503404A
Method suitable for balancing cloud platform computing resources
CN104539673A
Load balance method, cloud platform computing method and cloud platform
CN105471985A
A method and a system for processing resources across cloud platforms
CN109144666A
Resource allocation method, device and system, equipment and medium
CN110858161A
