CN104980515A - Method and apparatus for distributing and processing messages in cloud storage systems - Google Patents
Method and apparatus for distributing and processing messages in cloud storage systems Download PDFInfo
- Publication number
- CN104980515A CN104980515A CN201510364343.0A CN201510364343A CN104980515A CN 104980515 A CN104980515 A CN 104980515A CN 201510364343 A CN201510364343 A CN 201510364343A CN 104980515 A CN104980515 A CN 104980515A
- Authority
- CN
- China
- Prior art keywords
- message
- type
- logical division
- distribution
- cloud storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and apparatus for distributing and processing messages in cloud storage system nodes. According to the method and apparatus, the messages are classified logically according to message types, different priorities are assigned for different logical categories of the messages, and therefore, efficient and flexible processing of different massages can be realized.
Description
Technical field
The present invention relates to cloud technical field of memory, particularly a kind of distribution processing method of message and device.
Background technology
For in cloud storage system, network configuration is huge, and node is numerous, needs data volume to be processed also very huge.Communicated by message between all nodes, the operation of scheduling strategy to whole system of message distribution has vital effect, therefore needs to be optimized in Message Processing.
If the scheduling mode of Message Processing is unreasonable, the message of high priority can not get priority treatment, and cloud storage system can be caused to think, and this node state is abnormal, and then system can kick out of this node, thus affects the operational efficiency of whole cloud storage system.At present, in cloud storage system, the simplest message process mode is exactly according to type (type) field in message request, uses switch case to come to process respectively.But this mode increases along with message categories, will there is following problem: tediously long swtich case statement impact is attractive in appearance; If add new message and processing logic thereof, or remove the processing logic of certain message, not only will revise these message and logic under these circumstances, must revise this pile swtichcase, such amendment seems very loaded down with trivial details and easily makes mistakes.Such distribution mechanisms efficiency that the most key is is low, and does not have priority, and the message of high priority is just likely dispatched not in time, causes cloud storage system abnormal.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides message distribution processing method and device in a kind of cloud storage system, it is optimized message distribution dissimilar in message queue, by introducing the distribution mechanisms of the logical division of Effect-based operation type in message distribution, effectively can optimize the message distribution scheduling strategy in cloud storage system, improve the dispatching flexibility of different types of messages process, promote the Message Processing efficiency of overall cloud stocking system.
Further, said method and device, in the message distribution process of cloud storage system node, create a kind of distribution mechanisms of logical division of assigned priority for message distribution.Use multiple switch to carry out point sending and replace single switch distribution, and when organizing the order of multiple switch, the logical division for message carries out prioritization, thus realize the efficient of different types of messages and distribution flexibly.
In order to reach the object of the invention, the invention provides message distribution processing method in a kind of cloud storage system, obtaining the type of message of the message in a message queue; Described type of message according to obtaining carries out logical division to described message; The distribution of described message is carried out according to determined logical division.
In order to reach the object of the invention, present invention also offers message distribution processing unit in a kind of cloud storage system, comprising: message queue administrative unit, for the multiple message to be distributed in management node, described message has type of message mark; Type of message acquiring unit, receives the described message from message queue administrative unit, obtains the type of message of described message; Logical type determining unit, the described type of message according to obtaining carries out logical division to described message; Message distribution unit, distributes the message after determined logical division.
Further, the priority that described logical division is corresponding different.
Further, multiple switch is used to carry out the distribution of described message, the prioritization that the order of described multiple switch is logically classified.
Further, described logical division comprises: do not need the message of identity/characteristic check, need to carry out the message of characteristic check, need the monitor process of execution monitoring function or message that client is initiated or the message that sent by other monitors.
According to one embodiment of the invention, the present invention also provides message distribution processing unit in a kind of cloud storage system, comprising: processor; For storing the memory of the executable instruction of described processor; Described processor is configured to: the type of message obtaining the message in a message queue; Described type of message according to obtaining carries out logical division to described message; The distribution of described message is carried out according to determined logical division.
Accompanying drawing explanation
Accompanying drawing is used to provide the further understanding to technical solution of the present invention, and forms a part for specification, is used from and explains technical scheme of the present invention, do not form the restriction to technical solution of the present invention with the embodiment one of the application.
Fig. 1 is the flow chart of a kind of message distribution processing method according to the present invention one exemplary embodiment;
Fig. 2 is the block diagram of a kind of message distribution processing unit according to the present invention one exemplary embodiment;
Fig. 3 is a kind of message distribution treatment mechanism schematic diagram according to the present invention one exemplary embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
The flow chart of a kind of message distribution processing method exemplified according to the invention process is shown with reference to figure 1, Fig. 1.Although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.Message distribution node in cloud storage system obtains from other node or the message of self to form message queue.This message distribution node can be special message distribution processing node, also can be the node of type identical with other nodes.
Step 101, obtains the type of message of the message in a message queue.This type of message can be that type in message (type) field carries out identifying.
Step 102, the described type of message according to obtaining carries out logical division to described message.Further, described logical type can be as Types Below:
A () does not need the message of identity/characteristic check;
B () needs the message of carrying out characteristic check
C () needs message that is that the monitor of execution monitoring function (Monitor) processes or client initiation.
D message that () is sent by other monitors (Monitor).
Described logical type can divide according to such as upper type, but this dividing mode is only exemplary, is not limited to upper type.
Step 103, carries out the distribution of message according to logical division determined in step 102.
Further, in message distribution processing procedure, according to ageing or importance etc., can to logical division assigned priority.Particularly, the distribution that multiple switch can be used to carry out message is distributed to replace single switch of the prior art, and when organizing the order of multiple switch, carries out prioritization according to the logical division determined in a step 102.
Further, step 104 (not shown), after the distribution completing described message, returns step 101, continues another message in processing messages queue.
Fig. 2 shows a kind of according to an exemplary embodiment of the present invention block diagram of message distribution processing unit.Message distribution processing unit 200, comprises message queue administrative unit 202, type of message acquiring unit 204, logical type determining unit 206, message distribution unit 208.
Message queue administrative unit 202, for the multiple message to be distributed in management node, described message has type of message (type) mark.
Type of message acquiring unit 204, receives the described message from message queue administrative unit 202, obtains the type of message of described message.
Logical type determining unit 206, the described type of message according to obtaining carries out logical division to described message.
Message distribution unit 208, distributes the carrying out of the message after determined logical division.
In message distribution processing procedure, according to ageing or importance etc., can to logical division assigned priority.Particularly, the distribution that multiple switch can be used to carry out message is distributed to replace single switch of the prior art, and when organizing the order of multiple switch, logically prioritization is carried out in classification.
In the exemplary embodiment, device 200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Fig. 3 shows the message distribution treatment mechanism schematic diagram of one embodiment of the invention, and this message distribution treatment mechanism can use following false code logic realization.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory of instruction, above-mentioned instruction can be performed by the processor of a message distribution processing unit to complete said method.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Although the execution mode disclosed by the present invention is as above, the execution mode that described content only adopts for ease of understanding the present invention, and be not used to limit the present invention.Those of skill in the art belonging to any the present invention; under the prerequisite not departing from the spirit and scope disclosed by the present invention; any amendment and change can be carried out in the form implemented and details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.
Claims (9)
1. a message distribution processing method in cloud storage system, is characterized in that, comprising:
Step 101, obtains the type of message of the message in a message queue;
Step 102, the described type of message according to obtaining carries out logical division to described message;
Step 103, carries out the distribution of described message according to determined logical division.
2. the method for claim 1, the priority that described logical division is corresponding different.
3. method as claimed in claim 2, uses multiple switch to carry out the distribution of described message, the prioritization that the order of described multiple switch is logically classified.
4. the method as described in claim 1-3, described logical division comprises: the message not needing identity/characteristic check, need the message of carrying out characteristic check, that need the monitor process of execution monitoring function or that client is initiated message, or the message sent by other monitors.
5. message distribution processing unit (200) in a cloud storage system, is characterized in that, comprising:
Message queue administrative unit (202), for the multiple message to be distributed in management node, described message has type of message mark;
Type of message acquiring unit (204), receives the described message from message queue administrative unit 202, obtains the type of message of described message;
Logical type determining unit (206), the described type of message according to obtaining carries out logical division to described message;
Message distribution unit (208), distributes the message after determined logical division.
6. device as claimed in claim 5, the priority that described logical division is corresponding different.
7. method as claimed in claim 6, uses multiple switch to carry out the distribution of described message, the prioritization that the order of described multiple switch is logically classified.
8. the device as described in claim 5-7, described logical division comprises: do not need the message of identity/characteristic check, need to carry out the message of characteristic check, need the monitor process of execution monitoring function or message that client is initiated or the message that sent by other monitors.
9. a message distribution processing unit in cloud storage system, is characterized in that, comprising:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
Obtain the type of message of the message in a message queue;
Described type of message according to obtaining carries out logical division to described message;
The distribution of described message is carried out according to determined logical division.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510364343.0A CN104980515B (en) | 2015-06-26 | 2015-06-26 | Message distribution treating method and apparatus in a kind of cloud storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510364343.0A CN104980515B (en) | 2015-06-26 | 2015-06-26 | Message distribution treating method and apparatus in a kind of cloud storage system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104980515A true CN104980515A (en) | 2015-10-14 |
CN104980515B CN104980515B (en) | 2018-08-03 |
Family
ID=54276608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510364343.0A Active CN104980515B (en) | 2015-06-26 | 2015-06-26 | Message distribution treating method and apparatus in a kind of cloud storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104980515B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141549A (en) * | 2015-08-17 | 2015-12-09 | 北京京东尚科信息技术有限公司 | Network request processing method and device |
CN105516276A (en) * | 2015-11-30 | 2016-04-20 | 中电科华云信息技术有限公司 | Message processing method and system based on bionic hierarchical communication |
CN106357819A (en) * | 2016-11-09 | 2017-01-25 | 努比亚技术有限公司 | Message processing device, message processing method and message forwarding system |
CN106385466A (en) * | 2016-11-09 | 2017-02-08 | 努比亚技术有限公司 | Information processing device, information processing method and information pushing system |
CN106572188A (en) * | 2016-11-09 | 2017-04-19 | 努比亚技术有限公司 | Message processing device, message processing method and message push system |
CN107547605A (en) * | 2016-06-29 | 2018-01-05 | 华为技术有限公司 | A kind of message reading/writing method and node device based on node queue |
CN110750510A (en) * | 2019-10-16 | 2020-02-04 | 浪潮云信息技术有限公司 | Internet of things data processing system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005059746A1 (en) * | 2003-12-17 | 2005-06-30 | Telefonaktiebolaget Lm Ericsson (Publ) | System and method for dynamically optimized message processing |
CN102685250A (en) * | 2012-05-31 | 2012-09-19 | 苏州阔地网络科技有限公司 | Message scheduling process method and system |
CN102739452A (en) * | 2012-06-28 | 2012-10-17 | 浪潮(北京)电子信息产业有限公司 | Method and system for monitoring resources |
CN103929823A (en) * | 2014-05-07 | 2014-07-16 | 重庆大学 | Electric wireless private network channel access control method based on service classification |
-
2015
- 2015-06-26 CN CN201510364343.0A patent/CN104980515B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005059746A1 (en) * | 2003-12-17 | 2005-06-30 | Telefonaktiebolaget Lm Ericsson (Publ) | System and method for dynamically optimized message processing |
CN102685250A (en) * | 2012-05-31 | 2012-09-19 | 苏州阔地网络科技有限公司 | Message scheduling process method and system |
CN102739452A (en) * | 2012-06-28 | 2012-10-17 | 浪潮(北京)电子信息产业有限公司 | Method and system for monitoring resources |
CN103929823A (en) * | 2014-05-07 | 2014-07-16 | 重庆大学 | Electric wireless private network channel access control method based on service classification |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141549A (en) * | 2015-08-17 | 2015-12-09 | 北京京东尚科信息技术有限公司 | Network request processing method and device |
CN105141549B (en) * | 2015-08-17 | 2018-09-21 | 北京京东尚科信息技术有限公司 | Network request treating method and apparatus |
CN105516276A (en) * | 2015-11-30 | 2016-04-20 | 中电科华云信息技术有限公司 | Message processing method and system based on bionic hierarchical communication |
CN107547605A (en) * | 2016-06-29 | 2018-01-05 | 华为技术有限公司 | A kind of message reading/writing method and node device based on node queue |
CN107547605B (en) * | 2016-06-29 | 2020-01-31 | 华为技术有限公司 | message reading and writing method based on node queue and node equipment |
CN106357819A (en) * | 2016-11-09 | 2017-01-25 | 努比亚技术有限公司 | Message processing device, message processing method and message forwarding system |
CN106385466A (en) * | 2016-11-09 | 2017-02-08 | 努比亚技术有限公司 | Information processing device, information processing method and information pushing system |
CN106572188A (en) * | 2016-11-09 | 2017-04-19 | 努比亚技术有限公司 | Message processing device, message processing method and message push system |
CN110750510A (en) * | 2019-10-16 | 2020-02-04 | 浪潮云信息技术有限公司 | Internet of things data processing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN104980515B (en) | 2018-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104980515A (en) | Method and apparatus for distributing and processing messages in cloud storage systems | |
US10331468B2 (en) | Techniques for routing service chain flow packets between virtual machines | |
EP3281369B1 (en) | Server load balancing | |
CN107370667B (en) | Multithreading parallel processing method and device, readable medium and storage controller | |
RU2018142269A (en) | SYSTEM AND METHOD OF ORGANIZING A QUEUE BASED ON EXPECTATION | |
US20160378570A1 (en) | Techniques for Offloading Computational Tasks between Nodes | |
US9853906B2 (en) | Network prioritization based on node-level attributes | |
RU2749339C1 (en) | Equipment control method, cluster system, electronic device and readable data media | |
WO2016061935A1 (en) | Resource scheduling method, device and computer storage medium | |
US20170034063A1 (en) | Prioritization of network traffic in a distributed processing system | |
CN105159779B (en) | Method and system for improving data processing performance of multi-core CPU | |
CN104598316A (en) | Storage resource distribution method and device | |
CN110716813A (en) | Data stream processing method and device, readable storage medium and processor | |
US20160357810A1 (en) | Efficient state change support for hierarchical data models in a virtualized system | |
US10374899B2 (en) | Method and device for reporting OpenFLow switch capability | |
CN111176812A (en) | Clustered timing task scheduling system | |
CN110635968A (en) | Monitoring method, device and equipment for stacked double-active detection channel and storage medium | |
US9652310B1 (en) | Method and apparatus for using consistent-hashing to ensure proper sequencing of message processing in a scale-out environment | |
CN109086128B (en) | Task scheduling method and device | |
EP3687133B1 (en) | System and method for synchronization of media objects between devices operating in a multiroom system | |
CN109165135B (en) | Data management method, computer readable storage medium and terminal equipment | |
US10708193B2 (en) | State synchronization for global control in a distributed security system | |
WO2016091003A1 (en) | Method for implementing service collaborative scheduling, computing board, and storage medium | |
CN115237597A (en) | Data processing method, device, system, equipment and storage medium | |
EP3346671B1 (en) | Service processing method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |