Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for querying subtree root catalog loaded by metadata server

A metadata server and sub-tree root technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as poor query effect, inability to switch loads in time, and affect system use, etc., to achieve timely load switching, Improve the efficiency of system use and query the effect of good results

Inactive Publication Date: 2017-06-13
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is difficult to guarantee the load balance of the subtree root directory among metadata servers, so it is necessary to query the load of the subtree root directory of each metadata server, and perform load switching to achieve load balance
The current query method is to query the metadata server to which the directory belongs for a single directory. When the number of directories is too large, the query effect is poor, and the load switching cannot be performed in time, which affects the use of the system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for querying subtree root catalog loaded by metadata server
  • Method and device for querying subtree root catalog loaded by metadata server
  • Method and device for querying subtree root catalog loaded by metadata server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] Such as figure 1 As shown, a method for querying the root directory of a subtree loaded by a metadata server includes the following steps:

[0034] Step S101: the metadata server acquires a subtree root directory query message.

[0035] Step S102: The metadata server forms a subtree root directory response message according to the subtree root directory query message.

[0036] Step S103: The metadata server returns a subtree root directory response message.

Embodiment 2

[0038] Such as figure 2 As shown, a method for querying the root directory of a subtree loaded by a metadata server includes the following steps:

[0039] Step S201: Receive a query instruction and parse it into a subtree root directory query message.

[0040] Step S202: the metadata server obtains the subtree root directory query message.

[0041] Step S203: The metadata server forms a subtree root directory response message according to the subtree root directory query message.

[0042] Step S204: Determine whether the metadata server has a subtree root directory, if yes, return a subtree root directory response message, and if not, return an empty directory.

[0043] Step S205: the metadata server returns a subtree root directory response message.

[0044] Step S206: displaying the returned results on the user's query interface.

[0045] Wherein in step S203: the metadata server forms the subtree root directory response message according to the subtree root directory q...

Embodiment 3

[0047] Such as image 3 As shown, a device for querying the root directory of a subtree loaded by a metadata server includes the following modules:

[0048] The sending module 31 is used for the metadata server to obtain the subtree root directory query message.

[0049] The forming module 32 is configured to form a subtree root directory response message according to the subtree root directory query message of the metadata server.

[0050] A return module 33, configured to return the metadata server to a subtree root directory response message.

[0051] The sending module 31 is connected to the forming module 32 , and the forming module 32 is connected to the returning module 33 .

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of metadata server storage and discloses a method and device for querying subtree root catalogs loaded by a metadata server. The problem that in the prior art, queried loads of the subtree root catalogs of each metadata server cannot be switched for load balance is solved. The metadata server obtains a subtree root catalog query message; the metadata server forms a subtree root catalog responding message according to the subtree root catalog query message; the metadata server returns the subtree root catalog responding message. The metadata server receives and analyzes a sent query command, all subtree root catalogs in a memory space are queried, the metadata server which the subtree root catalogs belong to performs filtration, and all the subtree root catalogs of the metadata server form subtree root catalog responding messages. All the subtree root catalogs are obtained through one-time query, primitive root catalog processing is needed no longer and is replaced by allocated sub-catalogs for processing, and accordingly a load balancing effect is achieved.

Description

technical field [0001] The invention relates to the field of metadata server storage, in particular to a method and device for querying the root directory of a subtree loaded by a metadata server. Background technique [0002] In the cluster file system, all operations on file metadata are processed through the metadata server. When the cluster size becomes larger, a single metadata server is not enough to support the response processing of the message, so it is increased to multiple metadata Servers act as a cluster to handle request responses. However, it is difficult to guarantee the load balance of the subtree root directory among metadata servers, so it is necessary to query the load of the subtree root directory of each metadata server, and perform load switching to achieve load balance. The current query method is to query the metadata server to which the directory belongs for a single directory. When the number of directories is too large, the query effect is poor, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/148
Inventor 张涛
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products