Data reconstruction method of distributed file system
A distributed file and data reconstruction technology, applied in the computer field, can solve the problems of inaccurate data reconstruction control scheme, affecting distributed cluster performance, and low data reconstruction performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] The following introduces Embodiment 1 of a data reconstruction method for a distributed file system provided by the present application, see figure 1 , embodiment one includes:
[0047]S101. Determine the number of hosts and the number of placement group copies in the storage pool where the target OSD is located;
[0048] S102. If the number of copies of the placement group is equal to the number of hosts, determine the water level of each OSD of the current host after the target OSD data is reconstructed;
[0049] S103. If the placement group copy is smaller than the number of hosts, determine the target host to which the target OSD data is expected to be reconstructed, and determine the water level of each OSD of the target host after the target OSD data is reconstructed;
[0050] S104. When the water level of each OSD does not exceed the reconstruction water level limit, perform data reconstruction on the target OSD.
[0051] This embodiment is applied to a distrib...
Embodiment 2
[0059] see figure 2 , embodiment two specifically includes:
[0060] S201. Perform state monitoring on the OSDs in the distributed file system, and if a faulty OSD is detected, determine that the OSD is a target OSD for data reconstruction to be performed;
[0061] S202. Determine the number of hosts and the number of placement group copies in the storage pool where the target OSD is located;
[0062] S203. If the number of copies of the placement group is equal to the number of hosts, determine the water level of each OSD of the current host after the target OSD data is reconstructed;
[0063] S204. If the placement group copy is less than the number of hosts, according to the CRUSH algorithm, determine the target host to which the target OSD data is expected to be reconstructed, and determine each of the target hosts after the target OSD data is reconstructed. OSD water level;
[0064] S205. Determine whether there is a water level exceeding 90% in the water level of eac...
Embodiment approach
[0077] As a specific embodiment, the device also includes:
[0078] Monitoring module: used to monitor the status of the OSD in the distributed file system. If a faulty OSD is detected, it is determined that the OSD is the target OSD for data reconstruction to be performed
[0079] The data reconstruction device of the distributed file system in this embodiment is used to realize the above-mentioned data reconstruction method of the distributed file system, so the specific implementation in the device can be seen in the above-mentioned data reconstruction method of the distributed file system In the embodiment part, for example, the data determination module 301, the first calculation module 302, the second calculation module 303, and the reconstruction module 304 are respectively used to implement steps S101, S102, and S103 in the data reconstruction method of the above-mentioned distributed file system, S104. Therefore, for the specific implementation manners thereof, refer...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


