CN112181590A - Method, device and equipment for deleting resources in cloud platform and readable storage medium - Google Patents

Method, device and equipment for deleting resources in cloud platform and readable storage medium Download PDF

Info

Publication number
CN112181590A
CN112181590A CN202011024370.0A CN202011024370A CN112181590A CN 112181590 A CN112181590 A CN 112181590A CN 202011024370 A CN202011024370 A CN 202011024370A CN 112181590 A CN112181590 A CN 112181590A
Authority
CN
China
Prior art keywords
resource
deletion
cloud platform
deleting
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011024370.0A
Other languages
Chinese (zh)
Inventor
吴江
王昊
高泽旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202011024370.0A priority Critical patent/CN112181590A/en
Publication of CN112181590A publication Critical patent/CN112181590A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a device and equipment for deleting resources in a cloud platform and a readable storage medium. The method comprises the following steps: determining a master resource to be deleted, and determining a target slave resource to be deleted from slave resources associated with the master resource; determining a target deleting mode according to a deleting mode selecting strategy; and deleting the master resource and the target slave resource based on the target deletion mode. According to the method and the device, the target slave resource related to the master resource to be deleted is automatically determined based on the master resource to be deleted, and the master resource and the target slave resource are deleted by automatically selecting a deleting mode. The user operation is simplified, the phenomenon that the follow resource is left due to the fact that the follow resource is omitted is avoided, the information leakage event is caused, and the information protection force is improved.

Description

Method, device and equipment for deleting resources in cloud platform and readable storage medium
Technical Field
The invention belongs to the technical field of cloud platform management, and particularly relates to a method, a device, equipment and a readable storage medium for deleting resources in a cloud platform.
Background
With the maturity of the cloud technical scheme, the cloud platform is more and more widely applied to various fields, and a large number of business systems are transplanted to the cloud platform to provide services. But at the same time it also poses a new set of security threats and challenges. As more and more data enters the cloud, and particularly public cloud services, these resources fall under the goal of cyber criminals in nature. With the rapid increase in cloud rates, it is inevitable that more sensitive content will be placed in potential risk threats. The security problem gradually becomes the key for enterprises to develop cloud computing services. In recent years, security events which occur successively by mainstream cloud service providers in the industry expose a plurality of hidden dangers of cloud computing application security in service availability, content security and privacy protection. Information leakage events caused by malicious acquisition of residual resources also tend to increase year by year.
Various resource objects (such as virtual machines, persistent volumes, images and the like) in the traditional cloud platform are generally classified and managed by different components (such as computing components, block storage components, image management services and the like). If a user wants to completely release resources, the user often needs to manually call interfaces of all the components of the cloud platform to delete the components one by one, so that the omission is easy to occur, the resources are remained, and the risk of information leakage exists.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for deleting resources in a cloud platform and a readable storage medium, and aims to solve the technical problem that in the prior art, when the resources in the cloud platform are released, omission easily occurs.
In a first aspect, the present invention provides a method for deleting resources in a cloud platform, where the method for deleting resources in the cloud platform includes:
determining a master resource to be deleted, and determining a target slave resource to be deleted from slave resources associated with the master resource;
determining a target deleting mode according to a deleting mode selecting strategy;
and deleting the master resource and the target slave resource based on the target deletion mode.
Optionally, the step of determining a master resource to be deleted and determining a target slave resource to be deleted from slave resources associated with the master resource includes:
receiving a selection instruction, and determining a main resource to be deleted based on the selection instruction;
when the main resource is a virtual machine, searching for an unshared volume from the volumes associated with the virtual machine, and searching for a volume snapshot associated with the unshared volume;
searching virtual machine snapshots which are not in a protection state from the virtual machine snapshots associated with the virtual machine;
and taking the unshared volume, the volume snapshot associated with the unshared volume and the virtual machine snapshot which is not in a protection state as target slave resources to be deleted.
Optionally, the step of determining a target deletion mode according to the deletion mode selection policy includes:
detecting whether delayed deletion is enabled;
and if the deferred deletion is started, determining that the target deletion mode is deferred deletion, wherein the deferred deletion is to firstly carry out rapid deletion, and then carry out full deletion when a specified time period or the cloud platform system is in an idle state, wherein the rapid deletion is to carry out the rewriting on partial data of the storage medium, the full deletion is to carry out the rewriting on all data of the storage medium, and the storage medium is used for storing the data corresponding to the main resource and the target slave resource.
Optionally, after the step of detecting whether to enable deferred deletion, the method further includes:
if the deferred deletion is not started, detecting whether the data sizes corresponding to the main resource and the target slave resource are larger than a first threshold value;
and if the target deletion mode is larger than the first threshold, determining that the target deletion mode is quick deletion.
Optionally, after the step of detecting whether the data sizes corresponding to the master resource and the target slave resource are greater than a first threshold, the method further includes:
if the current time is not greater than the first threshold value, detecting whether the cloud platform system is in an idle state;
and if the cloud platform system is in an idle state, determining that the target deleting mode is full deleting.
Optionally, after the step of detecting whether the cloud platform system is in an idle state, the method further includes:
and if the cloud platform system is not in an idle state, determining that the target deleting mode is quick deleting.
Optionally, the step of detecting whether the cloud platform system is in an idle state includes:
detecting whether the current task number of the cloud platform system is larger than a second threshold value;
if the value is larger than the second threshold value, determining that the cloud platform system is not in an idle state;
and if the current time is not greater than the second threshold, determining that the cloud platform system is in an idle state.
In a second aspect, the present invention further provides a device for deleting resources in a cloud platform, where the device for deleting resources in the cloud platform includes:
the device comprises a first determining module, a second determining module and a judging module, wherein the first determining module is used for determining a master resource to be deleted and determining a target slave resource to be deleted from slave resources related to the master resource;
the second determining module is used for selecting a strategy according to the deleting mode and determining a target deleting mode;
and the deleting module is used for deleting the main resource and the target slave resource based on the target deleting mode.
In a third aspect, the present invention further provides a device for deleting resources in a cloud platform, where the device for deleting resources in a cloud platform includes a processor, a memory, and a program for deleting resources in a cloud platform, which is stored in the memory and can be executed by the processor, and when the program for deleting resources in a cloud platform is executed by the processor, the method for deleting resources in a cloud platform as described above is implemented.
In a fourth aspect, the present invention further provides a readable storage medium, where the readable storage medium stores a resource deletion program in a cloud platform, where the resource deletion program in the cloud platform, when executed by a processor, implements the steps of the method for deleting resources in the cloud platform as described above.
In the invention, a master resource to be deleted is determined, and a target slave resource to be deleted is determined from slave resources associated with the master resource; determining a target deleting mode according to a deleting mode selecting strategy; and deleting the master resource and the target slave resource based on the target deletion mode. According to the method and the device, the target slave resource related to the master resource to be deleted is automatically determined based on the master resource to be deleted, and the master resource and the target slave resource are deleted by automatically selecting a deleting mode. The user operation is simplified, the phenomenon that the follow resource is left due to the fact that the follow resource is omitted is avoided, the information leakage event is caused, and the information protection force is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a resource deletion device in a cloud platform according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for deleting resources in a cloud platform according to the present invention;
fig. 3 is a schematic diagram of functional modules of an embodiment of a resource deletion apparatus in a cloud platform.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides a device for deleting resources in a cloud platform.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a resource deletion device in a cloud platform according to an embodiment of the present invention. In this embodiment of the present invention, the resource deletion device in the cloud platform may include a processor 1001 (for example, a central processing unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and optionally, the memory 1005 may also be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an in-cloud-platform resource deletion program. The processor 1001 may call a resource deletion program in the cloud platform stored in the memory 1005, and execute the method for deleting the resource in the cloud platform according to the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for deleting resources in a cloud platform.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an embodiment of a method for deleting resources in a cloud platform according to the present invention. As shown in fig. 2, the method for deleting resources in the cloud platform includes:
step S10, determining a master resource to be deleted, and determining a target slave resource to be deleted from the slave resources associated with the master resource;
in this embodiment, the association relationship between the master resource and the slave resource associated therewith on the cloud platform is recorded in advance. Taking the master resource as virtual machine 1 as an example, if the volumes mounted by virtual machine 1 include volume 1, volume 2, and volume 3, where volume 1 and volume 2 are associated with volume snapshot 1 and volume snapshot 2, respectively, and virtual machine 1 is also associated with virtual machine snapshot 1, the slave resource associated with virtual machine 1 includes: volume 1, volume 2, volume 3, volume snapshot 1, volume snapshot 2, and virtual machine snapshot 1, virtual machine snapshot 2. If the main resource to be deleted is determined to be the virtual machine 1, determining target slave resources to be deleted from the volume 1, the volume 2, the volume 3, the volume snapshot 1, the volume snapshot 2, the virtual machine snapshot 1 and the virtual machine snapshot 2.
Further, in one embodiment, step S10 includes:
receiving a selection instruction, and determining a main resource to be deleted based on the selection instruction; when the main resource is a virtual machine, searching for an unshared volume from the volumes associated with the virtual machine, and searching for a volume snapshot associated with the unshared volume; searching virtual machine snapshots which are not in a protection state from the virtual machine snapshots associated with the virtual machine; and taking the unshared volume, the volume snapshot associated with the unshared volume and the virtual machine snapshot which is not in a protection state as target slave resources to be deleted.
In this embodiment, a user selects a main resource to be deleted through an operation, and the execution main body of this embodiment receives a selection instruction triggered based on the user operation, and first determines the main resource to be deleted according to the selection instruction.
When the main resource is a virtual machine, for example, the main resource is the virtual machine 1 in the above embodiment, an unshared volume is searched from the volume 1, the volume 2, and the volume 3, a volume snapshot associated with the unshared volume is searched, and a virtual machine snapshot that is not in a protection state is searched from the virtual machine snapshot 1 and the virtual machine snapshot 2. If volumes 2 and 3 are unshared volumes (i.e., volumes 2 and 3 are only associated with virtual machine 1 and not associated with other virtual machines), the volume snapshot associated with volume 2 is volume snapshot 2, volume 3 is not associated with volume snapshot, virtual machine snapshot 1 is in a protected state, and virtual machine snapshot 2 is not in a protected state. The protection state of the virtual machine snapshot is set by a user, and if the virtual machine snapshot is set to be the protection state, the virtual machine snapshot cannot be deleted. Then, the finally determined target slave resources are: volume 2, volume 3, volume snapshot 2, and virtual machine snapshot 2.
Step S20, determining a target deleting mode according to the deleting mode selection strategy;
in this embodiment, the deletion mode selection policy may be formulated based on factors such as the amount of data to be deleted and/or the state of the cloud platform system, and then the target deletion mode is determined according to the formulated deletion mode selection policy.
Specifically, in an embodiment, the step S20 includes:
step S201, detecting whether to start delayed deletion;
step S202, if deferred deletion is started, determining that a target deletion mode is deferred deletion, wherein the deferred deletion is to perform rapid deletion first, and then perform full deletion when a specified time period or the cloud platform system is in an idle state, wherein the rapid deletion is to rewrite part of data of a storage medium, the full deletion is to rewrite all data of the storage medium, and the storage medium is used for storing data corresponding to the main resource and the target slave resource.
In this embodiment, the opening and closing of the deferred deletion is set based on user operation, and if the deferred deletion is enabled, the target deletion mode is directly determined to be deferred deletion. Namely, the rapid deletion is firstly carried out, and then the full deletion is carried out when the cloud platform system is in an idle state or in a specified time period. The fast deletion is to rewrite part of data of the storage medium, for example, to write 0 at the head of the disk, and to repeat the deletion efficiency; the full deletion is to rewrite all data of the storage medium, for example, all the disks are written with 0, and the deletion quality is repeated; the storage medium is used for storing data corresponding to the main resource and the target slave resource, and the storage medium refers to a memory or a disk. The designated time interval is set according to actual needs, and whether the system is in an idle state or not can be comprehensively determined through indexes such as the utilization rate of a node CPU/memory, the IOPS of a rear-end storage pool, the overall service processing quantity, the current concurrent deletion task quantity, the overall plan task quantity and the like. It is easy to understand that the lower the value corresponding to these indexes is, the more idle the system is, so a corresponding threshold value may be set for each index, and if the value corresponding to each index is smaller than the corresponding threshold value, the system may be determined to be in an idle state.
In the embodiment, the data processing pressure of the cloud platform system is effectively reduced in a delayed deletion mode.
Further, in an embodiment, after the step S201, the method further includes:
step S203, if the deferred deletion is not started, detecting whether the data sizes corresponding to the main resource and the target slave resource are larger than a first threshold value;
in this embodiment, if deferred deletion is not enabled, it is detected whether the amount of data to be deleted is large. That is, whether the data sizes corresponding to the master resource to be deleted and the target slave resource are larger than a first threshold value is detected. The first threshold value is set according to actual conditions.
In step S204, if the target deletion mode is greater than the first threshold, it is determined that the target deletion mode is fast deletion.
In this embodiment, if the data size is larger than the first threshold, it indicates that the data size to be deleted is large, and if a full-size deletion mode is adopted, the time required is long, the data processing burden of the cloud platform system is increased, and the situation that the operation of the cloud platform system is unstable may occur. In order to avoid the situation, when the data sizes corresponding to the master resource to be deleted and the target slave resource are larger than a first threshold value, the target deletion mode is determined to be quick deletion.
Further, in an embodiment, after the step S203, the method further includes:
step S205, if the value is not greater than the first threshold value, whether the cloud platform system is in an idle state is detected;
in this embodiment, if the data sizes corresponding to the master resource to be deleted and the target slave resource are not greater than the first threshold, it is indicated that the current deleted data size is not large, and a full deletion mode may be considered. However, since the data processing burden of the cloud platform system is increased by the full deletion, it is necessary to further detect whether the cloud platform system is in an idle state. It is easy to understand that when the cloud platform system is in an idle state, the data processing pressure of the cloud platform system is low, and the performance of the cloud platform system can completely bear the data processing pressure caused by full deletion. Specifically, whether the system is in an idle state or not can be comprehensively determined through indexes such as the utilization rate of a node CPU/memory, the IOPS of a rear-end storage pool, the global service processing quantity, the current concurrent deletion task quantity, the global planned task quantity and the like. It is easy to understand that the lower the value corresponding to these indexes is, the more idle the system is, so a corresponding threshold value may be set for each index, and if the value corresponding to each index is smaller than the corresponding threshold value, the system may be determined to be in an idle state.
Specifically, in an embodiment, the step of detecting whether the cloud platform system is in an idle state includes:
detecting whether the current task number of the cloud platform system is larger than a second threshold value; if the value is larger than the second threshold value, determining that the cloud platform system is not in an idle state; and if the current time is not greater than the second threshold, determining that the cloud platform system is in an idle state.
In this embodiment, whether the current task number of the cloud platform system is greater than a second threshold is detected, and if the current task number of the cloud platform system is greater than the second threshold, it is indicated that the current task processing pressure of the cloud platform system is large, that is, it is determined that the cloud platform system is not in an idle state, and otherwise, it is determined that the cloud platform system is in the idle state.
Step S206, if the cloud platform system is in an idle state, determining that the target deleting mode is full deleting.
In this embodiment, if the amount of data to be deleted is not large and the cloud platform system is in an idle state, it is determined that the target deletion mode is full deletion, and the deletion quality is improved on the basis of ensuring that the cloud platform system can operate stably.
Further, in an embodiment, after the step S205, the method further includes:
step S207, if the cloud platform system is not in the idle state, determining that the target deletion mode is quick deletion.
In this embodiment, if the amount of data to be deleted is not large but the cloud platform system is not in an idle state, it is determined that the target deletion mode is quick deletion. Namely, the deletion quality is sacrificed, and the stable operation of the cloud platform system is ensured.
And step S30, deleting the main resource and the target slave resource based on the target deleting mode.
In this embodiment, based on the above embodiments, after the target deletion mode is determined, the master resource and the target slave resource may be deleted in the target deletion mode. It should be noted that when the target slave resource includes the volume and its corresponding volume snapshot, the volume snapshot is deleted first, and then the volume is deleted.
After the deleting action is executed, further detecting whether the undeleted residual resources exist, if so, repeatedly executing the deleting action and detecting whether the undeleted residual resources exist; if the undeleted residual resources still exist after repeated times, reporting a resource residual alarm to inform the user that the main resources and the target slave resources are not completely deleted, so that the user can completely delete the resources in other modes, ensuring that the resources which the user wants to delete can be completely deleted, and avoiding the occurrence of information leakage caused by resource residual.
In the embodiment, a master resource to be deleted is determined, and a target slave resource to be deleted is determined from slave resources associated with the master resource; determining a target deleting mode according to a deleting mode selecting strategy; and deleting the master resource and the target slave resource based on the target deletion mode. According to the embodiment, the target slave resource related to the master resource to be deleted is automatically determined based on the master resource to be deleted, and the master resource and the target slave resource are deleted by automatically selecting a deletion mode. The user operation is simplified, the phenomenon that the follow resource is left due to the fact that the follow resource is omitted is avoided, the information leakage event is caused, and the information protection force is improved.
In a third aspect, an embodiment of the present invention further provides a device for deleting resources in a cloud platform.
Referring to fig. 3, fig. 3 is a functional module diagram of an embodiment of a resource deletion apparatus in a cloud platform. As shown in fig. 3, in an embodiment, the resource deleting apparatus in the cloud platform includes:
a first determining module 10, configured to determine a master resource to be deleted, and determine a target slave resource to be deleted from slave resources associated with the master resource;
a second determining module 20, configured to determine a target deletion mode according to a deletion mode selection policy;
and a deleting module 30, configured to delete the master resource and the target slave resource based on the target deleting manner.
Further, in an embodiment, the first determining module 10 is specifically configured to:
receiving a selection instruction, and determining a main resource to be deleted based on the selection instruction;
when the main resource is a virtual machine, searching for an unshared volume from the volumes associated with the virtual machine, and searching for a volume snapshot associated with the unshared volume;
searching virtual machine snapshots which are not in a protection state from the virtual machine snapshots associated with the virtual machine;
and taking the unshared volume, the volume snapshot associated with the unshared volume and the virtual machine snapshot which is not in a protection state as target slave resources to be deleted.
Further, in an embodiment, the second determining module 20 is specifically configured to:
detecting whether delayed deletion is enabled;
and if the deferred deletion is started, determining that the target deletion mode is deferred deletion, wherein the deferred deletion is to firstly carry out rapid deletion, and then carry out full deletion when a specified time period or the cloud platform system is in an idle state, wherein the rapid deletion is to carry out the rewriting on partial data of the storage medium, the full deletion is to carry out the rewriting on all data of the storage medium, and the storage medium is used for storing the data corresponding to the main resource and the target slave resource.
Further, in an embodiment, the second determining module 20 is specifically configured to:
if the deferred deletion is not started, detecting whether the data sizes corresponding to the main resource and the target slave resource are larger than a first threshold value;
and if the target deletion mode is larger than the first threshold, determining that the target deletion mode is quick deletion.
Further, in an embodiment, the second determining module 20 is specifically configured to:
if the current time is not greater than the first threshold value, detecting whether the cloud platform system is in an idle state;
and if the cloud platform system is in an idle state, determining that the target deleting mode is full deleting.
Further, in an embodiment, the second determining module 20 is specifically configured to:
and if the cloud platform system is not in an idle state, determining that the target deleting mode is quick deleting.
Further, in an embodiment, the second determining module 20 is specifically configured to:
detecting whether the current task number of the cloud platform system is larger than a second threshold value;
if the value is larger than the second threshold value, determining that the cloud platform system is not in an idle state;
and if the current time is not greater than the second threshold, determining that the cloud platform system is in an idle state.
The function implementation of each module in the resource deletion apparatus in the cloud platform corresponds to each step in the embodiment of the resource deletion method in the cloud platform, and the functions and implementation processes are not described in detail herein.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the invention stores a resource deletion program in the cloud platform, wherein when the resource deletion program in the cloud platform is executed by the processor, the steps of the resource deletion method in the cloud platform are realized.
The method for implementing the resource deletion program in the cloud platform when executed can refer to each embodiment of the resource deletion method in the cloud platform of the present invention, and details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for deleting resources in a cloud platform is characterized by comprising the following steps:
determining a master resource to be deleted, and determining a target slave resource to be deleted from slave resources associated with the master resource;
determining a target deleting mode according to a deleting mode selecting strategy;
and deleting the master resource and the target slave resource based on the target deletion mode.
2. The method for deleting resources in the cloud platform according to claim 1, wherein the step of determining a master resource to be deleted and determining a target slave resource to be deleted from slave resources associated with the master resource comprises:
receiving a selection instruction, and determining a main resource to be deleted based on the selection instruction;
when the main resource is a virtual machine, searching for an unshared volume from the volumes associated with the virtual machine, and searching for a volume snapshot associated with the unshared volume;
searching virtual machine snapshots which are not in a protection state from the virtual machine snapshots associated with the virtual machine;
and taking the unshared volume, the volume snapshot associated with the unshared volume and the virtual machine snapshot which is not in a protection state as target slave resources to be deleted.
3. The method for deleting resources in the cloud platform according to claim 1, wherein the step of determining a target deletion mode according to a deletion mode selection policy comprises:
detecting whether delayed deletion is enabled;
and if the deferred deletion is started, determining that the target deletion mode is deferred deletion, wherein the deferred deletion is to firstly carry out rapid deletion, and then carry out full deletion when a specified time period or the cloud platform system is in an idle state, wherein the rapid deletion is to carry out the rewriting on partial data of the storage medium, the full deletion is to carry out the rewriting on all data of the storage medium, and the storage medium is used for storing the data corresponding to the main resource and the target slave resource.
4. The method for resource deletion within a cloud platform of claim 3, after the step of detecting whether deferred deletion is enabled, further comprising:
if the deferred deletion is not started, detecting whether the data sizes corresponding to the main resource and the target slave resource are larger than a first threshold value;
and if the target deletion mode is larger than the first threshold, determining that the target deletion mode is quick deletion.
5. The method for deleting resources in the cloud platform according to claim 4, wherein after the step of detecting whether the data sizes corresponding to the master resource and the target slave resource are larger than a first threshold, the method further includes:
if the current time is not greater than the first threshold value, detecting whether the cloud platform system is in an idle state;
and if the cloud platform system is in an idle state, determining that the target deleting mode is full deleting.
6. The method for resource deletion in a cloud platform of claim 5, wherein after the step of detecting whether the cloud platform system is in an idle state, further comprising:
and if the cloud platform system is not in an idle state, determining that the target deleting mode is quick deleting.
7. The method for resource deletion in a cloud platform of claim 5, wherein the step of detecting whether the cloud platform system is in an idle state comprises:
detecting whether the current task number of the cloud platform system is larger than a second threshold value;
if the value is larger than the second threshold value, determining that the cloud platform system is not in an idle state;
and if the current time is not greater than the second threshold, determining that the cloud platform system is in an idle state.
8. An apparatus for deleting resources in a cloud platform, the apparatus for deleting resources in the cloud platform comprising:
the device comprises a first determining module, a second determining module and a judging module, wherein the first determining module is used for determining a master resource to be deleted and determining a target slave resource to be deleted from slave resources related to the master resource;
the second determining module is used for selecting a strategy according to the deleting mode and determining a target deleting mode;
and the deleting module is used for deleting the main resource and the target slave resource based on the target deleting mode.
9. An intra-cloud-platform resource deletion device, comprising a processor, a memory, and an intra-cloud-platform resource deletion program stored on the memory and executable by the processor, wherein when the intra-cloud-platform resource deletion program is executed by the processor, the steps of the intra-cloud-platform resource deletion method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, wherein the readable storage medium stores thereon a resource deletion program in a cloud platform, and wherein the resource deletion program in the cloud platform, when executed by a processor, implements the steps of the resource deletion method in the cloud platform according to any one of claims 1 to 7.
CN202011024370.0A 2020-09-25 2020-09-25 Method, device and equipment for deleting resources in cloud platform and readable storage medium Pending CN112181590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011024370.0A CN112181590A (en) 2020-09-25 2020-09-25 Method, device and equipment for deleting resources in cloud platform and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011024370.0A CN112181590A (en) 2020-09-25 2020-09-25 Method, device and equipment for deleting resources in cloud platform and readable storage medium

Publications (1)

Publication Number Publication Date
CN112181590A true CN112181590A (en) 2021-01-05

Family

ID=73944936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011024370.0A Pending CN112181590A (en) 2020-09-25 2020-09-25 Method, device and equipment for deleting resources in cloud platform and readable storage medium

Country Status (1)

Country Link
CN (1) CN112181590A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756091A (en) * 2023-08-22 2023-09-15 深圳富联富桂精密工业有限公司 Snapshot management method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5327560A (en) * 1990-07-30 1994-07-05 Hitachi, Ltd. Method of updating network reconfiguration information exchanged between a host computer and a communication control processor
CN103207813A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method and device for managing resources
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN108459910A (en) * 2018-03-02 2018-08-28 上海云轴信息科技有限公司 A kind of method and apparatus for deleting resource
CN108846032A (en) * 2018-05-28 2018-11-20 郑州云海信息技术有限公司 File delet method, device and equipment in a kind of storage system
CN110018883A (en) * 2019-04-11 2019-07-16 苏州浪潮智能科技有限公司 A kind of virtual machine delet method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5327560A (en) * 1990-07-30 1994-07-05 Hitachi, Ltd. Method of updating network reconfiguration information exchanged between a host computer and a communication control processor
CN103207813A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method and device for managing resources
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN108459910A (en) * 2018-03-02 2018-08-28 上海云轴信息科技有限公司 A kind of method and apparatus for deleting resource
CN108846032A (en) * 2018-05-28 2018-11-20 郑州云海信息技术有限公司 File delet method, device and equipment in a kind of storage system
CN110018883A (en) * 2019-04-11 2019-07-16 苏州浪潮智能科技有限公司 A kind of virtual machine delet method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李学勇: "《操作系统》", 31 December 2010, 国防科技大学出版社 *
罗恩.黑尔.埃文斯: "《思维黑客:让大脑重装升级的75个超频用脑法》", 30 May 2020 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756091A (en) * 2023-08-22 2023-09-15 深圳富联富桂精密工业有限公司 Snapshot management method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US9819695B2 (en) Scanning method and device, and client apparatus
US8200930B2 (en) Interacting with data in hidden storage
CN110865888A (en) Resource loading method and device, server and storage medium
US10783041B2 (en) Backup and recovery of data files using hard links
CN109815700B (en) Application program processing method and device, storage medium and computer equipment
US9418232B1 (en) Providing data loss prevention for copying data to unauthorized media
US11042507B2 (en) System and method of deletion of files and counteracting their restoration
US20160179624A1 (en) Expedited Device Backup, Wipe, and Enrollment
CN112445686A (en) Memory leak detection method, device and computer-readable storage medium
CN115335806A (en) Shadow stack violation enforcement at module granularity
US11113391B2 (en) Method and computer system for preventing malicious software from attacking files of the computer system and corresponding non-transitory computer readable storage medium
CN112181590A (en) Method, device and equipment for deleting resources in cloud platform and readable storage medium
US11861364B2 (en) Circular shadow stack in audit mode
CN113641446A (en) Memory snapshot creating method, device and equipment and readable storage medium
CN108205559B (en) Data management method and equipment thereof
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN112825098A (en) Data protection method and device, computing equipment and storage medium
US10678453B2 (en) Method and device for checking false sharing in data block deletion using a mapping pointer and weight bits
US8176105B2 (en) Automated file relocation
CN112434287A (en) Method, device and equipment for detecting Hook and storage medium
KR101893950B1 (en) Apparatus for centralization and security of file based on Wake-on-LAN, method thereof and computer recordable medium storing program to perform the method
CN112100153A (en) File processing method and device, electronic equipment and readable storage medium
CN111124306A (en) Data deleting method, system, equipment and computer readable storage medium
EP3674876A1 (en) System and method of deletion of files and counteracting their restoration
CN114035897A (en) Method and device for safely deleting mirror image file of virtual machine and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105

RJ01 Rejection of invention patent application after publication