Disclosure of Invention
The technical problem to be solved by the invention is to provide a cloud resource processing method, a device and a storage medium, which can meet the requirements of limiting the expiration and arrearage behaviors of cloud computing resources in a private cloud scene, thereby achieving the purposes of reasonable utilization, resource application and expense application and automatic processing of invalid resources.
In order to solve the technical problem, in a first aspect, the present invention provides a cloud resource processing method, including:
the charging terminal sends a settlement request to the management server;
the management server responds to the settlement request, moves the expired resources meeting the transfer condition to a recycle bin, and returns a resource position information request to the charging terminal;
the charging terminal responds to the resource position information request and sends a resource limitation request to the management server;
the management server responds to the resource limiting request, filters out expired resources in a first buffer period in the recycle bin, and sends a resource limiting instruction to the base cloud;
And the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
Further, after the management server sends the resource limiting instruction, the management server monitors the resource state of the base cloud.
Preferably, the charging terminal sends a resource recovery request to the management server after sending the resource restriction request;
the management server responds to the resource recycling request, filters the first limited resource in the second buffer period and sends a resource recycling instruction to the base cloud;
and the base cloud executes resource recycling operation on the second limited resources outside the second buffer period according to the resource recycling instruction sent by the management server.
Further, after the management server sends the resource recycling instruction, the management server monitors the resource state of the base cloud.
Preferably, before the management server moves the expired resource meeting the transfer condition to the recycle bin, the method further comprises:
judging whether the resource is out of date, and setting the payment state of the resource to be out of date when the resource is out of date.
Further, the determining whether to expire includes:
And when the settlement period arrives, judging the resource as an expired resource when the effective period of the resource is not increased or funds and budget in an account are insufficient for payment.
Preferably, the moving the expired resource meeting the transfer condition to the recycle bin includes:
the management server judges whether the resource accords with the condition of transferring to a recycle bin according to the payment mode of the resource;
wherein the payment means of the resource includes prepaid and postpaid,
if the payment mode of the resource is prepayment, the management server directly moves the expired resource to a recycle bin;
if the payment mode of the resource is postpaid, the management server filters the expired resource in the third buffer period, allows the expired resource to continue to be used, and moves the expired resource outside the third buffer period to a recycle bin.
Further, when the second expired resource has an operation being executed, waiting for a next flow period to limit the second expired resource.
Preferably, after the first buffer period, the second buffer period and the third buffer period can all be used for recharging the expired resources, the management server sets the payment state of the expired resources to be normal, and moves the expired resources to a normal resource pool.
In a second aspect, the present invention provides a cloud resource processing method, including:
responding to a settlement request from a charging terminal, moving an expired resource meeting a transfer condition to a recycle bin, and returning a resource position information request to the charging terminal; the charging terminal is used for sending a resource limiting request according to the resource position information request;
responding to the resource limiting request, filtering out expired resources in a first buffer period in the recycle bin, and sending a resource limiting instruction to the base cloud; and the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
In a third aspect, the present invention provides a cloud resource processing apparatus, including:
the settlement request processing module is used for responding to a settlement request from the charging terminal, moving the expired resources meeting the transfer condition to the recycle bin and returning a resource position information request to the charging terminal; the charging terminal is used for sending a resource limiting request according to the resource position information request;
the resource limitation processing module is used for responding to the resource limitation request, filtering out expired resources in a first buffer period in the recycle bin and sending a resource limitation instruction to the base cloud; and the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
In a fourth aspect, the present invention provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of:
responding to a settlement request from a charging terminal, moving an expired resource meeting a transfer condition to a recycle bin, and returning a resource position information request to the charging terminal; the charging terminal is used for sending a resource limiting request according to the resource position information request;
responding to the resource limiting request, filtering out expired resources in a first buffer period in the recycle bin, and sending a resource limiting instruction to the base cloud; and the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
The embodiment of the invention has the following beneficial effects:
the invention provides a processing method for resource expiration in a private cloud environment, which flexibly processes the demands of different scenes on a recycle bin by reasonably utilizing the changes of resource states, payment states and resource positions; and the cloud resources are processed in different scenes through the recycle bin, so that the reasonable utilization of the resources is finally promoted.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present invention more apparent. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. Moreover, the terms "first," "second," and the like, are used to distinguish between similar objects and do not necessarily describe a particular order or precedence. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein.
The following explanation is made on the nouns involved in the present embodiment:
prepayment: the method has the advantages of paying in advance, purchasing resources in package years and package months, and being suitable for long-term and stable business.
Postpaid: the method is calculated according to the quantity, pays according to the actual use quantity and the use time, and is suitable for scenes in which the equipment requirement fluctuates greatly in an instant.
Settlement period: the fee is deducted at a fixed point in time.
And (3) recycling: the resources in the recovery station will have some usage restrictions and operational restrictions as opposed to the normal resource pool.
The basic cloud is used for carrying out resource scheduling and control on physical and virtual resources, is responsible for constructing a resource pool and defining the operation flow of resource operation and maintenance, and can provide necessary basic IT architecture services of computing resources, storage resources, network resources and the like.
The first expired resource refers to an expired resource which has been transferred to the recycle bin and is in the first buffer period, and because the expired resource is in the first buffer period, the expired resource is not limited, and is filtered out.
The second expired resource refers to an expired resource that has been transferred to the recycle bin and is not within the first buffer period, and because it is not within the first buffer period, a resource restriction operation is performed on the portion of the resource.
The first limiting resource refers to an expiration resource in a limiting state in the second buffering period, and because the expiration resource is in the second buffering period, the limiting processing is not performed on the expiration resource, and the expiration resource is filtered out.
The second constraint resource refers to an expired resource in a constraint state that is not in the second buffer period, and because it is not in the second buffer period, a resource reclamation operation is performed on the part of the resource.
In this embodiment, the judgment of the boundary of resource expiration is performed according to the following method:
When the settlement period comes, the effective period of the resource is not increased, or funds in the account and budget are insufficient for payment, the resource is judged to be an expired resource. The method provides the following conditional judgment for two different payment modes:
when the payment mode of the resource is prepaid, the resource is directly transferred to the recycling station when the settlement period arrives.
When the payment mode of the resource is postpaid, the resource is allowed to be used continuously when the settlement period comes, the resource is transferred to the recycling station after a certain time, and the user can recharge the compensation fee.
The resource entering the recycle bin, the present embodiment provides the following policies to restrict the use of the resource:
buffer period: the reservation time of the resource in the current state is allowed during which the state of the resource does not change any.
Resource limitation: further restrictions on resources, such as shutdown, off-grid, suspended, etc., may be configured for use according to policies.
Resource recovery: after the resource is subjected to the renewal operation, the resource returns to a normal resource pool, and the user can remove the restriction on the resource pool.
And (3) resource recovery: and finally destroying the resources.
Referring to fig. 2, the whole process of entering and processing the resource into the recycle bin is shown, and the determination of boundary condition is performed to determine whether the resource enters the recycle bin when the resource is settled. After entering the recycle bin, the resource is limited for use, and the background automatically initiates operations such as shutdown and the like. And finally, destroying the resources, wherein the background automatically destroys the resources and cannot recover the resources. Each stage of the flow has an optional buffering period that allows the resource to remain in the current state for a period of time during the current stage. For example, after a certain buffering period, the resource may enter the recycle bin, or after a certain buffering period, the resource may be restricted for use, etc. After the resource enters the recycle bin, the user can restore the resource to a normal resource pool through a renewal application.
The processing procedure of the recycle bin is operated by an independent flow engine, wherein flow nodes limiting the use of resources can be replaced at any time, and different limiting modes can be realized for different resources and different scenes.
Referring to fig. 3, the state change after the resource enters the recycle bin is shown:
1. the change of the resource position is moved from 'My resource' to the recycle bin, and the change can cause that a user cannot initiate management operation on the resource, such as restarting, switching on and switching off, expanding and contracting capacity and the like, by taking a virtual machine as an example.
2. The state of the resource is changed, and the running machine is started to be powered off by the background automatic monitoring task, so that the state is finally changed into the powered off state. Taking the virtual machine as an example, if the operation of the virtual machine is executing when entering the recycle bin, the background monitoring task waits for the virtual machine to reach a steady state, and then performs the next shutdown operation.
3. The payment status changes and the payment status of the resource changes from normal to expired.
In the recycling of the resources in the station, the user can apply for a renewal of the fee, and after the process is finished, the resources return to the normal resource pool, and the payment state is correspondingly changed, as shown in fig. 4.
Fig. 5 is a block diagram of a cloud resource processing system according to an embodiment of the present invention, where the cloud resource processing system includes at least one charging terminal, a management server, and a base cloud, where the at least one charging terminal communicates with the management server, and the base cloud communicates with the management server. When the settlement period arrives, the at least one charging terminal initiates a settlement call and sends a resource operation request to the management server; the management server receives the resource operation request, processes the received resource settlement request, and sends a corresponding instruction to the base cloud after the processing is completed; and the base cloud receives the instruction sent by the management server and executes corresponding operation.
Based on the cloud resource processing system shown in fig. 5, fig. 6 shows a signaling flow chart of the cloud resource processing method provided by the embodiment of the present invention, and in combination with fig. 5 and fig. 6, the signaling flow includes:
s601, the charging terminal initiates a settlement call and sends a settlement request to the management server.
Wherein, the charging terminal includes a processor and a memory, the memory is used for storing information of resources, and the resource information may include: resource identification, resource charging type, account balance information, resource metering information, charging start time and charging end time.
For example, the virtual machine starts up to send a piece of charging information, which includes basic information of the virtual machine, and the CPU, the memory, the stored usage information, and the time from the operation, that is, the time when charging starts. And when the virtual machine is shut down, a message for stopping charging is sent, wherein the message comprises the virtual machine basic information, the resource usage information and the operation time, namely the charging ending time.
S602, the management server receives the settlement request, judges whether the resource is out of date, and moves the out-of-date resource meeting the transfer condition to a recycle bin.
Further, the settlement request may include a resource identifier, a resource charging type, account balance information, resource metering information, a charging start time and a charging end time, and the management server may determine whether the resource is out of date according to each item of information in the settlement request. And if the management server judges that the resource is out of date, setting the payment state of the resource to be out of date. Wherein, whether the resource is expired can be judged by the following method: when the settlement period arrives, judging the resource as an expired resource when the effective period of the resource is not increased or funds and budget in an account are insufficient for payment.
Judging whether the resource meets the condition of transferring to a recycle bin according to the payment mode of the resource, wherein the payment mode of the resource comprises prepayment and postpayment, and if the payment mode of the resource is prepayment, directly transferring the overdue resource to the recycle bin; and if the payment mode of the resource is postpaid, filtering the expired resource in the third buffer period, allowing the part of the resource to be used continuously, and moving the expired resource outside the third buffer period to a recycle bin. It should be noted that the expired resources in the third buffer period may continue to be used before moving to the recycle bin, and that use of the portion of the resources is to continue the deduction.
S603, the management server sends the resource position change information to the charging terminal.
The resource location change information includes that an eligible expired resource has been moved to a recycle bin.
S604, the charging terminal sends a resource limitation request to the management server.
S605, the management server receives the resource limiting request and filters first expired resources in a first buffer period in the recycle bin.
If the second expired resource outside the first buffer period has an operation being executed, the management server firstly filters the expired resource being operated, avoids conflict among the operations, and waits for the next flow period to send the resource limiting instruction to the part of the resources.
S606, the management server sends a resource limiting instruction to the base cloud.
The instruction comprises an operation mode and an operation object, wherein the operation mode refers to what operation is executed, and the operation object refers to which part of resources are executed with the operation.
S607, the base cloud receives the resource limiting instruction and executes the resource limiting operation, and executes the resource limiting operation on the second outdated resource which is outside the first buffering period.
Further, when the base cloud receives the instruction sent by the management server, the base cloud firstly analyzes the instruction to obtain the identification of the operation object, and executes corresponding operation according to the resource corresponding to the identification.
S608, the management server monitors the resource state of the base cloud to judge whether the base cloud completes the operation of resource limitation.
S609, the charging terminal sends a resource recovery request to the management server.
S610, the management server receives the resource recycling request and filters the first limited resources in the second buffer period.
S611, the management server sends a resource recycling instruction to the base cloud.
S612, the base cloud receives the resource recycling instruction and executes the resource recycling operation, and executes the resource recycling operation on the second limited resource which is outside the second buffering period.
S613, the management server monitors the resource state of the base cloud to judge whether the base cloud completes the operation of resource recovery.
It should be noted that, in the first buffer period, the second buffer period, and the third buffer period, the user may recharge the expired resource, and after recharging is completed, the management server sets the payment status of the expired resource to be normal, and moves the expired resource to a normal resource pool.
Taking the metering as an example to illustrate the cloud resource processing method, please refer to fig. 7, which shows an interface interaction diagram of the user in the actual operation process, the metering is used as a flexible charging mode, the resources can be opened/destroyed at any time, the payment is carried out according to the actual usage amount of the resources, the charging time granularity is accurate to seconds, and the settlement is carried out every hour.
(1) The cloud host charges according to the quantity and comprises a CPU, a memory and a data disk. I.e. the price per hour of the cloud host = CPU price + memory price + data disc price, the cloud host deducts the fee per hour at a fixed price.
(2) Network per-volume charging includes per-bandwidth charging and per-usage flow charging, with network charges being calculated separately.
When the volume-based charging cloud host is opened, the host cost (comprising a CPU, a memory and a data disk) of the host is pre-frozen for one hour, settlement is carried out at each whole point (Beijing time), and fee deduction is carried out according to the actual use time of the host of the last hour of the user. The unit price of the host computer is presented in hours during purchase, and the price is calculated in actual use seconds during settlement.
The starting point of charging is based on the time point of successful creation of the cloud host, and the end point is based on the time point of the user initiating the destruction operation.
The host cost is frozen for one hour when the volume-based charging host is created; when the configuration is adjusted to the metering host, the frozen expense is unfrozen when buying, and the price is frozen again according to the new configuration; when the host is destroyed, the frozen expense is thawed.
The system estimates the supportable time of the balance according to the consumption condition of the pay-per-view resources for 24 hours and the account balance condition under the user name every day. If the supportable time is less than 5 days, the system will push a balance early warning to the user. The early warning message is notified to the creator of the cloud account and all collaborators in a mail and short message mode.
Deducting fees according to each whole point of the volume charging resource, and informing the creator of the account and all collaborators by means of mail and short messages when the account is deducted to be negative.
From the time the balance is deducted to be negative, the payment state of the resource is set to be out of date, and the cloud host can continue to use and continue to deduct fees within 7 days, for example, the user does not perform the fee renewal operation within 7 days, and after 7 days, the part of the resource is moved to the recycling station and fee deduction is stopped.
The resource moves to the recycle bin for 2 days, and if the account balance of the user is not recharged to be more than 0, the operation function of the resource is partially limited; if the balance is greater than 0, the charging state of the resource is set to be normal, charging is continued, and the resource returns to the normal resource pool from the recycle bin.
When the resource moves to the recycle bin for 2 days, if the account balance of the user is not recharged to be more than 0, further limiting operation such as shutdown, suspension and the like is carried out on the resource; if the balance is greater than 0, the charging state of the resource is set to be normal, charging is continued, and the resource returns to the normal resource pool from the recycle bin.
After automatic shutdown, the balance is smaller than 0 within 24 hours, if the balance is larger than 0 after recharging, the charging state of the resource is set to be normal, charging is continued, and the resource returns to a normal resource pool from the recycle bin. If the balance is less than 0 and reaches 24 hours, the metering resources are recovered, all data are cleaned and cannot be recovered.
When the resources are recovered, the system informs the creator of the account and all collaborators in a mail and short message mode.
Referring to fig. 8, a cloud resource processing method provided by an embodiment of the present invention includes:
S801, responding to a settlement request from a charging terminal, moving an expired resource meeting a transfer condition to a recycle bin, and returning a resource position information request to the charging terminal; and the charging terminal is used for sending a resource limiting request according to the resource position information request.
S802, responding to the resource limiting request, filtering a first outdated resource in a first buffer period in the recycle bin, and sending a resource limiting instruction to the base cloud; and the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
Wherein, after the charging terminal sends the resource limiting request, the charging terminal sends a resource recycling request; responding to the resource recycling request, filtering a first limited resource in a second buffer period, and sending a resource recycling instruction to the base cloud; and the base cloud executes resource recycling operation on the second limited resource which is outside the second buffer period according to the resource recycling instruction.
The detailed steps can be seen in fig. 9, including:
and S901, the management server receives a settlement request sent by the charging terminal.
S902, the management server judges whether the resources are out of date.
When the settlement period comes, judging that the resource is an expired resource and setting the payment state of the resource to be expired when the effective period of the resource is not increased or funds and budget in an account are insufficient for payment.
And if the resource is judged not to be expired, filtering the non-expired resource, and waiting for the next settlement period to be judged.
S903, the management server judges whether the expired resource meets the condition of transferring to the recycle bin.
Further, judging whether the resource meets the condition of transferring to a recycle bin according to the payment mode of the resource;
wherein the payment means of the resource includes prepaid and postpaid,
if the payment mode of the resource is prepayment, directly moving the expired resource to a recycling station;
if the payment mode of the resource is postpaid, filtering the expired resource in the third buffer period, allowing the expired resource to continue to be used, and moving the residual expired resource to a recycling station.
S904, the management server transfers the expired resources meeting the conditions to the recycle bin.
When the expired resources meeting the transfer conditions are transferred to the recycle bin, the management server sends resource position change information to the charging terminal, wherein the position change information comprises that the expired resources meeting the transfer conditions are moved to the recycle bin.
S905, the management server receives a resource limitation request sent by the charging terminal.
S906, the management server filters first expired resources in a first buffer period in the recycle bin, and sends a resource limiting instruction to the base cloud, so that the base cloud executes resource limiting operation on second expired resources in the first buffer period.
And if the second expired resource has an operation being executed, the management server filters the second expired resource first and waits for the next flow period to limit the second expired resource.
After sending the resource restriction instruction to the base cloud, the method further comprises:
and monitoring the resource state of the base cloud, and judging whether the base cloud completes the resource limiting operation.
S907, the management server receives a resource recovery request sent by the charging terminal.
S908, the management server filters the first limited resources in the second buffer period and sends a resource recycling instruction to the base cloud, so that the base cloud performs resource recycling operation on the second limited resources outside the second buffer period.
After sending the resource recycling instruction to the base cloud, the method further comprises the following steps: and monitoring the resource state of the base cloud, and judging whether the base cloud completes the resource recovery operation.
And after the user can recharge the expired resources in the first buffer period, the second buffer period and the third buffer period, the management server sets the payment state of the expired resources to be normal and moves the expired resources to a normal resource pool.
Referring to fig. 10, a cloud resource processing device provided by an embodiment of the present invention includes a settlement request processing module 1010, a resource limitation processing module 1020, and a resource recycling processing module 1030.
The settlement request processing module 1010 is configured to respond to a settlement request from a charging terminal, move an expired resource meeting a transfer condition to a recycle bin, and return a resource location information request to the charging terminal; and the charging terminal is used for sending a resource limiting request according to the resource position information request.
The settlement request processing module 1010 includes a condition judgment module 1011 that judges whether the resource meets a condition for transferring to a recycle bin according to a payment manner of the resource;
wherein the payment means of the resource includes prepaid and postpaid,
if the payment mode of the resource is prepayment, directly moving the expired resource to a recycling station;
If the payment mode of the resource is postpaid, filtering the expired resource in the third buffer period, allowing the expired resource to continue to be used, and moving the third residual expired resource to a recycle bin.
The resource limitation processing module 1020 is configured to respond to the resource limitation request, filter out expired resources in the first buffer period in the recycle bin, and send a resource limitation instruction to the base cloud; and the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
The resource limitation processing module 1020 includes a waiting module 1021 for waiting for a next flow period to limit the second expired resource when the second expired resource outside the first buffer period has an operation executing.
The resource limitation processing module 1020 further includes a first monitoring module 1022 configured to monitor a state of the base cloud, and determine whether the base cloud has completed the resource limitation operation.
The resource recycling processing module 1030 is configured to respond to the resource recycling request, filter the first limiting resource in the second buffering period, and send a resource recycling instruction to the base cloud; and the base cloud executes resource recycling operation on the second limited resource which is outside the second buffer period according to the resource recycling instruction.
Further, the resource recycling module 1030 further includes a second monitoring module 1031, where the second monitoring module 1031 is configured to monitor a state of the base cloud, and determine whether the base cloud has completed the resource recycling operation.
It should be noted that, the two modules, i.e., the first monitoring module 1022 and the second monitoring module 1031, in the above apparatus may be respectively configured as two independent monitoring modules, so as to monitor the state of the cloud resource after the base cloud performs the corresponding operation; the system can also be set into an integral module and is responsible for monitoring the status of integral cloud resources.
The embodiment of the invention also provides a cloud resource processing system, the structure of which is shown in fig. 11, the system comprises a charging terminal 1110, a management server 1120 and a base cloud 1130,
the billing terminal 1110 transmits a settlement request to the management server 1120;
the management server 1120 moves the expired resources meeting the transfer condition to a recycle bin in response to the settlement request, and returns a resource location information request to the billing terminal 1110;
the charging terminal 1110 transmits a resource restriction request to the management server 1120 in response to the resource location information request;
The management server 1120 responds to the resource limitation request, filters out expired resources in the first buffer period in the recycle bin, and sends a resource limitation instruction to the base cloud 1130;
the base cloud 1130 performs a resource limitation operation on a second expired resource that is outside of the first buffer period according to the resource limitation instruction sent by the management server 1120.
The charging terminal includes a settlement request transmission module 1111, a resource restriction request transmission module 1112, and a resource reclamation request transmission module 1113.
The management server 1120 includes an apparatus of the present embodiment, including a settlement request processing module 1010, a resource restriction processing module 1020, and a resource recycling processing module 1030.
The base cloud 1130 includes a resource restriction execution module 1131 and a resource reclamation execution module 1132.
The embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executed by the processor, where the specific execution process may refer to the specific description of the embodiment shown in fig. 8 and 9, and details are not repeated herein.
The embodiment of the invention also provides a server, which comprises the cloud resource processing device. Referring to fig. 12, the server further includes a processor 1201, a memory 1202, a network interface 1203, and a communication bus 1204, where the number of processors 1201 in the server may be one or more, and the communication bus 1204 is used to implement connection communication between these components. The network interface 1203 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others. The memory 1202 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1202 may also optionally be at least one storage device located remotely from the processor 1201. As shown in fig. 12, an operating system, a network communication module, and an application state acquisition application program may be included in a memory 1202 as one type of computer storage medium.
In the server 1200 shown in fig. 12, a memory 1202 is used to store a software program, thereby executing various functional applications and data processing of the server 1200. In a specific implementation process, the processor 1201 loads executable files corresponding to processes of one or more application programs into the memory 1202 according to instructions, and the processor 1201 executes the application programs stored in the memory 1202, thereby implementing various functions. The processor 1201 may be used to invoke the applications stored in the memory 1202 and specifically perform the following operations:
Responding to a settlement request from a charging terminal, moving an expired resource meeting a transfer condition to a recycle bin, and returning a resource position information request to the charging terminal; the charging terminal is used for sending a resource limiting request according to the resource position information request;
responding to the resource limiting request, filtering a first outdated resource in a first buffer period in the recycle bin, and sending a resource limiting instruction to the base cloud; and the base cloud executes resource limiting operation on the second outdated resource which is outside the first buffer period according to the resource limiting instruction.
According to the embodiment of the invention, the cloud resources under various scenes are processed through the recovery flow with the buffer period and through the changes of the resource state, the payment state and the resource position.
The structures shown in this embodiment are only partial structures related to the present application and do not constitute limitations of the apparatus to which the present application is applied, and a specific apparatus may include more or less components than those shown, or may combine some components, or may have different arrangements of components.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing disclosure is merely illustrative of the preferred embodiments of the present invention and is not intended to limit the scope of the claims herein, as equivalent changes may be made in the claims herein without departing from the scope of the invention.