Metadata cluster load balancing method and device, terminal and storage medium
A cluster load balancing and load balancing technology, applied in electrical components, transmission systems, etc., can solve problems such as general balancing effect and inability to obtain global load information, and achieve the effect of improving balancing effect, improving automatic adaptability, and simplifying use.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] In the current dynamic load balancing method, each metadata service is independently balanced, the global load information cannot be obtained, and the balancing effect is general. This embodiment 1 provides a metadata cluster load balancing method. The load calculation considers the load of the MDS itself. Number of requests, message queue length, CPU load. The master metadata service (MDS0) periodically initiates a load collection request command, and other metadata services (MDS) send their own load status to all other metadata services after receiving the load request command from the master metadata service. After all metadata services collect the load conditions of all metadata services, calculate the average load value and decide whether to initiate a load balancing action.
[0040] Such as figure 1 Shown is a schematic flowchart of a metadata cluster load balancing method provided in Embodiment 1, which includes the following steps.
[0041] S101. The master me...
Embodiment 2
[0074] The second embodiment provides a metadata cluster load balancing device, which is used to implement the aforementioned metadata cluster load balancing method.
[0075] Such as image 3 Shown is a schematic structural block diagram of a metadata cluster load balancing device provided in the second embodiment, including the following functional modules.
[0076] Load collection request initiation module 101: the main metadata service initiates a load collection request.
[0077] The user selects a metadata service as the master metadata service, and the master metadata service periodically initiates load collection requests to other metadata services. Of course, the master metadata service itself also performs load calculation.
[0078] Load calculation and sending module 102: calculate the metadata heat value of the file directory, each metadata service calculates its own load according to the metadata heat value, and sends its own load information to other metadata ser...
Embodiment 3
[0099] Figure 4 A schematic structural diagram of a terminal device 400 provided by an embodiment of the present invention includes: a processor 410 , a memory 420 and a communication unit 430 . When the processor 410 is used to implement the metadata cluster load balancing program stored in the memory 420, the following steps are implemented:
[0100] S101. The master metadata service initiates a load collection request.
[0101] S102. Calculate the metadata heat value of the file directory, and each metadata service calculates its own load according to the metadata heat value, and sends its own load information to other metadata services.
[0102] S103. Each metadata service calculates an average load according to the loads of all metadata services, and judges whether to perform load balancing according to the difference between its own load and the average load.
[0103] A metadata cluster load balancing method provided by the present invention, each metadata service in ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 



