Main OSD adjusting method and device
An adjustment method and technology for adjustment devices, which are applied in the fields of instrumentation, computing, electrical digital data processing, etc., can solve the problem that the approximate balance cannot be guaranteed, the user data access requests cannot be guaranteed to be approximately evenly distributed, and the overall performance of the Ceph distributed storage system cannot be sufficient. Play and other issues to achieve the effect of overall performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0025] Please refer to image 3 , image 3 The flowchart of the main OSD adjustment method provided by the embodiment of the present invention is shown. The processing method includes the following steps:
[0026] Step S101: Calculate the OSD tuple corresponding to each PG, where the OSD tuple includes a master OSD determined from a plurality of OSDs and at least one slave OSD.
[0027] In the embodiment of the present invention, the data that the user needs to store is first cut into fixed-length objects, and each object is assigned to a PG through a hash function. PG is a Ceph distributed storage system that organizes, migrates, and The maintenance unit is a logical concept. A PG is responsible for organizing several objects, but one object can only be mapped to one PG. When the client 100 learns from the monitoring cluster that the cluster map is updated, it uses the CRUSH algorithm to calculate the OSD tuple corresponding to each PG according to the updated cluster map. One PG...
Embodiment approach
[0038] As an implementation manner, the method for determining the OSD tuple to be adjusted may be:
[0039] First, determine whether the total number of times corresponding to the main OSD in the current OSD tuple is within a preset deviation range, where the preset deviation range includes a lower limit value and an upper limit value.
[0040] In the embodiment of the present invention, the preset deviation range can be the average number of times each OSD in the Ceph distributed storage system is used as the main OSD fluctuates by a preset percentage, where each OSD in the Ceph distributed storage system is the average of the main OSD The number of times can be calculated by the formula: V=M / N, where V represents the average number of times each OSD in the Ceph distributed storage system serves as the main OSD, M represents the number of PGs in the Ceph distributed storage system, and N represents the Ceph distribution The number of OSDs in a distributed storage system, for exam...
no. 2 example
[0060] Please refer to Figure 5 , Figure 5 It shows a schematic block diagram of a main OSD adjustment apparatus 200 provided by an embodiment of the present invention. The main OSD adjustment device 200 is applied to the client 100 in the Ceph distributed storage system, and includes a calculation module 201; a statistics module 202; a traversal module 203; a first determination module 204; a second determination module 205; and an exchange module 206.
[0061] The calculation module 201 is configured to calculate the OSD tuple corresponding to each PG, where the OSD tuple includes a master OSD determined from a plurality of OSDs and at least one slave OSD.
[0062] In the embodiment of the present invention, the calculation module 201 is used to execute step S101.
[0063] The statistics module 202 is used to count the total number of times each OSD serves as the main OSD in multiple OSD tuples.
[0064] In the embodiment of the present invention, the statistics module 202 is us...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


