CN114327271B - Lifecycle management method, apparatus, device and storage medium - Google Patents

Lifecycle management method, apparatus, device and storage medium Download PDF

Info

Publication number
CN114327271B
CN114327271B CN202111624114.XA CN202111624114A CN114327271B CN 114327271 B CN114327271 B CN 114327271B CN 202111624114 A CN202111624114 A CN 202111624114A CN 114327271 B CN114327271 B CN 114327271B
Authority
CN
China
Prior art keywords
strategy
policy
life cycle
initial
instruction
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.)
Active
Application number
CN202111624114.XA
Other languages
Chinese (zh)
Other versions
CN114327271A (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

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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, and 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 for a 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 policy set with the target policy set. Based on the lifecycle management method provided by the disclosure, the lifecycle policy can be automatically managed and maintained, so that data is managed, management efficiency is improved, and management cost is reduced.

Description

Lifecycle management method, apparatus, device and storage medium
Technical Field
The disclosure relates to the technical field of cloud storage, in particular to the technical field of data storage, and particularly relates to a life cycle management method, device and equipment and a storage medium.
Background
As is well known, data is life-cycled, typically with data being accessed more frequently during a period of time when initially created, with the frequency of data access gradually decreasing over time, and eventually possibly no longer being accessed. If the user manually maintains the lifecycle of the data, then a comparison is time consuming, human labor intensive; but if not maintained, the data is always stored in a standard storage type, much money is spent. Lifecycle management is to help users to automatically manage the lifecycle of data by configuring the lifecycle rules of object buckets.
Disclosure of Invention
The present disclosure provides a lifecycle management method, apparatus, device, and storage medium.
According to a first aspect of the present disclosure, there is provided a lifecycle management method, including: receiving an operation instruction for a 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 policy set with the target policy set.
According to a second aspect of the present disclosure, there is provided a lifecycle management apparatus comprising: a receiving module configured to receive an operation instruction for a lifecycle 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 policy set with the target policy set.
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 storing computer instructions for causing a computer to perform a method as described in any one of the implementations of the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method as described in any of the implementations of the first aspect.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for 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 to which the present disclosure may be applied;
FIG. 2 is a flow chart of a first embodiment of a method of managing lifecycles according to the present disclosure;
FIG. 3 is a flow chart of a second embodiment of a method of managing lifecycles according to the present disclosure;
FIG. 4 is a flow chart of a third embodiment of a method of managing lifecycles according to the present disclosure;
FIG. 5 is a flow chart of a fourth embodiment of a method of managing lifecycles according to the present disclosure;
FIG. 6 is a flow chart of a fifth embodiment of a method of managing lifecycles according to the present disclosure;
FIG. 7 is a schematic structural diagram of 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 lifecycle management method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. 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 a lifecycle management method or lifecycle management apparatus of the present disclosure may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or transmit information or the like. Various client applications can be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 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, smartphones, tablets, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-described electronic devices. Which may be implemented as a plurality of software or software modules, or as a single software or software module. The present invention 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 devices 101, 102, 103 and generate processing results (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 formed by a plurality of servers, or as a single server. When server 105 is software, it may be implemented as a plurality of software or software modules (e.g., to provide distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be noted that, the lifecycle management method provided by the embodiments of the present disclosure is generally executed by the server 105, and accordingly, the lifecycle management device 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, an operation instruction for a lifecycle policy is received.
In this embodiment, an execution body of the lifecycle management method (e.g., the server 105 shown in fig. 1) may receive an operation instruction for the lifecycle policy.
The lifecycle in this embodiment refers to the lifecycle of the object store. Object storage, also known as object-based storage, is a generic term used to describe a method of resolving and processing discrete units. Objects are no longer hierarchically structured in a hierarchy, featuring 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 adding the object name to the bucket name. Each object in the object store has several metadata information for preserving some properties of the object, such as the name, size, last modification date, etc.
The lifecycle policy may also be referred to as a lifecycle rule, and by configuring a lifecycle of an object store, automated management of the object may be achieved. The lifecycle policy may include: expiration time, object identification name, and cleaning mode are of course not limited to the above, but may be configured based on user needs, such as object type, object creation time, and the like.
Over time, the lifecycle policy often needs to be maintained, and at this time, a user generally sends an operation instruction for the lifecycle policy through a preset interface, and the execution body may receive the operation instruction for the lifecycle policy sent by the user. The operation instruction may be an add instruction, that is, an instruction to add a lifecycle policy; the instruction may be a modification instruction, that is, an instruction for modifying the lifecycle policy, or may be another instruction, which is not specifically limited in this embodiment.
Step 202, acquiring all life cycle strategies to obtain an initial strategy set.
In this embodiment, after receiving the operation instruction for the lifecycle policy, the executing body obtains all the lifecycle policies, thereby obtaining an initial policy set. And receiving an operation instruction for the life cycle strategies, wherein the operation instruction indicates that a user wants to operate the existing life cycle strategies, and the execution main body can acquire all the existing initial life cycle strategies so as to obtain a life cycle strategy set 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 execution body may operate the target lifecycle policy in the initial policy set based on the operation instruction, so as to obtain the operated target policy set. That is, the executing entity first determines a target lifecycle policy in the initial policy set, and the target lifecycle policy is the policy that will be operated. Then, the executing body performs corresponding operation on the target life cycle strategy according to the content of the operation instruction, so as to obtain a target strategy set with completed operation.
As an example, when the operation instruction is a modification instruction, the executing body 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 target policy set.
Step 204, replacing the initial policy set with the target policy set.
In this embodiment, the executing entity replaces the initial policy set with the target policy set obtained in step 203. The target policy set is a new life cycle policy set obtained after the operation, and the initial policy set is replaced by the new life cycle policy set, so that the life cycle management process is completed. Such a new set of lifecycle policies (i.e., a set of target policies) includes both the original, non-operational lifecycle policies and the new lifecycle policies with the operations completed.
The lifecycle management method provided by the embodiment of the disclosure firstly receives an operation instruction for a lifecycle policy; then acquiring all life cycle strategies 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 strategy set with the target strategy set. According to the lifecycle management method in the embodiment, the target lifecycle policies in the initial policy set are operated based on the operation instructions, so that the policy set with completed operation is obtained, the lifecycle policies are managed and maintained, the data are managed, the maintenance efficiency is improved, and the maintenance cost is reduced; in addition, the target policy set not only contains the original policies which are not operated, but also contains the newly generated policies after the operation, thereby ensuring the integrity of the target policy set.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
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, an operation instruction for a lifecycle policy is received.
Step 302, acquiring all life cycle strategies to obtain an initial strategy set.
Step 303, operating the target life cycle strategy in the initial strategy set based on the operation instruction to obtain an operated target strategy set.
Step 304, replace the initial policy set with the target policy set.
Steps 301-304 are substantially identical to steps 201-204 of the previous embodiments, and reference may be made to the previous descriptions of steps 201-204 for specific implementations, which are not repeated here.
In some alternative implementations of the present embodiment, the lifecycle policy includes at least one of: the storage bucket using the life cycle strategy, the storage mode of 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 for bucket a.
The lifecycle policy may also include a way to store data in the bucket, i.e., a way to customize data conversion, e.g., some data is initially stored as standard data, but over time needs to be converted to low frequency data, thereby freeing up storage space. For example, it is possible to define that standard data is automatically converted into low frequency data after one month.
The lifecycle policy may also include the lifecycle of the data in the bucket, i.e., a defined expiration time for the data, e.g., set to automatically clean up after a week. Or it may be set to purge the history version generated by the object periodically, for example, after three days after the object generates the new version, the history version of the object is purged automatically, so as to manage the data automatically.
Optionally, different life cycle policies may be set for different object data in the bucket, specifically, may be set by a prefix name or a suffix name of the object, which is not specifically limited in this embodiment.
Step 305, for each bucket, respectively obtaining a lifecycle policy corresponding to each bucket.
In this embodiment, for each bucket storing data, the execution body of the lifecycle management method (e.g., the server 105 shown in fig. 1) may obtain the lifecycle policy corresponding to each bucket. Because each life cycle policy includes a valid storage bucket, the executing body can acquire the life cycle policy corresponding to each storage bucket based on the effective storage bucket.
And 306, processing the data in the storage barrel based on the life cycle strategy corresponding to the storage barrel according to the preset period.
In this embodiment, the execution body may process the data in the bucket according to a preset period and based on a lifecycle rule corresponding to the bucket. The preset period may be one day, three days, one week, etc., and may be set according to practical situations, which is not specifically limited in this embodiment. Then, the execution body can perform corresponding cleaning on the data in the storage bucket at regular time in the period.
As can be seen from fig. 3, compared with the embodiment of fig. 2, the lifecycle management method highlights the step of processing the data in the bucket based on the 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 shows a flow 400 of a third embodiment of a method of managing lifecycles according to the present disclosure. The life cycle management method comprises the following steps:
Step 401, receive an add instruction to a lifecycle policy.
In this embodiment, an execution subject of the lifecycle management method (e.g., the server 105 shown in fig. 1) may receive an add instruction to the lifecycle policy. In this embodiment, the user wants to add a new lifecycle policy, and the executing body receives an instruction for adding the lifecycle policy sent by the user.
Step 402, acquiring all life cycle policies to obtain an initial policy set.
In this embodiment, the executing body may acquire all life cycle policies to obtain an initial policy set. Step 402 is substantially identical to step 202 of the foregoing embodiment, and reference may be made to the foregoing description of step 202 for specific implementation, which is not repeated herein.
Optionally, since the executing 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 life cycle policies stored by the executing body, that is, the initial policy set, through invoking getBucketLifecycleConfiguration the interface.
Step 403, obtaining the policy to be added.
In this embodiment, the executing body may acquire the policy to be added. The executing body may acquire the content of the policy to be added, that is, the policy that the user wants to add.
And step 404, adding the strategy to be added into the initial strategy set to obtain the target strategy set after operation.
In this embodiment, after acquiring the policy to be added, the executing body adds the policy to be added to the initial policy set, so as to obtain the target policy set after operation, thereby completing the addition of the lifecycle policy.
Step 405, replace the initial policy set with the target policy set.
In this embodiment, the executing entity may replace the initial policy set with the target policy set. Step 405 is substantially identical to step 304 of the foregoing embodiment, and reference may be made to the foregoing description of step 304 for specific implementation, which is not repeated herein.
Optionally, since the executing body may store the target policy set after generating the target policy set, the user may add the target policy set into the executing body through a preset interface, so that the target policy set replaces the initial policy set, for example, the user may add the target policy set into the executing body by calling putBucketLifecycleConfiguration the interface.
As can be seen from fig. 4, compared with the embodiment of fig. 3, the lifecycle management method implements the operation of adding the lifecycle policies, so that the target policy set includes both the original policies and the newly added policies, thereby improving the adding efficiency of the policies.
With continued reference to fig. 5, fig. 5 shows a flow 500 of a fourth embodiment of a method of managing lifecycles according to the present disclosure. The life cycle management method comprises the following steps:
Step 501, a modification instruction to a lifecycle policy is received.
In this embodiment, an execution subject of the lifecycle management method (e.g., the server 105 shown in fig. 1) may receive a modification instruction to the lifecycle policy. In this embodiment, the user wants to modify the original lifecycle policy, and the execution body receives a modification instruction for the lifecycle policy sent by the user.
Step 502, acquiring all life cycle strategies to obtain an initial strategy set.
In this embodiment, the executing body may acquire all life cycle policies to obtain an initial policy set. Step 502 is substantially identical to step 402 of the foregoing embodiment, and reference may be made to the foregoing description of step 402 for specific implementation, which is not repeated herein.
Step 503, obtaining the identification information of the strategy to be modified in the modification instruction.
In this embodiment, the executing body may acquire the identification information of the policy to be modified in the modification instruction. When the user wants to modify the original strategy, the modification instruction will have the identification information of the strategy to be modified, and the executing host will acquire the identification information of the strategy to be modified in the modification instruction.
Step 504, obtaining the strategy to be modified from the initial strategy set based on the identification information.
In this embodiment, the executing body may acquire the policy to be modified from the initial policy set based on the identification information acquired in step 503, that is, acquire the lifecycle policy that the user wants to modify. Specifically, the executing body may traverse the initial policy set, thereby obtaining the policy to be modified.
Step 505, modify the policy to be modified based on the modification instruction, to obtain the modified policy to be modified.
In this embodiment, the execution body 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 further includes content to be modified, so the execution body may modify the policy to be modified based on the obtained modification instruction, thereby obtaining a modified policy to be modified.
And step 506, adding the modified strategy to be modified to the initial strategy set to obtain the operated target strategy set.
In this embodiment, the execution body may add the modified policy to be modified obtained in step 505 to the initial policy set, to obtain the target policy set after operation.
Step 507, replacing the initial policy set with the target policy set.
In this embodiment, the executing entity may replace the initial policy set with the target policy set. Step 507 is substantially identical to step 405 of the foregoing embodiment, and specific implementation may refer to the foregoing description of step 405, which is not repeated herein.
As can be seen from fig. 5, compared with the embodiment of fig. 4, the lifecycle management method implements modification operation on the lifecycle policies, so that the target policy set includes both the original policies and the policies generated after modification, thereby improving the modification efficiency of the policies.
With continued reference to fig. 6, fig. 6 shows 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, a delete instruction for a lifecycle policy is received.
In this embodiment, the execution subject of the lifecycle management method (e.g., the server 105 shown in fig. 1) may receive a delete instruction for the lifecycle policy. In this embodiment, the user wants to delete the original lifecycle policy, and the executing body receives a deletion instruction for the lifecycle policy sent by the user.
Step 602, obtaining all life cycle policies, and obtaining an initial policy set.
In this embodiment, the executing body may acquire all life cycle policies to obtain an initial policy set. Step 602 is substantially identical to step 502 of the foregoing embodiment, and reference may be made to the foregoing description of step 502 for specific implementation, which is not repeated herein.
Step 603, obtaining the identification information of the strategy to be deleted in the deleting instruction.
In this embodiment, the executing body may acquire the identification information of the policy to be deleted in the deletion instruction. When the user wants to delete the original strategy, the deleting instruction carries the identification information of the strategy to be deleted, and the executing main body acquires the identification information of the strategy to be deleted in the deleting instruction.
And step 604, deleting the strategy to be deleted from the initial strategy set based on the identification information to obtain the operated target strategy set.
In this embodiment, the executing body may acquire the policy to be deleted from the initial policy set based on the identification information acquired in step 603, that is, acquire the lifecycle policy that the user wants to delete. Specifically, the executing body 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 executing entity may replace the initial policy set with the target policy set. Step 605 is substantially identical to step 507 of the previous embodiment, and specific implementation may refer to the previous description of step 507, which is not repeated here.
As can be seen from fig. 6, compared with the embodiment of fig. 5, the lifecycle management method implements the deletion operation of the lifecycle policies, so that the target policy set includes all original policies except the deleted policies, thereby improving the deletion efficiency of the policies.
With further reference to fig. 7, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of a lifecycle management apparatus, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to 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 for a life cycle policy; a first obtaining module 702 configured to obtain all life cycle policies, and obtain an initial policy set; an operation module 703 configured to operate the target lifecycle policies 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 policy set with the target policy set.
In the present embodiment, in the life cycle 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 may refer to the relevant descriptions of steps 201 to 204 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some alternative implementations of the present embodiment, the operation instructions include add instructions; the operation module comprises: the first acquisition submodule is configured to acquire a strategy to be added; a first adding sub-module configured to add the policy to be added to the initial policy set.
In some alternative implementations of the present embodiment, the operation instructions include modification instructions; the operation module comprises: the second acquisition submodule is configured to acquire identification information of a strategy to be modified in the modification instruction; the third acquisition sub-module is configured to acquire a strategy to be modified from the initial strategy 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 a modified strategy to be modified; and a second adding sub-module configured to add the modified policy to be modified to the initial policy set.
In some alternative implementations of the present embodiment, the operation instructions include delete instructions; the operation module comprises: the fourth acquisition submodule is configured to acquire identification information of a strategy to be deleted in the deletion instruction; and the deleting sub-module is configured to delete the strategy to be deleted from the initial strategy set based on the identification information.
In some optional implementations of this embodiment, the lifecycle management apparatus 700 further includes: the lifecycle policy includes at least one of: the storage bucket using the life cycle strategy, the storage mode of data in the storage bucket and the life cycle of the data in the storage bucket.
In some optional implementations of this embodiment, the lifecycle management apparatus 700 further includes: the second acquisition module is configured to acquire life cycle strategies corresponding to each storage bucket for each storage bucket respectively; and the processing module is configured to process the data in the storage barrel based on the life cycle strategy corresponding to the storage barrel according to the preset period.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 8 illustrates a schematic block diagram of an example electronic device 800 that may 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary 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 computing 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 the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; 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, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. 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.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, for example, a lifecycle management method. For example, in some embodiments, the lifecycle management method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When the computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the lifecycle management method 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 circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 computing) refers to a technical architecture that allows access to a shared physical or virtual resource pool that is elastically extensible through a network, where resources may include servers, operating systems, networks, software, applications, or storage devices, etc., and may be deployed and managed in an on-demand, self-service manner. Through cloud computing technology, high-efficiency and powerful data processing capability can be provided for technical application such as artificial intelligence and blockchain, and model training.
The computer system may include a client and a server. The client and server are typically 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 incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A method of lifecycle management, comprising:
Receiving an operation instruction for a life cycle strategy, wherein the operation instruction comprises a modification instruction;
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, wherein the operation instruction comprises the following steps: 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 a modified strategy to be modified; adding the strategy to be modified, which is completed by modification, to the initial strategy set;
Replacing the initial policy set with the target policy set.
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 operating instruction includes:
Acquiring a strategy to be added;
and adding the strategy to be added to the initial strategy set.
3. 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 operating instruction includes:
Acquiring identification information of a strategy to be deleted in the deletion instruction;
And deleting the strategy to be deleted from the initial strategy set based on the identification information.
4. A method according to any of claims 1-3, wherein the lifecycle policy comprises at least one of: the storage bucket using the life cycle strategy, the storage mode of data in the storage bucket and the life cycle of the data in the storage bucket.
5. The method of claim 4, further comprising:
for each storage bucket, respectively acquiring a life cycle strategy corresponding to each storage bucket;
And processing the data in the storage barrel based on the life cycle strategy corresponding to the storage barrel according to a preset period.
6. A lifecycle management apparatus comprising:
a receiving module configured to receive an operation instruction for a lifecycle policy, the operation instruction comprising a modification instruction;
the first acquisition module is configured to acquire all life cycle strategies to obtain an initial strategy set;
An operation module 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, where the operation module includes: the second acquisition submodule is configured to acquire the identification information of the 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 submodule is configured to modify the strategy to be modified based on the modification instruction to obtain a modified strategy to be modified; a second adding sub-module configured to add the modified policy to be modified to the initial policy set;
A replacement module configured to replace the initial policy set with the target policy set.
7. The apparatus of claim 6, wherein the operational instructions comprise add instructions; and
The operation module comprises:
the first acquisition submodule is configured to acquire a strategy to be added;
A first adding sub-module configured to add the policy to be added to the initial policy set.
8. The apparatus of claim 6, wherein the operation instruction comprises a delete instruction; and
The operation module comprises:
The fourth acquisition submodule is configured to acquire identification information of a strategy to be deleted in the deletion instruction;
And the deleting sub-module is configured to delete the strategy to be deleted from the initial strategy set based on the identification information.
9. The apparatus of any of claims 6-8, wherein the lifecycle policy comprises at least one of: the storage bucket using the life cycle strategy, the storage mode of data in the storage bucket and the life cycle of the data in the storage bucket.
10. The apparatus of claim 9, further comprising:
The second acquisition module is configured to acquire life cycle strategies corresponding to each storage bucket for each storage bucket respectively;
and the processing module is configured to process the data in the storage barrel according to a preset period and based on the life cycle strategy corresponding to the storage barrel.
11. 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 of any one of claims 1-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5.
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 CN114327271A (en) 2022-04-12
CN114327271B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114925389A (en) * 2022-04-29 2022-08-19 中国科学院信息工程研究所 Cooperative processing method, device and system for multi-link operation of personal information

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
CN114327271A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US8494996B2 (en) Creation and revision of network object graph topology for a network performance management system
CN114816393B (en) Information generation method, device, equipment and storage medium
CN112671892B (en) Data transmission method, device, electronic equipment and medium
CN113791875A (en) Input device virtualization method and device, electronic device and storage medium
CN114327271B (en) Lifecycle management method, apparatus, device and storage medium
CN114443076A (en) Mirror image construction method, device, equipment and storage medium
CN115102948A (en) Automatic downloading method, device and equipment of map tiles and storage medium
CN113760487B (en) Service processing method and device
CN115168291A (en) Hierarchical directory implementation method and device, electronic equipment and storage medium
CN113411271A (en) Data access method, device, equipment and storage medium
CN112905270A (en) Workflow implementation method, device, platform, electronic equipment and storage medium
CN114679468B (en) File transmission method and device, electronic equipment and computer readable storage medium
CN114780021B (en) Copy repairing method and device, electronic equipment and storage medium
CN113220501A (en) Method, apparatus and computer program product for data backup
CN113220576B (en) Management method, device, equipment and storage medium of test environment
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN112925573B (en) Method, device, equipment and computer readable medium for loading web page
CN113722548A (en) Method and device for processing reference relationship in business system
CN116627924A (en) Data reading method, system, device and readable storage medium
CN116341663A (en) Extension method, device, equipment and medium of deep learning reasoning framework
CN114579520A (en) Mirror image data processing method, mirror image data loading method and device
CN117255100A (en) Data synchronization method and device, electronic equipment and readable storage medium
CN113626051A (en) Byte code updating method and device and electronic equipment
CN115408195A (en) Batch task management method, equipment and storage medium for heterogeneous platform
CN115913954A (en) Cluster management information interaction 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