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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


