Search

CN-122019052-A - Resource guarantee method, device, equipment, medium and program product

CN122019052ACN 122019052 ACN122019052 ACN 122019052ACN-122019052-A

Abstract

The application discloses a resource guarantee method, a device, equipment, a storage medium and a program product, wherein the method comprises the steps of receiving first information sent by a terminal, requesting to 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, creating one or more first virtual pre-occupying examples with the same specification size as the one or more first virtual machines in the virtual private resource pool, establishing an association relation between the one or more first virtual machines and the one or more first virtual pre-occupying examples, and establishing a attribution relation among a target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-occupying examples.

Inventors

  • LIANG YIQING

Assignees

  • 中移(苏州)软件技术有限公司
  • 中国移动通信集团有限公司

Dates

Publication Date
20260512
Application Date
20260127

Claims (15)

  1. 1. The resource guarantee method is characterized by being applied to a cloud platform resource management and control system, and comprises the following steps: Receiving first information sent by a terminal, wherein the first information is used for requesting the 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 pre-emption instances with the same specification size as the one or more first virtual machines in the virtual private resource pool; and establishing an association relation between the one or more first virtual machines and the one or more first virtual pre-emption instances, and establishing a attribution relation among the target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances.
  2. 2. The method according to claim 1, wherein the method further comprises: Receiving second information sent by the terminal, wherein the second information is used for requesting the cloud platform resource management and control system to release the one or more first virtual machines; and releasing the one or more first virtual machines based on the second information, and locking resources released by the one or more first virtual machines by using the one or more first virtual pre-emption instances.
  3. 3. The method according to claim 2, wherein the method further comprises: receiving third information sent by the terminal, wherein the third information is used for requesting the cloud platform resource management and control system to create a second virtual machine; Judging whether the terminal has the virtual private resource pool or not based on the third information, judging whether the virtual private resource pool has one or more second virtual pre-emption instances of unassociated virtual machines or not if so, judging whether the one or more second virtual pre-emption instances have a third virtual pre-emption instance with the same specification size as the second virtual machine or not, if so, selecting the third virtual pre-emption instance, creating the second virtual machine by using the resources locked by the third virtual pre-emption instance, and establishing an association relationship between the second virtual machine and the third virtual pre-emption instance.
  4. 4. A method according to any one of claims 1 to 3, further comprising: receiving fourth information sent by the terminal, wherein the fourth information is used for requesting the cloud platform resource management and control system to release the virtual private resource pool, or Acquiring the times of performing and losing the contract of the terminal every preset period, determining the service time of the virtual private resource pool based on the times of performing and losing the contract, checking whether the service time of the virtual private resource pool reaches the preset expiration time, and if so, automatically releasing the virtual private resource pool.
  5. 5. The method according to claim 4, wherein the method further comprises: Traversing all virtual pre-emption examples in the virtual private resource pool, judging whether one or more fourth virtual pre-emption examples of unassociated virtual machines exist in the virtual private resource pool, if so, recovering the resources locked by the one or more fourth virtual pre-emption examples and deleting the one or more fourth virtual pre-emption examples, otherwise, judging whether one or more fifth virtual pre-emption examples of the associated virtual machines exist in the virtual private resource pool, and if so, releasing the association relation between the one or more fifth virtual pre-emption examples and the virtual machines and deleting the one or more fifth virtual pre-emption examples; And deleting the virtual private resource pool after deleting all virtual pre-occupied instances in the virtual private resource pool.
  6. 6. The method according to claim 4, wherein the method further comprises: Judging whether the resources in the virtual private resource pool are all used under the condition that the virtual private resource pool is actively requested by the terminal to release by the cloud platform resource management and control system, if yes, adding 1 to the number of times of performing the terminal, otherwise judging whether the utilization rate of the resources in the virtual private resource pool exceeds a first preset proportion in the life cycle of the virtual private resource pool, if yes, adding 1 to the number of times of performing the terminal, otherwise judging whether the life cycle of the virtual private resource pool exceeds a second preset proportion, if yes, adding 1 to the number of times of losing the terminal, otherwise adding 1 to the number of times of performing the terminal, or Judging whether resources in the virtual private resource pool are used or not under the condition that the virtual private resource pool is automatically released by the cloud platform resource management and control system, if yes, adding 1 to the number of times of performing the terminal, otherwise, judging whether the utilization rate of the resources in the virtual private resource pool exceeds a third preset proportion in the life cycle of the virtual private resource pool, if yes, adding 1 to the number of times of performing the terminal, otherwise, adding 1 to the number of times of losing the terminal.
  7. 7. A resource securing method, applied to a terminal, the method comprising: The method comprises the steps of sending first information to a cloud platform resource management and control system, wherein the first information is used for requesting the cloud platform resource management and control system to create a virtual private resource pool based on one or more first virtual machines; The cloud platform resource management and control system establishes an association relationship between one or more first virtual machines and one or more first virtual pre-emption instances, establishes a target user identifier corresponding to the terminal, establishes an attribution relationship between the virtual private resource pool and the one or more first virtual pre-emption instances, and establishes the association relationship between the target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances.
  8. 8. The method of claim 7, wherein the method further comprises: sending second information to the cloud platform resource management and control system, wherein the second information is used for requesting the cloud platform resource management and control system to release the one or more first virtual machines; After the one or more first virtual machines are released by the cloud platform resource management and control 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 and control system by using the one or more first virtual pre-emption instances.
  9. 9. The method of claim 8, wherein the method further comprises: and sending third information to the cloud platform resource management and control system, wherein the third information is used for requesting the cloud platform resource management and control system to create a second virtual machine.
  10. 10. The method according to any one of claims 7 to 9, further comprising: And sending fourth information to the cloud platform resource management and control system, wherein the fourth information is used for requesting the cloud platform resource management and control system to release the virtual private resource pool.
  11. 11. A resource provisioning apparatus, wherein a cloud platform resource management and control system is applied, the apparatus comprising: The cloud platform resource management and control system comprises a receiving unit, a first information processing unit and a second information processing unit, wherein the receiving unit is used for receiving first information sent by a terminal, and the first information is used for requesting the cloud platform resource management and control system to create a virtual private resource pool based on one or more first virtual machines; The processing unit is used for creating the virtual private resource pool for the terminal based on the first information, creating one or more first virtual pre-emption instances with the same specification size as the one or more first virtual machines in the virtual private resource pool, establishing an association relationship between the one or more first virtual machines and the one or more first virtual pre-emption instances, and establishing a attribution relationship among a target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances.
  12. 12. A resource securing apparatus, characterized by an application terminal, comprising: The cloud platform resource management and control system comprises a sending unit, a cloud platform resource management and control system and a virtual private resource pool creation unit, wherein the sending unit is used for sending first information to the cloud platform resource management and control system, and the first information is used for requesting the cloud platform resource management and control system to create the virtual private resource pool based on one or more first virtual machines; The cloud platform resource management and control system establishes an association relationship between one or more first virtual machines and one or more first virtual pre-emption instances, establishes a target user identifier corresponding to the terminal, establishes an attribution relationship between the virtual private resource pool and the one or more first virtual pre-emption instances, and establishes the association relationship between the target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances.
  13. 13. A communication device comprising a processor and a memory for storing a computer program, the processor being adapted to invoke and execute the computer program stored in the memory for performing the method according to any of claims 1 to 10.
  14. 14. A computer readable storage medium storing a computer program for causing a computer to perform the method of any one of claims 1 to 10.
  15. 15. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 10.

Description

Resource guarantee method, device, equipment, medium and program product Technical Field The present application relates to the field of cloud computing technologies, and in particular, to a resource guarantee method, device, apparatus, storage medium, and program product. Background With the continuous development of cloud computing technology, more and more enterprises and users choose to deploy services on a cloud platform to obtain higher stability, lower cost and more flexible resource acquisition capability. In order to meet the sudden demands of users, the cloud platform usually reserves a certain amount of idle resources in the resource pool, but due to limited resources and consideration of return on investment, it is difficult to maintain a large amount of idle for a long time. In the related art, when a user applies for a request again after temporarily releasing resources due to service adjustment, the user usually actively contacts with a cloud platform operator to assist in operation, and the resource priority acquisition is ensured by closing the resource selling mode, setting a white list and other modes. However, this method relies on manual intervention, is cumbersome and time consuming, and can affect the normal use of other users, with the risk of configuration errors. Disclosure of Invention In order to solve the technical problems, embodiments of the present application provide a resource guarantee method, a device, an apparatus, a storage medium, and a program product. The resource guarantee method provided by the embodiment of the application is applied to a cloud platform resource management and control system and comprises the following steps: Receiving first information sent by a terminal, wherein the first information is used for requesting the 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 pre-emption instances with the same specification size as the one or more first virtual machines in the virtual private resource pool; and establishing an association relation between the one or more first virtual machines and the one or more first virtual pre-emption instances, and establishing a attribution relation among the target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances. The resource guarantee method provided by the embodiment of the application is applied to the terminal and comprises the following steps: The method comprises the steps of sending first information to a cloud platform resource management and control system, wherein the first information is used for requesting the cloud platform resource management and control system to create a virtual private resource pool based on one or more first virtual machines; The cloud platform resource management and control system establishes an association relationship between one or more first virtual machines and one or more first virtual pre-emption instances, establishes a target user identifier corresponding to the terminal, establishes an attribution relationship between the virtual private resource pool and the one or more first virtual pre-emption instances, and establishes the association relationship between the target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances. The resource guarantee device provided by the embodiment of the application is applied to a cloud platform resource management and control system and comprises the following components: The cloud platform resource management and control system comprises a receiving unit, a first information processing unit and a second information processing unit, wherein the receiving unit is used for receiving first information sent by a terminal, and the first information is used for requesting the cloud platform resource management and control system to create a virtual private resource pool based on one or more first virtual machines; The processing unit is used for creating the virtual private resource pool for the terminal based on the first information, creating one or more first virtual pre-emption instances with the same specification size as the one or more first virtual machines in the virtual private resource pool, establishing an association relationship between the one or more first virtual machines and the one or more first virtual pre-emption instances, and establishing a attribution relationship among a target user identifier corresponding to the terminal, the virtual private resource pool and the one or more first virtual pre-emption instances. The resource guarantee device provided by the embodiment of the application is applied to a terminal and comprises the follo