Load balancing method, electronic device, and storage medium

By performing static binding during directory creation, the problem of excessively long waiting times caused by dynamic load balancing in distributed file systems is solved, thereby improving load balancing and directory access efficiency.

CN116126523BActive Publication Date: 2026-06-30NEW H3C TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NEW H3C TECH CO LTD
Filing Date
2022-12-26
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In distributed file systems, dynamic load balancing can lead to long request access times, especially during directory migrations. Frequent migrations can freeze user access and impact business availability.

Method used

By determining whether static binding is needed based on the directory depth and the preset static binding directory depth during directory creation, the target MDS node is identified, and the directory to be created is bound to the MDS node to be migrated, avoiding frequent migrations and ensuring that the authoritative MDS node of subsequent directories remains unchanged.

Benefits of technology

It achieves load balancing while avoiding the problem of excessive waiting time caused by frequent migrations, thus improving the efficiency and availability of directory access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116126523B_ABST
    Figure CN116126523B_ABST
Patent Text Reader

Abstract

This disclosure relates to the field of file system technology, specifically to load balancing methods, electronic devices, and storage media. The method is applied to MDS nodes in a metadata server (MDS) cluster. It includes receiving and parsing a directory creation request to obtain directory information of the directory to be created; determining the directory depth of the directory to be created based on its path information; determining whether static binding is needed based on the directory depth and a preset static binding directory depth; when static binding is needed, querying whether a record of a target MDS node exists, the target MDS node being determined based on the load information of each MDS node in the MDS cluster; when no record of a target MDS node exists, selecting a migration MDS node from the MDS cluster; and binding the directory to be created to the migration MDS node. This method achieves load balancing while avoiding the long waiting times caused by frequent migrations.
Need to check novelty before this filing date? Find Prior Art