Writing method, device, equipment and storage medium for Ceph objects
By detecting redundant storage of object data in OSD and creating empty objects, the problem of low storage space utilization caused by data redundancy in distributed object storage systems is solved, and the effect of improving OSD resource utilization is achieved.
Patent Information
- Application Number
- CN202311786611.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-12-22
AI Technical Summary
In distributed object storage systems, storage space utilization is low due to data redundancy. Especially in the context of the development of cloud computing, big data and the Internet of Things, the amount of data is growing rapidly, causing the space utilization of OSD to be affected.
When OSD receives a data write operation, it detects whether it is stored in the distributed object storage system by obtaining the data fingerprint of the object data. If it is stored, it creates an empty object and records the location information to replace the original object data for writing, reducing redundancy. remaining storage.
Improved OSD resource utilization, by converting object data into empty objects carrying storage locations, it not only stores data but also reduces storage resource usage.
Smart Images

Figure CN117762335B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a writing method, apparatus, device and storage medium for a Ceph object. Background Art
[0002] A distributed object storage system includes multiple storage nodes, which can map the data to be stored to a group of object storage devices (OSD) on different storage nodes. Since the distributed object storage system has the ability to scale out, the storage capacity and performance can be expanded synchronously by using the scale-out capability, so the distributed object storage system has been widely deployed in enterprises in recent years. With the development of cloud computing, big data, and the Internet of Things, the amount of data that needs to be stored in the distributed object storage system has increased rapidly, and many data have the characteristics of only local data difference, which causes data redundancy between the data that only have local data difference, thereby affecting the space utilization of OSD.
[0003] Therefore the prior art still needs to be improved and enhanced. Summary of the invention
[0004] The technical problem to be solved by the present application is to provide a writing method, apparatus, device and storage medium for Ceph objects in view of the deficiencies in the prior art.
[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present application provides a method for writing to a Ceph object. The method for writing to a Ceph object includes:
[0006] When the OSD receives a data write operation, it obtains a data fingerprint of the object data corresponding to the write operation, and detects whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD;
[0007] When the object data is stored in a distributed object storage system, creating an empty object for the object data, wherein the empty object records location information of the object data in the distributed object storage system;
[0008] The object data is replaced by the empty object, so as to write the empty object to the OSD through the write operation.
[0009] The method for writing a Ceph object, wherein the method further comprises:
[0010] When the object data is not stored in the OSD, the object data is written into the OSD through the write operation, and the data fingerprint of the object data is recorded in the RocksDB.
[0011] The method for writing Ceph objects, wherein the step of detecting whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD and specifically includes:
[0012] Searching for the data fingerprint of the object data in RocksDB for recording data fingerprints;
[0013] When the data fingerprint of the object data is found, it is determined that the object data is stored in the distributed object storage system;
[0014] When the object data is not found to be stored in the distributed object storage system, it is determined that the object data is not stored in the OSD.
[0015] In the method for writing Ceph objects, when the object data is stored in a distributed object storage system, creating an empty object for the object data specifically includes:
[0016] When the object data is stored in a distributed object storage system, obtaining location information of the object data in the distributed object storage system;
[0017] An empty object is created for the object data, and the location information is recorded in the empty object, so that the empty object records the location information of the object data in the distributed object storage system.
[0018] The method for writing to Ceph objects, wherein the object data stored in the distributed object storage system is configured with a deduplication counter, and when the object data is written to the OSD as an empty object, the deduplication counter configured for the object data increases by 1.
[0019] The method for writing a Ceph object, wherein the method further comprises:
[0020] When an empty object in the distributed object storage system is deleted, the object data is searched based on the location information recorded by the empty object, and the deduplication counter of the object data is reduced by 1.
[0021] The method for writing to a Ceph object, wherein when the OSD receives a data write operation, before obtaining the data fingerprint of the object data corresponding to the write operation, the method further includes:
[0022] When a file to be written is received, the file to be written is divided into a plurality of object data, and each of the plurality of object data is written into the OSD one by one.
[0023] A second aspect of an embodiment of the present application provides a writing device for a Ceph object, and the writing device for a Ceph object includes:
[0024] a detection module, configured to, when the OSD receives a data write operation, obtain a data fingerprint of the object data corresponding to the write operation, and detect whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD;
[0025] a creation module, configured to create an empty object for the object data when the object data is stored in the distributed object storage system, wherein the empty object records location information of the object data in the distributed object storage system;
[0026] A writing module is used to replace the object data with the empty object, so as to write the empty object into the OSD through the writing operation.
[0027] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in any of the above-described methods for writing to a Ceph object.
[0028] A fourth aspect of an embodiment of the present application provides a terminal device, which includes: a processor and a memory;
[0029] The memory stores a computer-readable program executable by the processor;
[0030] When the processor executes the computer-readable program, the processor implements the steps in any of the above-described methods for writing to a Ceph object.
[0031] Beneficial effects: Compared with the prior art, the embodiments of the present application provide a writing method, apparatus, device and storage medium for Ceph objects, the method comprising: when an OSD receives a data writing operation, obtaining a data fingerprint of the object data corresponding to the writing operation, and detecting whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD; when the object data is stored in the distributed object storage system, creating an empty object for the object data; replacing the object data with the empty object, so as to write the empty object to the OSD through the writing operation. When the embodiment of the present application finds the object data in the storage object stored in the OSD through the data fingerprint, the object data is stored by converting the object data into an empty object carrying the data of the stored object, so that the object data is stored on the one hand, and the storage resources occupied by the object data are reduced on the other hand, thereby improving the resource utilization of the OSD. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 A flowchart of a method for writing Ceph objects provided in this application.
[0034] Figure 2 This is a flowchart of step S10 of the method for writing a Ceph object provided in the present application.
[0035] Figure 3 This is a flowchart of step S10 of the method for writing a Ceph object provided in the present application.
[0036] Figure 4 A schematic diagram of the structure of a writing device for Ceph objects provided in this application.
[0037] Figure 5 This is a schematic diagram of the structure of the terminal device provided in this application. DETAILED DESCRIPTION
[0038] The present application provides a method, device, equipment and storage medium for writing Ceph objects. In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
[0039] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0040] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0041] It should be understood that the sequence numbers and sizes of the steps in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0042] After research, it was found that the distributed object storage system includes multiple storage nodes, which can map the data to be stored to a group of object storage devices OSD (Object-based Storage Device, OSD) of different storage nodes. Since the distributed object storage system has the ability to scale-out. The use of horizontal expansion capabilities can make the storage capacity and performance expand synchronously, so the distributed object storage system has been widely deployed in enterprises in recent years. With the development of cloud computing, big data, and the Internet of Things, the amount of data that needs to be stored in the distributed object storage system has increased rapidly, and many data have the characteristics of only local data differences. This causes data redundancy between data that only have local data differences, which in turn affects the space utilization of OSD.
[0043] In order to solve the above problems, in an embodiment of the present application, when the OSD receives a data write operation, it obtains the data fingerprint of the object data corresponding to the write operation, and detects whether the object data is stored in a distributed object storage system based on the data fingerprint, wherein the distributed object storage system includes the OSD; when the object data is stored in the distributed object storage system, an empty object is created for the object data; and the empty object is used to replace the object data, so as to write the empty object to the OSD through the write operation. When the object data is found in the storage object stored in the OSD through the data fingerprint, the embodiment of the present application stores the object data by converting the object data into an empty object carrying the data of the stored object. In this way, the object data is stored on the one hand, and the storage resources occupied by the object data are reduced on the other hand, thereby improving the resource utilization of the OSD.
[0044] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.
[0045] This embodiment provides a method for writing Ceph objects, such as Figure 1 As shown, the method includes:
[0046] S10. When the OSD receives a data write operation, it obtains a data fingerprint of the object data corresponding to the write operation, and detects whether the object data is stored in a distributed object storage system based on the data fingerprint, wherein the distributed object storage system includes the OSD.
[0047] Specifically, the write operation is an operation that requires data writing to the OSD, and is used to write the object data to be written into the OSD, wherein the object data is obtained by dividing the file to be written according to the preset object size. That is, when writing a data file into the OSD, the file to be written will be divided into a plurality of object data according to the preset object size, and then each object data will be written into the OSD.
[0048] Based on this, when the OSD receives a data write operation, before obtaining the data fingerprint of the object data corresponding to the write operation, the method further includes:
[0049] When a file to be written is received, the file to be written is divided into a plurality of object data, and each of the plurality of object data is written into the OSD one by one.
[0050] Specifically, OSD is used to store files to be written, wherein OSD corresponds to a hard disk. For example, OSD can use a solid-state drive SSD (Solid State Drive, SSD), which is also called a solid-state hard disk, or a traditional disk, such as a serial attached SCSI (Serial Attached SCSI, SAS) disk, a serial hard disk SATA (Serial ATA, SATA) disk, etc.
[0051] The file to be written can be data to be stored sent by the user through the client. After receiving the file to be written, the file to be written can be divided into several object data, which can be one or more. Among them, when the file to be written is divided, it can be divided according to the data size. For example, if the file to be written is 4MB, it can be equally divided into 4 1MB object data. In addition, with more and more multimedia resources formed by live broadcasting, the resource differences between multimedia resources can be displayed by the playback content. For example, multimedia resource A and multimedia resource B are both live videos with a playback time of 10 minutes. The data difference between multimedia resource A and multimedia resource B is that the playback content of the fifth minute is different. Therefore, for multimedia resources, in addition to the conventional method of dividing the file to be written according to the size of the object data, multimedia resources can also be divided according to the playback time.
[0052] Based on this, the said dividing the file to be written into a number of object data specifically includes: reading the file type of the file to be written; when the file type is a multimedia resource, dividing the file to be written into a number of object data with a preset playing time as a unit; when the file type is not a multimedia resource, dividing the file to be written into a number of object data with a preset size as a unit. For example, if the file to be written is a video file with a playing time of 10 minutes and the preset time is 1 minute, then the file to be written can be divided into 10 object data with a playing time of 1 minute each.
[0053] After the object data is divided, the data fingerprint of each object data is obtained, wherein the data fingerprint can be a HASH value calculated according to the HASH algorithm based on the data content of the object data. In addition, since the data fingerprint is calculated based on the data content, for two object data, when the data content of the two object data is the same, the data fingerprints of the two object data are the same, and vice versa, when the data content of the two object data is different, the data fingerprints of the two object data are also different. Based on the characteristics of the data fingerprint, after obtaining the data fingerprint of the object data to be written, it is possible to find out whether the object data has been stored according to the data fingerprint.
[0054] In some implementations, for a distributed object storage system, each OSD records the data fingerprint of the object data in RocksDB in BuleFS while writing the object data. Thus, it is possible to determine whether the object data to be written already exists in the distributed object storage system to which the OSD belongs by using the data fingerprint recorded in RocksDB in BuleFS, wherein the distributed object storage system may include multiple storage nodes, each storage node may include an OSD storage area, and the OSD storage area may include multiple OSDs.
[0055] Based on this, Figure 2 As shown, the detecting, according to the data fingerprint, whether the object data is stored in a distributed object storage system, wherein the distributed object storage system includes the OSD and specifically includes:
[0056] S11, searching for the data fingerprint of the object data in RocksDB for recording data fingerprints;
[0057] S12, when the data fingerprint of the object data is found, it is determined that the object data is stored in the distributed object storage system;
[0058] S13: When the object data is not found to be stored in the distributed object storage system, it is determined that the object data is not stored in the OSD.
[0059] Specifically, RocksDB is stored in BuleFS and is used to store the data fingerprint of the object data stored in each OSD in the distributed object storage system. Therefore, when writing object data to OSD, RocksDB in BuleFS can be used to detect that the object data to be written has been stored in the distributed object storage system. When the data fingerprint of the object data to be written is found in RocksDB in BuleFS, it is determined that the object data is stored in the distributed object storage system. Conversely, when the data fingerprint of the object data to be written is not found in RocksDB in BuleFS, it is determined that the object data is not stored in the distributed object storage system. S20. When the object data is stored in the distributed object storage system, create an empty object for the object data.
[0060] Specifically, an empty object is object data that does not contain data content, wherein the empty object records the location information of the object data in the distributed object storage system. The location information is the storage address of the stored object data that has been stored in the distributed object storage system and has the same data content as the object data to be written. That is to say, when the object data is stored in the distributed object storage system, it is not necessary to store the object data in the OSD, and it is only necessary to record the storage location of the object data in the distributed object storage system. Therefore, when the object data is stored in the distributed object storage system, an empty object is created for the object data, and the location information of the object data in the distributed object storage system is recorded through the empty object. In this way, by dividing the write file to be written to the OSD into several object data, and using the empty object to replace the object data already stored in the distributed object storage system, the problem of data redundancy stored in the distributed object storage system caused by the existing data writing method can be solved. In addition, it should be noted that when the object data is not stored in the OSD, the object data is written to the OSD through the write operation, and the data fingerprint of the object data is recorded in RocksDB.
[0061] For example: Assume that the write file is divided into object data 1, object data 2 and object data 3, where object data 1 and object data 2 have been stored in the distributed object storage system, and object data 3 has not been stored in the distributed object storage system, then empty objects can be created for object data 1 and object data 2, and object data 3 can be directly written to the OSD. Compared with the existing method of directly writing the write file to the OSD, this avoids repeated storage of object data 1 and object data 2, and improves the space utilization of the OSD.
[0062] In some implementations, such as Figure 3 As shown, when the object data is stored in the distributed object storage system, creating an empty object for the object data specifically includes:
[0063] S21. When the object data is stored in a distributed object storage system, obtain location information of the object data in the distributed object storage system;
[0064] S22: Create an empty object for the object data, and record the location information in the empty object, so that the empty object records the location information of the object data in the distributed object storage system.
[0065] Specifically, the location information is the storage address of the object data in the distributed object storage system, and the object data can be obtained according to the location information. The location information is recorded in the empty object, where the location information can be used as the data content of the empty object, the object name of the empty object, or the object attribute information of the empty object. In this way, when the object data needs to be read, the data content of the object data can be obtained through the location information stored in the empty object.
[0066] S30: Use the empty object to replace the object data, so as to write the empty object into the OSD through the write operation.
[0067] Specifically, using the empty object to replace the object data means directly using the empty object as the object data, discarding the actual object data, and writing the empty object into the OSD through a write operation. In addition, in actual applications, in order to facilitate knowing that the object data corresponding to the empty object is referenced, a deduplication counter can be configured for the object data with data content stored in the distributed object storage system, and the number of empty objects corresponding to the object data is represented by the deduplication counter, and each time an empty object with location information of the object data is constructed, the deduplication counter configured for the object data increases by 1. That is, the object data stored in the distributed object storage system is configured with a deduplication counter, and when the object data is written to the OSD as an empty object, the deduplication counter configured for the object data increases by 1, and when the empty object corresponding to the object data is deleted, the deduplication counter of the object data is reduced by 1. Specifically, when an empty object in the distributed object storage system is deleted, the object data is searched based on the location information recorded by the empty object, and the deduplication counter of the object data is reduced by 1.
[0068] Furthermore, when the count of the deduplication counter is 0, it means that the object data does not correspond to an empty object, and when the count of the deduplication counter is greater than 0, it means that the object data corresponds to an empty object. By configuring a deduplication counter for the object data, the present application can quickly obtain the status of the empty object corresponding to each object data, thereby avoiding the problem that the empty object cannot obtain the data content due to the deletion of the object data.
[0069] In summary, this embodiment provides a writing method for Ceph objects, the method comprising: when the OSD receives a data write operation, obtaining a data fingerprint of the object data corresponding to the write operation, and detecting whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD; when the object data is stored in the distributed object storage system, creating an empty object for the object data; replacing the object data with the empty object, so as to write the empty object to the OSD through the write operation. When the embodiment of the present application finds the object data in the storage object stored in the OSD through the data fingerprint, the object data is stored by converting the object data into an empty object carrying the data of the stored object. In this way, the object data is stored on the one hand, and the storage resources occupied by the object data are reduced on the other hand, thereby improving the resource utilization of the OSD.
[0070] Based on the above-mentioned method for writing Ceph objects, this embodiment provides a device for writing Ceph objects, such as Figure 4 As shown, the writing device for Ceph objects includes:
[0071] The detection module 100 is used for, when the OSD receives a data write operation, obtaining a data fingerprint of the object data corresponding to the write operation, and detecting whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD;
[0072] A creation module 200, configured to create an empty object for the object data when the object data is stored in a distributed object storage system, wherein the empty object records location information of the object data in the distributed object storage system;
[0073] The writing module 300 is used to replace the object data with the empty object, so as to write the empty object into the OSD through the writing operation.
[0074] Based on the above-mentioned writing method for Ceph objects, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the writing method for Ceph objects as described in the above-mentioned embodiment.
[0075] Based on the above-mentioned writing method for Ceph objects, the present application also provides a terminal device, such as Figure 5As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (Communications Interface) 23 and a bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the method in the above embodiment.
[0076] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0077] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.
[0078] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.
[0079] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for writing a Ceph object, characterized in that: The method for writing Ceph objects includes: When the OSD receives a data write operation, it obtains a data fingerprint of the object data corresponding to the write operation, and detects whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD; When the object data is stored in a distributed object storage system, creating an empty object for the object data, wherein the empty object records location information of the object data in the distributed object storage system; Replacing the object data with the empty object, so as to write the empty object into the OSD through the write operation; The detecting, according to the data fingerprint, whether the object data is stored in a distributed object storage system, wherein the distributed object storage system includes the OSD and specifically includes: Searching for the data fingerprint of the object data in RocksDB for recording data fingerprints; When the data fingerprint of the object data is found, it is determined that the object data is stored in the distributed object storage system; When the object data is not found to be stored in the distributed object storage system, determining that the object data is not stored in the OSD; When the object data is stored in the distributed object storage system, creating an empty object for the object data specifically includes: When the object data is stored in a distributed object storage system, obtaining location information of the object data in the distributed object storage system; Creating an empty object for the object data, and recording the location information in the empty object, so that the empty object records the location information of the object data in the distributed object storage system; When the OSD receives a data write operation, before obtaining the data fingerprint of the object data corresponding to the write operation, the method further includes: When receiving a file to be written, the file to be written is divided into a plurality of object data, and each of the plurality of object data is written into the OSD one by one; The method of dividing the file to be written into a number of object data specifically includes: reading the file type of the file to be written; when the file type is a multimedia resource, dividing the file to be written into a number of object data based on a preset playback duration; when the file type is not a multimedia resource, dividing the file to be written into a number of object data based on a preset size.
2. The method for writing a Ceph object according to claim 1, characterized in that: The method further comprises: When the object data is not stored in the OSD, the object data is written into the OSD through the write operation, and the data fingerprint of the object data is recorded in the RocksDB.
3. The method for writing Ceph objects according to claim 1, characterized in that: The object data stored in the distributed object storage system is configured with a deduplication counter, and when the object data is written to the OSD as an empty object, the deduplication counter configured for the object data is increased by 1.
4. The method for writing to a Ceph object according to claim 3, characterized in that: The method further comprises: When an empty object in the distributed object storage system is deleted, the object data is searched based on the location information recorded by the empty object, and the deduplication counter of the object data is reduced by 1.
5. A writing device for a Ceph object, characterized in that: The writing device for Ceph objects includes: a detection module, configured to, when the OSD receives a data write operation, obtain a data fingerprint of the object data corresponding to the write operation, and detect whether the object data is stored in a distributed object storage system according to the data fingerprint, wherein the distributed object storage system includes the OSD; The detecting, according to the data fingerprint, whether the object data is stored in a distributed object storage system, wherein the distributed object storage system includes the OSD and specifically includes: Searching for the data fingerprint of the object data in RocksDB for recording data fingerprints; When the data fingerprint of the object data is found, it is determined that the object data is stored in the distributed object storage system; When the object data is not found to be stored in the distributed object storage system, determining that the object data is not stored in the OSD; a creation module, configured to create an empty object for the object data when the object data is stored in the distributed object storage system, wherein the empty object records location information of the object data in the distributed object storage system; When the object data is stored in the distributed object storage system, creating an empty object for the object data specifically includes: When the object data is stored in a distributed object storage system, obtaining location information of the object data in the distributed object storage system; Creating an empty object for the object data, and recording the location information in the empty object, so that the empty object records the location information of the object data in the distributed object storage system; A writing module, configured to replace the object data with the empty object, so as to write the empty object into the OSD through the writing operation; When the OSD receives a data write operation, before obtaining the data fingerprint of the object data corresponding to the write operation, the method further includes: When receiving a file to be written, the file to be written is divided into a plurality of object data, and each of the plurality of object data is written into the OSD one by one; The method of dividing the file to be written into a number of object data specifically includes: reading the file type of the file to be written; when the file type is a multimedia resource, dividing the file to be written into a number of object data based on a preset playback duration; when the file type is not a multimedia resource, dividing the file to be written into a number of object data based on a preset size.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for writing a Ceph object as described in any one of claims 1-4.
7. A terminal device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the processor implements the steps in the method for writing a Ceph object as described in any one of claims 1 to 4.
