Product resource processing method and device based on cloud computing and storage medium
By obtaining the aggregated orders and preset retention period of cloud products, we can determine whether the cloud products are recoverable. When the user requests recovery, we can restore the main product and additional products at the same time based on the aggregated orders, solving the problem of low efficiency in cloud resource management and achieving high efficiency in cloud resource management.
Patent Information
- Application Number
- CN202410390082.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2025-10-14
AI Technical Summary
The existing technology has low efficiency in cloud resource management. When cloud products are restored, additional products that are bound to each other need to be re-added and rebuilt, which affects management efficiency.
By obtaining the aggregated order and preset retention period of the cloud product, we determine whether the cloud product is recoverable. When the user requests recovery, we simultaneously restore the main product and additional products based on the aggregated order to ensure the integrity of the cloud product recovery.
It achieves high efficiency in cloud resource management, avoids the steps of re-adding and building additional products, and improves the efficiency of cloud resource management.
Smart Images

Figure CN120780443A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing, and in particular to a product resource processing method, device, and storage medium based on cloud computing. Background Art
[0002] With the development of big data, cloud computing services have become an important choice for deploying applications. By ordering cloud computing products on a cloud resource management platform and deploying the application services that need to be run in the cloud computing products, cloud resources can be utilized.
[0003] In the prior art, after subscribing to a related cloud product, when a user deletes or cancels the subscription, the cloud resource management platform will mark the resources deleted or canceled by the user to avoid accidental deletion of resources, and manage the deleted resources through inspections.
[0004] In the existing technology, due to the deletion management of cloud products and the labeling of single cloud products, when a cloud product needs to be restored, only the single cloud product can be restored. However, in the actual application of cloud products, there are additional products that are bound to them. This requires the addition and construction of new additional products, which affects the management efficiency of cloud resources. Summary of the Invention
[0005] The present application provides a product resource processing method, device and storage medium based on cloud computing to solve the technical problem of low cloud resource management efficiency in the prior art.
[0006] In a first aspect, the present application provides a product resource processing method based on cloud computing, comprising:
[0007] Responding to a product recovery request for a cloud product, obtaining a product identifier for the cloud product;
[0008] Obtain the aggregated order and preset retention period of the cloud product based on the product identifier. The aggregated order includes the main product and its add-on products. The preset retention period of the add-on products is determined based on the preset retention period of the main product and is the same as the preset retention period of the main product.
[0009] Determine whether the cloud product is recoverable based on the preset retention period and the first target period; the first target period is the time from the deletion time of the aggregated order to the first current time;
[0010] If so, restore the main product and add-on products based on the aggregated order of the cloud product.
[0011] Optionally, in response to the product recovery request of the cloud product, before obtaining the product identifier of the cloud product, the method further includes:
[0012] In response to a user's product creation request, obtaining a product type of a main product;
[0013] Determine the additional products that the main product depends on based on the product type of the main product and the preset product mapping relationship; wherein the preset product mapping relationship is used to indicate the additional products associated with each type of main product;
[0014] Create an aggregate order for cloud products based on the main product and add-on products, and generate a product ID for the cloud product;
[0015] Create instances of cloud products in the cloud computing platform corresponding to the cloud products.
[0016] Optionally, in response to the product recovery request of the cloud product, before obtaining the product identifier of the cloud product, the method further includes:
[0017] In response to a user's product cancellation request, obtaining a product identifier and product type of the cloud product;
[0018] Obtain the aggregated order of the cloud product based on its product ID, and obtain the preset retention period of the cloud product based on the product type of the main product in the cloud product.
[0019] Based on the aggregated orders for cloud products, shut down the instances corresponding to the cloud products in the cloud computing platforms corresponding to the cloud products;
[0020] The instances corresponding to the cloud products will continue to be stored until the preset retention period expires, and will be deleted after the preset retention period expires.
[0021] Optionally, before the preset retention time expires, the method further includes:
[0022] When the second target duration is greater than the preset value but less than the preset retention duration, the aggregated order of the cloud product and the preset retention duration of the cloud product are pushed to the management end, and feedback information from the management end is obtained; wherein the second target duration is the duration from the deletion time of the aggregated order to the second current time;
[0023] When the feedback information indicates that the cloud product needs to be deleted, the instance of the cloud product in the cloud computing platform is deleted based on the aggregated order of the cloud product, and the aggregated order of the cloud product is cleared, making the cloud product unrecoverable.
[0024] Optionally, after the preset retention period expires, the corresponding instance of the cloud product is deleted, including:
[0025] Updating the actual retention period of the cloud product based on a preset time interval, and storing the updated actual retention period of the cloud product in the database;
[0026] Determine whether the actual retention period of the updated cloud product is greater than or equal to the preset retention period. If so, clear the aggregated order of the cloud product and delete the instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product based on the aggregated order of the cloud product.
[0027] Optionally, before obtaining the preset retention period of the cloud product according to the product type of the main product in the cloud product, the method further includes:
[0028] Obtain multiple cloud products in the cloud computing platform, push the product type of the main product in each cloud product to the management end, and obtain the preset retention period configured by the management end for each main product;
[0029] The product type of each master product and the retention period of the master product are stored in the database.
[0030] In a second aspect, the present application provides a product resource processing device based on cloud computing, comprising:
[0031] an acquisition module, configured to obtain a product identifier of a cloud product in response to a product recovery request of the cloud product;
[0032] A first processing module is configured to obtain, based on the product identifier, an aggregated order for the cloud product and a preset retention period for the cloud product, wherein the aggregated order includes a main product and an add-on product for the main product; wherein the preset retention period for the add-on product is determined based on the preset retention period for the main product, and the preset retention period for the add-on product is the same as the preset retention period for the main product;
[0033] A second processing module is configured to determine whether the cloud product is recoverable based on a preset retention period of the cloud product and a first target period; wherein the first target period is the period from the deletion time of the aggregated order to the first current time;
[0034] The third processing module is used to restore the main product and the additional product based on the aggregated order of the cloud product when the cloud product can be restored.
[0035] Optionally, the acquisition module is further configured to:
[0036] In response to a user's product creation request, obtaining a product type of a main product;
[0037] Determine the additional products that the main product depends on based on the product type of the main product and the preset product mapping relationship; wherein the preset product mapping relationship is used to indicate the additional products associated with each type of main product;
[0038] Create an aggregate order for cloud products based on the main product and add-on products, and generate a product ID for the cloud product;
[0039] Create instances of cloud products in the cloud computing platform corresponding to the cloud products.
[0040] Optionally, the acquisition module is further configured to:
[0041] In response to a user's product cancellation request, obtaining a product identifier and product type of the cloud product;
[0042] Obtain the aggregated order of the cloud product based on its product ID, and obtain the preset retention period of the cloud product based on the product type of the main product in the cloud product.
[0043] Based on the aggregated orders for cloud products, shut down the instances corresponding to the cloud products in the cloud computing platforms corresponding to the cloud products;
[0044] The instances corresponding to the cloud products will continue to be stored until the preset retention period expires, and will be deleted after the preset retention period expires.
[0045] Optionally, the acquisition module is further configured to:
[0046] When the second target duration is greater than the preset value but less than the preset retention duration, the aggregated order of the cloud product and the preset retention duration of the cloud product are pushed to the management end, and feedback information from the management end is obtained; wherein the second target duration is the duration from the deletion time of the aggregated order to the second current time;
[0047] When the feedback information indicates that the cloud product needs to be deleted, the instance of the cloud product in the cloud computing platform is deleted based on the aggregated order of the cloud product, and the aggregated order of the cloud product is cleared, making the cloud product unrecoverable.
[0048] Optionally, the acquisition module is further configured to:
[0049] Updating the actual retention period of the cloud product based on a preset time interval, and storing the updated actual retention period of the cloud product in the database;
[0050] Determine whether the actual retention period of the updated cloud product is greater than or equal to the preset retention period. If so, clear the aggregated order of the cloud product and delete the instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product based on the aggregated order of the cloud product.
[0051] Optionally, the acquisition module is further configured to:
[0052] Obtain multiple cloud products in the cloud computing platform, push the product type of the main product in each cloud product to the management end, and obtain the preset retention period configured by the management end for each main product;
[0053] The product type of each master product and the retention period of the master product are stored in the database.
[0054] A third aspect of the present application provides a product resource processing device based on cloud computing, comprising:
[0055] processor and memory;
[0056] Memory stores computer-executable instructions;
[0057] The processor executes the computer-executable instructions stored in the memory, so that the cloud computing-based product resource processing device executes any one of the cloud computing-based product resource processing methods of the first aspect.
[0058] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement a cloud computing-based product resource processing method as described in any one of the first aspects.
[0059] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the cloud computing-based product resource processing method described in any one of the first aspects.
[0060] The present application provides a method, device, and storage medium for processing product resources based on cloud computing. The method includes: obtaining a product identifier for a cloud product in response to a product recovery request for the cloud product; obtaining an aggregated order for the cloud product and a preset retention period for the cloud product based on the product identifier, wherein the aggregated order includes a main product and additional products for the main product; wherein the preset retention period for the additional products is determined based on the preset retention period for the main product, and the preset retention period for the additional products is the same as the preset retention period for the main product; determining whether the cloud product is recoverable based on the preset retention period for the cloud product and a first target period; wherein the first target period is the time from the deletion time of the aggregated order to a first current time; and if so, recovering the main product and additional products based on the aggregated order for the cloud product. The present application uses the preset retention period for the main product in each cloud product to continue to store instances of the cloud product in the cloud computing platform when a user unsubscribes from the cloud product. When a user requests to recover the cloud product, the main product and additional products are simultaneously recovered based on the main product and additional products included in the aggregated order for the cloud product, thereby ensuring the integrity of the cloud product when it is recovered and eliminating the need to re-add and build new additional products, thereby achieving the technical effect of improving cloud resource management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0062] Figure 1 The process of the product resource processing method based on cloud computing provided in the embodiment of this applicationFigure 1 ;
[0063] Figure 2 The process of the product resource processing method based on cloud computing provided in the embodiment of this application Figure 2 ;
[0064] Figure 3 The process of the product resource processing method based on cloud computing provided in the embodiment of this application Figure 3 ;
[0065] Figure 4 A schematic diagram of the structure of a cloud computing-based product resource processing device provided in an embodiment of the present application;
[0066] Figure 5 This is a hardware structure diagram of the cloud computing-based product resource processing device provided in an embodiment of the present application.
[0067] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0068] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0069] In the prior art, after subscribing to a cloud product, if a user deletes or unsubscribes, the cloud resource management platform will mark the deleted or unsubscribed resources to avoid accidental resource deletion, and manage the deleted resources through inspections. Because the prior art only marks a single cloud product when it is deleted, only a single cloud product can be restored when it is needed. However, in actual applications, cloud products often have additional products that are bound to them, which requires the addition and construction of new additional products, thus affecting the efficiency of cloud resource management.
[0070] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0071] Figure 1 The process of the product resource processing method based on cloud computing provided in the embodiment of this application Figure 1 .like Figure 1 As shown, the product resource processing method based on cloud computing provided in the embodiment of the present application includes:
[0072] S101. Responding to a product recovery request for a cloud product, obtaining a product identifier for the cloud product;
[0073] In this embodiment, the product identifier of the cloud product may be: the product name of the cloud product, or the version number of the cloud product.
[0074] S102. Obtain an aggregated order for the cloud product and a preset retention period for the cloud product based on the product identifier. The aggregated order includes a main product and additional products for the main product.
[0075] In this embodiment, the preset retention time of the additional product is determined based on the preset retention time of the main product, and the preset retention time of the additional product is the same as the preset retention time of the main product.
[0076] In this embodiment, the preset retention period of the main product is pre-set based on the product type of the main product in the cloud product and stored in the database.
[0077] In the first example, the main product in the cloud product is a container, and the additional products of the main product are the related configurations of the virtual private cloud network and block storage; and the preset retention period of the container is two weeks, then the preset retention period of the virtual private cloud and block storage related configurations corresponding to the container is also two weeks.
[0078] S103. Determine whether the cloud product is recoverable based on the preset retention period and the first target period of the cloud product.
[0079] In this embodiment, the first target duration is the duration from the deletion time of the aggregated order to the first current time.
[0080] In this embodiment, when the first target duration is greater than or equal to the preset retention duration, it indicates that the instance of the cloud product has been deleted from the corresponding cloud computing platform, and the aggregated order of the cloud product has also been deleted, and the cloud product cannot be restored based on the aggregated order.
[0081] S104: If yes, restore the main product and additional products based on the aggregated order of the cloud product.
[0082] In this embodiment, when the first target duration is less than the preset retention duration of the cloud product, it indicates that the instance of the cloud product is still stored in the cloud computing platform corresponding to the cloud product, and the main product and additional products can be restored based on the aggregated order of the cloud product; after the cloud product is restored, the first target duration of the cloud product will be reset.
[0083] In this embodiment, a specific implementation of the cloud product-based aggregated order to restore the main product and the additional product is as follows:
[0084] The cloud product-based aggregated order determines the main product in the cloud product and the additional product of the main product.
[0085] Based on the main product and the additional product of the main product, the instance corresponding to the cloud product in the cloud computing platform is restarted and run. After the cloud product is restored, the user of the cloud product can normally use the cloud product.
[0086] The application provides a cloud computing-based product resource processing method. In response to a product restoration request of a cloud product, a product identifier of the cloud product is obtained. According to the product identifier, an aggregated order of the cloud product and a preset retention duration of the cloud product are obtained. Whether the cloud product can be restored is determined based on the preset retention duration of the cloud product and a first target duration. If yes, the main product and the additional product are restored based on the aggregated order of the cloud product. The application obtains the preset retention duration of the main product in each cloud product based on the product identifier of the cloud product. When the user unsubscribes the cloud product, the instance of the cloud product in the cloud computing platform is continued to be saved. When the user requests to restore the cloud product, the instance of the cloud product that has been closed in the cloud computing platform is started according to the main product and the additional product included in the aggregated order of the cloud product, so that the main product and the additional product are simultaneously restored, thereby ensuring the integrity of the cloud product when the cloud product is restored, without the need to add and construct a new additional product, thereby realizing the technical effect of improving the cloud resource management efficiency and solving the technical problem of low cloud resource management efficiency in the prior art.
[0087] Figure 2 The cloud computing-based product resource processing method provided in the embodiments of the application Figure 1 . In the above Figure 2 embodiment, as Figure 3 shown, the step 101 further includes creation of the cloud product aggregated order. A specific implementation of the aggregated order creation includes the following steps:
[0088] S201, in response to a product creation request of a user, a product type of a main product is obtained.
[0089] In this embodiment, the product types of the main products include, but are not limited to, virtual machine products, container products, function products, database products, cache products, load balancing products, storage products, security products, and monitoring products. The virtual machine product is a common independent computer based on virtualization technology, which can run an operating system and an application program. The container product is a light-weight application running environment based on container technology, which can quickly deploy and expand an application program. The function product is used for executing specific functions or tasks on demand in serverless computing. The database product is used for storing and managing data. The cache product is used for providing cache services for high-speed data access. The load balancing product is used for distributing traffic to multiple backend services. The storage is used for providing storage services, including object storage, block storage, and file storage. The security product is used for providing security functions and services, for example, a firewall and security monitoring. The monitoring product is used for monitoring and managing the performance and status of cloud resources.
[0090] In S202, the additional products required by the main product are determined based on the product type of the main product and a preset product mapping relationship.
[0091] In this embodiment, the preset product mapping relationship is used to indicate the additional products associated with each type of main product.
[0092] In the second exemplary embodiment, when the product type of the main product is a virtual machine product, the mapping relationship can be that the virtual machine product depends on a storage product and a load balancing product, and depends on a network resource in cloud computing resources. Then, the additional products corresponding to the main product can be determined according to the storage product, the load balancing product, and the network resource.
[0093] In S203, an aggregated order of a cloud product is created based on the main product and the additional product, and a product identifier of the cloud product is generated.
[0094] In this embodiment, the aggregated order includes the main product and the additional product of the main product. The product identifier is used to mark a unique corresponding aggregated order.
[0095] In S204, an instance corresponding to the cloud product is created in a cloud computing platform corresponding to the cloud product.
[0096] In this embodiment, a specific implementation method of instance creation in the cloud computing platform can be as follows:
[0097] The main product and the additional product required for creating the instance are determined based on the aggregated order.
[0098] The instance parameters are configured based on the main product and the additional product, including but not limited to instance specifications, storage capacity, and network settings.
[0099] The region and the availability zone where the instance needs to be deployed are determined, and the instance is created.
[0100] After the instance is created, it can be accessed and managed based on the cloud computing platform or console.
[0101] In this embodiment, when a user creates a product, the additional products of the main product are obtained based on the product type of the main product and the preset product mapping relationship, and an aggregate order for the cloud product is created based on the main product and the additional products, and a product identifier for the cloud product is generated; thereby, the main product and the additional products associated with the main product are saved in the aggregate order; when deleting a product, the main product and its additional products can be deleted at the same time according to the aggregate order; when restoring a product, the main product and additional products can be restored at the same time according to the aggregate order of the cloud product, thereby realizing unified processing of the main product and additional products in the cloud product and improving the processing efficiency of product resources.
[0102] Figure 3 The process of the product resource processing method based on cloud computing provided in the embodiment of this application Figure 1 In the above Figure 2 and Figure 3 Based on the embodiment shown, Figure 4 As shown, before the above step 101, the cloud product cancellation is also included. A specific implementation method of the cloud product cancellation includes:
[0103] S301. Responding to a user's product cancellation request, obtaining a product identifier and product type of a cloud product;
[0104] S302: Obtain the aggregated order of the cloud product based on the product identifier of the cloud product, and obtain the preset retention period of the cloud product based on the product type of the main product in the cloud product;
[0105] Optionally, before obtaining the preset retention period of the cloud product according to the product type of the main product in the cloud product, the method further includes configuring the preset retention period for each main product. A specific implementation method for configuring the preset retention period for each main product is as follows:
[0106] Obtain multiple cloud products in the cloud computing platform, push the product type of the main product in each cloud product to the management end, and obtain the preset retention period configured by the management end for each main product;
[0107] The product type of each master product and the retention period of the master product are stored in the database.
[0108] S303. Based on the aggregated order for the cloud product, close the instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product;
[0109] In this embodiment, a specific implementation method of closing the instance is:
[0110] Determine the main product and the additional product based on the aggregated order of the cloud product;
[0111] Query the corresponding instance in the cloud computing platform based on the main product and the additional product, and determine to perform an instance closing operation after the corresponding instance is queried;
[0112] After determining that the operation is correct, the cloud computing platform processes the instance closing operation, but does not delete the cloud computing resources related to the instance, so that the cloud product can be restored according to the aggregated order.
[0113] S304, continue to store the instance corresponding to the cloud product before the preset retention period arrives, and delete the instance corresponding to the cloud product after the preset retention period arrives.
[0114] Optionally, before the preset retention period arrives, it further includes determining whether to delete the cloud product based on the feedback information of the management end, and a specific implementation manner of determining whether to delete the cloud product based on the feedback information of the management end is:
[0115] When the second target time length is greater than the preset value and less than the preset retention period, the aggregated order of the cloud product and the preset retention period of the cloud product are pushed to the management end, and the feedback information of the management end is obtained; wherein the second target time length is the time length from the deletion time of the aggregated order to the second current time;
[0116] When the feedback information indicates that the cloud product needs to be deleted, the instance of the cloud product in the cloud computing platform is deleted based on the aggregated order of the cloud product, and the aggregated order of the cloud product is cleared, so that the cloud product cannot be restored.
[0117] In the third example, the preset retention period of the cloud product is three weeks, and the result value of the second target time length calculated by the deletion time of the aggregated order and the second current time is one week, so that the cloud product is still in the retention period allowed by the preset retention period. In order to avoid resource occupation, the management end can clean up the cloud product which does not need to be retained, push the aggregated order of the cloud product and the preset retention period to the management end, and send the feedback information for deleting the cloud product according to the second retention period of the cloud product and the preset retention period. The instance of the cloud product is deleted in the cloud computing platform based on the feedback information, and the preset retention period corresponding to the cloud product is cleared at the same time, so that the cloud product cannot be restored.
[0118] Optionally, after the preset retention period arrives, a specific implementation manner of deleting the instance corresponding to the cloud product is:
[0119] Update the actual retention period of the cloud product based on the preset time interval, and store the updated actual retention period of the cloud product in the database;
[0120] determining whether the actual retention duration of the updated cloud product is greater than or equal to the preset retention duration, and if yes, clearing the aggregated order of the cloud product and deleting the instance corresponding to the cloud product in the cloud computing platform based on the aggregated order of the cloud product.
[0121] In this embodiment, when the cloud product is unsubscribed, the instance corresponding to the cloud product in the cloud computing platform is closed based on the aggregated order of the cloud product, and whether the time for which the instance is kept in the cloud computing platform after the cloud product is unsubscribed exceeds the preset retention duration of the cloud product is determined according to the preset retention duration of the cloud product; if yes, the instance corresponding to the cloud product is deleted according to the aggregated order, so that the cloud product cannot be restored; or the cloud product that does not reach the preset retention duration is pushed to the management end, and whether the instance of the cloud product needs to be deleted is determined according to the feedback information of the management end. Thus, the preset retention duration of the cloud product and the aggregated order are used to keep the instance of the cloud product for a period of time after the cloud product is unsubscribed, which facilitates the recovery of the cloud product after the cloud product is mistakenly deleted, thereby improving the security of the cloud computing product resource processing.
[0122] Figure 4 A structural schematic diagram of a product resource processing device based on cloud computing provided by the embodiment of the present application is provided. The device of the embodiment can be in the form of software and / or hardware. As shown in the figure, the product resource processing device 400 based on cloud computing provided by the embodiment of the present application comprises an acquisition module 401, a first processing module 402, a second processing module 403 and a third processing module 404. Figure 5
[0123] The acquisition module 401 is configured to acquire the product identifier of the cloud product in response to a product recovery request of the cloud product.
[0124] The first processing module 402 is configured to acquire the aggregated order of the cloud product and the preset retention duration of the cloud product according to the product identifier, the aggregated order comprising the main product and the additional product of the main product; wherein the preset retention duration of the additional product is determined according to the preset retention duration of the main product, and the preset retention duration of the additional product is the same as the preset retention duration of the main product.
[0125] The second processing module 403 is configured to determine whether the cloud product can be restored based on the preset retention duration of the cloud product and a first target duration; wherein the first target duration is the duration from the deletion time of the aggregated order to a first current time.
[0126] The third processing module 404 is configured to restore the main product and the additional product based on the aggregated order of the cloud product when the cloud product can be restored.
[0127] In a possible implementation manner, the acquisition module 401 is further configured to:
[0128] In response to a user's product creation request, obtaining a product type of a main product;
[0129] Determine the additional products that the main product depends on based on the product type of the main product and the preset product mapping relationship; wherein the preset product mapping relationship is used to indicate the additional products associated with each type of main product;
[0130] Create an aggregate order for cloud products based on the main product and add-on products, and generate a product ID for the cloud product;
[0131] Create instances of cloud products in the cloud computing platform corresponding to the cloud products.
[0132] In a possible implementation, the acquisition module 401 is further configured to:
[0133] In response to a user's product cancellation request, obtaining a product identifier and product type of the cloud product;
[0134] Obtain the aggregated order of the cloud product based on its product ID, and obtain the preset retention period of the cloud product based on the product type of the main product in the cloud product.
[0135] Based on the aggregated orders for cloud products, shut down the instances corresponding to the cloud products in the cloud computing platforms corresponding to the cloud products;
[0136] The instances corresponding to the cloud products will continue to be stored until the preset retention period expires, and will be deleted after the preset retention period expires.
[0137] In a possible implementation, the acquisition module 401 is further configured to:
[0138] When the second target duration is greater than the preset value but less than the preset retention duration, the aggregated order of the cloud product and the preset retention duration of the cloud product are pushed to the management end, and feedback information from the management end is obtained; wherein the second target duration is the duration from the deletion time of the aggregated order to the second current time;
[0139] When the feedback information indicates that the cloud product needs to be deleted, the instance of the cloud product in the cloud computing platform is deleted based on the aggregated order of the cloud product, and the aggregated order of the cloud product is cleared, making the cloud product unrecoverable.
[0140] In a possible implementation, the acquisition module 401 is further configured to:
[0141] Updating the actual retention period of the cloud product based on a preset time interval, and storing the updated actual retention period of the cloud product in the database;
[0142] Determine whether the actual retention period of the updated cloud product is greater than or equal to the preset retention period. If so, clear the aggregated order of the cloud product and delete the instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product based on the aggregated order of the cloud product.
[0143] In a possible implementation, the acquisition module 401 is further configured to:
[0144] Obtain multiple cloud products in the cloud computing platform, push the product type of the main product in each cloud product to the management end, and obtain the preset retention period configured by the management end for each main product;
[0145] The product type of each master product and the retention period of the master product are stored in the database.
[0146] The present application provides a cloud computing-based product resource processing device. The device includes: an acquisition module for obtaining a product identifier of a cloud product in response to a product recovery request of the cloud product; a first processing module for obtaining, based on the product identifier, an aggregated order for the cloud product and a preset retention period for the cloud product, wherein the aggregated order includes a main product and additional products of the main product; wherein the preset retention period of the additional products is determined based on the preset retention period of the main product, and the preset retention period of the additional products is the same as the preset retention period of the main product; a second processing module for determining whether the cloud product is recoverable based on the preset retention period of the cloud product and a first target period; wherein the first target period is the period from the deletion time of the aggregated order to a first current time; and a third processing module for recovering the main product and the additional products based on the aggregated order of the cloud product when the cloud product is recoverable. This application uses the preset retention period of the main product in each cloud product to continue to save the instance of the cloud product in the cloud computing platform when the user unsubscribes from the cloud product. When the user requests to restore the cloud product, the main product and the additional products are restored at the same time according to the main product and additional products included in the aggregated order of the cloud product, thereby ensuring the integrity of the cloud product when it is restored, and there is no need to re-add and build new additional products, thereby achieving the technical effect of improving the efficiency of cloud resource management and solving the technical problem of low cloud resource management efficiency in the existing technology.
[0147] Figure 5 This is a hardware structure diagram of a cloud computing-based product resource processing device provided in an embodiment of the present application. As shown, the cloud computing-based product resource processing device 500 includes:
[0148] Processor 501 and memory 502;
[0149] Memory stores computer-executable instructions;
[0150] The processor executes computer-executed instructions stored in the memory 502, so that the cloud-computing-based product resource processing device executes the cloud-computing-based product resource processing method as described above.
[0151] It should be understood that the processor 501 described above can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), and the like. The general-purpose processor can be a microprocessor or can also be any conventional processor. The steps of the method disclosed in combination with the application can be directly embodied as hardware processor execution or executed by a combination of hardware and software modules in the processor. The memory 502 can include a high-speed random access memory (RAM), and can also include a non-volatile memory (NVM), such as at least one disk memory, and can also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, and the like.
[0152] The application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described above.
[0153] The embodiments of the application also correspondingly provide a computer-readable storage medium, which stores computer-executed instructions, and the computer-executed instructions, when executed by a processor, are used to implement the cloud-computing-based product resource processing method.
[0154] It should be noted that, for the foregoing method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the application is not limited by the action order described, because according to the application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to optional embodiments, and the actions and modules involved are not necessarily necessary for the application.
[0155] It should be further noted that, although the various steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0156] It should be understood that the above-described device embodiments are merely illustrative, and the device of the present application may also be implemented in other ways. For example, the division of units / modules in the above-described embodiments is merely a logical functional division, and actual implementations may employ other division methods. For example, multiple units, modules, or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0157] In addition, unless otherwise specified, the functional units / modules in the various embodiments of the present application may be integrated into a single unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The aforementioned integrated units / modules may be implemented in the form of hardware or software program modules.
[0158] If the integrated unit / module is implemented in hardware, the hardware may be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as resistive random access memory (RRAM), dynamic random access memory (DRAM), static random access memory (SRAM), enhanced dynamic random access memory (EDRAM), high-bandwidth memory (HBM), hybrid memory cube (HMC), etc.
[0159] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a particular embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined in any way. To keep the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0162] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A product resource processing method based on cloud computing, characterized in that: include: In response to a product recovery request for a cloud product, obtaining a product identifier of the cloud product; Obtaining, based on the product identifier, an aggregate order for the cloud product and a preset retention period for the cloud product, wherein the aggregate order includes a main product and an add-on product of the main product; wherein the preset retention period for the add-on product is determined based on the preset retention period for the main product, and the preset retention period for the add-on product is the same as the preset retention period for the main product; Determining whether the cloud product is recoverable based on a preset retention period and a first target period; wherein the first target period is the period from the deletion time of the aggregated order to the first current time; If so, the main product and the additional product are restored based on the aggregated order of the cloud product.
2. The method according to claim 1, characterized in that Before obtaining the product identifier of the cloud product in response to the product recovery request of the cloud product, the method further includes: In response to a user's product creation request, obtaining a product type of the main product; Determine, based on the product type of the main product and a preset product mapping relationship, the additional products that the main product depends on for operation; wherein the preset product mapping relationship is used to indicate the additional products associated with each type of main product; creating an aggregate order for the cloud product based on the main product and the additional product, and generating a product identifier for the cloud product; Create an instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product.
3. The method according to claim 2, characterized in that Before obtaining the product identifier of the cloud product in response to the product recovery request of the cloud product, the method further includes: In response to a user's product cancellation request, obtaining a product identifier and a product type of the cloud product; Obtaining, based on the product identifier of the cloud product, an aggregated order for the cloud product, and, based on the product type of a main product in the cloud product, obtaining a preset retention period for the cloud product; Based on the aggregated order of the cloud product, shut down the instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product; Before the preset retention time expires, the instance corresponding to the cloud product continues to be stored. After the preset retention time expires, the aggregated order for the cloud product is cleared and the instance corresponding to the cloud product is deleted.
4. The method according to claim 3, characterized in that Before the preset retention time expires, the method further includes: When the second target duration is greater than a preset value and less than the preset retention duration, the aggregated order of the cloud product and the preset retention duration of the cloud product are pushed to the management end, and feedback information from the management end is obtained; wherein the second target duration is the duration from the deletion time of the aggregated order to the second current time; When the feedback information indicates that the cloud product needs to be deleted, the instance of the cloud product in the cloud computing platform is deleted based on the aggregated order of the cloud product, and the aggregated order of the cloud product is cleared, so that the cloud product cannot be restored.
5. The method according to claim 3, characterized in that After the preset retention period expires, clearing the aggregated order of the cloud product and deleting the instance corresponding to the cloud product includes: updating the actual retention time of the cloud product based on a preset time interval, and storing the updated actual retention time of the cloud product in a database; Determine whether the actual retention period of the updated cloud product is greater than or equal to the preset retention period. If so, clear the aggregated order of the cloud product and delete the instance corresponding to the cloud product in the cloud computing platform corresponding to the cloud product based on the aggregated order of the cloud product.
6. The method according to claim 3, characterized in that Before obtaining the preset retention period of the cloud product according to the product type of the main product in the cloud product, the method further includes: Acquire multiple cloud products in the cloud computing platform, push the product type of the main product in each cloud product to the management end, and obtain the preset retention period configured by the management end for each main product; The product type of each main product and the retention time of the main product are stored in a database.
7. A product resource processing device based on cloud computing, characterized in that: include: an acquisition module, configured to acquire a product identifier of a cloud product in response to a product recovery request of the cloud product; a first processing module, configured to obtain, based on the product identifier, an aggregated order for the cloud product and a preset retention period for the cloud product, wherein the aggregated order includes a main product and an add-on product of the main product; wherein the preset retention period for the add-on product is determined based on the preset retention period for the main product, and the preset retention period for the add-on product is the same as the preset retention period for the main product; A second processing module is configured to determine whether the cloud product is recoverable based on a preset retention period of the cloud product and a first target period; wherein the first target period is the period from the deletion time of the aggregated order to a first current time; The third processing module is configured to restore the main product and the additional product based on the aggregated order of the cloud product when the cloud product can be restored.
8. A product resource processing device based on cloud computing, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the cloud computing-based product resource processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the cloud computing-based product resource processing method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the product resource processing method based on cloud computing according to any one of claims 1 to 6 is implemented.