CN114327271A - Life cycle management method, device, equipment and storage medium - Google Patents

Life cycle management method, device, equipment and storage medium Download PDF

Info

Publication number
CN114327271A
CN114327271A CN202111624114.XA CN202111624114A CN114327271A CN 114327271 A CN114327271 A CN 114327271A CN 202111624114 A CN202111624114 A CN 202111624114A CN 114327271 A CN114327271 A CN 114327271A
Authority
CN
China
Prior art keywords
strategy
policy
life cycle
initial
modified
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.)
Granted
Application number
CN202111624114.XA
Other languages
Chinese (zh)
Other versions
CN114327271B (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111624114.XA priority Critical patent/CN114327271B/en
Publication of CN114327271A publication Critical patent/CN114327271A/en
Application granted granted Critical
Publication of CN114327271B publication Critical patent/CN114327271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure provides a life cycle management method, a life cycle management device, life cycle management equipment and a life cycle management storage medium, relates to the technical field of cloud storage, particularly relates to the technical field of data storage, and can be applied to a cloud platform. The method comprises the following steps: receiving an operation instruction of the life cycle strategy; acquiring all life cycle strategies to obtain an initial strategy set; operating the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set; the initial policy set is replaced with the target policy set. The life cycle management method can automatically manage and maintain life cycle strategies, so that data are managed, management efficiency is improved, and management cost is reduced.

Description

Life cycle management method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of cloud storage technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing a life cycle.
Background
As is well known, data is life-cycle, and is usually accessed frequently during the initial creation period, and the access frequency of the data gradually decreases over time, and may not be accessed any more at last. If the user manually maintains the life cycle of the data, time and labor are consumed; but if not maintained, data is always stored in standard storage types, which costs more money. Lifecycle management is the automated management of the lifecycle of data by a user that is assisted by configuring the lifecycle rules of the object buckets.
Disclosure of Invention
The present disclosure provides a life cycle management method, apparatus, device, and storage medium.
According to a first aspect of the present disclosure, there is provided a method for managing a life cycle, comprising: receiving an operation instruction of the life cycle strategy; acquiring all life cycle strategies to obtain an initial strategy set; operating the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set; the initial policy set is replaced with the target policy set.
According to a second aspect of the present disclosure, there is provided a life cycle management apparatus including: a receiving module configured to receive an operation instruction for a life cycle policy; the first acquisition module is configured to acquire all life cycle strategies to obtain an initial strategy set; the operation module is configured to operate the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set; a replacement module configured to replace the initial set of policies with the target set of policies.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in any one of the implementations of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described in any one of the implementations of the first aspect.
According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method as described in any of the implementations of the first aspect.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is an exemplary system architecture diagram in which the present disclosure may be applied;
FIG. 2 is a flow chart of a first embodiment of a method of lifecycle management according to the present disclosure;
FIG. 3 is a flow chart of a second embodiment of a method of managing a lifecycle according to the present disclosure;
FIG. 4 is a flow chart of a third embodiment of a method of lifecycle management according to the present disclosure;
FIG. 5 is a flow chart of a fourth embodiment of a method of managing a lifecycle according to the present disclosure;
FIG. 6 is a flow chart of a fifth embodiment of a method of managing a lifecycle according to the present disclosure;
FIG. 7 is a schematic block diagram illustrating one embodiment of a lifecycle management apparatus according to the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing a method for lifecycle management according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the lifecycle management method or lifecycle management apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or transmit information or the like. Various client applications may be installed on the terminal devices 101, 102, 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the above-described electronic apparatuses. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may provide various services. For example, the server 105 may analyze and process the operation instructions acquired from the terminal apparatuses 101, 102, 103, and generate a processing result (e.g., generate a target policy set).
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the management method of the lifecycle provided by the embodiment of the present disclosure is generally executed by the server 105, and accordingly, the management device of the lifecycle is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of a first embodiment of a lifecycle management method according to the present disclosure is shown. The life cycle management method comprises the following steps:
step 201, receiving an operation instruction for the life cycle policy.
In this embodiment, an executing agent (e.g., the server 105 shown in fig. 1) of the lifecycle management method may receive an operation instruction for the lifecycle policy.
The life cycle in this embodiment refers to a life cycle of the object storage. Object stores, also called object-based stores, are a general term used to describe methods of resolving and processing discrete units. Objects do not have a hierarchy in a hierarchy and are characterized by extended metadata. Unlike file storage, object storage does not have a directory tree structure similar to a file system, and all files are stored in buckets (buckets) in the form of objects (objects). An object can be accessed by the name of the bucket plus the object name. Each object in the object store has several metadata information for storing some properties of the object, such as name, size, last modification date, etc.
The life cycle strategy can also be called as life cycle rule, and the object can be automatically managed by configuring the life cycle of the object storage. The lifecycle policy may include: the expiration time, the object identification name and the cleaning method are not limited to the above, and may be configured based on the user's needs, such as the object type, the object creation time, and the like.
The life cycle strategy is usually required to be maintained over time, at this time, a user generally sends an operation instruction for the life cycle strategy through a preset debit, and the execution subject can receive the operation instruction for the life cycle strategy sent by the user. The operation instruction can be an adding instruction, namely an instruction for adding a life cycle strategy; the instruction may also be a modification instruction, that is, an instruction for modifying the lifecycle policy, or may also be another instruction, which is not specifically limited in this embodiment.
Step 202, all life cycle strategies are obtained, and an initial strategy set is obtained.
In this embodiment, after receiving the operation instruction for the lifecycle policy, the execution main body obtains all the lifecycle policies, thereby obtaining an initial policy set. And receiving an operation instruction of the life cycle strategy, wherein the operation instruction indicates that a user wants to operate the existing life cycle strategy, and then the execution main body acquires all the existing initial life cycle strategies to obtain a life cycle strategy set so as to operate the life cycle strategies in the life cycle strategy set.
And 203, operating the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set.
In this embodiment, the executing entity may operate the target lifecycle policy in the initial policy set based on the operation instruction, so as to obtain an operated target policy set. That is, the executing entity first determines the target lifecycle policy in the initial policy set, and the target lifecycle policy is also the policy to be operated. Then, the executing body performs corresponding operation on the target life cycle policy according to the content of the operation instruction, so as to obtain a target policy set with completed operation.
As an example, when the operation instruction is a modification instruction, the execution subject first determines a target lifecycle policy in the initial policy set based on the modification instruction, and then modifies the target lifecycle policy to obtain a modified target lifecycle policy and a modified target policy set.
And step 204, replacing the initial policy set with the target policy set.
In this embodiment, the execution subject replaces the initial policy set with the target policy set obtained in step 203. The target strategy set is a new life cycle strategy set obtained after operation, and the initial strategy set is replaced by the new life cycle strategy set, so that the management process of the life cycle is completed. Thus, the new lifecycle policy set (i.e., the target policy set) includes both the original lifecycle policy without operation and the new lifecycle policy with completed operation.
The management method of the life cycle provided by the embodiment of the disclosure comprises the steps of firstly receiving an operation instruction of a life cycle strategy; then all life cycle strategies are obtained to obtain an initial strategy set; then, operating the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set; and finally, replacing the initial policy set with the target policy set. In the life cycle management method in this embodiment, the method operates the target life cycle policy in the initial policy set based on the operation instruction, so as to obtain the policy set with completed operation, thereby implementing management and maintenance of the life cycle policy, managing data, improving maintenance efficiency, and reducing maintenance cost; in addition, the target strategy set comprises the original strategy which is not operated and the strategy which is newly generated after operation, thereby ensuring the integrity of the target strategy set.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
With continued reference to fig. 3, fig. 3 illustrates a flow 300 of a second embodiment of a lifecycle management method according to the present disclosure. The life cycle management method comprises the following steps:
step 301, receiving an operation instruction for the lifecycle policy.
Step 302, all life cycle strategies are obtained, and an initial strategy set is obtained.
Step 303, operating the target life cycle policy in the initial policy set based on the operation instruction to obtain an operated target policy set.
Step 304, replace the initial policy set with the target policy set.
The steps 301-.
In some optional implementations of this embodiment, the lifecycle policy includes at least one of: the storage bucket using the life cycle strategy, the storage mode of the data in the storage bucket and the life cycle of the data in the storage bucket.
In this implementation, the lifecycle policy may include a bucket using the lifecycle policy, that is, an effective range of the lifecycle policy may be defined, where the bucket is a bucket storing data. For example, lifecycle policy 1 takes effect to bucket a.
The lifecycle policy may also include the manner in which data is stored in the bucket, i.e. may be a custom data transformation manner, e.g. some data is initially stored as standard data but needs to be transformed into low frequency data over time, thereby freeing up storage space. For example, one month later may be defined to automatically convert the standard data into the low frequency data.
The lifecycle policy may also include the lifecycle of the data in the bucket, i.e. the data expiration time may be defined, e.g. set to be automatically cleaned after one week. Or the historical version generated by the object can be periodically cleared, for example, the historical version of the object is automatically cleared after three days after the new version is generated, so that the data is automatically managed.
Optionally, different lifecycle policies may also be set for different object data in the bucket, specifically, the set may be performed by a prefix name or a suffix name of the object, which is not specifically limited in this embodiment.
Step 305, for each bucket, a lifecycle policy corresponding to each bucket is obtained.
In this embodiment, for each bucket storing data, an executing entity (e.g., the server 105 shown in fig. 1) of the lifecycle management method may obtain a lifecycle policy corresponding to each bucket. Since each lifecycle policy includes the valid bucket, the execution agent may obtain the lifecycle policy corresponding to each bucket based on the valid bucket.
And step 306, processing the data in the storage bucket based on the life cycle strategy corresponding to the storage bucket according to a preset cycle.
In this embodiment, the execution main body may process the data in the bucket according to a preset cycle based on the lifecycle rule corresponding to the bucket. The preset period may be one day, three days, one week, etc., and may be set according to actual conditions, which is not specifically limited in this embodiment. Then, the execution agent can perform corresponding cleaning on the data in the bucket at the periodic time.
As can be seen from fig. 3, compared with the embodiment of fig. 2, the method for managing a lifecycle highlights a step of processing data in a bucket based on a lifecycle policy corresponding to the bucket, so that the data is managed based on the lifecycle of the data, and the management efficiency of the data is improved.
With continued reference to fig. 4, fig. 4 illustrates a flow 400 of a third embodiment of a lifecycle management method according to the present disclosure. The life cycle management method comprises the following steps:
step 401, an add instruction to a lifecycle policy is received.
In the present embodiment, an execution subject of the management method of a lifecycle (e.g., the server 105 shown in fig. 1) may receive an instruction to add a lifecycle policy. In this embodiment, the user wants to add a new lifecycle policy, and the execution agent receives an instruction for adding the lifecycle policy from the user.
Step 402, all life cycle strategies are obtained, and an initial strategy set is obtained.
In this embodiment, the execution subject may obtain all the lifecycle policies to obtain an initial policy set. Step 402 is substantially the same as step 202 in the foregoing embodiment, and the specific implementation manner may refer to the foregoing description of step 202, which is not described herein again.
Optionally, since the execution main body may store the initial policy set after obtaining the initial policy set, the user may obtain the initial policy set through a preset interface, for example, the user may obtain all the lifecycle policies stored by the execution main body, that is, the initial policy set, by calling the interface getbucketlifycleconfiguration.
And step 403, acquiring a strategy to be added.
In this embodiment, the execution subject may obtain a policy to be added. The policy to be added, that is, the policy that the user wants to add, and the execution subject may obtain the content of the policy to be added.
And step 404, adding the strategy to be added into the initial strategy set to obtain an operated target strategy set.
In this embodiment, after acquiring the policy to be added, the executing entity adds the policy to be added to the initial policy set, so as to obtain an operated target policy set, thereby completing the addition of the lifecycle policy.
Step 405, replace the initial policy set with the target policy set.
In this embodiment, the execution subject may replace the initial policy set with the target policy set. Step 405 is substantially the same as step 304 in the foregoing embodiment, and the specific implementation manner may refer to the foregoing description of step 304, which is not described herein again.
Optionally, since the executing entity may store the target policy set after generating the target policy set, the user may add the target policy set through a preset interface to replace the initial policy set with the target policy set, for example, the user may add the target policy set by calling the putdebucklifecycleconfiguration interface.
As can be seen from fig. 4, compared with the embodiment of fig. 3, the lifecycle management method implements the adding operation of the lifecycle policy, so that the target policy set includes both the original policy and the newly added policy, thereby improving the adding efficiency of the policies.
With continued reference to fig. 5, fig. 5 illustrates a flow 500 of a fourth embodiment of a lifecycle management method according to the present disclosure. The life cycle management method comprises the following steps:
step 501, receiving a modification instruction of a life cycle strategy.
In the present embodiment, an executing agent (e.g., the server 105 shown in fig. 1) of the lifecycle management method may receive a modification instruction for the lifecycle policy. In this embodiment, the executing entity receives a modification instruction for the lifecycle policy sent by the user, where the user wants to modify the original lifecycle policy.
Step 502, all life cycle strategies are obtained, and an initial strategy set is obtained.
In this embodiment, the execution subject may obtain all the lifecycle policies to obtain an initial policy set. Step 502 is substantially the same as step 402 in the foregoing embodiment, and the specific implementation manner may refer to the foregoing description of step 402, which is not described herein again.
Step 503, obtaining the identification information of the policy to be modified in the modification instruction.
In this embodiment, the execution subject may obtain identification information of a policy to be modified in the modification instruction. When a user wants to modify an original policy, the modification instruction will carry identification information of the policy to be modified, and the execution main body will obtain the identification information of the policy to be modified in the modification instruction.
And 504, acquiring the strategy to be modified from the initial strategy set based on the identification information.
In this embodiment, the executing body may obtain the policy to be modified from the initial policy set, that is, obtain the lifecycle policy that the user wants to modify, based on the identification information obtained in step 503. Specifically, the executing agent may traverse the initial policy set, thereby obtaining the policy to be modified.
And 505, modifying the strategy to be modified based on the modification instruction to obtain the modified strategy to be modified.
In this embodiment, the execution subject may modify the policy to be modified based on the modification instruction, so as to obtain the modified policy to be modified. The modification instruction also includes content to be modified, so that the execution subject can modify the policy to be modified based on the acquired modification instruction, thereby obtaining the modified policy to be modified.
Step 506, adding the modified to-be-modified strategy to the initial strategy set to obtain the operated target strategy set.
In this embodiment, the executing entity may add the modified policy to be modified obtained in step 505 to the initial policy set to obtain the operated target policy set.
Step 507, replacing the initial policy set with the target policy set.
In this embodiment, the execution subject may replace the initial policy set with the target policy set. Step 507 is substantially the same as step 405 in the foregoing embodiment, and the specific implementation manner may refer to the foregoing description of step 405, which is not described herein again.
As can be seen from fig. 5, compared with the embodiment of fig. 4, the life cycle management method implements modification operation on the life cycle policy, so that the target policy set includes both the original policy and the modified policy, and the modification efficiency of the policy is improved.
With continued reference to fig. 6, fig. 6 illustrates a flow 600 of a fifth embodiment of a lifecycle management method according to the present disclosure. The life cycle management method comprises the following steps:
step 601, receiving a delete instruction for the lifecycle policy.
In the present embodiment, the execution subject of the lifecycle management method (e.g., the server 105 shown in fig. 1) may receive a deletion instruction for the lifecycle policy. In this embodiment, the executing agent receives a deletion instruction for the lifecycle policy from the user, where the user wants to delete the original lifecycle policy.
Step 602, all life cycle policies are obtained, and an initial policy set is obtained.
In this embodiment, the execution subject may obtain all the lifecycle policies to obtain an initial policy set. Step 602 is substantially the same as step 502 in the foregoing embodiment, and the specific implementation manner may refer to the foregoing description of step 502, which is not described herein again.
Step 603, obtaining the identification information of the policy to be deleted in the deletion instruction.
In this embodiment, the execution main body may obtain identification information of a policy to be deleted in the deletion instruction. When a user wants to delete an original policy, the deletion instruction will have identification information of the policy to be deleted, and the execution main body will obtain the identification information of the policy to be deleted in the deletion instruction.
And step 604, deleting the strategy to be deleted from the initial strategy set based on the identification information to obtain an operated target strategy set.
In this embodiment, the executing body may obtain the policy to be deleted from the initial policy set, that is, obtain the lifecycle policy that the user wants to delete, based on the identification information obtained in step 603. Specifically, the executing agent may traverse the initial policy set, thereby obtaining the policy to be deleted.
Step 605, replace the initial policy set with the target policy set.
In this embodiment, the execution subject may replace the initial policy set with the target policy set. Step 605 is substantially the same as step 507 of the foregoing embodiment, and the specific implementation manner may refer to the foregoing description of step 507, which is not described herein again.
As can be seen from fig. 6, compared with the embodiment of fig. 5, the lifecycle management method implements deletion operation on the lifecycle policy, so that the target policy set includes all the original policies except the deleted policy, and the deletion efficiency of the policy is improved.
With further reference to fig. 7, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of a lifecycle management apparatus, which corresponds to the method embodiment shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 7, the life cycle management apparatus 700 of the present embodiment includes: a receiving module 701, a first obtaining module 702, an operating module 703 and a replacing module 704. Wherein, the receiving module 701 is configured to receive an operation instruction of a life cycle policy; a first obtaining module 702 configured to obtain all lifecycle policies, resulting in an initial policy set; an operation module 703 configured to operate the target life cycle policy in the initial policy set based on the operation instruction to obtain an operated target policy set; a replacement module 704 configured to replace the initial set of policies with the target set of policies.
In the present embodiment, the lifecycle management apparatus 700: the specific processing of the receiving module 701, the first obtaining module 702, the operating module 703 and the replacing module 704 and the technical effects thereof can refer to the related descriptions of step 201 and step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the operation instruction includes an add instruction; and the operation module comprises: a first obtaining submodule configured to obtain a policy to be added; and the first adding submodule is configured to add the strategy to be added into the initial strategy set.
In some optional implementations of this embodiment, the operation instruction includes a modification instruction; and the operation module comprises: the second obtaining submodule is configured to obtain identification information of a strategy to be modified in the modification instruction; a third obtaining submodule configured to obtain a policy to be modified from the initial policy set based on the identification information; the modification submodule is configured to modify the strategy to be modified based on the modification instruction to obtain the modified strategy to be modified; and the second adding submodule is configured to add the modified strategy to be modified into the initial strategy set.
In some optional implementations of this embodiment, the operation instruction includes a delete instruction; and the operation module comprises: the fourth obtaining submodule is configured to obtain identification information of the strategy to be deleted in the deleting instruction; and the deletion submodule is configured to delete the strategy to be deleted from the initial strategy set based on the identification information.
In some optional implementations of the embodiment, the apparatus 700 for managing a lifecycle further includes: the lifecycle policy includes at least one of: the storage bucket using the life cycle strategy, the storage mode of the data in the storage bucket and the life cycle of the data in the storage bucket.
In some optional implementations of the embodiment, the apparatus 700 for managing a lifecycle further includes: the second acquisition module is configured to acquire a life cycle strategy corresponding to each storage bucket respectively for each storage bucket; and the processing module is configured to process the data in the storage bucket based on the life cycle strategy corresponding to the storage bucket according to a preset cycle.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The computing unit 801 executes the respective methods and processes described above, such as a management method of a life cycle. For example, in some embodiments, the method of managing a lifecycle can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method of managing a lifecycle described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the lifecycle management method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
Cloud computing (cloud computer) refers to a technology architecture that accesses a flexibly extensible shared physical or virtual resource pool through a network, where the resource may include a server, an operating system, a network, software, an application or a storage device, and the like, and can be deployed and managed in an on-demand and self-service manner. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A method of lifecycle management, comprising:
receiving an operation instruction of the life cycle strategy;
acquiring all life cycle strategies to obtain an initial strategy set;
operating the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set;
replacing the initial set of policies with the target set of policies.
2. The method of claim 1, wherein the operation instruction comprises an add instruction; and
the operating the target life cycle policy in the initial policy set based on the operation instruction comprises:
acquiring a strategy to be added;
adding the policy to be added into the initial policy set.
3. The method of claim 1, wherein the operation instruction comprises a modification instruction; and
the operating the target life cycle policy in the initial policy set based on the operation instruction comprises:
acquiring identification information of a strategy to be modified in the modification instruction;
acquiring the strategy to be modified from the initial strategy set based on the identification information;
modifying the strategy to be modified based on the modification instruction to obtain the modified strategy to be modified;
and adding the modified strategy to be modified into the initial strategy set.
4. The method of claim 1, wherein the operation instruction comprises a delete instruction; and
the operating the target life cycle policy in the initial policy set based on the operation instruction comprises:
acquiring identification information of a strategy to be deleted in the deletion instruction;
deleting the policy to be deleted from the initial policy set based on the identification information.
5. The method of any of claims 1-4, wherein the lifecycle policy comprises at least one of: the storage bucket using the life cycle strategy, the storage mode of the data in the storage bucket and the life cycle of the data in the storage bucket.
6. The method of claim 5, further comprising:
for each storage bucket, respectively acquiring a life cycle strategy corresponding to each storage bucket;
and processing the data in the storage bucket based on the life cycle strategy corresponding to the storage bucket according to a preset cycle.
7. A lifecycle management apparatus, comprising:
a receiving module configured to receive an operation instruction for a life cycle policy;
the first acquisition module is configured to acquire all life cycle strategies to obtain an initial strategy set;
the operation module is configured to operate the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set;
a replacement module configured to replace the initial set of policies with the target set of policies.
8. The apparatus of claim 7, wherein the operation instruction comprises an add instruction; and
the operation module comprises:
a first obtaining submodule configured to obtain a policy to be added;
a first adding submodule configured to add the to-be-added policy to the initial policy set.
9. The apparatus of claim 7, wherein the operation instruction comprises a modification instruction; and
the operation module comprises:
the second obtaining submodule is configured to obtain identification information of a strategy to be modified in the modification instruction;
a third obtaining sub-module configured to obtain the policy to be modified from the initial policy set based on the identification information;
the modification sub-module is configured to modify the strategy to be modified based on the modification instruction to obtain the modified strategy to be modified;
and the second adding submodule is configured to add the modified strategy to be modified into the initial strategy set.
10. The apparatus of claim 7, wherein the operation instruction comprises a delete instruction; and
the operation module comprises:
a fourth obtaining sub-module configured to obtain identification information of a policy to be deleted in the deletion instruction;
a deletion submodule configured to delete the policy to be deleted from the initial policy set based on the identification information.
11. The apparatus according to any one of claims 7-10, wherein the lifecycle policy comprises at least one of: the storage bucket using the life cycle strategy, the storage mode of the data in the storage bucket and the life cycle of the data in the storage bucket.
12. The apparatus of claim 11, further comprising:
the second acquisition module is configured to acquire a life cycle strategy corresponding to each storage bucket respectively for each storage bucket;
and the processing module is configured to process the data in the bucket based on the life cycle strategy corresponding to the bucket according to a preset cycle.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202111624114.XA 2021-12-28 2021-12-28 Lifecycle management method, apparatus, device and storage medium Active CN114327271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111624114.XA CN114327271B (en) 2021-12-28 2021-12-28 Lifecycle management method, apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111624114.XA CN114327271B (en) 2021-12-28 2021-12-28 Lifecycle management method, apparatus, device and storage medium

Publications (2)

Publication Number Publication Date
CN114327271A true CN114327271A (en) 2022-04-12
CN114327271B CN114327271B (en) 2024-04-26

Family

ID=81014231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111624114.XA Active CN114327271B (en) 2021-12-28 2021-12-28 Lifecycle management method, apparatus, device and storage medium

Country Status (1)

Country Link
CN (1) CN114327271B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316197B1 (en) * 2010-03-01 2012-11-20 Symantec Corporation Techniques for storage lifecycle policy management
US9355060B1 (en) * 2012-12-14 2016-05-31 Amazon Technologies, Inc. Storage service lifecycle policy transition management
US9658983B1 (en) * 2012-12-14 2017-05-23 Amazon Technologies, Inc. Lifecycle support for storage objects having multiple durability levels specifying different numbers of versions
US10353619B1 (en) * 2012-06-11 2019-07-16 Veritas Technologies Llc Systems and methods for applying storage lifecycle policies to backups
CN111339033A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Method, system and terminal for realizing object storage life cycle
CN112579006A (en) * 2020-12-25 2021-03-30 华录光存储研究院(大连)有限公司 Data storage life cycle management method and system
CN113687920A (en) * 2021-08-30 2021-11-23 济南浪潮数据技术有限公司 Object strategy operation method, device and equipment of distributed system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316197B1 (en) * 2010-03-01 2012-11-20 Symantec Corporation Techniques for storage lifecycle policy management
US10353619B1 (en) * 2012-06-11 2019-07-16 Veritas Technologies Llc Systems and methods for applying storage lifecycle policies to backups
US9355060B1 (en) * 2012-12-14 2016-05-31 Amazon Technologies, Inc. Storage service lifecycle policy transition management
US9658983B1 (en) * 2012-12-14 2017-05-23 Amazon Technologies, Inc. Lifecycle support for storage objects having multiple durability levels specifying different numbers of versions
CN111339033A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Method, system and terminal for realizing object storage life cycle
CN112579006A (en) * 2020-12-25 2021-03-30 华录光存储研究院(大连)有限公司 Data storage life cycle management method and system
CN113687920A (en) * 2021-08-30 2021-11-23 济南浪潮数据技术有限公司 Object strategy operation method, device and equipment of distributed system

Also Published As

Publication number Publication date
CN114327271B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN113342345A (en) Operator fusion method and device of deep learning framework
CN112948079B (en) Task scheduling method, device, equipment and computer storage medium
CN113641677A (en) Data processing method and device, electronic equipment and storage medium
CN114816393B (en) Information generation method, device, equipment and storage medium
CN107819745B (en) Method and device for defending against abnormal traffic
CN114239853A (en) Model training method, device, equipment, storage medium and program product
CN112948081B (en) Method, device, equipment and storage medium for processing tasks in delayed mode
CN112671892B (en) Data transmission method, device, electronic equipment and medium
CN112817660A (en) Method, device, equipment and storage medium for expanding small program capacity
CN112925811A (en) Data processing method, device, equipment, storage medium and program product
CN114327271B (en) Lifecycle management method, apparatus, device and storage medium
CN113868254B (en) Method, device and storage medium for removing duplication of entity node in graph database
CN115102948A (en) Automatic downloading method, device and equipment of map tiles and storage medium
CN114417070A (en) Method, device and equipment for converging data authority and storage medium
CN113411271A (en) Data access method, device, equipment and storage medium
CN114780021B (en) Copy repairing method and device, electronic equipment and storage medium
CN115913954A (en) Cluster management information interaction method, device, equipment and storage medium
CN117076563A (en) Pruning method and device applied to blockchain
CN113220653A (en) Data processing method and device, electronic equipment and storage medium
CN115408195A (en) Batch task management method, equipment and storage medium for heterogeneous platform
CN113722344A (en) Data production method, data production device, electronic device, storage medium, and program product
CN116627933A (en) Mirror image warehouse migration method and device
CN117270862A (en) Software pluggable method, device, equipment and medium based on dynamic compiling
CN114327496A (en) Code injection method, device, equipment and storage medium
CN114398072A (en) Installation package generation method, device, equipment 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
GR01 Patent grant
GR01 Patent grant