Method and electronic device for buffer-based asynchronous snapshot of a CEPH cluster

By performing real-time monitoring and buffer service backups on the CEPH cluster, the problems of reduced write speed and impact on read/write performance during the self-balancing process of the CEPH storage system were resolved, achieving data storage consistency that is imperceptible to the business.

CN117742579BActive Publication Date: 2026-11-24CHINA UNICOM ONLINE INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311508630.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2026-11-24
Estimated Expiration
2043-11-14

AI Technical Summary

Technical Problem

During the self-balancing process, the write rate of the CEPH storage system decreases, affecting read and write performance and consequently impacting business operations.

Method used

By monitoring the CEPH cluster in real time, files are stored in a buffer service in abnormal conditions and in the CEPH cluster in normal conditions. The buffer service is configured to back up the object storage link, and asynchronous write threads handle file read requests to ensure data consistency.

Benefits of technology

Prevent business interruptions caused by CEPH cluster anomalies, achieve seamless business operation, and ensure data storage consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117742579B_ABST
    Figure CN117742579B_ABST
Patent Text Reader

Abstract

This disclosure discloses a method and electronic device for asynchronous transfer of data to a CEPH cluster based on buffering. The method includes: receiving a file to be written via a file interface; determining the size of the file to be written; if the size of the file exceeds a set threshold, splitting the file into fixed-size file slices and storing the file slices, where each file slice is no larger than the set threshold; if the size of the file slice is less than or equal to the set threshold, formatting the file to be written and storing it; receiving a file read request; monitoring the CEPH cluster; when the CEPH cluster is in an abnormal state, sending the file read request to a buffer service; when the CEPH cluster is in a normal state, sending the file read request to the CEPH cluster, and the buffer service starting an asynchronous write thread to read the relevant file and generate a complete file, writing the complete file to the CEPH cluster. This disclosure can prevent business interruption caused by an abnormality in the entire CEPH cluster, achieving seamless business operation and ensuring data storage consistency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure pertains to the field of data access technology, and specifically relates to a method and electronic device for asynchronous transfer of data to a CEPH cluster based on buffering. Background Technology

[0002] CEPH cluster is a distributed storage system that can combine multiple servers into a large cluster. During hardware disk device maintenance, it involves expanding capacity (adding capacity) and shrinking capacity (due to disk failure or other reasons), as well as removing service nodes. When a new host or disk is added to or removed from the cluster, new OSDs are added or removed, and the status is reported to the Monitor. The Monitor, knowing that the OSD map has changed, triggers data rebalancing to ensure that PGs can be smoothly moved to various OSDs (e.g.,...). Figure 1 (As shown).

[0003] Currently, data is rebalanced as a whole for PGs. During the self-balancing process, after an OSD comes online, it will find that the data of the PG it supports is lagging behind. It needs to enter data recovery mode to obtain new data from other OSDs to achieve synchronization. During the self-balancing process, the write rate of the CEPH storage system decreases and the load on memory and other components increases significantly, which will affect read and write performance and may also affect business operations.

[0004] To address the aforementioned issues, this disclosure presents a method and electronic device for asynchronous transfer of CEPH clusters based on buffering. Summary of the Invention

[0005] To address the shortcomings of the prior art, this disclosure provides a method and electronic device for asynchronous transfer of buffered CEPH clusters, in order to solve the technical problem that the write rate of the existing CEPH storage system decreases during the self-balancing process, affecting read and write performance and consequently impacting business operations.

[0006] The technical effects to be achieved by this disclosure are accomplished through the following solution: In a first aspect, embodiments of this disclosure provide a method for asynchronous transfer of a CEPH cluster based on buffering, the method comprising: The file interface receives the written file and monitors the CEPH cluster. When the CEPH cluster is in a normal state, the written file is stored in the CEPH cluster. When the CEPH cluster is in an abnormal state, the written file is stored on the buffer service, and the size of the written file is determined. If the written file is larger than a set threshold, the written file is split into fixed-size file slices and the file slices are stored, and the file slices are not larger than the set threshold. If the written file is smaller than or equal to the set threshold, the written file is formatted and stored. The set threshold is 4M. The file interface receives file read requests and monitors the CEPH cluster. When the CEPH cluster is in an abnormal state, the file read request is sent to the buffer service. When the CEPH cluster is in a normal state, the file read request is sent to the CEPH cluster, and the buffer service starts an asynchronous write thread to read the relevant files and generate complete files, and writes the complete files to the CEPH cluster.

[0007] In some embodiments, storing the file slice includes: Each file slice corresponds to a file page linked list. The file name, file size, creation and modification time, directory structure, and file page linked list of each file slice are stored in the metadata engine Redis. The file slice is then formatted and stored in Minio.

[0008] In some embodiments, the abnormal state includes the CEPH cluster performing load balancing operations, a network anomaly, or the CEPH cluster being in an abnormal state.

[0009] In some embodiments, the file page linked list includes the following parameters: offset parameter, file block size parameter, and whether it is loaded parameter; the offset parameter, the file block size parameter, and the whether it is loaded parameter are used to perform multi-threaded segmented writing.

[0010] In some embodiments, formatting the written file and storing it includes: Each written file corresponds to a file page linked list. The file name, file size, creation and modification time, directory structure, and file page linked list of each written file are stored in the metadata engine Redis. The written file is then formatted and stored in Minio.

[0011] In some embodiments, after the file read request is sent to the buffer service, the buffer service reads and returns the relevant files sequentially according to the rules of the file page linked list in the metadata engine Redis, or directly reads and returns the relevant files.

[0012] In some embodiments, for each written file, a unique global file ID is generated in Redis, and an expiration period is specified for the global file ID. Using the LRU algorithm, expired global file IDs are monitored, and the corresponding data block in Minio is deleted, thereby realizing the lifecycle management of object storage. Here, the corresponding data block in Minio refers to the file slice and / or the formatted written file associated with the global file ID.

[0013] In some embodiments, the file slice size is 4M.

[0014] In a second aspect, embodiments of this disclosure provide an electronic device, the electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the buffer-based asynchronous transfer CEPH cluster method described in any one of the preceding claims.

[0015] Thirdly, embodiments of this disclosure provide a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the buffer-based asynchronous transfer method for the CEPH cluster described in any of the preceding claims.

[0016] The buffer-based asynchronous transfer method for CEPH clusters provided in this disclosure monitors the CEPH cluster in real time, processes file read requests according to its different states, and sets up a buffer service to back up the object storage link. This can prevent business interruption caused by abnormalities in the entire CEPH cluster, achieving the technical effect of being imperceptible to business impact and ensuring data storage consistency. Attached Figure Description

[0017] To more clearly illustrate the embodiments of this disclosure or the existing technical solutions, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram illustrating the process of triggering load balancing in the CEPH cluster in related technologies.

[0019] Figure 2 This is a flowchart illustrating a method for buffer-based asynchronous transfer of a CEPH cluster according to an embodiment of this disclosure. Figure 3This is a schematic diagram of the write-to-file storage method of the buffer-based asynchronous transfer method for the CEPH cluster according to an embodiment of this disclosure. Figure 4 This is a schematic diagram illustrating the file writing and acquisition method of the buffer-based asynchronous transfer method for the CEPH cluster in one embodiment of this disclosure. Figure 5 This is a schematic diagram of the ThreadLocal thread used in the implementation of a buffer-based asynchronous transfer method for a CEPH cluster according to an embodiment of this disclosure. Figure 6 This is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0021] It should be noted that, unless otherwise defined, the technical or scientific terms used in one or more embodiments of this disclosure should have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms "first," "second," and similar words used in one or more embodiments of this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0022] Various non-limiting embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0023] Figure 2 This is a flowchart of a buffer-based asynchronous transfer method for a CEPH cluster according to an embodiment of this disclosure; first, refer to... Figure 2 This paper provides a detailed description of the buffer-based asynchronous transfer method for the CEPH cluster disclosed herein.

[0024] like Figure 2As shown in the embodiments of this disclosure, a method for asynchronous transfer of a CEPH cluster based on buffering is provided, the method comprising: S101: The file interface receives the file to be written, monitors the CEPH cluster, and when the CEPH cluster is in a normal state, stores the file to be written in the CEPH cluster. When the CEPH cluster is in an abnormal state, stores the file to be written on the buffer service and determines the size of the file to be written. If the file to be written is larger than a set threshold, the file to be written is split into fixed-size file slices and the file slices are stored, and the file slices are not larger than the set threshold. If the file to be written is smaller than or equal to the set threshold, the file to be written is formatted and stored. The set threshold is 4M. S102: The file interface receives file read requests and monitors the CEPH cluster. When the CEPH cluster is in an abnormal state, the file read request is sent to the buffer service. When the CEPH cluster is in a normal state, the file read request is sent to the CEPH cluster. At the same time, the buffer service starts an asynchronous write thread, reads the relevant files and generates a complete file, and writes the complete file to the CEPH cluster.

[0025] The buffer-based asynchronous transfer method for CEPH clusters provided in this disclosure monitors the CEPH cluster in real time, processes file read requests according to its different states, and sets up a buffer service to back up the object storage link. This can prevent business interruption caused by abnormalities in the entire CEPH cluster, achieving the technical effect of ensuring data storage consistency while making the impact on users imperceptible to business operations.

[0026] In some embodiments, the file interface can also perform permission authentication operations. For users who pass the authentication, subsequent write to the file storage or read of the relevant file is performed. For users who fail the authentication, the process ends.

[0027] In some embodiments, storing the file slice includes: Each file slice corresponds to a file page linked list. The file name, file size, creation and modification time, directory structure, and file page linked list of each file slice are stored in the metadata engine Redis. The file slice is then formatted and stored in Minio.

[0028] Specifically, the file slices are formatted and then stored in Minio, including formatting the file slices and storing them in a pre-defined file bucket in Minio.

[0029] In some embodiments, the abnormal state includes the CEPH cluster performing load balancing operations, a network anomaly, or the CEPH cluster being in an abnormal state.

[0030] In some embodiments, the file page linked list includes the following parameters: offset parameter, file block size parameter, and whether it is loaded parameter; the offset parameter, the file block size parameter, and the whether it is loaded parameter are used to perform multi-threaded segmented writing.

[0031] For example, the offset parameter can also be represented as offset, the file block size parameter can also be represented as bytes, and the loading status parameter can also be represented as is_load. During the writing process, multi-threaded segmented writing is started based on the offset parameter offset in the file linked list page number, the file block size parameter bytes, and the loading status parameter is_load. The integrity of the written file is strongly verified, and the loading status parameter is_load field is used to determine whether each file slice has been written. In this article, "writing file" and "file" have the same meaning.

[0032] In some embodiments, formatting the written file and storing it includes: Each written file corresponds to a file page linked list. The file name, file size, creation and modification time, directory structure, and file page linked list of each written file are stored in the metadata engine Redis. The written file is then formatted and stored in Minio.

[0033] Specifically, such as Figure 3 As shown, when storing the written file, the file interface can perform authority authentication on the user's relevant requests. After authentication, it determines whether the Ceph cluster is abnormal (in this application, Ceph cluster and CEPH cluster refer to the same thing). If no abnormality occurs, the Ceph cluster is accessed normally for writing. If an abnormality occurs, the written file needs to be stored in the buffer service. Then, it is determined whether the written file is larger than 4M. If it is (greater than 4M), the written file (large file) needs to be sliced ​​and the data formatted before Redis writes metadata and Minio writes data. If not (less than or equal to 4M), the written file is directly formatted as a file object and Redis writes metadata and Minio writes data.

[0034] In some embodiments, after the file read request is sent to the buffer service, the buffer service reads and returns the relevant files sequentially according to the rules of the file page linked list in the metadata engine Redis, or directly reads and returns the relevant files.

[0035] Specifically, the buffer service reads relevant files from Minio sequentially according to the rules of the file page linked list in the metadata engine Redis, returns the relevant files, and merges the relevant files into a complete file. This is for cases where the written file is greater than a set threshold and is split into multiple file slices for storage. Alternatively, it directly reads and returns relevant files from Minio according to the file page linked list in the metadata engine Redis, and uses the relevant files as the final complete file. This is for cases where the written file is less than or equal to the set threshold and does not need to be split into multiple file slices for storage, so the entire file can be directly obtained and returned.

[0036] like Figure 4 As shown, the file interface can perform permission authentication on user requests. After authentication, it checks whether the relevant file exists in the buffer service. If not, it reads the file from the Ceph cluster. If the file exists, it performs data formatting and reading on the buffer service, executing Redis to read metadata and Minio to read data.

[0037] In some embodiments, for each written file, a unique global file ID is generated in Redis, an expiration period is specified for the global file ID, and the expired global file ID is monitored using the LRU algorithm, triggering the deletion of the corresponding data block in Minio, thereby realizing the lifecycle management of object storage.

[0038] For example, each file, or rather each file written, generates a unique global file ID in Redis. An expiration date can be specified for the global file ID. With the help of Redis's high performance and LRU algorithm, expired keys (i.e., global file IDs) are monitored, triggering the deletion of data blocks in Minio, thereby realizing the lifecycle management of object storage.

[0039] In some embodiments, the file slice size is 4M, which is exemplary, but other file sizes may also be applied here.

[0040] For example, as an object storage file system, the buffer service is the medium for interaction between file objects and the hard disk. Unlike the traditional file system, which can only use the local disk to store data and corresponding metadata, the buffer service formats the data and stores it in the object storage Minio, while storing the corresponding metadata in databases such as Redis.

[0041] For example, the buffer service serves as a backup link for object storage during production. The buffer service or file interface can monitor the operating metrics of the Ceph cluster in real time. When the Ceph cluster is performing load balancing, experiencing network anomalies, or exhibiting abnormal status, dynamic load balancing can be implemented at the file interface. Newly received file read or write requests can be switched to the buffer service on the backup link. When the Ceph cluster completes self-balancing or the service returns to normal (i.e., the Ceph cluster is in a normal state), file access traffic is switched back to the Ceph cluster's write or read link. Simultaneously, the buffer service starts an asynchronous write thread, reads the metadata format from Redis, loads data blocks from Minio through the file page linked list, merges file blocks according to the file linked list format, and finally writes the entire file to the Ceph cluster.

[0042] In some embodiments, during the process of slicing or merging large files (files larger than a set threshold for writing), a ThreadLocal thread-local variable container (such as...) is used. Figure 5 ), using ThreadLocal to share file object metadata properties across multiple threads, Figure 5 Multiple threads, such as Thread1, Thread2, and Thread3, each correspond to a ThreadLocal. A ThreadLocal key can correspond to multiple values ​​(e.g., value1, value2, value3), allowing each thread to maintain an independent copy of the variable. Modifications to this variable by different threads will not interfere with each other. Based on the file key (i.e., the global file ID), the metadata formatting specification of the file object in Redis is obtained. Based on the offset parameter in the file linked list page number, the file library size parameter bytes, and the loading parameter is_load, multiple threads are started to add the files in segments simultaneously. The loading parameter is_load is set to true for strong consistency verification. The files are then merged and written to the CEPH cluster.

[0043] This disclosure presents an implementation scheme for high availability of object storage CEPH clusters, mainly addressing the methods and practices for high availability of object storage services, and offering the following advantages: 1. Monitor the performance metrics of the CEPH cluster in a timely manner. By calculating historical traffic and CEPH capacity, when a traffic peak occurs, the peak traffic is smoothed out through the caching service. When the peak occurs, the cached data is asynchronously written to the CEPH cluster to ensure the consistency of the final data storage.

[0044] 2. Implement a backup service for the object storage link to prevent business interruptions caused by an anomaly in the entire Ceph cluster. Switch to the buffer service provided by this patented invention in a timely manner, with no impact on business operations.

[0045] 3. When performing manual maintenance on the Ceph cluster, such as scaling up or down, the object storage file interface can be temporarily switched to the buffer service to ensure that business operations are not affected. Once the maintenance work is completed, the connection to the Ceph cluster is switched back, and the buffer service asynchronously restores the data to the Ceph cluster.

[0046] It should be noted that the methods of one or more embodiments of this disclosure can be executed by a single device, such as a computer or server. The methods of this embodiment can also be applied in a distributed scenario, where multiple devices cooperate to complete the process. In such a distributed scenario, one of these devices may execute only one or more steps of the methods of one or more embodiments of this disclosure, and the multiple devices will interact with each other to complete the method described.

[0047] It should be noted that the above description pertains to specific embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than those shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0048] Based on the same inventive concept, and corresponding to the methods of any of the above embodiments, this disclosure also discloses an electronic device; Specifically, Figure 6 This diagram illustrates the hardware structure of an electronic device for a buffer-based asynchronous transfer method for a CEPH cluster, as provided in this embodiment. The device may include a processor 410, a memory 420, an input / output interface 430, a communication interface 440, and a bus 450. The processor 410, memory 420, input / output interface 430, and communication interface 440 are interconnected internally via the bus 450.

[0049] The processor 410 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this disclosure.

[0050] The memory 420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 can store the operating system and other applications. When the technical solutions provided in the embodiments of this disclosure are implemented by software or firmware, the relevant program code is stored in the memory 420 and is called and executed by the processor 410.

[0051] Input / output interface 430 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0052] The communication interface 440 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (e.g., USB, Ethernet cable, etc.) or wireless means (e.g., mobile network, WIFI, Bluetooth, etc.).

[0053] Bus 450 includes a pathway for transmitting information between various components of the device, such as processor 410, memory 420, input / output interface 430, and communication interface 440.

[0054] It should be noted that although the above-described device only shows the processor 410, memory 420, input / output interface 430, communication interface 440, and bus 450, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this disclosure, and not necessarily all the components shown in the figures.

[0055] The electronic devices described in the above embodiments are used to implement the corresponding buffer-based asynchronous transfer CEPH cluster method in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0056] Based on the same inventive concept, corresponding to any of the above embodiments, one or more embodiments of this disclosure also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the buffer-based asynchronous transfer CEPH cluster method as described in any of the above embodiments.

[0057] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0058] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the buffer-based asynchronous transfer method of the CEPH cluster as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0059] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this disclosure (including the claims) is limited to these examples; within the framework of this disclosure, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of one or more embodiments of this disclosure as described above, which are not provided in detail for the sake of brevity.

[0060] Additionally, to simplify the description and discussion, and to avoid obscuring one or more embodiments of this disclosure, the provided drawings may or may not show well-known power / ground connections to integrated circuit (IC) chips and other components. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring one or more embodiments of this disclosure, and this also takes into account the fact that the details of implementation of these block diagram apparatuses are highly dependent on the platform on which one or more embodiments of this disclosure will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuitry) have been set forth to describe exemplary embodiments of this disclosure, it will be apparent to those skilled in the art that one or more embodiments of this disclosure may be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0061] Although this disclosure has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0062] This disclosure includes one or more embodiments intended to cover all such substitutions, modifications, and variations falling within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of one or more embodiments of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for asynchronous transfer of data to a Ceph cluster based on buffering, characterized in that, The method includes: The file interface receives the write file and monitors the CEPH cluster. When the CEPH cluster is in a normal state, the write file is stored in the CEPH cluster. When the CEPH cluster is in an abnormal state, the write file is stored on the buffer service, and the size of the write file is determined. If the write file is larger than a set threshold, the write file is split into fixed-size file slices and the file slices are stored, and the file slices are not larger than the set threshold. If the write file is smaller than or equal to the set threshold, the write file is formatted and stored. The set threshold is 4M, and the buffer service represents performing Redis write metadata and Minio write data. The file interface receives file read requests and monitors the CEPH cluster. When the CEPH cluster is in an abnormal state, the file read request is sent to the buffer service. When the CEPH cluster is in a normal state, the file read request is sent to the CEPH cluster, and the buffer service starts an asynchronous write thread to read the relevant files and generate complete files, and writes the complete files to the CEPH cluster.

2. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 1, characterized in that, The storage of the file slices includes: Each file slice corresponds to a file page linked list. The file name, file size, creation and modification time, directory structure, and file page linked list of each file slice are stored in the metadata engine Redis. The file slice is then formatted and stored in Minio.

3. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 1 or 2, characterized in that, The abnormal state includes the CEPH cluster being in a load balancing operation, resulting in the CEPH cluster being in an abnormal state.

4. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 2, characterized in that, The file page linked list includes the following parameters: offset parameter, file block size parameter, and whether it is loaded parameter; The offset parameter, the file block size parameter, and the whether it is loaded parameter are used to perform multi-threaded segmented writing.

5. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 2, characterized in that, The formatting of the written file and its storage includes: Each written file corresponds to a file page linked list. The file name, file size, creation and modification time, directory structure, and file page linked list of each written file are stored in the metadata engine Redis. The written file is then formatted and stored in Minio.

6. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 5, characterized in that, After the file read request is sent to the buffer service, the buffer service reads and returns the relevant files sequentially according to the rules of the file page linked list in the metadata engine Redis, or directly reads and returns the relevant files.

7. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 6, characterized in that, For each file to be written, a unique global file ID is generated in Redis, and an expiration period is specified for the global file ID. Using the LRU algorithm, expired global file IDs are monitored, and the corresponding data blocks in Minio are deleted, thereby realizing the lifecycle management of object storage.

8. The method for asynchronous transfer of a CEPH cluster based on buffering as described in claim 1, characterized in that, The file slice is 4MB in size.

9. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the method for buffer-based asynchronous transfer of a CEPH cluster as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that can be executed by one or more processors to implement the buffer-based asynchronous transfer method for the CEPH cluster as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method, system and memory for improving read-write throughput capacity of file storage NAS

    CN113485978A

  • Data processing method and device

    CN113792074A