Microservice-based deduplication

Through the collaborative work of front-end microservices and back-end microservices, data is divided into shards and deduplicated, which solves the problem of space waste and cost increase during storage, achieving efficient data storage and reducing storage costs.

CN111033487BActive Publication Date: 2024-10-29EMC IP HLDG CO LLC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201880038185.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-13
Publication Date
2024-10-29
Estimated Expiration
2038-04-13

AI Technical Summary

Technical Problem

The existing technology fails to effectively remove duplication when storing data, resulting in a waste of storage space and increased costs. Especially when storing multiple versions of data, it fails to effectively reduce storage space requirements.

Method used

Front-end microservices and back-end microservices work together to divide the data into shards, generate a sketch of each shard to match the similarity group, and use metadata to add the unmatched shard parts to the compression area, thereby in Data is deduplicated before storage.

Benefits of technology

It effectively reduces the amount of data stored in the object storage device, reduces storage costs, improves data storage throughput, eliminates storage bottlenecks, and provides a scalable data storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111033487B_ABST
    Figure CN111033487B_ABST
Patent Text Reader

Abstract

A system for managing an object storage device may include a front-end microservice and a back-end microservice. The front-end microservice may obtain a request to store data in the object storage device and divide the data into shards. The back-end microservice may generate a sketch of each shard, match each shard with a similarity group in a plurality of similarity groups, obtain metadata associated with each matched similarity group, and use the metadata to add at least a portion of one of the shards to a compaction zone.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Computing devices generate, use, and store data. Data can be, for example, images, documents, web pages, or metadata associated with any file. Data can be stored locally on a persistent storage device of a computing device and / or can be stored remotely on a persistent storage device of another computing device. Summary of the invention

[0002] In one aspect, a system for managing an object storage device according to one or more embodiments of the present invention may include a front-end microservice and a back-end microservice. The front-end microservice may obtain a request to store data in the object storage device and divide the data into shards. The back-end microservice may generate a sketch of each shard, match each shard with a similarity group, obtain metadata associated with each matched similarity group, and use the metadata to add at least a portion of one of the shards to a compression zone.

[0003] In one aspect, a method for managing an object storage device of one or more embodiments of the present invention may include: a front-end microservice obtains a request to store data in an object storage device; the front-end microservice divides the data into shards; a back-end microservice generates a sketch of each shard; the back-end microservice matches each shard with a similarity group; the back-end microservice obtains metadata associated with each matched similarity group; and the back-end microservice uses the metadata to add at least a portion of one of the shards to a compression zone.

[0004] In one aspect, a non-transitory computer-readable medium of one or more embodiments of the present invention includes a computer-readable program code, which, when executed by a computer processor, enables the computer processor to perform a method for managing an object storage device, the method comprising: a front-end microservice obtains a request to store data in an object storage device; the front-end microservice divides the data into shards; a back-end microservice generates a sketch of each shard; the back-end microservice matches each shard with a similarity group; the back-end microservice obtains metadata associated with each matched similarity group; and the back-end microservice uses the metadata to add at least a portion of one of the shards to a compression area. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Some embodiments of the present invention will be described below with reference to the accompanying drawings. However, the accompanying drawings only illustrate certain aspects or embodiments of the present invention by way of example and are not intended to limit the scope of the claims.

[0006] Figure 1 A schematic diagram of a system showing one or more embodiments of the present invention;

[0007] Figure 2A A schematic diagram showing an object storage device according to one or more embodiments of the present invention;

[0008] Figure 2B A schematic diagram showing similarity group metadata items according to one or more embodiments of the present invention;

[0009] Figure 2C A schematic diagram showing an object template storage device according to one or more embodiments of the present invention;

[0010] Figure 2D A schematic diagram showing a slicing template storage device according to one or more embodiments of the present invention;

[0011] Figure 3A A schematic diagram illustrating data of one or more embodiments of the present invention;

[0012] Figure 3B Shows Figure 3A A schematic diagram of data slicing according to one or more embodiments of the present invention is shown;

[0013] Figure 3C Shows Figure 3B A schematic diagram of a segmented structure of one or more embodiments of the present invention is shown;

[0014] Figure 4 A flowchart showing a method of storing data in an object storage device according to one or more embodiments of the present invention;

[0015] Figure 5 A flowchart showing a second method of storing data in an object storage device according to one or more embodiments of the present invention;

[0016] Figure 6 A flowchart showing a method of reading data stored in an object storage device according to one or more embodiments of the present invention;

[0017] Figure 7 A flowchart showing a second method of reading data stored in an object storage device according to one or more embodiments of the present invention;

[0018] Figure 8 A flowchart of a method for adjusting the amount of computing resources allocated to a front-end microservice or a back-end microservice according to one or more embodiments of the present invention is shown. DETAILED DESCRIPTION

[0019] Specific embodiments of the present invention will be described below with reference to the accompanying drawings. In the following description, many details are set forth as examples of the present invention. It will be appreciated by those skilled in the art that one or more embodiments of the present invention can be practiced without these specific details, and various changes or modifications may be made without departing from the scope of the present invention. Certain details known to those of ordinary skill in the art are omitted herein to avoid obscuring the description.

[0020] Embodiments of the present invention generally relate to a method and system for managing an object storage device. More specifically, the method and system may provide the ability to deduplicate data before storing the data in the object storage device. Deduplicating data before storing the data in the object storage device may increase the amount of data that may be stored in the object storage device compared to storing the data in the object storage device without deduplicating the data. Deduplicating data may also reduce costs associated with storing data in the object storage device by reducing the total amount of storage required to store the deduplicated data compared to the total amount of storage required to store the non-deduplicated data.

[0021] As used herein, "deduplication" refers to a method of storing only the portions of data that are not already stored in a storage device. For example, when multiple versions of a large text document with only small differences between each version are stored without deduplication, the amount of storage space on the persistent storage device required to store each version is approximately the same. In contrast, when multiple versions of these large text documents are stored with deduplication, only the first of the multiple versions stored requires a significant amount of storage. After the first version is stored in the persistent storage device, subsequently stored versions of the large text document will be deduplicated before being stored in the persistent storage device, thereby requiring much less storage space on the persistent storage device to store the subsequently stored versions than the amount of storage space on the persistent storage device required to store the first stored version.

[0022] In one or more embodiments of the present invention, a deduplication method may include: one or more front-end microservices receive data and divide the data into shards. The slices may be deduplicated by one or more back-end microservices by matching each shard with a similarity group. The metadata associated with the matched similarity group may specify the fingerprint of a subset of segments of all segments stored in the object storage device. For each shard, the fingerprint of each segment of the shard may be matched with the fingerprint of the subset of segments. Any fingerprint that does not match any fingerprint of the subset of segments may be added to one or more compression zones. The fingerprint corresponding to each unmatched fingerprint may be added to the metadata of the similarity group. One or more compression zones may be stored in the object storage device. Recipes and object templates that allow each data shard and data to be reconstructed separately from the data stored in the object storage device may be stored for future use.

[0023] In one or more embodiments of the present invention, the number of front-end microservices and / or the number of back-end microservices can be dynamically adjustable. Adjusting the number of each microservice can achieve efficient allocation of computing resources to different parts of the deduplication method. More efficiently allocating computing resources for storing data in a storage device can dynamically reallocate reserved computing resources in response to changes in storage rates, thereby improving the data storage throughput of the storage device, eliminating storage bottlenecks, reducing storage costs, and / or providing a scalable data storage system.

[0024] Figure 1 A system of one or more embodiments of the invention is shown. The system may include a client (100) storing data in an object store (160) of a persistent store (150). The system may include a deduplication service (110) that deduplicates data from the client (100) before storing the data in the object store (160). In one or more embodiments of the invention, the client (100) and / or the persistent store (150) are not part of the system.

[0025] The client (100) may be a computing device. The computing device may be, for example, a mobile phone, a tablet computer, a portable computer, a desktop computer, or a server. Other examples of the client (100) include a client running in the cloud, such as a client running in a virtual machine or in a container running in a public and / or private cloud environment. The client (100) may be other types of computing devices without departing from the present invention.

[0026] The client (100) may be operably connected to a deduplication service (110). Figure 1Not shown, but without departing from the invention, the client (100) may be operably connected to the persistent storage device (150) or other elements of the system.

[0027] The persistent storage device (150) may be a hard disk drive, a solid state drive, any other type of persistent storage medium, or a logical storage device including any combination of the foregoing storage mediums and / or other types of persistent storage devices. In one or more embodiments of the present invention, the persistent storage device (150) may be a cloud storage service. The cloud storage service may be a logical storage device that includes any number of physical storage devices that are operably connected and / or unified to form a logical storage device. The logical storage device may include redundancy or other data integrity features to ensure that the failure of any physical storage element does not result in the loss of data stored in the logical storage device.

[0028] The persistent storage device (150) may include an object storage device (160) for storing data from the client (100), a shard template storage device (170) for storing shard templates generated by the backend microservice (140) of the deduplication service (110), and an object template storage device (180) for storing object templates generated by the frontend microservice (120). Without departing from the present invention, the shard template storage device (170) and / or the object template storage device (180) may be located on different devices and / or different persistent storage devices. Without departing from the present invention, the shard template storage device (170) and / or the object template storage device (180) may be part of the object storage device (160). For more detailed information about the object storage device (160), the shard template storage device (170), and the object template storage device (180), please refer to Figures 2A-2D .

[0029] As used herein, an object storage device is a data storage architecture that manages data as objects. Each object of the object storage device may include data, metadata, and / or a globally unique identifier for the object. An object may include a number of bytes used to store data in the object. Without departing from the present invention, each object of the object storage device may include a different number of bytes. In one or more embodiments of the present invention, the object storage device does not include a file system. For more detailed information about the object storage device (160), please refer to Figure 2A-2B .

[0030] The persistent storage device (150) may be operably connected to the deduplication service (110). Figure 1Not shown, but without departing from the invention, a persistent storage device may be operably connected to the client (100) or other elements of the system.

[0031] The deduplication service (110) may receive data from the client (100) and deduplicate the data before storing the data in the object storage device (160). The deduplication service (110) may also provide the data stored in the object storage device in response to a data request from the client (100). In one or more embodiments of the present invention, the deduplication service (110) may be a service executed on a cloud platform, such as a platform as a service.

[0032] As used herein, a cloud platform is a logical computing resource that abstracts the aggregate physical resources of one or more physical computing systems. The one or more physical computing systems may be physical devices that include non-transitory storage, memory (e.g., random access memory), and one or more processors. The non-transitory storage may include instructions that, when executed by one or more processors, enable the cloud platform to perform the operations described in this application and described in the description. Figure 4-8 The functions shown in .

[0033] In one or more embodiments of the present invention, the deduplication service (110) may be a physical device including a non-transitory storage device, a memory (e.g., a random access memory), and one or more processors. The physical device may be, for example, a server. The physical device may be other types of computing devices without departing from the present invention. The non-transitory storage device may include instructions that, when executed by one or more processors, enable the physical device to perform the operations described in this application and implemented in the present invention. Figure 4-8 The functions shown in .

[0034] The deduplication service (110) may include a front-end microservice (120) that receives data from a client (100), a back-end microservice (140) that deduplicates received data shards, and a message manager (130) that manages requests and notifications between the front-end microservice (120) and the back-end microservice (140). The front-end microservice (120) and the back-end microservice (140) may also facilitate providing data stored in an object storage device to the client (100). Each component of the deduplication service (110) is described below.

[0035] The front-end microservice (120) may be one or more services that receive data sent by the client (100) to be stored in the object storage device (160), prepare the data to be deduplicated, and forward the prepared data to the back-end microservice (140). In response to obtaining the data storage request sent by the client, the front-end microservice may execute Figure 4In one or more embodiments of the present invention, the front-end microservice (120) may be a microservice executed on a cloud platform.

[0036] The front-end microservice (120) may also obtain a request for data stored in the object storage device (160). The front-end microservice may execute Figure 6 The method shown is to read data from the object storage device (160).

[0037] Although in Figure 1 , but the system may include a load balancer that receives all or part of a request from a client (100) to store data in an object storage device and / or retrieve data from an object storage device, and distributes the request to the front-end microservices. The number of front-end microservices can be adjusted dynamically, that is, more instances of the front-end microservices can be instantiated, or existing instances of the front-end microservices can be terminated to match the request processing capacity of the front-end microservice (120) with the rate of requests from the client (100) to store data in the object storage device. For example, the number of requests from the client may exceed the request processing capacity of the front-end microservice (120), thereby causing a backlog of requests, resulting in a mismatch. In another example, the request processing capacity of the front-end microservice (120) may exceed the number of requests from the client, thereby causing the front-end microservice to be idle, resulting in a mismatch.

[0038] The message manager (130) can facilitate the transmission of requests and notifications between the front-end microservices (120) and the back-end microservices (140). In one or more embodiments of the present invention, the message manager (130) can be a service executed on a cloud platform. The message manager (130) can include a request queue (131) and a notification queue (132). Each queue is discussed below.

[0039] The request queue (131) can be one or more queues that queue data shards generated by the front-end microservice (120) for processing by the back-end microservice (140), or queue data shards reconstructed by the back-end microservice (140) for use by the front-end microservice (120) when reconstructing stored data. Each queue of the request queue (131) can be a first-in-first-out queue. Without departing from the present invention, the queues of the request queue (131) can be other types of queues. For example, the queue can be configured to prioritize certain shards for processing by the back-end microservice (140) over other shards, such as moving certain shards to the front of the queue based on the type, quality, or metadata associated with the shards.

[0040] In one or more embodiments of the present invention, a first queue may be allocated to facilitate storing data in an object storage device, and a second queue may be allocated to facilitate reading data from an object storage device. For example, when data is being stored in an object storage device, the first queue may send data shards to a backend microservice for processing, and when data is being read from an object storage device, the second queue may send reconstructed data shards to a frontend microservice for processing. The second queue may be a notification queue that enables a backend microservice to send reconstructed shards to a specified frontend microservice. The first queue may be a request queue that enables a frontend microservice to send shard requests or shards to any backend microservice without specifying a specific microservice that will receive the request. In other words, the first queue may send requests to any backend microservice, and the notification queue may send reconstructed shards to the frontend microservice that requested the reconstructed shards.

[0041] The notification queue (132) can be a messaging queue that enables the backend microservice (140) and the frontend microservice (120) to exchange Figure 4-7 A message confirming the completion of any part of the method shown in .

[0042] The backend microservice (140) may be one or more microservices that receive data shards to be stored in the object storage device (160) from the message manager (130), deduplicate the shards, and store the deduplicated shards in a compression area in the object storage device (160). The backend microservice may execute Figure 5 The method shown is used to store the deduplicated data in the object storage device. In one or more embodiments of the present invention, the backend microservice (140) may be a microservice executed on a cloud platform.

[0043] The backend microservice (140) may also obtain a request for a data shard stored in the object storage device (160). The backend microservice may execute Figure 7 The method shown is used to provide data shards stored in an object storage device.

[0044] In one or more embodiments of the present invention, the number of backend microservices can be dynamically adjusted, that is, more instances of the backend microservices can be instantiated, or existing instances of the backend microservices can be terminated, so that the shard processing capacity of the backend microservice (140) matches the rate of requests from the client (100) to store data shards in the object storage device and / or obtain data shards in the object storage device. Figure 8 The method shown in dynamically adjusts the number of backend microservices.

[0045] In one or more embodiments of the present invention, the backend microservices and / or the frontend microservices may be adjusted according to the processing load and / or the memory usage load of the hardware on which the deduplication service is executed.

[0046] The front-end microservices and back-end microservices can utilize multiple storage devices to provide the functionality described herein. Figures 2A-2D The storage devices (160, 170, 180, Figure 1 ) structure diagram.

[0047] In addition, although the front-end microservice and the back-end microservice are described herein as independent services, embodiments of the present invention are not limited to independent services that respectively perform the functions of the front-end microservice and the back-end microservice. Without departing from the present invention, the functions of the front-end microservice and the back-end microservice may also be performed by a single service. For example, a single service may perform the functions of the front-end microservice and the back-end microservice described herein.

[0048] Figure 2A An exemplary object store (160) of one or more embodiments of the invention is shown. The object store (160) may store compressed regions (161A, 161P) and similarity group metadata (162A-162Q).

[0049] Each compression zone (161A, 161P) can store one or more segments of one or more data slices. A compression zone as used herein is one or more data that is aggregated and / or compressed.

[0050] Each similarity group metadata (162A-162Q) may specify metadata associated with the similarity group. The metadata for each similarity group may specify a sketch and a plurality of fingerprints. The sketch may be used to match a data shard to a similarity group. The fingerprint may be used to determine whether a segment of the data shard mapped to the similarity group already exists in the object storage device.

[0051] Figure 2B An example of similarity group A metadata (162A) is shown. Similarity group A metadata (162A) includes a sketch (163) and a plurality of fingerprints (164A-164R).

[0052] In one or more embodiments of the invention, a sketch may be a bit sequence that does not uniquely identify a shard. Instead, a sketch may be a bit sequence that identifies a group of shards, each shard in the group including similar but unique data or including the same data. In other words, if each shard includes similar but unique data or includes the same data, the sketches of multiple different shards may be the same bit sequence.

[0053] In one or more embodiments of the invention, a fingerprint may be a bit sequence that almost uniquely identifies a segment of a shard. As used herein, "almost uniquely" means that the probability of a conflict between fingerprints specifying two segments of different data is negligible compared to the probability of other unavoidable causes of fatal errors. In one or more embodiments of the invention, the probability is 10 -20 Below. In one or more embodiments of the present invention, unavoidable fatal errors may be caused by natural forces (such as tornadoes). In other words, the fingerprints of any two segments specifying different data are almost always different.

[0054] Each fingerprint (164A-164R) of the similarity group A metadata (162A) may include a compression region identifier (165A-165R). The compression region identifier (165A-165R) may specify a compression region in which segments of the shard having the same fingerprint specified by the fingerprint (164A-164R) are stored. In other words, each fingerprint (164A-164R) may specify a storage location for the segment having the fingerprint specified by the fingerprint (164A-164R).

[0055] Although the similarity group metadata is shown here as including only the sketch (163) and the fingerprint (164A-164R), the similarity group metadata may also include other data without departing from the invention. For example, the similarity group may specify the length of the compressed region, the offset from the start of the compressed region, a bit sequence, a name, or other types of data without departing from the invention.

[0056] Refer to Figure 2A Although the object store (160) is shown here as including only compression zones and similarity group metadata, other types of data may be stored in the object store (160) without departing from the present invention. For example, the object store (160) may include a shard template store (170), an object template store (180), metadata associated with each compression zone, or other types of data. The metadata associated with each compression zone may specify segment boundaries between multiple segments stored in each compression zone, key values ​​pointing to portions of a compression zone, or other data that may identify or specify portions of a compression zone.

[0057] Figure 2D A schematic diagram of a slicing template storage device (170) according to one or more embodiments of the present invention is shown. The slicing template storage device (170) may include a plurality of slicing templates (171A-171U) including data that can be used to reconstruct data slicing. Each slicing template (171A-171U) may include a similarity group identifier (172A-172U) and a fingerprint identifier (173A-173U).

[0058] The shard template may have a name that uniquely identifies the data shard, that is, the shard template name A. The shard template may be used as Figure 5 A portion of the method of storing data in an object storage device is generated.

[0059] The affinity group identifier (172A-172U) may specify an affinity group and corresponding metadata (162A-162Q, Figure 2A ). The similarity group identifier (172A-172U) may be, for example, a key value, a bit sequence, or other data that supports obtaining corresponding metadata.

[0060] The fingerprint identifiers (173A-173U) may specify one or more fingerprints (164A-164R) of the similarity group metadata corresponding to the similarity group specified by the similarity group identifiers (172A-172U). The fingerprint identifiers (173A-173U) may be, for example, one or more key values, bit sequences, or one or more fingerprints (164A-164R, Figure 2B ) other data. Obtain one or more fingerprints (164A-164R, Figure 2B ) can be used to obtain the information stored in the compressed area identifier (165A-165R, Figure 2B ) specifies the fragments in the compression zone.

[0061] Although the slicing templates (171A-171U) are shown here as including only similarity group identifiers (172A-172U) and fingerprint identifiers (173A-173U), the slicing templates (171A-171U) may also include other data without departing from the invention.

[0062] Figure 2C An object template storage device (180) according to one or more embodiments of the present invention is shown. The object template storage device (180) may include a plurality of object templates (181A-181T) including data that can be used to reconstruct a data object. The data object may be, for example, a previously stored object in the object storage device (160, Figure 2A ) or a portion of the data file in the data file. Each object template (181A-181T) may include an object name (182A-182T) and a shard identifier (183A-183T). The object template may be used as Figure 4 A portion of the method of storing data in an object storage device is generated.

[0063] The object name (182A-182T) of each object template (181A-181T) may be the name of a data object stored in the object storage device. Figure 6 When the method for reading data shown requests to read data stored in the object storage device, the object name (182A-182T) can be used to identify the object template (181A-181T).

[0064] The slice identifier (183A-183T) may specify one or more slice templates (171A-171U) stored in the slice template storage device (170). Figure 6 The method for reading data shown passes the shard template identifier (183A-183T) to the backend microservice to obtain each data shard corresponding to each shard template. The shard identifier (183A-183U) can be, for example, one or more key values, bit sequences, or other data that enables the backend microservice to obtain the corresponding shard template.

[0065] Although the object templates (181A-181U) are described herein as including only object names (182A-182U) and slice identifiers (183A-183U), the object templates (181A-181U) may include other data without departing from the invention.

[0066] Figure 3A-3B The relationship diagrams between data (300), slices (310, 320, 330) of data (300), and segments (311, 312, 313) of slice (310) of data (300) are shown respectively. Figure 4 As part of the method shown, the data (300) may be divided into segments and slices.

[0067] Figure 3A A schematic diagram of data (300) is shown for one or more embodiments of the present invention. The data may be any type of data in any format and any length.

[0068] Figure 3B A schematic diagram of slices (310, 320, 330) of data (300) is shown. Each slice of the data may include an independent and different portion of the data (300). Each slice may have a different but similar length. For example, each slice may include approximately 8M bytes of data, for example, the first slice may include 8.05M bytes of data, the second slice may include 7.93M bytes of data, and so on. In one or more embodiments of the present invention, the average amount of data per slice is 4M to 16M bytes.

[0069] Figure 3CA schematic diagram of segments (311, 312, 313) of a slice (310) of data (300) is shown. Each segment may include an independent and different portion of the slice (310). Each segment may have a different but similar length. For example, each segment may include approximately 8K bytes of data, for example, a first segment may include 8.03K bytes of data, a second segment may include 7.96K bytes of data, and so on. In one or more embodiments of the present invention, the average amount of data per segment is 4K to 16K bytes.

[0070] Figure 4-8 A flow diagram illustrating one or more embodiments of the present technology is shown. Figure 4 and Figure 5 The method shown can facilitate storing data in an object storage device, while Figure 6-7 The illustrated method may facilitate reading stored data from an object storage device. Figure 8 The illustrated method can adjust computing resources dedicated to reading data from and / or writing data to an object storage device to facilitate reading data from and storing data in an object storage device. Although the various steps in these flowcharts are shown and described in sequence, it should be understood by those of ordinary skill in the art that some or all of the steps may be performed in a different order, may be combined or omitted, and some or all of the steps may be performed in parallel. In addition, these steps may be performed actively or passively.

[0071] Figure 4 A flowchart of one or more embodiments of the present invention is shown. According to one or more embodiments of the present invention, Figure 4 The method described in can be used to store data in an object storage device. For example, the deduplication service (110, Figure 1 )'s front-end microservice can be executed Figure 4 The method shown.

[0072] In step 400, a deduplication service may obtain a data file or a portion of the data file to be stored in an object storage device. The data file may be provided to the deduplication service by a client operatively connected to the deduplication service.

[0073] In one or more embodiments of the present invention, the load balancer of the deduplication service may receive the data file. The load balancer may add the data file to a queue of data files to be stored in the object storage device. When the data file reaches the head of the queue, the load balancer may provide it to the front-end microservice of the deduplication service.

[0074] In one or more embodiments of the present invention, the data file may be streamed to the deduplication service. In other words, the individual parts of the data file or data streams may be sent to the deduplication service in chronological order. The load balancer may designate a front-end microservice of the deduplication service to receive the streamed data file or data stream and perform a load balancer on the individual parts of the streamed data during the streaming process. Figure 4 One or more additional steps of the process shown.

[0075] In step 410, the front-end microservice may divide the data file into multiple segments. These segments may be non-overlapping portions of the data file, each with a reference Figure 3C Said approximately the same length.

[0076] In one or more embodiments of the present invention, a data file may be divided into multiple segments by generating a rolling hash value of the data file. As a window moves in the data file, the rolling hash value may be a continuous hash value of the window. For example, a first rolling hash value may be a hash value of 64 bytes of data starting from the first byte of the data file, a second rolling hash value may be a hash value of 64 bytes of data starting from the second byte of the data file, a third rolling hash value may be a hash value of 64 bytes of data starting from the third byte of the data file, and so on.

[0077] Multiple segmentation breakpoints can then be selected by comparing each hash value or portion thereof of the rolling hash value with a predetermined bit sequence. The starting byte of each hash value that matches the predetermined bit pattern can be selected as a segmentation breakpoint. The position of each selected starting byte can be used as a segmentation breakpoint. In one or more embodiments of the present invention, the predetermined bit sequence may include 13 bits.

[0078] The segments of the data file may be generated by dividing the data file into a plurality of parts according to the positions specified by the segmentation breakpoints. For example, the first segment may start at the start position of the data file and end at the position specified by the first segmentation breakpoint, the second segment may start at the position specified by the first segmentation breakpoint and end at the position specified by the second segmentation breakpoint, the third segment may start at the position specified by the second segmentation breakpoint and end at the position specified by the third segmentation breakpoint, and so on.

[0079] In step 420, the front-end microservice may group the multiple segments into multiple shards. These shards may be non-overlapping portions of the data file, each with a reference Figure 3B Said approximately the same length.

[0080] In one or more embodiments of the invention, the rolling hash value of step 410 may be used to group the segments into shards.

[0081] Multiple fragmentation breakpoints can be selected by comparing each hash value or part thereof of the rolling hash value with the second predetermined bit sequence. The starting byte of each hash value that matches the second predetermined bit pattern can be selected as a fragmentation breakpoint. The position of each selected starting byte can be used as a fragmentation breakpoint. In one or more embodiments of the present invention, the second predetermined bit sequence may include 23 bits.

[0082] The fragments of the data file may be generated by aggregating the segments according to the positions specified by the fragment breakpoints. For example, the first fragment may be generated by aggregating the segments between the start position of the data file and the position specified by the first fragment breakpoint, the second fragment may be generated by aggregating the segments between the position of the first fragment breakpoint and the position of the second fragment breakpoint, the third fragment may be generated by aggregating all the segments between the position of the second fragment breakpoint and the position of the third fragment breakpoint, and so on.

[0083] In step 430, the front-end microservice may send each shard to one or more back-end microservices.

[0084] In one or more embodiments of the invention, the front-end microservice may send each shard by loading the shard into a request queue, which queues each shard and / or load balances each shard between one or more back-end microservices.

[0085] For example, each shard can be loaded into a request queue in order. Then, when a backend microservice indicates that it can process, the request queue can provide one shard to the backend microservice. Then, when a second backend microservice indicates that it can process, the request queue can provide a second shard to the backend microservice. This process can be repeated until all shards have been provided to the backend microservices. Without departing from the present invention, the request queue can send multiple shards to the same backend microservice.

[0086] In one or more embodiments of the present invention, before executing steps 440 and / or 450, the front-end microservice may wait to receive a notification from one or more back-end microservices indicating that each shard has been successfully stored.

[0087] In step 440, the front-end microservice may generate an object template. The object template may specify, for example, Figure 2C The template may include an object name (ie, a data file name used by the client to reference the data file) and one or more segment identifiers (ie, data used to identify the segments that make up the data file).

[0088] The object name may be generated based on the data file name provided by the client. In one or more embodiments of the present invention, the client and the front-end microservices may implement a predetermined naming convention for data files stored in the object storage device.

[0089] Each shard identifier may be generated according to a predetermined naming convention between the front-end microservice and the back-end microservice. For example, the first shard of a data file may be a data file name with a shard number, which reflects the relative position of the shard in the data file and is appended to the data file name.

[0090] Without departing from the present invention, other methods may be used to generate a shard identifier. For example, the front-end microservice may provide an arbitrary identifier for the shard, and the shard identifier may be sent to the back-end microservice along with the shard to ensure consistency in shard naming and identification between the front-end microservice and the back-end microservice.

[0091] In step 450, the front-end microservice stores the object template in an object storage device. The object storage device may be Figure 2C The object storage device may be a persistent storage device.

[0092] Figure 5 A flowchart of one or more embodiments of the present invention is shown. According to one or more embodiments of the present invention, Figure 5 The method described in can be used to store data in an object storage device. For example, the deduplication service (110, Figure 1 )'s backend microservices can execute Figure 5 The method shown.

[0093] In step 500, a backend microservice may obtain a shard of a data file. The shard may be obtained from a message queue that load balances requests to store the shard in an object storage device and requests to read the shard from the object storage device between multiple backend microservices of a deduplication service. In one or more embodiments of the present invention, the shard may be obtained by notifying a messaging queue that the backend microservice can handle more requests. In one or more embodiments of the present invention, the backend microservice may read the shard from the message queue and notify a message manager and / or message queue that the shard has been read by the backend microservice and / or is being processed by the backend microservice.

[0094] In step 510, the backend microservice may generate a sketch of the shard. The sketch of the shard may be as shown in FIG. Figure 2B The sketch can be obtained by generating a weak hash value of the shard.

[0095] In one or more embodiments of the present invention, the weak hash value may include multiple maximum and / or minimum hash values ​​obtained by performing a rolling hash function on the data of the shard. For example, four rolling hash functions may be performed on the data of the shard, and the maximum hash value of each of the four rolling hash functions may be aggregated. A hash value of the aggregated hash values ​​may be generated to obtain a single hash value. The single hash value may be used as a sketch of the shard.

[0096] In one or more embodiments of the invention, a sketch is a sequence of bits that matches sketches of other shards having similar or identical data already stored in the object store.

[0097] In step 520, the backend microservice may compare the sketch obtained in step 510 with the sketch stored in the object storage device (160, Figure 2A ). Sketches may be matched by sequentially comparing the bit sequence of the sketch with the bit sequence of each sketch of each similarity group metadata stored in the object storage device until an identical bit sequence is found.

[0098] In one or more embodiments of the invention, if the sketch of the shard does not match the sketch of any affinity group metadata already stored in the object store, a new affinity group metadata item is generated and stored in the object store.

[0099] In step 530, the backend microservice obtains the fingerprint of the similarity group metadata matched to the sketch in step 520. The backend microservice may obtain the fingerprint by extracting the fingerprint from the object storage device and loading it into the memory of the cloud platform or other computing device executing the backend microservice.

[0100] In step 540, the backend microservice compares each fingerprint of each segment of the shard with each fingerprint obtained in step 530. For each fingerprint that does not match any of the obtained fingerprints, the segment corresponding to the fingerprint may be added to one or more compression zones, and the matching similarity group metadata of step 520 may be updated. Updating the similarity group metadata may include adding a new fingerprint that specifies a compression zone identifier of the compression zone in which the corresponding segment is stored. Without departing from the present invention, the similarity group metadata may be updated by adding, modifying, or deleting other data in the similarity group metadata.

[0101] The fingerprint of each segment of the shard can be as follows Figure 2AThe bit sequence described. In one or more embodiments of the present invention, a Rabin fingerprint algorithm can be used to generate the segment boundaries of each fingerprint of each segment of the shard. In one or more embodiments of the present invention, a cryptographic hash function can be used to generate each fingerprint of each segment of the shard. The cryptographic hash function can be, for example, a message digest (MD) algorithm or a secure hash algorithm (SHA). The message MD algorithm can be MD5. The SHA algorithm can be SHA-0, SHA-1, SHA-2, or SHA3. Other fingerprint algorithms may also be used without departing from the present invention. In step 550, the backend microservice stores one or more compressed areas in an object storage device.

[0102] In step 560, the backend microservice generates a segmentation template that specifies the identifier of the matching similarity group of step 520 and the identifier of each fingerprint of each segment of the shard of step 540. The sharding template can be as follows: Figure 2D The shard template shown.

[0103] In step 570, the backend microservice may store the shard template in a shard template storage device. The shard template storage device may be as follows: Figure 2C The storage device shown, and may be stored on a persistent storage device.

[0104] In one or more embodiments of the invention, after or while storing a shard in the object storage device, the backend microservice may send a storage completion indicator to the frontend microservice that sent the shard.

[0105] Figure 6 A flowchart of one or more embodiments of the present invention is shown. According to one or more embodiments of the present invention, Figure 6 The method described in can be used to obtain data from an object storage device. For example, the deduplication service (110, Figure 1 )'s front-end microservice can be executed Figure 6 The method shown.

[0106] In step 600, the front-end microservice may obtain a request for a data file stored in an object storage device from a certain entity. The request may be obtained from a load balancer that distributes requests from clients to the front-end microservices.

[0107] In step 610, the front-end microservice may obtain the object template specified by the request. The object template may be Figure 2C The object template shown.

[0108] In step 620, the front-end microservice may send a request for each shard specified by the object template to one or more back-end microservices. The shard request may be sent to the back-end microservices through a message manager that queues the request and distributes the request to the back-end microservices when the back-end microservices are available.

[0109] In step 630, the front-end microservice may receive each shard specified by the object template from one or more back-end microservices. The shards may be received through a queue via a message manager.

[0110] In step 640, the front-end microservice assembles the data file or a portion thereof using the shards obtained in step 630 and the object template obtained in step 600. The data file may be assembled by appending each shard in the order specified by the object template.

[0111] In step 650, the front-end microservice sends the assembled data file to the entity that requested the data file.

[0112] Figure 7 A flowchart of one or more embodiments of the present invention is shown. According to one or more embodiments of the present invention, Figure 7 The method described in the embodiment can be used to obtain data stored in the object storage device. For example, the deduplication service (110, Figure 1 )'s backend microservices can execute Figure 7 The method shown.

[0113] In step 700, a backend microservice may obtain a request for a shard of a data file. The request for the shard may be obtained from a message queue that load balances requests to store the shard in an object storage device and requests to read the shard from the object storage device between multiple backend microservices of a deduplication service. In one or more embodiments of the present invention, the request for the shard may be obtained by notifying a messaging queue that the backend microservice can handle more requests. The message queue may provide the request to the backend microservice in response to the notification. In one or more embodiments of the present invention, the backend microservice may read the request for the shard from the message queue and notify the message manager and / or message queue that the request for the shard has been read by the backend microservice and / or is being processed by the backend microservice.

[0114] In step 710, the backend microservice may obtain a shard template associated with a shard from a shard template storage device. The shard template may be Figure 2D The slicing template shown. The slicing template can be obtained by matching the slicing name or data included in the request with the slicing template name of the slicing template stored in the slicing template storage device. The slicing template can be obtained by reading the matching slicing template from the slicing template storage device.

[0115] In step 720 , the backend microservice may use the affinity group metadata specified by the shard template of step 710 to obtain the affinity group metadata specified by the shard template.

[0116] In step 730 , the backend microservice may identify the compressed region stored in the object storage device and specified by the obtained similarity group metadata.

[0117] In step 740, the backend microservice may read each identified compressed region of step 730 from the object storage device to obtain the segments of the shard.

[0118] In step 750 , the backend microservice may assemble the shard using the obtained segments of the shard and the shard template.

[0119] In step 760, the backend microservice may send the assembled shards to the frontend microservice that requested the shards.

[0120] Figure 8 A flowchart of one or more embodiments of the present invention is shown. According to one or more embodiments of the present invention, Figure 8 The method depicted in may be used to modify the amount of resources dedicated to managing data of an object storage device. Figure 8 The method shown can be implemented by, for example, a deduplication service (110, Figure 1 )implement.

[0121] In step 800 , the number of requests in the request queues between the plurality of front-end microservices and the plurality of back-end microservices may be monitored.

[0122] In step 810, the number of front-end microservices and / or back-end microservices may be adjusted. In other words, a new microservice instance may be added, or an execution instance of a microservice may be terminated.

[0123] In one or more embodiments of the present invention, if the number of requests in the request queue exceeds a predetermined number, a new instance of the backend microservice may be added. In other words, if the request processing rate of the currently executed backend microservice is less than the rate at which requests are added to the queue, a new instance of the backend microservice may be added.

[0124] In one or more embodiments of the present invention, if the number of requests in the request queue is less than a predetermined number, the currently executing backend microservice instance may be terminated. In other words, if the request processing capacity of the currently executing backend microservice is greater than the rate at which requests are added to the queue, the currently executing backend microservice instance may be terminated.

[0125] In one or more embodiments of the present invention, if the number of requests in the load balancer queue is greater than a predetermined number, a new instance of the front-end microservice can be added. In other words, if the request rate of the client is greater than the rate at which the front-end microservice is processing requests, a new instance of the front-end microservice can be added.

[0126] In one or more embodiments of the present invention, if the number of requests in the load balancer queue is less than a predetermined number, the currently executing front-end microservice instance can be terminated. In other words, if the request rate of the client is less than the rate at which the current front-end microservice set processes requests, the currently executing front-end microservice instance can be terminated.

[0127] In one or more embodiments of the present invention, the number of front-end and / or back-end microservices can be adjusted according to the total resource utilization of computing resources such as CPU, memory and / or network bandwidth. When the total usage of resources exceeds a threshold, the number of front-end and / or back-end microservices can be adjusted. The threshold can be, for example, an upper threshold or a lower threshold, which triggers the operation of adding or terminating the front-end and / or back-end microservice instances.

[0128] One or more embodiments of the present invention can achieve one or more of the following capabilities: i) separating the deduplication preparation of data files from the deduplication of prepared files into independent microservices; ii) dynamically adjusting the data resources used for the deduplication preparation of files or the deduplication of prepared files by adding new microservice instances and / or terminating existing microservice instances; iii) scaling deduplication on any number of computing resources; and iv) minimizing the computing resource overhead for deduplication of data to be stored in the object storage device by performing similarity group mapping and loading only a subset of all fingerprints for each segment stored in the object storage device.

[0129] Although the present invention has been described above with reference to a limited number of embodiments, those skilled in the art having benefit of this disclosure will appreciate that other embodiments can be designed without departing from the scope of the invention disclosed herein. Therefore, the scope of the present invention is limited only by the appended claims.

Claims

1. A system for managing an object storage device, comprising: Multiple front-end microservices, which are programmed to: obtaining a request to store data in an object storage device, wherein the request to store data in the object storage device is received from a computing device; Dividing the data into a plurality of shards; and Providing the plurality of shards to a plurality of backend microservices; The multiple backend microservices are programmed to: receiving the plurality of fragments; generating a sketch for each shard, wherein the sketch for each shard comprises a bit string that non-uniquely identifies the shard; matching each shard to a similarity group among the plurality of similarity groups using a corresponding sketch of each shard; obtaining metadata associated with each matching similarity group; adding at least a portion of a shard of the plurality of shards to a compressed zone using the metadata; and storing the compressed region in the object storage device, wherein the object storage device is a persistent storage device; a request queue that delivers the shards from the front-end microservice to the back-end microservice, wherein the number of available back-end microservices is dynamically adjusted based on the number of pending shards in the request queue; A load balancer that is programmed to: obtaining a request to store data in the object storage device; Distribute the request to the multiple front-end microservices, The system dynamically adjusts the number of available front-end microservices according to the number of pending requests in the load balancer, The dividing the data into a plurality of fragments comprises: dividing a portion of the data into a plurality of segments; Grouping a portion of the plurality of segments into slices; generating an object template that specifies in part the slice; and storing the object template in an object template storage device; and Wherein storing at least a portion of a shard of the plurality of shards in the compressed area using the metadata comprises: identifying a portion of segments of the shard, wherein each segment has a fingerprint that does not match any fingerprint specified by the metadata; adding a segment of the identified portion of segments of the slice to the compressed region; updating the metadata based on the identified portion of the segments; Generate a sharding template that specifies: the similarity groups matched, and each fingerprint of each segment of the shard; The slice template is stored in a slice template storage device.

2. The system of claim 1 , wherein dividing a portion of the data into the plurality of segments comprises: generating a rolling hash value of the data; obtaining a plurality of segment breakpoints by comparing each hash value of the rolling hash value with a predetermined bit pattern; and The data is divided according to the plurality of segmentation breakpoints.

3. The system of claim 2, wherein grouping a portion of the plurality of segments into the slice comprises: determining a plurality of fragmentation breakpoints by comparing each hash value of the rolling hash value with a second predetermined bit pattern; identifying the portion of the segments among the plurality of segments according to a plurality of segment breakpoints; and grouping the identified portion of the plurality of segments into the slice, The length of the second predetermined positioning pattern is greater than the length of the predetermined positioning pattern.

4. The system of claim 1, wherein the fingerprint of each segment is obtained by performing a secure hash operation on the segment.

5. The system of claim 1, wherein the plurality of front-end microservices are executed on a cloud platform operably connected to the computing device.

6. The system of claim 5, wherein the plurality of backend microservices are executed on the cloud platform.

7. A method for managing an object storage device, comprising: A front-end microservice among the plurality of front-end microservices obtains a request from a computing device to store data in an object storage device; The front-end microservice divides the data into multiple shards; A backend microservice among the multiple backend microservices obtains a shard of the multiple shards from the frontend microservice; generating, by the backend microservice, a sketch of the shard, wherein the sketch of the shard comprises a bit string that non-uniquely identifies the shard; matching the shard with a similarity group in a plurality of similarity groups by the backend microservice using the corresponding sketch of the shard; Obtaining, by the backend microservice, metadata associated with the matched similarity group; and adding, by the backend microservice, at least a portion of the shards to a compaction zone using the metadata, storing the compressed region in the object storage device, wherein the object storage device is a persistent storage device; Monitoring the number of pending shards in a request queue for transferring the shards from the plurality of front-end microservices to the plurality of back-end microservices; Dynamically adjust the number of backend microservices of the multiple backend microservices according to the monitoring result of the number of to-be-processed shards in the request queue; Allocating, by a load balancer, requests to store data in the object storage device to the plurality of front-end microservices; Monitoring, by the load balancer, the number of requests queued for allocation among the requests; as well as According to the monitoring result of the number of requests queued for allocation in the request, dynamically adjust the number of available front-end microservices, The dividing the data into a plurality of fragments comprises: dividing a portion of the data into a plurality of segments; Grouping a portion of the plurality of segments into slices; generating an object template that specifies in part the slice; and storing the object template in an object template storage device; and Wherein storing at least a portion of the shards in the compressed area using the metadata comprises: identifying a portion of segments of the shard, wherein each segment has a fingerprint that does not match any fingerprint specified by the metadata; adding a segment of the identified portion of segments of the slice to the compressed region; updating the metadata based on the identified portion of the segments; Generate a sharding template that specifies: the similarity groups matched, and each fingerprint of each segment of the shard; The slice template is stored in a slice template storage device.

8. A non-transitory computer readable medium comprising a computer readable program code, which when executed by a computer processor enables the computer processor to perform a method for managing an object storage device, the method comprising: A front-end microservice among the plurality of front-end microservices obtains a request from a computing device to store data in an object storage device; The front-end microservice divides the data into multiple shards; A backend microservice among the multiple backend microservices obtains a shard of the multiple shards from the frontend microservice; generating, by the backend microservice, a sketch of the shard, wherein the sketch of the shard comprises a bit string that non-uniquely identifies the shard; matching the shard with a similarity group in a plurality of similarity groups by the backend microservice using the corresponding sketch of the shard; Obtaining, by the backend microservice, metadata associated with the matched similarity group; and Adding, by the backend microservice, at least a portion of the shards to a compression zone using metadata; storing the compressed region in the object storage device, wherein the object storage device is a persistent storage device; Monitoring the number of pending shards in a request queue for transferring the shards from the plurality of front-end microservices to the plurality of back-end microservices; Dynamically adjust the number of backend microservices of the multiple backend microservices according to the monitoring result of the number of to-be-processed shards in the request queue; Allocating, by a load balancer, requests to store data in the object storage device to the plurality of front-end microservices; Monitoring, by the load balancer, the number of requests queued for allocation among the requests; and According to the monitoring result of the number of requests queued for allocation in the request, dynamically adjust the number of available front-end microservices, The dividing the data into a plurality of fragments comprises: dividing a portion of the data into a plurality of segments; Grouping a portion of the plurality of segments into slices; generating an object template that specifies in part the slice; and storing the object template in an object template storage device; and Wherein storing at least a portion of the shards in the compressed area using the metadata comprises: identifying a portion of segments of the shard, wherein each segment has a fingerprint that does not match any fingerprint specified by the metadata; adding a segment of the identified portion of segments of the slice to the compressed region; updating the metadata based on the identified portion of the segments; Generate a sharding template that specifies: the similarity groups matched, and each fingerprint of each segment of the shard; The slice template is stored in a slice template storage device.

Citation Information

Patent Citations

  • Hyper-converged storage system supporting data application service

    CN105530306A

  • Use of Similarity Hash to Route Data for Improved Deduplication in a Storage Server Cluster

    US20110099351A1