Resource guarantee method, device, equipment, medium and program product

By creating a virtual private resource pool on the cloud platform and establishing the association between virtual machines and virtual pre-occupied instances, the problem of manual intervention in the process of cloud platform resource release and application is solved, realizing self-service operation and deterministic guarantee of resources, and improving the reliability and efficiency of resource use.

CN122019052APending Publication Date: 2026-05-12CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD
Filing Date
2026-01-27
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing technologies, the process of releasing and applying for cloud platform resources relies on manual intervention, which is cumbersome and time-consuming, affecting other users' use and posing a risk of configuration errors, making it difficult to achieve deterministic resource guarantees.

Method used

By creating a virtual private resource pool on the cloud platform, establishing the association between virtual machines and virtual pre-occupied instances, and establishing the ownership relationship between the target user identifier and the resource pool, exclusive use of resources can be achieved, and users can operate on their own without manual intervention.

Benefits of technology

It improves the reliability and efficiency of resource utilization, prevents resources from being preempted by other users, reduces operation and maintenance costs, and ensures that target users can safely release and re-apply for resources during business adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122019052A_ABST
    Figure CN122019052A_ABST
Patent Text Reader

Abstract

The invention discloses a resource guarantee method, device and equipment, a storage medium and a program product, and the method comprises the steps: receiving first information sent by a terminal, the first information being used for requesting a cloud platform resource management and control system to create a virtual private resource pool based on one or more first virtual machines; creating the virtual private resource pool for the terminal based on the first information, and creating one or more first virtual camping instances with the same specification and size as the one or more first virtual machines in the virtual private resource pool; and establishing an association relationship between the one or more first virtual machines and the one or more first virtual camping instances, and establishing an affiliation relationship among a target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual camping instances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and in particular to a resource protection method, apparatus, device, storage medium, and program product. Background Technology

[0002] With the continuous development of cloud computing technology, more and more enterprises and users are choosing to deploy their businesses on cloud platforms to obtain higher stability, lower costs, and more flexible resource acquisition capabilities. To meet users' sudden demands, cloud platforms typically reserve a certain amount of idle resources in their resource pools. However, due to limited resources and the need to consider return on investment, it is difficult to maintain a large amount of idle resources in the long term. In related technologies, when a user needs to temporarily release resources due to business adjustments and then reapply, the user usually proactively contacts the cloud platform operator for assistance, such as disabling resource sales or setting up a whitelist to ensure priority access to resources. However, this method relies on manual intervention, is cumbersome and time-consuming, and can also affect the normal use of other users, while also posing a risk of configuration errors. Summary of the Invention

[0003] To address the aforementioned technical problems, embodiments of this application provide a resource protection method, apparatus, device, storage medium, and program product.

[0004] The resource protection method provided in this application embodiment is applied to a cloud platform resource management system, including: The receiving terminal sends first information, which is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; Based on the first information, a virtual private resource pool is created for the terminal, and one or more first virtual pre-occupied instances with the same size and specifications as the one or more first virtual machines are created in the virtual private resource pool; Establish an association between the one or more first virtual machines and the one or more first virtual pre-occupied instances, and establish an attribution relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances.

[0005] The resource protection method provided in this application embodiment is applied to a terminal and includes: Send first information to the cloud platform resource management system, the first information being used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; Wherein, after the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances created by the cloud platform resource management system with the same size and specifications as the one or more first virtual machines; the association between the one or more first virtual machines and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system; the affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system.

[0006] The resource protection device provided in this application embodiment is applied to a cloud platform resource management system, including: A receiving unit is used to receive first information sent by a terminal, the first information being used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; The processing unit is configured to create the virtual private resource pool for the terminal based on the first information, create one or more first virtual pre-occupied instances in the virtual private resource pool with the same size and specifications as the one or more first virtual machines, establish an association between the one or more first virtual machines and the one or more first virtual pre-occupied instances, and establish an affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances.

[0007] The resource protection device provided in this application embodiment is applied to a terminal and includes: The sending unit is used to send first information to the cloud platform resource management system, the first information being used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; Wherein, after the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances created by the cloud platform resource management system with the same size and specifications as the one or more first virtual machines; the association between the one or more first virtual machines and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system; the affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system.

[0008] The communication device provided in this application includes a processor and a memory. The memory is used to store computer programs, and the processor is used to call and run the computer programs stored in the memory to execute any of the above-described resource protection methods.

[0009] The computer-readable storage medium provided in this application embodiment is used to store a computer program that causes a computer to execute any of the above-described resource protection methods.

[0010] The computer program product provided in this application includes computer program instructions that cause a computer to execute any of the above-described resource protection methods.

[0011] In the technical solution of this application embodiment, the cloud platform resource management system receives first information sent by the terminal. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines. Based on the first information, the system creates a virtual private resource pool for the terminal and creates one or more first virtual pre-occupied instances with the same size and specifications as the one or more first virtual machines within the virtual private resource pool. An association is established between the one or more first virtual machines and the one or more first virtual pre-occupied instances, and an ownership relationship is established between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances. Thus, by creating a virtual private resource pool for the terminal based on the terminal's request, creating virtual pre-occupied instances with the same size and specifications as the virtual machines specified by the terminal within the virtual private resource pool and associating them, and establishing an ownership relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the virtual pre-occupied instances, the cloud platform resource management system locks resources through the virtual pre-occupied instances within the terminal's virtual pre-occupied instances. This achieves exclusive use of the virtual pre-occupied instances and their associated virtual machine resources, ensuring that the target user can safely release and re-apply for resources during business adjustments, preventing resources from being preempted by other users, and improving the reliability of resource usage. Attached Figure Description

[0012] Figure 1 This is a flowchart illustrating a resource protection method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating another resource protection method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the state changes of a certain type of resource on the cloud platform provided in the embodiments of this application. Figure 1 ; Figure 4 This is a schematic diagram illustrating the process by which the cloud platform resource management system provided in this application creates a virtual private resource pool for users; Figure 5 This is a schematic diagram of the relationships within a user's virtual private resource pool provided in this application embodiment. Figure 1 ; Figure 6 This is a schematic diagram of the relationships within a user's virtual private resource pool provided in this application embodiment. Figure 2 ; Figure 7 This is a schematic diagram of the process for creating a virtual machine and requesting resources, provided in an embodiment of this application. Figure 8 This is a schematic diagram of the relationships within a user's virtual private resource pool provided in this application embodiment. Figure 3 ; Figure 9 This is a schematic diagram of the process for deleting virtual machine private resources provided in an embodiment of this application; Figure 10 This is a schematic diagram of the state changes of a certain type of resource on the cloud platform provided in the embodiments of this application. Figure 2 ; Figure 11 This is a flowchart illustrating the user's performance and breach of contract determination process provided in this application embodiment; Figure 12 This is a schematic diagram of the structure of a resource protection device provided in an embodiment of this application; Figure 13 This is a schematic diagram of another resource protection device provided in an embodiment of this application; Figure 14 This is a schematic diagram of the structure of the communication device provided in the embodiments of this application. Detailed Implementation

[0013] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0014] To facilitate understanding of the technical solutions of the embodiments of this application, the relevant technologies of the embodiments of this application are described below. The following relevant technologies are optional solutions and can be combined with the technical solutions of the embodiments of this application in any way, and they all fall within the protection scope of the embodiments of this application.

[0015] As cloud computing technology matures, its core advantages (stability, cost-effectiveness, and elasticity) compared to traditional data centers are becoming increasingly apparent. More and more users are choosing to deploy their services on the cloud to obtain higher stability, lower costs, and more convenient access to computing power.

[0016] To maintain a certain level of elasticity, cloud computing platforms typically keep a portion of idle resources in their cloud resource pools to handle sudden user demands. However, for return on investment considerations, cloud computing platforms generally do not maintain a large amount of idle resources for extended periods. The elasticity within a single availability zone is also limited, and when a large number of sudden demands arrive in a short period, it is still possible to exhaust all the resources in the cloud resource pool.

[0017] Given the characteristics of cloud computing, users can easily and quickly obtain cloud resources to run their businesses. It's common for users to frequently request and release resources on the cloud platform. Users often need to temporarily release some resources due to business adjustments, and then repurchase them shortly afterward. If the cloud platform's resource pool has sufficient resources, users can simply release and repurchase them normally; this is the elasticity provided by the cloud platform. However, if the cloud platform's resource pool is sold out, the resources released by the user are likely to be instantly requested by other users. When the user wants to repurchase resources after business adjustments, there will be no resources available, resulting in business losses.

[0018] In related technologies, to solve the above problems, users generally need to contact the cloud platform operator for assistance. Specifically, the user first needs to contact the cloud platform operator and submit an application for a certain resource. Then, the operator first closes the sale of that resource, and the user then releases the resource. Next, the operator opens a whitelist for the sale of that resource for the user (designating users to list it), and only users on the whitelist can see the resource. After the user's business is adjusted, the user needs to buy back the resource. At this time, the cloud platform operator will reopen the sale of that resource so that it can be sold to other users again after the resource is replenished.

[0019] However, the above methods still have the following drawbacks or shortcomings: (1) It requires the assistance of the cloud platform operator, and the process is long and the interaction is time-consuming.

[0020] (2) During the period when resource sales are closed, it affects the normal sales of other users.

[0021] (3) The cloud platform backend needs to perform some complex configurations and operations, which carries a high risk of errors, such as the cloud platform operator missing the step of reopening the sale of a certain resource.

[0022] Based on this, this application proposes a resource guarantee method, including a cloud computing resource virtual private pool scheme, which enables exclusive use of resources within the scope defined by the virtual private pool, thereby achieving the purpose of guaranteeing user resources. The virtual private pool can be operated by the user himself without the intervention of the cloud platform operator, which reduces operation and maintenance costs and improves the efficiency of problem handling. Furthermore, the virtual private pool is at the user level and does not require global configuration, thus avoiding the impact on other users.

[0023] To facilitate understanding of the technical solutions of the embodiments of this application, the technical solutions of this application are described in detail below through specific embodiments. The above-mentioned related technologies are optional solutions and can be arbitrarily combined with the technical solutions of the embodiments of this application, all of which fall within the protection scope of the embodiments of this application. The embodiments of this application include at least some of the following contents.

[0024] This application proposes a resource protection method, which is applied to a cloud platform resource management system. Figure 1 This is a flowchart illustrating a resource protection method provided in an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps: Step 101: The cloud platform resource management system receives the first information sent by the terminal. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines.

[0025] In this embodiment, the terminal can be an interactive method such as a cloud platform console interface, API interface, or SDK that the target user logs into. The first information typically includes the target user identifier corresponding to the terminal, one or more first virtual machines to be selected, the specification parameters corresponding to the one or more first virtual machines (such as the number of vCPUs, memory size, etc.), and the request instruction from the target user to create a virtual private resource pool through the terminal. When the cloud platform resource management system receives the above first information, it can identify the self-service operation request initiated by the target user through the terminal and begin to build the exclusive resource guarantee mechanism specified by the target user.

[0026] Step 102: The cloud platform resource management system creates a virtual private resource pool for the terminal based on the first information, and creates one or more first virtual pre-occupied instances in the virtual private resource pool with the same size and specifications as one or more first virtual machines.

[0027] Step 103: The cloud platform resource management system establishes an association between one or more first virtual machines and one or more first virtual pre-occupied instances, and establishes an attribution relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and one or more first virtual pre-occupied instances.

[0028] Here, a Virtual Private Resource Pool (VPR) is a resource management unit initiated and owned by a target user. It is used to allocate a certain number of computing resources and allow exclusive use of these resources for a specific period. On the cloud platform, each VPR corresponds to a logically isolated resource space, ensuring that only specific target users can access and use the resources within the logically isolated resource space during the lifecycle of the VPR. A Virtual Pre-owned Instance is a logical resource object created within a VPR, used to identify that a certain type of resource has been reserved by the target user. Even if a certain type of resource is not currently in use, other users are prohibited from requesting that type of resource.

[0029] In this embodiment, the cloud platform resource management system creates a dedicated virtual private resource pool for the target user corresponding to the terminal based on the first information sent by the terminal. Within the virtual private resource pool, it creates a first virtual pre-occupied instance of the same size and specifications for each first virtual machine, resulting in one or more first virtual pre-occupied instances. The creation of virtual pre-occupied instances is essentially a logical reservation of resources, which does not affect the normal scheduling of existing resources and simultaneously ensures deterministic resource usage for the target user. Next, the cloud platform resource management system establishes an association between each first virtual machine and the first virtual pre-occupied instance of the same size and specifications, ensuring that when a first virtual machine is released, its resources are reserved for continued use by the corresponding first virtual pre-occupied instance. Then, the cloud platform resource management system establishes an ownership relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and one or more first virtual pre-occupied instances. The target user identifier may include information such as the target user account identifier, target user identity credentials, and the identifier of the entity to which the target user belongs, used to uniquely identify the target user and ensure that only the target user can access and operate the virtual private resource pool and one or more first virtual pre-occupied instances within it.

[0030] For example, suppose user A runs two virtual machines, VM1 and VM2, with 4 cores and 8GB of RAM. When user A submits a request to the cloud platform to create a Virtual Private Resource Pool (VPRP), the cloud platform will create two virtual pre-owned instances, r1 and r2, with the same specifications as VM1 and VM2 within the VPRP. Virtual pre-owned instances r1 and r2 do not actually occupy physical resources, but they lock the resource quotas corresponding to VM1 and VM2 to prevent other users from occupying those quotas. A relationship is established between VM1 and r1, and between VM2 and r2. User A owns the VPRP1, and all virtual pre-owned instances in VPRP1 belong to user A.

[0031] It should be noted that the resources within a virtual private resource pool typically exist in the form of virtual pre-occupied instances. These virtual pre-occupied instances are not publicly displayed and are only used to reserve the right to use the resources.

[0032] In some embodiments, the above method further includes: The cloud platform resource management system receives a second message sent by the terminal. The second message is used to request the cloud platform resource management system to release one or more first virtual machines. The cloud platform resource management system releases one or more first virtual machines based on the second information, and uses one or more first virtual pre-occupied instances to lock the resources released by one or more first virtual machines.

[0033] The second piece of information is a structured data request used to trigger the cloud platform resource management system to perform relevant operations. The second piece of information typically includes fields such as the identifier of one or more first virtual machines to be released, the reason for the release request, and the terminal identifier.

[0034] Specifically, after receiving the second information, the cloud platform resource management system will verify its legality. For example, the system will check whether the target user has the authority to release the specified first virtual machine and confirm whether the first virtual machine belongs to the target user's virtual private resource pool. If the verification result is successful, the system will proceed to the next step. If the legality of the second information is verified, the system will release one or more first virtual machines, that is, terminate the operation of one or more first virtual machines and release the underlying resources (such as CPU, memory, storage, etc.) occupied by one or more first virtual machines. However, in order to ensure the exclusivity of resources, the system will not directly mark these underlying resources as idle. Instead, it will use the first virtual pre-occupied instance associated with each first virtual machine to lock the resources released by each first virtual machine.

[0035] In some embodiments, the above method further includes: The cloud platform resource management system receives third information sent by the terminal, which is used to request the creation of a second virtual machine from the cloud platform resource management system; The cloud platform resource management system determines whether the terminal has a virtual private resource pool based on third-party information. If so, it determines whether there are one or more second virtual pre-occupied instances in the virtual private resource pool that are not associated with a virtual machine. If so, it determines whether there is a third virtual pre-occupied instance with the same size and specifications as the second virtual machine in one or more second virtual pre-occupied instances. If so, it selects the third virtual pre-occupied instance and uses the resources locked by the third virtual pre-occupied instance to create the second virtual machine, and establishes an association between the second virtual machine and the third virtual pre-occupied instance.

[0036] The third information typically includes the configuration parameters of the second virtual machine (such as the number of CPU cores, memory size, storage capacity, etc.) and terminal identifiers.

[0037] Specifically, after receiving the third-party information, the cloud platform resource management system first determines the target user's resource needs, then determines whether the terminal has a virtual private resource pool. If the terminal has a virtual private resource pool, it determines whether there are one or more second virtual pre-occupied instances that are not associated with virtual machines in the virtual private resource pool. If there are one or more second virtual pre-occupied instances that are not associated with virtual machines, it continues to determine whether there are third virtual pre-occupied instances with the same specifications and size as the second virtual machine (matching resource configuration, such as the number of CPUs, memory size, etc.). If there is a matching third virtual pre-occupied instance, the cloud platform resource management system will use the resources locked by the third virtual pre-occupied instance to create a new second virtual machine and establish an association between the newly created second virtual machine and the third virtual pre-occupied instance. This association ensures that the resources used by the newly created second virtual machine come from the target user's virtual private resource pool, thereby achieving deterministic guarantee of resource allocation.

[0038] In some embodiments, the above method further includes: The cloud platform resource management system receives a fourth piece of information from the terminal. This fourth piece of information is used to request the release of the virtual private resource pool from the cloud platform resource management system; or, The cloud platform resource management system obtains the number of times the terminal fulfills its obligations and the number of times it fails to fulfill them every preset period, and determines the usage time of the virtual private resource pool based on the number of fulfillment and failure to fulfill obligations; it then determines whether the usage time of the virtual private resource pool has reached the preset expiration time, and if so, it automatically releases the virtual private resource pool.

[0039] Specifically, to prevent unused resources in a Virtual Private Resource Pool (VPR) from being wasted, each VPR is set with a preset expiration time upon creation. The usage time of the VPR is calculated in real-time after creation. Before the preset expiration time is reached, the target user can flexibly control the lifecycle of the VPR according to their business needs. When the target user completes their business, they can send a request to the cloud platform resource management system to release the VPR (fourth information) via their terminal. The cloud platform resource management system will then release the VPR based on this request, including reclaiming resources locked by virtual pre-occupied instances in the VPR, releasing the association between virtual pre-occupied instances and virtual machines, deleting virtual pre-occupied instances, and deleting the VPR.

[0040] For example, target users can click the "Release Virtual Private Resource Pool" button on the cloud platform's official website console. After receiving this request, the cloud platform's resource management system will initiate the resource reclamation process for the virtual private resource pool.

[0041] In addition, the cloud platform resource management system will periodically check the resource usage status in the virtual private resource pool at preset intervals and obtain the number of fulfilled and unfulfilled transactions of the terminal in real time. Based on the number of fulfilled and unfulfilled transactions of the terminal, the system calculates the usage time of the virtual private resource pool and determines whether the usage time of the virtual private resource pool has reached the preset expiration time. If the usage time of the virtual private resource pool has reached the preset expiration time, the cloud platform resource management system will automatically trigger the release process of the virtual private resource pool to prevent the target user from occupying resources for a long time without effective use and improve the overall utilization rate of resources.

[0042] The preset period and preset expiration time can be set to different values ​​according to the needs of different target users, and are not limited here. For example, the period for high-priority target users can be set to a shorter time and the preset expiration time to a longer time, while the period for ordinary target users can be set to a longer time and the preset expiration time to a shorter time.

[0043] In some embodiments, the above method further includes: The cloud platform resource management system traverses all virtual pre-occupied instances in the virtual private resource pool and determines whether there are one or more fourth virtual pre-occupied instances that are not associated with virtual machines. If so, it reclaims the resources locked by one or more fourth virtual pre-occupied instances and deletes one or more fourth virtual pre-occupied instances. Otherwise, it determines whether there are one or more fifth virtual pre-occupied instances that are associated with virtual machines in the virtual private resource pool. If so, it removes the association between one or more fifth virtual pre-occupied instances and virtual machines and deletes one or more fifth virtual pre-occupied instances. After deleting all virtual pre-occupied instances in the virtual private resource pool from the cloud platform resource management system, delete the virtual private resource pool.

[0044] Specifically, regarding the release process of the Virtual Private Resource Pool (VPRP), the cloud platform resource management system first iterates through all virtual pre-occupied instances in the VPRP and takes different processing methods depending on whether the virtual pre-occupied instances are associated with virtual machines. If it is determined that there are one or more fourth virtual pre-occupied instances in the VPRP that are not associated with any virtual machines, that is, those virtual pre-occupied instances that have not yet established a binding relationship with any virtual machine, it means that the target user has reserved some resources, but has not yet used these resources for business operation. If they are not used for a long time, it will lead to resource waste. Therefore, when releasing the VPRP, the cloud platform resource management system will first reclaim the resources locked by one or more fourth virtual pre-occupied instances and return these resources to the cloud platform's public resource pool. Then, it will delete one or more fourth virtual pre-occupied instances, including clearing the logical records related to resource locking, so that the resources involved in the logical records related to resource locking are no longer restricted by the VPRP.

[0045] If it is determined that there are one or more fifth virtual pre-occupied instances in the Virtual Private Resource Pool (VPRP) that are already bound to one or more virtual machines, it means that the resources occupied by these virtual pre-occupied instances have already been used. Therefore, these resources cannot be directly reclaimed. The cloud platform resource management system needs to first sever the association between one or more fifth virtual pre-occupied instances and their bound virtual machines, allowing these virtual machines to continue operating normally without relying on the VPRP's resource protection mechanism. Then, one or more fifth virtual pre-occupied instances are deleted. The process of severing the association does not affect the virtual machine's running status; it only removes the restrictions on resource ownership.

[0046] After the cloud platform resource management system deletes all virtual pre-owned instances from the virtual private resource pool, it then deletes the entire virtual private resource pool. This operation signifies the end of the target user's exclusive control over the resources, and the relevant resources will be reintegrated into the cloud platform's public resource pool, available for other users. Deleting the virtual private resource pool not only releases the resources but also removes all permissions and control the target user has over it, ensuring fair allocation and efficient utilization of resources, more standardized and controllable lifecycle management of the virtual private resource pool, and avoiding resource waste caused by long-term resource locking.

[0047] In some embodiments, the above method further includes: When a terminal actively requests the cloud platform's resource management system to release resources from a virtual private resource pool, the system determines whether all resources in the virtual private resource pool have been used. If so, the terminal's fulfillment count is incremented by 1. Otherwise, it determines whether the resource utilization rate in the virtual private resource pool exceeds a first preset percentage within the pool's lifecycle. If so, the terminal's fulfillment count is incremented by 1. Otherwise, it determines whether the virtual private resource pool's lifecycle exceeds a second preset percentage. If so, the terminal's default count is incremented by 1. Otherwise, the terminal's fulfillment count is incremented by 1. Or... When the virtual private resource pool is automatically released by the cloud platform resource management system, determine whether all resources in the virtual private resource pool have been used; if so, increment the terminal's fulfillment count by 1; otherwise, determine whether the resource utilization rate in the virtual private resource pool exceeds the third preset ratio within the life cycle of the virtual private resource pool; if so, increment the terminal's fulfillment count by 1; otherwise, increment the terminal's default count by 1.

[0048] Specifically, when a target user initiates a release request for the virtual private resource pool, it means that the target user no longer needs the deterministic guarantee service provided by the virtual private resource pool. At this time, the cloud platform resource management system needs to determine whether the target user has fulfilled its obligation to use the resource pool reasonably based on the target user's usage of the virtual private resource pool. If all resources in the virtual private resource pool are actually used by the target user (i.e., the target user does have business needs), the target user is considered to have fulfilled the obligation, and the fulfillment count increases by 1. If the resources in the virtual private resource pool are not fully used, it is further determined whether the resource utilization rate in the virtual private resource pool is greater than or equal to a set first preset ratio, such as 80%, within the lifecycle of the virtual private resource pool. If the resource utilization rate in the virtual private resource pool reaches or exceeds the first preset ratio, it is also considered that the target user has successfully fulfilled the obligation, and the fulfillment count increases by 1. If it does not reach the first preset ratio, it is further determined whether the lifecycle of the virtual private resource pool exceeds a set second preset ratio, such as 70%. If the lifecycle of the virtual private resource pool is long, it indicates that the target user has held the virtual private resource pool for a long time. Even if it is not fully used, it may be considered as unreasonable occupation, thus marking the target user as a defaulter, and the default count increases by 1.

[0049] In scenarios where the cloud platform resource management system automatically releases virtual private resource pools, this is usually due to the virtual private resource pool's usage period expiring (reaching the preset expiration time) or the target user not actively releasing it. In this case, the cloud platform resource management system will also check the usage status of the virtual private resource pool. If all resources in the virtual private resource pool are used, the target user is still considered to have fulfilled their obligations, and their fulfillment count increases by 1. Otherwise, it further determines whether the resource utilization rate in the virtual private resource pool exceeds a third preset percentage, such as 75%, within the pool's lifecycle. If the resource utilization rate reaches the third preset percentage, the target user can still be considered to have used the virtual private resource pool reasonably, and their fulfillment count increases by 1. If it does not reach the preset percentage, the target user is considered to have defaulted, and their default count increases by 1.

[0050] Through this mechanism, regardless of whether the virtual private resource pool is released by the target user through an active request or automatically by the cloud platform's resource management system, the cloud platform can assess the usage within the virtual private resource pool and update the target user's performance record based on the assessment results. This guides the target user to use cloud computing resources more rationally. Simultaneously, it allows for a more accurate assessment of the rationality of the target user's resource usage, effectively preventing the abuse of the virtual private resource pool and thus preventing resource waste. Furthermore, it encourages the target user to release resources promptly when needed, thereby improving overall resource utilization efficiency.

[0051] In the technical solution of this application embodiment, the cloud platform resource management system receives first information sent by the terminal. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines. Based on the first information, the system creates a virtual private resource pool for the terminal and creates one or more first virtual pre-occupied instances with the same size and specifications as the one or more first virtual machines within the virtual private resource pool. An association is established between the one or more first virtual machines and the one or more first virtual pre-occupied instances, and an ownership relationship is established between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances. Thus, by creating a virtual private resource pool for the terminal based on the terminal's request, creating virtual pre-occupied instances with the same size and specifications as the virtual machines specified by the terminal within the virtual private resource pool and associating them, and establishing an ownership relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the virtual pre-occupied instances, the cloud platform resource management system locks resources through the virtual pre-occupied instances within the terminal's virtual pre-occupied instances. This achieves exclusive use of the virtual pre-occupied instances and their associated virtual machine resources, ensuring that the target user can safely release and re-apply for resources during business adjustments, preventing resources from being preempted by other users, and improving the reliability of resource usage.

[0052] This application also proposes a resource protection method, which is applied to a terminal. Figure 2 This is a flowchart illustrating another resource protection method provided in an embodiment of this application, such as... Figure 2 As shown, the method includes the following steps: Step 201: The terminal sends the first information to the cloud platform resource management system. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines. Specifically, after the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances with the same size and specifications as one or more first virtual machines created by the cloud platform resource management system; the association between one or more first virtual machines and one or more first virtual pre-occupied instances is created by the cloud platform resource management system; the attribution relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and one or more first virtual pre-occupied instances is created by the cloud platform resource management system.

[0053] The specific implementation steps can be found in the above method and process, and will not be elaborated on further here.

[0054] In some embodiments, the above method further includes: The terminal sends a second message to the cloud platform resource management system, which is used to request the release of one or more first virtual machines from the cloud platform resource management system. Specifically, after one or more first virtual machines are released by the cloud platform resource management system based on the second information, the resources released by the one or more first virtual machines are locked by the cloud platform resource management system using one or more first virtual pre-occupied instances.

[0055] The specific implementation steps can be found in the above method and process, and will not be elaborated on further here.

[0056] In some embodiments, the above method further includes: The terminal sends a third message to the cloud platform resource management system, which is used to request the creation of a second virtual machine.

[0057] The specific implementation steps can be found in the above method and process, and will not be elaborated on further here.

[0058] In some embodiments, the above method further includes: The terminal sends a fourth message to the cloud platform resource management system, which is used to request the release of the virtual private resource pool.

[0059] The specific implementation steps can be found in the above method and process, and will not be elaborated on further here.

[0060] In the technical solution of this application embodiment, the terminal sends first information to the cloud platform resource management system. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines. After the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances created by the cloud platform resource management system with the same size and specifications as the one or more first virtual machines. The association between the one or more first virtual machines and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system. The attribution relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system. In this way, the cloud platform resource management system creates a virtual private resource pool for the terminal based on the terminal's request, creates a virtual pre-occupied instance with the same size and specifications as the virtual machine specified by the terminal in the virtual private resource pool and associates the two, and establishes an ownership relationship between the target user identifier corresponding to the terminal, the virtual private resource pool and the virtual pre-occupied instance. By locking resources through the virtual pre-occupied instance in the terminal's virtual pre-occupied instance, exclusive use of the virtual pre-occupied instance and its associated virtual machine resources is achieved. This ensures that the target user can safely release and re-apply for resources during business adjustments, avoids resources being preempted by other users, and improves the reliability of resource use.

[0061] This application also proposes a method for deterministic assurance of cloud computing resources based on a virtual private cloud (VPC). By providing users with the ability to create their own VPCs, a portion of resources is designated within the VPC, allowing exclusive use of these designated resources within a certain timeframe, thus achieving deterministic assurance of user resources. Furthermore, this application proposes a performance judgment mechanism to guide users to use the VPC resource pool more rationally, thereby improving resource utilization. The specific technical solutions include the following: (1) Virtual private pool provides resource guarantee process like Figure 3 The diagram illustrates the status changes of a certain type of resource on a cloud platform provided in this application embodiment. Figure 1 In state 0, all resources have been used to create VMs, and no idle resources are available. Here, xCyG describes the resource size; for example, 4C8G represents computing power resources of 4 VCPUs + 8GB of memory.

[0062] like Figure 4 The diagram illustrates the process by which the cloud platform resource management system provided in this application creates a virtual private resource pool for a user. This process includes the following steps: Step 401: User A selects the list of virtual machines (VM1, VM2) under their name in the cloud platform official website console and submits a request to the cloud platform resource management system to create a virtual private resource pool.

[0063] Step 402: After receiving the creation request from user A, the cloud platform resource management system creates a virtual private resource pool rp1, creates virtual pre-occupied instances r1 and r2 with the same resource specifications and size as VM1 and VM2, and establishes an association between r1 and VM1 and r2 and VM2. At the same time, it establishes an ownership relationship between the virtual pre-occupied instances, the virtual private resource pool, and user A.

[0064] like Figure 5 The diagram shown illustrates the relationships within a user's virtual private resource pool as provided in this application embodiment. Figure 1 In this context, user A (user A's identification information) has an ownership relationship with virtual private resource pool rp1; virtual private resource pool rp1 has an ownership relationship with virtual pre-occupied instances r1 and r2; virtual pre-occupied instance r1 has an association relationship with virtual machine VM1; and virtual pre-occupied instance r2 has an association relationship with virtual machine VM2. At this time, the resource status of the cloud platform is as follows: Figure 3 As shown in state 1.

[0065] Step 403: After the virtual private resource pool is created, user A submits a request to release virtual machines VM1 and VM2 on the cloud platform's official website console.

[0066] Step 404: After receiving the release request from user A, the cloud platform resource management system checks that virtual machines VM1 and VM2 are associated with virtual pre-occupied instances r1 and r2. After releasing virtual machines VM1 and VM2, the associated virtual pre-occupied instances r1 and r2 occupy the resources released by virtual machines VM1 and VM2.

[0067] like Figure 6 The diagram shown illustrates the relationships within a user's virtual private resource pool as provided in this application embodiment. Figure 2 In this context, user A has an ownership relationship with virtual private resource pool rp1; virtual private resource pool rp1 has an ownership relationship with virtual pre-owned instances r1 and r2; virtual pre-owned instance r1 has an ownership relationship with the 8C16G resources released by virtual machine VM1; and virtual pre-owned instance r2 has an ownership relationship with the 4C8G resources released by virtual machine VM2. The resource status of the cloud platform at this time is as follows: Figure 3 As shown in state 2, the resources released by virtual machines VM1 and VM2 are allocated to their associated virtual pre-occupied instances r1 and r2.

[0068] Although the underlying physical resources of virtual machines VM1 and VM2 have been released at this point, these resources have been allocated to virtual pre-occupied instances r1 and r2 at the resource management level. Therefore, these resources are not considered idle, and other users cannot use them. These resources belong solely to user A throughout the lifecycle of the virtual private resource pool rp1, thus providing user A with a deterministic guarantee of these resources during this period.

[0069] When User A needs to repurchase resources after business adjustments, User A can submit a request to create a virtual machine VM8 on the cloud platform's official website console. After receiving User A's creation request, the cloud platform's resource management system will process the virtual machine resource request as follows: Figure 7 As shown, the process includes the following steps: Step 701: The cloud platform resource management system checks whether there is a virtual private resource pool rp1 under user A. If there is, proceed to step 702; otherwise, proceed to step 706.

[0070] Step 702: Determine if there are any virtual pre-occupied instances without associated VMs in the virtual private resource pool rp1. If so, proceed to step 703; otherwise, proceed to step 706.

[0071] Step 703: Determine whether there is a virtual pre-occupied instance r1 in the virtual private resource pool rp1 that is not associated with the VM and has the same size as the VM8 to be created. If yes, proceed to step 704; otherwise, proceed to step 706.

[0072] Step 704: Determine the selected resources.

[0073] Step 705: Create virtual machine VM8 based on the selected resources.

[0074] Step 706: The resource scheduling system performs resource scheduling.

[0075] Step 707: Determine if any resources have been scheduled. If yes, proceed to step 704; otherwise, proceed to step 708.

[0076] Step 708: No resources available, creation of virtual machine VM8 failed.

[0077] The cloud platform resource management system detects that user A has a virtual private resource pool rp1, and rp1 has a virtual pre-occupied instance without associated VM (meaning the pre-occupied resources have not yet been used). Then, it selects the resources occupied by the pre-occupied instance r1 of the same specifications to create a virtual machine VM8, and establishes an association between the newly created virtual machine VM8 and the virtual pre-occupied instance r1.

[0078] like Figure 8The diagram shown illustrates the relationships within a user's virtual private resource pool as provided in this application embodiment. Figure 3 In this context, user A has an ownership relationship with virtual private resource pool rp1; virtual private resource pool rp1 has an ownership relationship with virtual pre-owned instances r1 and r2; virtual pre-owned instance r1 has an association relationship with virtual machine VM8; and virtual pre-owned instance r2 has an ownership relationship with the 4C8G resources released by virtual machine VM2. The resource status of the cloud platform at this time is as follows: Figure 3 As shown in state 3, there are still 4C8G of unused resources remaining in the virtual private resource pool.

[0079] (2) Virtual private resource pool resource recycling mechanism To prevent resource waste (unused resources held by a Virtual Private Resource Pool), each Virtual Private Resource Pool has an expiration date set upon creation. This application supports users actively releasing Virtual Private Resource Pools, or the cloud platform resource management system automatically releasing Virtual Private Resource Pools after their expiration date. Unused resources held in a Virtual Private Resource Pool will be released and reclaimed by the system for other users to purchase; resources already used (VMs already created) will not be affected.

[0080] In other words, when a request to release the virtual private resource pool rp1 is initiated, the request source can be user A submitting a request to release the virtual private resource pool rp1 on the cloud platform's official website console; or it can be the cloud platform's resource management system periodically and automatically checking whether the virtual private resource pool rp1 has expired. If it has expired, the cloud platform's resource management system will automatically initiate a request to release the virtual private resource pool rp1.

[0081] After receiving a release request, the cloud platform resource management system's process for deleting virtual machine private resources is as follows: Figure 9 As shown, the process includes the following steps: Step 901: Traverse all virtual pre-occupied instances under the virtual private resource pool rp1.

[0082] Step 902: Determine whether there are any unassociated virtual pre-occupied instances in the virtual private resource pool rp1. If yes, proceed to step 903; otherwise, proceed to step 905.

[0083] Step 903: Reclaim resources occupied by virtual pre-occupied instances of unassociated VMs.

[0084] Step 904: Delete the virtual pre-occupied instance.

[0085] Step 905: Determine if there is a virtual pre-occupied instance of an associated VM in the virtual private resource pool rp1. If yes, proceed to step 906; otherwise, proceed to step 907.

[0086] Step 906: Remove the association between the virtual pre-occupied instance and the VM, and proceed to step 904.

[0087] Step 907: Delete the virtual private resource pool.

[0088] Iterate through all virtual pre-owned instances under the virtual private resource pool rp1. If a virtual pre-owned instance is not associated with a VM, reclaim the resources occupied by the virtual pre-owned instance and then delete the virtual pre-owned instance. If a virtual pre-owned instance is associated with a VM, remove the association between the virtual pre-owned instance and the VM and then delete the virtual pre-owned instance. After all virtual pre-owned instances have been deleted, delete the virtual private resource pool.

[0089] like Figure 10 The diagram illustrates the status changes of a certain type of resource on a cloud platform provided in this application embodiment. Figure 2 At this time, the resource status of the cloud platform is as follows: Figure 10 The system transitions from state 3 to state 4, releasing the 4C8G resources occupied by the virtual pre-owned instance r2. This 4C8G of idle resources is no longer exclusively for user A; other users can see it and request it by submitting a VM creation request on the cloud platform's official website console. After a user requests this resource, the cloud platform's resource status will be as follows: Figure 10 As shown in state 5.

[0090] (3) Provide resource determinism guarantee methods with differentiated durations based on the user's performance. Resources within a virtual private resource pool are exclusively owned by user A for the entire lifecycle of the virtual private resource pool. During this period, user A can release or create VMs within the virtual private resource pool at any time according to their business needs, without worrying about other users requesting the resources.

[0091] However, for cost reasons, the use of virtual private resource pools needs to be time-limited to prevent users from occupying resources for extended periods without using them, thus wasting resources. The usage duration T of the virtual private resource pool can be calculated using the following formula: (1) in, The base duration is the initial value for the usage duration. For the number of times the contract is fulfilled, For each missed appointment, the usage time increases by [percentage missing]. Each time a user misses a scheduled appointment, their usage time is reduced. The maximum duration is twice the base duration. and The value can be set differently depending on the strictness of the performance judgment.

[0092] like Figure 11 The diagram shown is a flowchart illustrating the user performance and breach of contract determination process provided in this application embodiment. The process includes the following steps: Step 1101: Determine whether the virtual private resource pool was actively requested to be released by the user. If so, proceed to step 1102; otherwise, proceed to step 1105.

[0093] Step 1102: Determine whether all resources in the virtual private resource pool have been used by the VM. If yes, proceed to step 1107; otherwise, proceed to step 1103.

[0094] Step 1103: Determine whether the resource utilization rate in the virtual private resource pool exceeds x% during the lifecycle of the virtual private resource pool. If yes, proceed to step 1107; otherwise, proceed to step 1104.

[0095] Step 1104: Determine whether the lifecycle of the virtual private resource pool has exceeded z%. If yes, proceed to step 1108; otherwise, proceed to step 1107.

[0096] Step 1105: Determine whether all resources in the virtual private resource pool have been used by the VM. If yes, proceed to step 1107; otherwise, proceed to step 1106.

[0097] Step 1106: Determine whether the resource utilization rate in the virtual private resource pool exceeds y% during the lifecycle of the virtual private resource pool. If yes, proceed to step 1107; otherwise, proceed to step 1108.

[0098] Step 1107: Determine if the user has fulfilled the contract.

[0099] Step 1108: Determine that the user has failed to show up.

[0100] In the process of determining user performance and breach of contract, the values ​​of x, y, and z can be set to different values ​​according to the strictness of the determination.

[0101] This application proposes a deterministic guarantee scheme for cloud computing resources. Based on a virtual private resource pool, it enables exclusive use of designated resources, achieving the goal of deterministic resource guarantee for users and improving their cloud usage experience. It also proposes a user fulfillment judgment mechanism. By collecting data on user usage of resources in the virtual private resource pool, it determines whether the user has fulfilled their obligations. The fulfillment rate affects the duration of the next deterministic resource guarantee, guiding users to use the virtual private resource pool more rationally and improving resource utilization.

[0102] Through the solutions implemented in this application, users can quickly and independently complete resource deterministic assurance when resources are scarce, providing excellent support for improving the user's cloud experience and service quality assurance. Furthermore, in the scenarios described in this application, when users require resource deterministic assurance, they can complete it independently without relying on cloud platform operation and maintenance intervention, effectively reducing the operation and maintenance costs of the cloud platform.

[0103] This application also proposes a resource protection device, which is applied to a cloud platform resource management system. Figure 12 This is a schematic diagram of the structure of a resource protection device provided in an embodiment of this application, as shown below. Figure 12 As shown, the device includes: The receiving unit 1201 is used to receive first information sent by the terminal. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines. The processing unit 1202 is configured to create a virtual private resource pool for the terminal based on the first information, create one or more first virtual pre-occupied instances in the virtual private resource pool that are the same size as one or more first virtual machines, establish an association between one or more first virtual machines and one or more first virtual pre-occupied instances, and establish an affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool and one or more first virtual pre-occupied instances.

[0104] In some embodiments, the receiving unit 1201 is further configured to receive second information sent by the terminal, the second information being used to request the release of one or more first virtual machines from the cloud platform resource management system.

[0105] In some embodiments, the processing unit 1202 is further configured to release one or more first virtual machines based on the second information, and lock the resources released by one or more first virtual pre-occupied instances using one or more first virtual pre-occupied instances.

[0106] In some embodiments, the receiving unit 1201 is further configured to receive third information sent by the terminal, the third information being used to request the creation of a second virtual machine from the cloud platform resource management system.

[0107] In some embodiments, the processing unit 1202 is further configured to determine whether the terminal has a virtual private resource pool based on the third information; if so, determine whether there are one or more second virtual pre-occupied instances that are not associated with a virtual machine in the virtual private resource pool; if so, determine whether there is a third virtual pre-occupied instance with the same size as the second virtual machine among the one or more second virtual pre-occupied instances; if so, select the third virtual pre-occupied instance and use the resources locked by the third virtual pre-occupied instance to create the second virtual machine, and establish an association between the second virtual machine and the third virtual pre-occupied instance.

[0108] In some embodiments, the receiving unit 1201 is further configured to receive fourth information sent by the terminal, the fourth information being used to request the release of the virtual private resource pool from the cloud platform resource management system.

[0109] Alternatively, in some embodiments, the device further includes: The acquisition unit is used to acquire the number of times the terminal fulfills its obligations and the number of times it fails to fulfill its obligations at preset intervals.

[0110] The determination unit is used to determine the usage time of the virtual private resource pool based on the number of times the agreement is fulfilled and the number of times the agreement is broken.

[0111] In some embodiments, the processing unit 1202 is further configured to check whether the usage time of the virtual private resource pool has reached a preset expiration time, and if so, automatically release the virtual private resource pool.

[0112] In some embodiments, the processing unit 1202 is further configured to traverse all virtual pre-occupied instances in the virtual private resource pool, determine whether there are one or more fourth virtual pre-occupied instances in the virtual private resource pool that are not associated with virtual machines; if so, reclaim the resources locked by one or more fourth virtual pre-occupied instances and delete one or more fourth virtual pre-occupied instances; otherwise, determine whether there are one or more fifth virtual pre-occupied instances in the virtual private resource pool that are associated with virtual machines; if so, remove the association between one or more fifth virtual pre-occupied instances and virtual machines and delete one or more fifth virtual pre-occupied instances; after deleting all virtual pre-occupied instances in the virtual private resource pool, delete the virtual private resource pool.

[0113] In some embodiments, the processing unit 1202 is further configured to, when the virtual private resource pool is released by the cloud platform resource management system at the request of the terminal, determine whether all resources in the virtual private resource pool have been used; if so, increment the terminal's fulfillment count by 1; otherwise, determine whether the resource utilization rate in the virtual private resource pool exceeds a first preset ratio within the lifecycle of the virtual private resource pool; if so, increment the terminal's fulfillment count by 1; otherwise, determine whether the lifecycle of the virtual private resource pool exceeds a second preset ratio; if so, increment the terminal's default count by 1; otherwise, increment the terminal's fulfillment count by 1; or... When the virtual private resource pool is automatically released by the cloud platform resource management system, determine whether all resources in the virtual private resource pool have been used; if so, increment the terminal's fulfillment count by 1; otherwise, determine whether the resource utilization rate in the virtual private resource pool exceeds the third preset ratio within the life cycle of the virtual private resource pool; if so, increment the terminal's fulfillment count by 1; otherwise, increment the terminal's default count by 1.

[0114] This application also proposes a resource protection device, which is applied to a terminal. Figure 13 This is a schematic diagram of another resource protection device provided in the embodiments of this application, as shown below. Figure 13 As shown, the device includes: The sending unit 1301 is used to send first information to the cloud platform resource management system. The first information is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines. Specifically, after the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances with the same size and specifications as one or more first virtual machines created by the cloud platform resource management system; the association between one or more first virtual machines and one or more first virtual pre-occupied instances is created by the cloud platform resource management system; the attribution relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and one or more first virtual pre-occupied instances is created by the cloud platform resource management system.

[0115] In some embodiments, the sending unit 1301 is further configured to send second information to the cloud platform resource management system, the second information being used to request the release of one or more first virtual machines from the cloud platform resource management system; Specifically, after one or more first virtual machines are released by the cloud platform resource management system based on the second information, the resources released by the one or more first virtual machines are locked by the cloud platform resource management system using one or more first virtual pre-occupied instances.

[0116] In some embodiments, the sending unit 1301 is further configured to send third information to the cloud platform resource management system, the third information being used to request the creation of a second virtual machine from the cloud platform resource management system.

[0117] In some embodiments, the sending unit 1301 is further configured to send fourth information to the cloud platform resource management system, the fourth information being used to request the release of the virtual private resource pool from the cloud platform resource management system.

[0118] Those skilled in the art should understand that Figure 12 , Figure 13 The functions of each unit in the communication device shown can be understood by referring to the relevant description of the aforementioned method. Figure 12 , Figure 13 The functions of each unit in the communication device shown can be implemented by a program running on a processor or by specific logic circuits.

[0119] Figure 14 This is a schematic diagram of the structure of the communication device provided in an embodiment of this application. The communication device may be a terminal device or a network device. Figure 14The communication device shown includes a processor 1401, which can call and run computer programs from memory to implement the methods in the embodiments of this application.

[0120] Optionally, such as Figure 14 As shown, the communication device may further include a memory 1402. The processor 1401 can retrieve and run computer programs from the memory 1402 to implement the methods described in this embodiment.

[0121] The memory 1402 can be a separate device independent of the processor 1401, or it can be integrated into the processor 1401.

[0122] Optionally, such as Figure 14 As shown, the communication device may also include a transceiver 1403, and the processor 1401 can control the transceiver 1403 to communicate with other devices. Specifically, it can send information or data to other devices or receive information or data sent by other devices.

[0123] The transceiver 1403 may include a transmitter and a receiver. The transceiver 1403 may further include an antenna, and the number of antennas may be one or more.

[0124] The communication device may specifically be the resource protection device in the embodiments of this application, and the communication device can implement the corresponding processes of the various methods in the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0125] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0126] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0127] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to the communication device in this application embodiment, and the computer program causes the computer to execute the corresponding processes of the various methods implemented in this application embodiment; for brevity, these will not be elaborated further here.

[0128] This application also provides a computer program product, including computer program instructions. This computer program product can be applied to the communication device in this application embodiment, and the computer program instructions cause the computer to execute the corresponding processes implemented by the various methods in this application embodiment; for brevity, these will not be elaborated further here.

[0129] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0130] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0131] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0132] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0133] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0134] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0135] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A resource security method, characterized in that, The method, applied to a cloud platform resource management system, includes: The receiving terminal sends first information, which is used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; Based on the first information, a virtual private resource pool is created for the terminal, and one or more first virtual pre-occupied instances with the same size and specifications as the one or more first virtual machines are created in the virtual private resource pool; Establish an association between the one or more first virtual machines and the one or more first virtual pre-occupied instances, and establish an attribution relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances.

2. The method according to claim 1, characterized in that, The method further includes: The system receives second information sent by the terminal, the second information being used to request the cloud platform resource management system to release the one or more first virtual machines; Based on the second information, the one or more first virtual machines are released, and the one or more first virtual pre-occupied instances are used to lock the resources released by the one or more first virtual machines.

3. The method according to claim 2, characterized in that, The method further includes: The system receives third information sent by the terminal, which is used to request the cloud platform resource management system to create a second virtual machine. Based on the third information, determine whether the terminal has the virtual private resource pool; if so, determine whether there are one or more second virtual pre-occupied instances in the virtual private resource pool that are not associated with a virtual machine; if so, determine whether there is a third virtual pre-occupied instance with the same size and specifications as the second virtual machine among the one or more second virtual pre-occupied instances; if so, select the third virtual pre-occupied instance and use the resources locked by the third virtual pre-occupied instance to create the second virtual machine, and establish an association between the second virtual machine and the third virtual pre-occupied instance.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: The system receives a fourth message sent by the terminal, the fourth message being used to request the release of the virtual private resource pool from the cloud platform resource management system; or... The system acquires the number of times the terminal fulfills its obligations and the number of times it fails to fulfill them at preset intervals, and determines the usage time of the virtual private resource pool based on the number of times the obligations are fulfilled and the number of times the obligations are failed. It then checks whether the usage time of the virtual private resource pool has reached the preset expiration time, and if so, automatically releases the virtual private resource pool.

5. The method according to claim 4, characterized in that, The method further includes: Traverse all virtual pre-occupied instances in the virtual private resource pool, and determine whether there are one or more fourth virtual pre-occupied instances in the virtual private resource pool that are not associated with a virtual machine; if so, reclaim the resources locked by the one or more fourth virtual pre-occupied instances and delete the one or more fourth virtual pre-occupied instances; otherwise, determine whether there are one or more fifth virtual pre-occupied instances in the virtual private resource pool that are associated with a virtual machine; if so, remove the association between the one or more fifth virtual pre-occupied instances and the virtual machine and delete the one or more fifth virtual pre-occupied instances. After deleting all virtual pre-occupied instances in the virtual private resource pool, delete the virtual private resource pool.

6. The method according to claim 4, characterized in that, The method further includes: When the virtual private resource pool is released by the cloud platform resource management system upon active request from the terminal, it is determined whether all resources in the virtual private resource pool have been used; if so, the terminal's fulfillment count is incremented by 1; otherwise, it is determined whether the resource utilization rate in the virtual private resource pool exceeds a first preset ratio within the pool's lifecycle; if so, the terminal's fulfillment count is incremented by 1; otherwise, it is determined whether the virtual private resource pool's lifecycle exceeds a second preset ratio; if so, the terminal's default count is incremented by 1; otherwise, the terminal's fulfillment count is incremented by 1; or... When the virtual private resource pool is automatically released by the cloud platform resource management system, it is determined whether all resources in the virtual private resource pool have been used; if so, the number of fulfillments of the terminal is incremented by 1; otherwise, it is determined whether the resource utilization rate in the virtual private resource pool exceeds a third preset ratio during the life cycle of the virtual private resource pool; if so, the number of fulfillments of the terminal is incremented by 1; otherwise, the number of defaults of the terminal is incremented by 1.

7. A resource security method, characterized in that, Applied to a terminal, the method includes: Send first information to the cloud platform resource management system, the first information being used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; Wherein, after the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances created by the cloud platform resource management system with the same size and specifications as the one or more first virtual machines; the association between the one or more first virtual machines and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system; the affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system.

8. The method according to claim 7, characterized in that, The method further includes: Send a second message to the cloud platform resource management system, the second message being used to request the release of the one or more first virtual machines from the cloud platform resource management system; Wherein, after the one or more first virtual machines are released by the cloud platform resource management system based on the second information, the resources released by the one or more first virtual machines are locked by the cloud platform resource management system using the one or more first virtual pre-occupied instances.

9. The method according to claim 8, characterized in that, The method further includes: Send a third message to the cloud platform resource management system, the third message being used to request the creation of a second virtual machine from the cloud platform resource management system.

10. The method according to any one of claims 7 to 9, characterized in that, The method further includes: Send a fourth message to the cloud platform resource management system, the fourth message being used to request the release of the virtual private resource pool from the cloud platform resource management system.

11. A resource security device, characterized in that, The application cloud platform resource management system includes the following device: A receiving unit is used to receive first information sent by a terminal, the first information being used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; The processing unit is configured to create the virtual private resource pool for the terminal based on the first information, create one or more first virtual pre-occupied instances in the virtual private resource pool with the same size and specifications as the one or more first virtual machines, establish an association between the one or more first virtual machines and the one or more first virtual pre-occupied instances, and establish an affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances.

12. A resource security device, characterized in that, Application terminal, the device includes: The sending unit is used to send first information to the cloud platform resource management system, the first information being used to request the cloud platform resource management system to create a virtual private resource pool based on one or more first virtual machines; Wherein, after the virtual private resource pool is created by the cloud platform resource management system based on the first information, the virtual private resource pool includes one or more first virtual pre-occupied instances created by the cloud platform resource management system with the same size and specifications as the one or more first virtual machines; the association between the one or more first virtual machines and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system; the affiliation relationship between the target user identifier corresponding to the terminal, the virtual private resource pool, and the one or more first virtual pre-occupied instances is created by the cloud platform resource management system.

13. A communication device, characterized in that, include: A processor and a memory for storing a computer program, the processor for calling and running the computer program stored in the memory to perform the method as described in any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the method as described in any one of claims 1 to 10.

15. A computer program product, characterized in that, It includes computer program instructions that cause a computer to perform the method as described in any one of claims 1 to 10.