Unlock instant, AI-driven research and patent intelligence for your innovation.

OSD disk allocation method and system

A distribution method and distribution system technology, applied in the field of communication, can solve problems such as unreasonable distribution and system operation failure, and achieve the effect of reducing the risk of failure in the later stage

Active Publication Date: 2020-06-02
烽火云科技有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing ceph OSD deployment method is to manually divide the ssd partitions. The partition size is estimated based on the experience of the technicians, and then provided to the OSD. However, because there is no unified allocation standard, the system often fails due to unreasonable allocation.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • OSD disk allocation method and system
  • OSD disk allocation method and system
  • OSD disk allocation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] see figure 1 As shown, Embodiment 1 of the present invention provides an OSD disk allocation method, the method includes the following steps:

[0057] S1. Obtain the number and capacity of OSD disks and SSDs to be allocated;

[0058] S2. According to the quantity and capacity of OSD disks and SSDs, set the SST file and WAL file size of each OSD disk;

[0059] S3. Evenly distribute the data cache area, SST file and WAL file of the OSD disk to each SSD according to the size.

[0060] In the embodiment of the present invention, the number and capacity of OSD disks that need to be allocated are first obtained, and the number and capacity of SSDs that need to be allocated are obtained. Since the capacity of the OSD disks is obtained, the size of the data cache area of ​​each OSD disk depends on It corresponds to the capacity of the OSD disk, so the size of the data cache area of ​​each OSD disk can also be obtained;

[0061] Furthermore, according to the number and capaci...

Embodiment 2

[0083] see figure 2 As shown, Embodiment 2 of the present invention provides an OSD disk allocation method, the method includes the following steps:

[0084] The first step is to obtain the number and capacity of OSD disks and SSDs to be allocated. There are 5 OSD disks and 2 SSD disks in total. The capacity of each SSD is 100G, and the capacity of each OSD disk is 100G. Among them, each OSD disk The size of the data cache area is 20G according to the conventional setting standard;

[0085] Step 2: Since the remaining capacity of the SSD is only 100G, the size of the SST file and WAL file of each OSD disk needs to be reduced in proportion, that is, the size of the SST file and WAL file of each OSD disk is 10G;

[0086] The third step is to evenly distribute the data cache area, SST file and WAL file of the OSD disk to each SSD according to the size.

[0087] First, mark each SSD as SSD1 and SSD2, and mark each OSD disk as OSD1, OSD2, OSD3, OSD4, and OSD5. One of the allocat...

Embodiment 3

[0093] see image 3 As shown, Embodiment 3 of the present invention provides an OSD disk allocation system, which includes:

[0094] Capacity acquisition unit 1, which is used to acquire the quantity and capacity of OSD disks and SSDs to be allocated;

[0095] Parameter preset unit 2, which is used to set the SST file and the WAL file size of each OSD disk according to the quantity and capacity of the OSD disk and SSD;

[0096] The partition configuration unit 3 is used for evenly distributing the data cache area, SST file and WAL file of the OSD disk to each SSD according to the size.

[0097] In the embodiment of the present invention, the number and capacity of OSD disks that need to be allocated are first obtained, and the number and capacity of SSDs that need to be allocated are obtained. Since the capacity of the OSD disks is obtained, the size of the data cache area of ​​each OSD disk depends on It corresponds to the capacity of the OSD disk, so the size of the data c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an OSD disk allocation method and system, and relates to the technical field of communication. The method comprises the following steps: obtaining the number and capacity of to-be-allocated OSD disks and SSDs; setting sizes of SST files and WAL files of each OSD disk according to the number and capacity of the OSD disks and SSDs; and uniformly distributing the data cache region of the OSD disk, the SST file and the WAL file into each SSD according to the size. According to the method, the accurate and quantitative partitioning work is carried out on the OSD disks, manual partitioning by experience is avoided, and the later fault risk is reduced.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to an OSD disk allocation method and system. Background technique [0002] In the current technical means, when deploying the bluestore-based ceph OSD, in order to improve the performance of the OSD, the SST files and WAL files of rocksdb are usually placed in the ssd, and a part of the ssd is used as the data cache of the mechanical disk, but how to There is indeed no uniform standard for ssd partitioning. [0003] The existing ceph OSD deployment method is to manually divide the ssd partitions. The partition size is estimated based on the experience of the technicians, and then provided to the OSD. However, because there is no unified allocation standard, the system often fails due to unreasonable allocation. [0004] Therefore, there is an urgent need for a new OSD disk allocation technical solution to solve the above technical problems. Contents of the invention [000...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/0604G06F3/0631G06F3/0644G06F3/0679Y02D10/00
Inventor 汤鸿飞
Owner 烽火云科技有限公司