Unlock instant, AI-driven research and patent intelligence for your innovation.

Message queue design and realization method

A technology of message queue and implementation method, applied in the field of distributed cluster storage system, can solve problems such as affecting the operation efficiency of cluster file system, untimely scheduling of high-priority messages, and not being able to process them quickly, so as to improve message processing speed, The effect of optimizing scheduling strategy and improving flexibility

Active Publication Date: 2014-07-02
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the scheduling strategy design of the message queue is unreasonable, high-priority messages may not be scheduled in time, and then they cannot be processed quickly, which will cause the cluster file system to think that the node is abnormal, and then the cluster file system will kick out the node, affecting the entire The operating efficiency of the cluster file 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
  • Message queue design and realization method
  • Message queue design and realization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] 1. Message queue

[0020] When a message enters the message queue, the message needs to have a corresponding priority and a quota used (generally, the length of the message is used). According to the priority of the message, first find the sub-message queue of the corresponding priority, if there is no sub-message queue of the corresponding priority, create a sub-message queue, and calculate the sum of all sub-message queues. Then put the message into the sub-message queue of the corresponding priority.

[0021] Second, the message out of the team

[0022] When a message needs to be dispatched out of the queue, first traverse all sub-message queues

[0023] (1) If there is a sub-message queue with enough quota for dequeuing messages, it will directly dequeue the message and consume the quota of the sub-message queue, and calculate the quota that should be compensated for other sub-message pairs according to the quota of the message , the calculation formula is (prior...

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 provides a message queue design and realization method and belongs to the field of distributed cluster storage systems. The method is mainly characterized in that in the process of processing a message in a message queue of nodes of a cluster file system, quotas corresponding to queues with other priorities are calculated according to the priority and the quota of the message, then the calculated quotas are fed back to the message queues with other priorities, and therefore scheduling of queues with different priorities is achieved.

Description

[0001] technical field [0002] The invention relates to the field of distributed cluster storage systems, in particular to a method for designing and implementing a message queue. Background technique [0003] In the cluster file system, all nodes communicate through messages, and the scheduling strategy of the message queue plays a vital role in the operation of the entire cluster. If the scheduling strategy design of the message queue is unreasonable, high-priority messages may not be scheduled in time, and then they cannot be processed quickly, which will cause the cluster file system to think that the node is abnormal, and then the cluster file system will kick out the node, affecting the entire The operating efficiency of the cluster file system. Contents of the invention [0004] The invention is a design and implementation method of a message queue, which is suitable for a distributed cluster storage system, can effectively optimize the scheduling strategy of ...

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
IPC IPC(8): G06F9/48
Inventor 侯斌
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD