Method, device, equipment and medium for optimizing bucket recycling station in distributed storage system

By setting independent switches for the bucket recycling bin and bucket multi-version functions in a distributed storage system, the problem of the bucket recycling bin and bucket multi-version switches are solved, and the user experience and market competitiveness are enhanced.

CN116225336BActive Publication Date: 2025-08-26JINAN INSPUR DATA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310234599.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2025-08-26
Estimated Expiration
2043-03-08

AI Technical Summary

Technical Problem

The bucket recycling bin is consistent with the bucket multi-version switch, which leads to inconsistent user usage habits, which is easy to mislead and affects the user experience.

Method used

In the distributed storage system, independent switches are set for the bucket recycling bin and bucket multi-version functions, and the user's instructions are selected to turn on or off to clarify the functional distinction, so as to realize the mutual exclusion operation between bucket recycling bin and bucket multi-version.

Benefits of technology

It improves the practicality of the bucket recycling bin, adapts to user usage habits, optimizes functions, and improves user experience and market competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116225336B_ABST
    Figure CN116225336B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, device, and readable medium for optimizing a bucket recycle bin in a distributed storage system. The method comprises: simultaneously configuring a bucket recycle bin and bucket multi-version functionality in the distributed storage system; setting a first switch for the bucket recycle bin and a second switch for bucket multi-version functionality; and selecting to turn the first switch or the second switch on or off based on user instructions. The present invention addresses the current issue of inconsistency between the bucket recycle bin and bucket multi-version functionality, improves the practicality of the bucket recycle bin, adapts to user habits, provides a positive user experience, optimizes the functionality of the bucket recycle bin, and enhances market competitiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more particularly to a method, apparatus, device, and readable medium for optimizing a bucket recycling station in a distributed storage system. Background Art

[0002] Currently, object storage has implemented the bucket multi-version feature. The bucket recycle bin is also developed based on the bucket multi-version framework. When the bucket recycle bin is enabled, deleted or overwritten objects are saved as bucket recycle bin objects, without affecting subsequent uploads of objects with the same name into the bucket. Currently, the bucket recycle bin and bucket multi-version share the same switch, which can easily mislead users. Users may not understand that only one switch is turned on, but two features are in effect, which is not in line with user usage habits. Summary of the Invention

[0003] In view of this, the purpose of the embodiments of the present invention is to propose a method, device, equipment and readable medium for optimizing the bucket recycling station in a distributed storage system. By using the technical solution of the present invention, it is possible to solve the problem of consistency between the current bucket recycling station and the bucket multi-version switch, increase the practicality of the bucket recycling station, adapt to user usage habits, bring customers a good user experience, optimize the functions of the bucket recycling station, and improve market competitiveness.

[0004] Based on the above objectives, one aspect of an embodiment of the present invention provides a method for optimizing a bucket recycle bin in a distributed storage system, comprising the following steps:

[0005] Set up bucket recycle bins and bucket multi-versioning in the distributed storage system.

[0006] Set the first switch for the bucket recycling station and the second switch for the bucket multi-version;

[0007] The first switch or the second switch is turned on or off based on a user's instruction.

[0008] According to one embodiment of the present invention, setting a first switch for a bucket recycling station and setting a second switch for bucket multi-version includes:

[0009] Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch;

[0010] The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

[0011] According to one embodiment of the present invention, the further embodiment includes:

[0012] In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket;

[0013] In response to the object being stored in the recycle bin for more than a threshold time, the object is deleted from the recycle bin.

[0014] According to one embodiment of the present invention, the further embodiment includes:

[0015] In response to the second switch being turned on and the object being deleted in the bucket, the deleted object is stored as a historical version object.

[0016] Another aspect of an embodiment of the present invention further provides a device for optimizing a bucket recycling station in a distributed storage system, the device comprising:

[0017] A first setting module, the first setting module is configured to simultaneously set a bucket recycle bin and a bucket multi-version function in the distributed storage system;

[0018] a second setting module, the second setting module being configured to set a first switch for the bucket recycling station and a second switch for the bucket multi-version;

[0019] The selection module is configured to select to turn on or off the first switch or the second switch based on a user instruction.

[0020] According to one embodiment of the present invention, the second setting module is further configured to:

[0021] Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch;

[0022] The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

[0023] According to one embodiment of the present invention, the invention further includes a storage module, and the storage module is configured as follows:

[0024] In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket;

[0025] In response to the object being stored in the recycle bin for more than a threshold time, the object is deleted from the recycle bin.

[0026] According to one embodiment of the present invention, a storage module is further included, and the storage module is configured to:

[0027] In response to the second switch being turned on and the object being deleted in the bucket, the deleted object is stored as a historical version object.

[0028] Another aspect of the embodiments of the present invention further provides a computer device, the computer device comprising:

[0029] at least one processor; and

[0030] The memory stores computer instructions that can be run on the processor, and when the instructions are executed by the processor, the steps of any of the above methods are implemented.

[0031] Another aspect of the embodiments of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0032] The present invention has the following beneficial technical effects: the method for optimizing the bucket recycle station in a distributed storage system provided by an embodiment of the present invention, by simultaneously setting the bucket recycle station and the bucket multi-version function in the distributed storage system; setting a first switch for the bucket recycle station, and setting a second switch for the bucket multi-version; and selecting to turn on or off the first switch or the second switch based on the user's instructions, can solve the current problem of consistency between the bucket recycle station and the bucket multi-version switch, increase the practicality of the bucket recycle station, adapt to user usage habits, bring good user experience to customers, optimize the function of the bucket recycle station, and improve market competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 A schematic flow chart of a method for optimizing a bucket recycling station in a distributed storage system according to one embodiment of the present invention;

[0035] Figure 2 A schematic diagram of an apparatus for optimizing a bucket recycling station in a distributed storage system according to an embodiment of the present invention;

[0036] Figure 3 is a schematic diagram of a computer device according to one embodiment of the present invention;

[0037] Figure 4 FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0039] Based on the above objectives, a first aspect of an embodiment of the present invention provides an embodiment of a method for optimizing a bucket recycling station in a distributed storage system. Figure 1 Shown is a schematic flow chart of the method.

[0040] like Figure 1 As shown in , the method may include the following steps:

[0041] S1 sets up both bucket recycle bin and bucket multi-version functions in the distributed storage system.

[0042] S2 sets the first switch for the bucket recycle bin and the second switch for the bucket multi-version. Currently, the bucket recycle bin and bucket multi-version switches have three functions: on, off, and pause. These switches are recorded in the bucket flag, a hexadecimal value. Bit 1 in the bucket flag can be set to on the first switch, bit 2 to off the first switch, and bit 4 to pause the first switch. Bit 5 in the bucket flag can be set to on the second switch, bit 6 to off the second switch, and bit 7 to pause the second switch. The recycle bin and multi-version functions are mutually exclusive, and the flag can only have a unique value.

[0043] S3 selects to turn on or off the first switch or the second switch based on the user's instructions. The user can choose to turn on the bucket recycling switch or the bucket multi-version switch as needed, and only one of the two can be turned on at the same time.

[0044] By using the technical solution of the present invention, the problem of consistency between the current bucket recycling station and the bucket multi-version switch can be solved, the practicality of the bucket recycling station is increased, the user's usage habits are adapted, a good user experience is brought to customers, the function of the bucket recycling station is optimized, and the market competitiveness is improved.

[0045] In a preferred embodiment of the present invention, setting a first switch for the bucket recycling station and setting a second switch for the bucket multi-version includes:

[0046] Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch;

[0047] The 5th bit in the flag of the bucket is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch. In other embodiments, the control bits of the flags in the first switch and the second switch are changeable and can be modified as needed.

[0048] In a preferred embodiment of the present invention, it also includes:

[0049] In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket;

[0050] In response to an object being stored in the recycle bin for longer than a threshold time, the object is deleted from the recycle bin. If the current distributed storage system turns on the first switch, that is, the bucket recycle bin is turned on, when an object is deleted from the bucket, the object will be stored in the bucket recycle bin for a certain period of time. If the object is not restored within 30 days in the bucket recycle bin, the object will be completely deleted. Objects that enter the bucket recycle bin can be restored to objects within 30 days. After the object storage bucket recycle bin is turned on, it can only be paused and cannot be closed again. This facilitates user differentiation of function configurations. Quotas can be configured separately for the bucket recycle bin. When the bucket recycle bin is turned on, objects no longer occupy quotas after becoming recycle bin objects.

[0051] In a preferred embodiment of the present invention, it also includes:

[0052] In response to the second switch being turned on and an object being deleted from the bucket, the deleted object is stored as a historical version object. If the second switch is turned on in current distributed storage systems, that is, if bucket multi-versioning is enabled, objects uploaded to the bucket will be accompanied by a version ID (a random 32-bit string). When an object in the bucket is deleted, it is not directly deleted. Instead, the deleted object is saved as a historical version object, and this does not affect the ability to upload another object with the same name to the bucket.

[0053] By using the technical solution of the present invention, the problem of consistency between the current bucket recycling station and the bucket multi-version switch can be solved, the practicality of the bucket recycling station is increased, the user's usage habits are adapted, a good user experience is brought to customers, the function of the bucket recycling station is optimized, and the market competitiveness is improved.

[0054] It should be noted that those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM). The embodiment of the above-mentioned computer program can achieve the same or similar effects as any of the corresponding aforementioned method embodiments.

[0055] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0056] Based on the above purpose, the second aspect of the embodiment of the present invention provides a device for optimizing a bucket recycling station in a distributed storage system, such as Figure 2 As shown, the apparatus 200 includes:

[0057] A first setting module, the first setting module is configured to simultaneously set a bucket recycle bin and a bucket multi-version function in the distributed storage system;

[0058] a second setting module, the second setting module being configured to set a first switch for the bucket recycling station and a second switch for the bucket multi-version;

[0059] The selection module is configured to select to turn on or off the first switch or the second switch based on a user instruction.

[0060] In a preferred embodiment of the present invention, the second setting module is further configured to:

[0061] Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch;

[0062] The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

[0063] In a preferred embodiment of the present invention, a storage module is further included, and the storage module is configured as follows:

[0064] In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket;

[0065] In response to the object being stored in the recycle bin for more than a threshold time, the object is deleted from the recycle bin.

[0066] In a preferred embodiment of the present invention, a storage module is further included, and the storage module is configured to:

[0067] In response to the second switch being turned on and the object being deleted in the bucket, the deleted object is stored as a historical version object.

[0068] Based on the above objectives, a third aspect of an embodiment of the present invention provides a computer device. Figure 3 FIG. 1 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 3As shown, the embodiment of the present invention includes the following apparatus: at least one processor 21; and a memory 22, wherein the memory 22 stores computer instructions 23 that can be executed on the processor, and when the instructions are executed by the processor, the following method is implemented:

[0069] Set up bucket recycle bins and bucket multi-versioning in the distributed storage system.

[0070] Set the first switch for the bucket recycling station and the second switch for the bucket multi-version;

[0071] The first switch or the second switch is turned on or off based on a user's instruction.

[0072] In a preferred embodiment of the present invention, setting a first switch for the bucket recycling station and setting a second switch for the bucket multi-version includes:

[0073] Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch;

[0074] The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

[0075] In a preferred embodiment of the present invention, it also includes:

[0076] In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket;

[0077] In response to the object being stored in the recycle bin for more than a threshold time, the object is deleted from the recycle bin.

[0078] In a preferred embodiment of the present invention, it also includes:

[0079] In response to the second switch being turned on and the object being deleted in the bucket, the deleted object is stored as a historical version object.

[0080] Based on the above objectives, a fourth aspect of an embodiment of the present invention provides a computer-readable storage medium. Figure 4 FIG. 1 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 4 As shown, the computer readable storage medium 31 stores a computer program 32 that performs the following method when executed by a processor:

[0081] Set up bucket recycle bins and bucket multi-versioning in the distributed storage system.

[0082] Set the first switch for the bucket recycling station and the second switch for the bucket multi-version;

[0083] The first switch or the second switch is turned on or off based on a user's instruction.

[0084] In a preferred embodiment of the present invention, setting a first switch for the bucket recycling station and setting a second switch for the bucket multi-version includes:

[0085] Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch;

[0086] The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

[0087] In a preferred embodiment of the present invention, it also includes:

[0088] In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket;

[0089] In response to the object being stored in the recycle bin for more than a threshold time, the object is deleted from the recycle bin.

[0090] In a preferred embodiment of the present invention, it also includes:

[0091] In response to the second switch being turned on and the object being deleted in the bucket, the deleted object is stored as a historical version object.

[0092] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0093] In addition, the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.

[0094] It will also be appreciated by those skilled in the art that the various exemplary logic blocks, modules, circuits and algorithmic steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given of the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0095] In one or more exemplary designs, the function can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. As an example and not limitation, the computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of instructions or data structures and can be accessed by a general or special-purpose computer or a general or special-purpose processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves are used to send software from a website, server, or other remote source, the above-mentioned coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are all included in the definition of medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0096] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless expressly limited to the singular.

[0097] It should be understood that, as used herein, the singular forms "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" is intended to include any and all possible combinations of one or more of the associated listed items.

[0098] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0099] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program instructing the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.

[0100] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples. Within the spirit of the embodiments of the present invention, the technical features of the above embodiments or different embodiments may be combined, and there are many other variations of different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the scope of protection of the embodiments of the present invention.

Claims

1. A method for optimizing a bucket recycling station in a distributed storage system, characterized in that: The following steps are involved: Set up bucket recycle bins and bucket multi-versioning in the distributed storage system. Set the first switch for the bucket recycling station and the second switch for the bucket multi-version; Selecting to turn on or off the first switch or the second switch based on a user's instruction; In response to the first switch being turned on and the object being deleted in the bucket, the object is saved in the recycle bin without occupying the quota in the bucket; In response to the object being stored in the recycle bin for more than a threshold time, deleting the object from the recycle bin; In response to the second switch being turned on and the object being deleted in the bucket, the deleted object is stored as a historical version object.

2. The method according to claim 1, characterized in that Setting the first switch for the bucket recycle bin and the second switch for bucket multi-versioning includes: Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch; The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

3. A device for optimizing a barrel recycling station in a distributed storage system, characterized in that: The device comprises: a first setting module, configured to simultaneously set a bucket recycle bin and a bucket multi-version function in the distributed storage system; a second setting module configured to set a first switch for the bucket recycling station and a second switch for the bucket multi-version; a selection module configured to select turning on or off the first switch or the second switch based on a user instruction; a storage module configured to: in response to the first switch being turned on and the object being deleted from the bucket, save the object in a recycle bin without occupying the quota in the bucket; and in response to the object being saved in the recycle bin for more than a threshold time, delete the object from the recycle bin; The saving module is configured to: in response to the second switch being turned on and the object being deleted in the bucket, store the deleted object as a historical version object.

4. The device according to claim 3, characterized in that The second setting module is further configured to: Set the first bit of the bucket flag to turn on the first switch, the second bit to turn off the first switch, and the fourth bit to pause the first switch; The 5th bit in the bucket flag is set to turn on the second switch, the 6th bit is set to turn off the second switch, and the 7th bit is set to pause the second switch.

5. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions implement the steps of the method according to claim 1 or 2 when executed by the processor.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Bucket recycle bin implementation method and device for object storage, equipment and medium

    CN114546340A