CN102739781A - Batch scheduling method and system of messages - Google Patents

Batch scheduling method and system of messages Download PDF

Info

Publication number
CN102739781A
CN102739781A CN2012101936700A CN201210193670A CN102739781A CN 102739781 A CN102739781 A CN 102739781A CN 2012101936700 A CN2012101936700 A CN 2012101936700A CN 201210193670 A CN201210193670 A CN 201210193670A CN 102739781 A CN102739781 A CN 102739781A
Authority
CN
China
Prior art keywords
message
lot size
scheduling
scheduling device
server
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.)
Pending
Application number
CN2012101936700A
Other languages
Chinese (zh)
Inventor
胡加明
刘晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2012101936700A priority Critical patent/CN102739781A/en
Publication of CN102739781A publication Critical patent/CN102739781A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a batch scheduling method and system of messages. The batch scheduling method comprises the following steps that: a server receiving a message sent by a client end in a network conference, judges a type of the message according to received type information carried in the message, and places the message into the corresponding message receiving queue according to the type to which the message belongs; a message scheduler of the server schedules the message in the message receiving queue to an analyzer of the server; the analyzer analyzes and processes the message, and places the message into a massage queue of the corresponding enterprise according to the enterprise to which the message belongs; and a batch scheduler of the server respectively schedules the messages in message queues of different enterprises to corresponding business logic controllers according to a time scheduling strategy, wherein the server dynamically controls the quantity of the batch schedulers according to a control strategy.

Description

A kind of lot size scheduling method and system of message
Technical field
The invention belongs to field of network communication, relate in particular to a kind of lot size scheduling method and system of message.
Background technology
At present, in the cloud meeting, all users are connected on the same communication server, cause the communication server will handle great deal of information.If the communication server can not be disposed these magnanimity informations at short notice, then can cause the user to can not get response for a long time, thereby influence user experience, even can cause video conference logical mistake, system crash; And the communication server can not be directed against different messages, carries out personalisation process, causes the message of responsible consumer to can not get timely scheduling, thereby influences user experience.
Summary of the invention
The present invention provides a kind of lot size scheduling method and system of message, to address the above problem.
The present invention provides a kind of lot size scheduling method of message.Said method may further comprise the steps: server receives the message that client is sent in the Web conference; The type information that carries according to the said message that receives is judged the type of said message, and according to the type under the said message said message is put into corresponding message sink formation; The message dispatcher of server is dispatched the resolver of message to the server in the said message sink formation; Resolver resolves is handled said message, and according to the enterprise under the said message, said message is put into the message queue of corresponding enterprise; The lot size scheduling device of server is dispatched to the corresponding service logic controller according to the time scheduling strategy respectively with the message in the message queue of different enterprises, and wherein, server is according to the number of the tactful dynamic regulation lot size scheduling device of regulation and control.
The present invention also provides a kind of lot size scheduling system of message, comprises client and server.Server comprises receiver, message dispatcher, resolver, lot size scheduling device, controller and service logic controller.Client Connection Service device, receiver connection message scheduler, message dispatcher connects resolver, and resolver connects the lot size scheduling device, and the lot size scheduling device connects the service logic controller, and controller connects lot size scheduling device and resolver.Wherein, Receiver; Be used to receive the message that client described in the Web conference is sent, the type information that carries according to the said message that receives is judged the type of said message, and according to the type under the said message said message is put into corresponding message sink formation.Message dispatcher, the message that is used for dispatching said message sink formation is to resolver.Resolver is used for the said message of dissection process, and according to the enterprise under the said message, said message is put into the message queue of corresponding enterprise.The lot size scheduling device is used for according to the time scheduling strategy message of the message queue of different enterprises being dispatched to the corresponding service logic controller respectively.Controller is used for the number according to the tactful dynamic regulation lot size scheduling device of regulation and control.
Compared to prior art, according to the lot size scheduling method and system of message provided by the invention, server is classified message through message dispatcher and resolver according to owned enterprise, so, improves the treatment effeciency of server to message.And the lot size scheduling device is dispatched to the corresponding service logic controller respectively according to the message in the time scheduling strategy message queue that different enterprises are corresponding, so, has realized the personalization scheduling of message, thereby improves the performance of server.Simultaneously, server is according to the number of the tactful dynamic regulation lot size scheduling device of regulation and control, so, when the pressure of server is big, through increasing the number of lot size scheduling device, help in the short time with message all scheduling finish, thereby improve the performance of server.In addition, when the pressure of server hour, reduce the number of lot size scheduling device, free system resources through regulation and control.So, not only improve user experience, and improve the stability of a system.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
The flow chart of the lot size scheduling method of the message that provides for preferred embodiment according to the present invention shown in Figure 1;
The sketch map of the lot size scheduling system of the message that provides for preferred embodiment according to the present invention shown in Figure 2.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
The flow chart of the lot size scheduling method of the message that provides for preferred embodiment according to the present invention shown in Figure 1.As shown in Figure 1, the lot size scheduling method of the message that preferred embodiment of the present invention provides comprises step 101 ~ 104.
In step 101, server receives the message that client is sent in the Web conference, and the type information that carries according to the said message that receives is judged the type of said message, and according to the type under the said message said message is put into corresponding message sink formation.
In present embodiment; Before user end to server sends said message; Client is confirmed the classification under the enterprise customer of the said message of current transmission through the inquiring enterprise user message table, and confirms the message format that said enterprise customer sends according to said enterprise customer's classification.Wherein, if server stores enterprise customer information table, then client is sent Query Information to server, and server is according to Query Information inquiring enterprise user message table, and the enterprise customer's that inquiry is obtained classification information is back to client.Yet the present invention does not limit the memory location of said enterprise customer's information table.In other embodiment, said enterprise customer's information table also can be stored on client or the third party's storage device.
In present embodiment, the type of message for example comprises general message and critical message.Wherein, the form of general message for example is:<root message body/>The form of critical message for example is:<key-policy><key-message message body/></key-policy>Yet the present invention is not limited thereto.In practical application, the form of general message and critical message can be set as required.
With server stores enterprise customer information table is the example explanation, and at first, the client at the browser of enterprise customer A place can be sent Query Information to server.Wherein, Query Information comprises enterprise's numbering of enterprise customer A.After server receives Query Information, inquire about enterprise customer's information table of its storage, and the classification of definite enterprise customer A (for example, VIP enterprise customer).Wherein, enterprise customer's information table for example comprises all enterprise customers' enterprise's numbering and classification information.Then, the classification information (that is VIP enterprise customer) of server enterprise customer A that inquiry is obtained is back to client.Client confirms that enterprise customer A is the VIP enterprise customer after receiving the information that said server returns.In this, client is confirmed the message with the form transmission enterprise customer A of critical message.In addition, if enterprise customer's classification is the general user, then client is transmitted said enterprise customer's message with the form of general message.Wherein, the corresponding relation of enterprise customer's classification and type of message for example is provided with in client in advance.The present invention does not limit this.
In addition, in present embodiment, after server received the message of client transmission, the type information that at first carries according to the message that receives was judged the type of said message, afterwards, according to the type under the said message said message was put into corresponding message sink formation.In this, be example with general message and critical message, server is for example put into message sink formation a with general message, and critical message is put into message sink formation b.
In step 102, the message dispatcher of said server is dispatched the resolver of message to the said server in the said message sink formation.With general message and critical message is example, and the message dispatcher of server is dispatched to the message among message sink formation a and the message sink formation b resolver of server.
In step 103, said resolver resolves is handled said message, and according to the enterprise under the said message, said message is put into the message queue of corresponding enterprise.In this, the for example corresponding message queue of each enterprise.Particularly, after message dispatcher was dispatched to resolver with message, the information that resolver carries through parsing message confirmed which enterprise is said message belong to, and afterwards, said message was put into the corresponding message queue of enterprise.
For example, message a is < root type=' login ' from=' 1 ' gid=' 111 ' enterpriseId=' 1 ' serverType=' 0 ' license=' K8Z49RV3uFepFyNABSGdNELJnMcfctt27w2SFhNtUAyq55TnAIPl32a1 kzKSHZDH ' cipher=' XXvnn2W '/>.The enterpriseId field of resolver resolves message a obtains " 1 ", confirms that then it is 1 messages sent by users that this message a belongs to the ID of enterprise.Therefore, resolver is put into the message queue that the ID of enterprise is 1 correspondence with message a.
In step 104, the lot size scheduling device of said server is dispatched to the corresponding service logic controller according to the time scheduling strategy respectively with the message in the message queue of different enterprises.In present embodiment, lot size scheduling device building work thread is accomplished the scheduling of message in the different messages formation.Wherein, the present invention does not limit the number that the lot size scheduling device is the worker thread created of different message queue.In addition; After the message of lot size scheduling device in each scheduling message formation; Judging whether message in the said message queue is scheduled finishes, if the message in the said message queue is scheduled does not finish, and then the lot size scheduling device continues scheduling through worker thread; If the message in the said message queue has been scheduled finish, then the lot size scheduling device is correspondingly dispatched the message in the corresponding message queue of other enterprises.Wherein, the present invention does not limit the number of the each scheduling message of lot size scheduling device.
In present embodiment, the for example corresponding service logic controller of the message queue of each enterprise.Be example still with above-mentioned message a; Corresponding ID is after the service logic controller of 1 enterprise receives message a; Resolve the serverType field of message a, in this, the serverType field is 0; The description messages a message that to be the user send from the meeting interface then then is transmitted to the meeting interface business logic processing device that ID is 1 enterprise with message a.Afterwards, ID is after the meeting interface business logic processing device of 1 enterprise receives message a, accomplishes the business logic processing of message a.In addition, if the serverType field is 1, explain that then said message is the message that the user sends from main interface, then the service logic controller can send to the main interface business logic processing apparatus processes that ID is 1 enterprise with said message.Afterwards, ID is after the main interface business logic processing device of 1 enterprise receives said message, accomplishes the business logic processing of said message.
In this; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding and preset scheduling duration; In each duration, dispatch from height to low priority orders according to message queue, and the scheduling duration of each message queue is preset scheduling duration dispatching cycle.
In this, be the example explanation with three enterprises 1 ~ 3.In each duration, the priority of the message queue that above-mentioned three enterprises are corresponding and preset scheduling duration are for example shown in the following table dispatching cycle.
The ID of enterprise Message queue The priority of message queue Preset scheduling duration
1 Message queue L1 The first estate 300 milliseconds
2 Message queue L2 Second grade 200 milliseconds
3 Message queue L3 The tertiary gradient 100 milliseconds
Table 1
Wherein, message queue priority order from high to low for example is: message queue L1, message queue L2, message queue L3.Particularly, the priority of message queue can be confirmed according to the message number of the message queue of the classification grade of its corresponding enterprise and ad eundem enterprise.Wherein, can confirm the classification grade of enterprise through the message format of different enterprise customer's transmission.If the user of enterprise 1 is with the form message transfer of critical message, the user of enterprise 2 and enterprise 3 is with the form message transfer of general message, and then enterprise 1 is the VIP enterprise customer, and enterprise 2 and enterprise 3 are the general user.Therefore, the priority of the message queue L1 of enterprise's 1 correspondence is the highest.In addition; Enterprise 2 and enterprise's 3 corresponding message queues can be confirmed through the message number in the message queue; If the message number in the message queue of enterprise's 2 correspondences is greater than the message number in the message queue of enterprise's 3 correspondences, then the priority of the message queue L2 of enterprise's 2 correspondences is higher than the priority of the message queue L3 of enterprise's 3 correspondences.Yet the present invention is not limited thereto.
In this; Be pursuant to this described time scheduling strategy, with dispatching cycle duration to be 600 milliseconds be example, in each duration dispatching cycle; The lot size scheduling device is dispatched the message queue L1 of the first estate, the message queue L2 of second grade, the message queue L3 of the tertiary gradient successively.And the duration of message is 300 milliseconds among the lot size scheduling device scheduling message formation L1, and the duration of message is 200 milliseconds among the scheduling message formation L2, and the duration of message is 100 milliseconds among the scheduling message formation L3.If the lot size scheduling device can't be in a dispatching cycle duration message among scheduling message formation L1 ~ L3, then the lot size scheduling device continues next dispatching cycle duration and carries out the message of message scheduling in message queue L1 ~ L3 and all be scheduled to the corresponding service logic controller.
In another preferred embodiment; Said time scheduling strategy is: preset priority, the preset scheduling duration of the corresponding message queue of different enterprises and can use duration; In each duration dispatching cycle; Dispatch to low priority orders from height according to message queue, if the message in the higher message queue of priority in corresponding preset scheduling duration scheduling finish, the duration used of then using the message queue of next priority continues scheduling.
In this, be the example explanation still with three enterprises 1 ~ 3.In each duration, the priority of the message queue that above-mentioned three enterprises are corresponding and preset scheduling duration are for example shown in the following table dispatching cycle.
The ID of enterprise Message queue The priority of message queue Preset scheduling duration Can use duration
1 Message queue L1 The first estate 300 milliseconds 0
2 Message queue L2 Second grade 200 milliseconds 30 milliseconds
3 Message queue L3 The tertiary gradient 100 milliseconds 50 milliseconds
Table 2
Wherein, message queue priority order from high to low for example still is: message queue L1, message queue L2, message queue L3.The priority orders of message queue confirms that mode is ditto said.Be pursuant to this described time scheduling strategy, with dispatching cycle duration to be 600 milliseconds be example, in each duration, the lot size scheduling device is dispatched the message queue L1 of the first estate, the message queue L2 of second grade, the message queue L3 of the tertiary gradient successively dispatching cycle.And the duration of message is 300 milliseconds among the lot size scheduling device scheduling message formation L1, and the duration of message is 200 milliseconds among the scheduling message formation L2, and the duration of message is 100 milliseconds among the scheduling message formation L3.In addition, in a dispatching cycle duration, if the message among the message queue L1 of the first estate in 300 milliseconds scheduling do not finish, then the lot size scheduling device duration used (promptly 30 milliseconds) that can use the message queue L2 of second grade continues to dispatch.If the lot size scheduling device only needs the 10 milliseconds of message scheduling that can accomplish message queue L1, then only use 10 milliseconds to message queue L2; If the lot size scheduling device is used the message scheduling that still can't accomplish message queue L1 after 30 milliseconds to message queue L2, then continue to carry out next dispatching cycle the message scheduling.In like manner, the message queue L2 of second grade can use the scheduling duration to the message queue L3 of the tertiary gradient.
Perhaps; In another preferred embodiment; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding and preset scheduling duration, in each duration, dispatch from height to low priority orders according to message queue dispatching cycle; Duration as if the message dispatching office in the higher message queue of priority needs is dispatched duration less than corresponding preset, and then said unnecessary duration is distributed to the message queue of next priority.
With reference to the information in the table 1, message queue priority order from high to low for example is: message queue L1, message queue L2, message queue L3.The priority orders of message queue confirms that mode is ditto said.Be pursuant to this described time scheduling strategy, with dispatching cycle duration to be 600 milliseconds be example, in each duration, the lot size scheduling device is dispatched the message queue L1 of the first estate, the message queue L2 of second grade, the message queue L3 of the tertiary gradient successively dispatching cycle.Wherein, If the required duration of message among the lot size scheduling device actual schedule message queue L1 is 250 milliseconds (less than 300 milliseconds of message queue L1 corresponding preset scheduling durations), then the lot size scheduling device can be dispatched the message queue L2 of second grade in unnecessary duration (50 milliseconds).In other words, at this moment, the total activation duration that message queue L2 is corresponding is 250 milliseconds, if the actual required scheduling duration of message queue L2 is 150 milliseconds, then unnecessary duration (100 milliseconds) is distributed to the message queue L3 of the tertiary gradient.In addition; If the lot size scheduling device can't be in a dispatching cycle duration message among scheduling message formation L1 ~ L3, then the lot size scheduling device continues next dispatching cycle duration and carries out the message of message scheduling in message queue L1 ~ L3 and all be scheduled to the corresponding service logic controller.
In addition, in present embodiment, said server is according to the number of the said lot size scheduling device of the tactful dynamic regulation of regulation and control.Wherein, said server is regularly according to the number of regulating and control the said lot size scheduling device of tactful dynamic regulation.Yet the present invention is not limited thereto.In practical application, server also can be in real time according to the number of regulating and control tactful dynamic regulation lot size scheduling device.
In present embodiment; Said regulation and control strategy is: the minor of the longest scheduling time of setup message and message is spent the time; If current number purpose lot size scheduling device can't be in said message in the longest scheduling time during the message in the scheduling message formation; The said lot size scheduling device of current number purpose increases the number of said lot size scheduling device, if can reduce the number of said lot size scheduling device when the minor of said message is spent in the time message in the said message queue of scheduling.In addition, the maximum number and the minimal amount of the preset said lot size scheduling device of server, the number of said lot size scheduling device is no more than said maximum number and is not less than said minimal amount in regulation process.
For example, the maximum number of the preset lot size scheduling device of server for example is 10, and minimal amount for example is 2.In view of the above, in the process of server dynamic regulation lot size scheduling device number, the number of lot size scheduling device should be no more than 10 and be not less than 2.In addition, server sets message the longest scheduling time for example is 2 seconds, and it for example is 0.5 second that the minor of message is spent the time.So, if current number purpose lot size scheduling device can't then increase the number of lot size scheduling device in the message in the interior scheduling message formation of said message the longest scheduling time (that is, 2 seconds); If current number purpose lot size scheduling device can then reduce the number of lot size scheduling device in the message in (that is, 0.5 second) the interior scheduling message formation of spending the time of the minor of said message.Specific as follows said about the increase of lot size scheduling device number and the process that reduces.
For example, the message sum that is not scheduled as yet in the message queue is made as c, and the message count that each lot size scheduling device can be dispatched in 1 second is made as d, and current lot size scheduling device number is made as e.In view of the above, the size of c and d*e*2 relatively, if c greater than d*e*2, then explain current lot size scheduling device number can not be in 2 seconds (that is, message the longest scheduling time) with the message in the message queue all scheduling finish, at this moment, need to increase the number of lot size scheduling device.Particularly, calculate the size of (c-d*e*2)/d*2, and the result that will obtain rounds up and then representes that with m wherein, m is taken as integer.If m+e>10, the number of the lot size scheduling device that then increases is 10-e, if m+e≤10, the lot size scheduling device number that then increases is m.
In addition, the size of d*e/2 and c relatively, if d*e/2 greater than c, then explain the number of present batch scheduler can be in 0.5 second (that is, the minor of message be spent the time) with the message in the message queue all scheduling finish, at this moment, need to reduce the number of lot size scheduling device.Particularly, if the number of present batch scheduler only is left 2 (that is, e=2); Then do not reduce the number of lot size scheduling device; If e>2, the fixed number of the lot size scheduling device that then reduces is 1, promptly only reduces by a lot size scheduling device at every turn; So, prevent once to reduce a plurality of lot size scheduling devices and cause decreased performance.In addition, identical processing procedure is arranged, so repeat no more in this about the lot size scheduling device.
In another preferred embodiment; Said regulation and control strategy is: if the message sum that the message sum that is not scheduled in the message queue can be dispatched greater than current number purpose lot size scheduling device in the Preset Time; Then obtain the total total difference of message that can dispatch with the interior current number purpose lot size scheduling device of Preset Time of the message that is not scheduled in the said message queue; And calculate the ratio of the message sum that is not scheduled in said difference and the said message queue; If said ratio is less than or equal to preset value; Then increase the number of said lot size scheduling device,, then reduce the number of said lot size scheduling device as if the message sum that the message sum that is not scheduled in the said message queue can be dispatched less than current number purpose scheduler in the Preset Time.In addition, the maximum number and the minimal amount of the preset said lot size scheduling device of server, the number of said lot size scheduling device is no more than said maximum number and is not less than said minimal amount in regulation process.
For example, the maximum number (for example being 10) and the minimal amount (for example being 2) of the preset lot size scheduling device of server.In view of the above, in the process of server dynamic regulation lot size scheduling device number, the number of lot size scheduling device should be no more than maximum number (that is, 10) and be not less than minimal amount (that is, 2).For example, the message sum that is not scheduled as yet in the message queue is made as c, and the message count that each lot size scheduling device can be dispatched in preset time t is made as d, and current lot size scheduling device number is made as e.In view of the above, relatively the size of c and d*e*t if c greater than d*e*t, calculates the size of (c-d*e*t)/c, if said ratio is less than or equal to threshold value, then need increase the number of lot size scheduling device.Particularly, calculate the size of (c-d*e*t)/d*t, and the result that will obtain rounds up and then representes that with m wherein, m is taken as integer.If m+e>10, the number of the lot size scheduling device that then increases is 10-e, if m+e≤10, the lot size scheduling device number that then increases is m.
In addition, if d*e*t greater than c, then need reduce the number of lot size scheduling device.Particularly, if only being left 2, the number of present batch scheduler (that is, e=2), then do not reduce the number of lot size scheduling device; If e>2, represent with n after the then size of calculating (d*e*t-c)/(d*t), and the result that will obtain rounds up that at this moment, if e-n≤2, the number of the lot size scheduling device that then reduces is e-2, if e-n>2, then the number of the lot size scheduling device of minimizing is n.In addition, identical processing procedure is arranged, so repeat no more in this about the lot size scheduling device.
In a preferred embodiment again; Said regulation and control strategy is: the maximum scheduling message number of setting the lot size scheduling device; If current number purpose lot size scheduling device carries out message when scheduling all message in can't the scheduling message formation with maximum scheduling message number; Increase the number of said lot size scheduling device,, then reduce the number of said lot size scheduling device if the said lot size scheduling device of current number purpose can be dispatched the message in the said message queue with maximum scheduling message number.In addition, the maximum number and the minimal amount of the preset said lot size scheduling device of server, the number of said lot size scheduling device is no more than said maximum number and is not less than said minimal amount in regulation process.
For example, the maximum number (for example being 10) and the minimal amount (for example being 2) of the preset lot size scheduling device of server.In view of the above, in the process of server dynamic regulation lot size scheduling device number, the number of lot size scheduling device should be no more than maximum number (that is, 10) and be not less than minimal amount (that is, 2).In addition, the maximum scheduling message number a of each lot size scheduling device of server sets, the message that is not scheduled as yet in the current message queue adds up to c; The number of present batch scheduler is e, at this moment, if c>a*e; Calculate (c-a*e)/a, and the result that will obtain rounds up and then representes with s.If s+e>10, the number of the lot size scheduling device that then increases is 10-e, if s+e≤10, the number of the lot size scheduling device that then increases is s.If a*e>c, calculate (a*e-c)/a, and the result that will the obtain back that rounds up representes that with r if e-r≤2, the number of the lot size scheduling device that then reduces is e-2, if e-r>2, then the number of the lot size scheduling device of minimizing is r.In addition, identical processing procedure is arranged, so repeat no more in this about the lot size scheduling device.
The sketch map of the lot size scheduling system of the message that provides for preferred embodiment according to the present invention shown in Figure 2.As shown in Figure 2, the lot size scheduling system of the message that preferred embodiment of the present invention provides comprises client 20 and server 22.Server 22 comprises receiver 220, message dispatcher 221, resolver 222, lot size scheduling device 223, service logic controller 224 and controller 225.Client 20 Connection Service devices 22; Receiver 220 connection message schedulers 221, message dispatcher 221 connects resolver 222, and resolver 222 connects lot size scheduling device 223; Lot size scheduling device 223 connects service logic controller 224, and controller 225 connects lot size scheduling device 223 and resolver 222.Receiver 220 is used for receiving the message that Web conference client 20 is sent, and the type information that carries according to the said message that receives is judged the type of said message, and according to the type under the said message said message is put into corresponding message sink formation.Message dispatcher 221 is used for dispatching message to the resolver 222 of said message sink formation.Resolver 222 is used for the said message of dissection process, and according to the enterprise under the said message, said message is put into the message queue of corresponding enterprise.Lot size scheduling device 223 is used for according to the time scheduling strategy message of the message queue of different enterprises being dispatched to service logic controller 224 respectively.Controller 225 is used for the number according to the tactful dynamic regulation lot size scheduling device 223 of regulation and control.
In present embodiment; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding and preset scheduling duration; In each duration dispatching cycle; Dispatch from height to low priority orders according to message queue, and the scheduling duration of each message queue is preset scheduling duration.Yet the present invention is not limited thereto.In other embodiment; Said time scheduling strategy is: preset priority, the preset scheduling duration of the corresponding message queue of different enterprises and can use duration; In each duration dispatching cycle; Dispatch to low priority orders from height according to message queue, if the message in the higher message queue of priority in corresponding preset scheduling duration scheduling finish, the duration used of then using the message queue of next priority continues scheduling.Perhaps; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding and preset scheduling duration; In each duration dispatching cycle; Dispatch from height to low priority orders according to message queue, dispatch duration as if the duration that the message dispatching office in the higher message queue of priority needs less than corresponding preset, then said unnecessary duration is distributed to the message queue of next priority.
In present embodiment; Said regulation and control strategy is: the minor of the longest scheduling time of setup message and message is spent the time; If the said lot size scheduling device of current number purpose can't be when said message be dispatched the message in the said message queue in the longest scheduling time; The said lot size scheduling device of current number purpose increases the number of said lot size scheduling device, if can reduce the number of said lot size scheduling device when the minor of said message is spent in the time message in the said message queue of scheduling.Yet the present invention is not limited thereto.In other embodiment; Said regulation and control strategy is: if the message sum that the message sum that is not scheduled in the said message queue can be dispatched greater than current number purpose lot size scheduling device in the Preset Time; Then obtain the total total difference of message that can dispatch with the interior current number purpose lot size scheduling device of Preset Time of the message that is not scheduled in the said message queue; And calculate the ratio of the message sum that is not scheduled in said difference and the said message queue; If said ratio is less than or equal to preset value; Then increase the number of said lot size scheduling device,, then reduce the number of said lot size scheduling device as if the message sum that the message sum that is not scheduled in the said message queue can be dispatched less than current number purpose lot size scheduling device in the Preset Time.Perhaps; Said regulation and control strategy is: the maximum scheduling message number of setting said lot size scheduling device; If can't dispatch all message in the said message queue when the said lot size scheduling device of current number purpose carries out the message scheduling with maximum scheduling message number; Increase the number of said lot size scheduling device,, then reduce the number of said lot size scheduling device if the said lot size scheduling device of current number purpose can be dispatched the message in the said message queue with maximum scheduling message number.
In addition, said about the specific operation process of said system with above-mentioned method, so repeat no more in this.
To sum up, the lot size scheduling method and system of the message that preferred embodiment provides according to the present invention, server is classified message through message dispatcher and resolver according to owned enterprise, so, improve the treatment effeciency of server to message.And the lot size scheduling device is dispatched to the corresponding service logic controller respectively according to the message in the time scheduling strategy message queue that different enterprises are corresponding, so, has realized the personalization scheduling of message, thereby improves the performance of server.Simultaneously, server is according to the number of the tactful dynamic regulation lot size scheduling device of regulation and control, so, when the pressure of server is big, through increasing the number of lot size scheduling device, help in the short time with message all scheduling finish, thereby improve the performance of server.In addition, when the pressure of server hour, reduce the number of lot size scheduling device, free system resources through regulation and control.So, not only improve user experience, and improve the stability of a system.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the lot size scheduling method of a message is characterized in that, may further comprise the steps:
Server receives the message that client is sent in the Web conference, and the type information that carries according to the said message that receives is judged the type of said message, and according to the type under the said message said message is put into corresponding message sink formation;
The message dispatcher of said server is dispatched the resolver of message to the said server in the said message sink formation;
Said resolver resolves is handled said message, and according to the enterprise under the said message, said message is put into the message queue of corresponding enterprise;
The lot size scheduling device of said server is dispatched to the corresponding service logic controller according to the time scheduling strategy respectively with the message in the message queue of different enterprises,
Wherein, said server is according to the number of the said lot size scheduling device of the tactful dynamic regulation of regulation and control.
2. method according to claim 1; It is characterized in that; In said client before said server sends said message; Said client is confirmed the classification under the enterprise customer of the said message of current transmission through the inquiring enterprise user message table, and confirms the message format that said enterprise customer sends according to said enterprise customer's classification.
3. method according to claim 2; It is characterized in that; If the said enterprise customer's information table of said server stores; Then said client is sent Query Information to said server, and said server is inquired about said enterprise customer's information table according to said Query Information, and the enterprise customer's that inquiry is obtained classification information is back to said client.
4. method according to claim 1; It is characterized in that; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding and preset scheduling duration; In each duration, dispatch from height to low priority orders according to message queue, and the scheduling duration of each message queue is preset scheduling duration dispatching cycle.
5. method according to claim 1; It is characterized in that; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding, preset scheduling duration and can use duration, in each duration, dispatch from height to low priority orders according to message queue dispatching cycle; If the message in the higher message queue of priority in corresponding preset scheduling duration scheduling finish, the duration used of then using the message queue of next priority continues scheduling.
6. method according to claim 1; It is characterized in that; Said time scheduling strategy is: the priority of the message queue that preset different enterprises are corresponding and preset scheduling duration, in each duration, dispatch from height to low priority orders according to message queue dispatching cycle; Duration as if the message dispatching office in the higher message queue of priority needs is dispatched duration less than corresponding preset, and then said unnecessary duration is distributed to the message queue of next priority.
7. method according to claim 1; It is characterized in that; Said regulation and control strategy is: the minor of the longest scheduling time of setup message and message is spent the time; If the said lot size scheduling device of current number purpose can't be when said message be dispatched the message in the said message queue in the longest scheduling time; The said lot size scheduling device of current number purpose increases the number of said lot size scheduling device, if can reduce the number of said lot size scheduling device when the minor of said message is spent in the time message in the said message queue of scheduling.
8. method according to claim 1; It is characterized in that; Said regulation and control strategy is: if the message sum that the message sum that is not scheduled in the said message queue can be dispatched greater than current number purpose lot size scheduling device in the Preset Time; Then obtain the total total difference of message that can dispatch with the interior current number purpose lot size scheduling device of Preset Time of the message that is not scheduled in the said message queue; And calculate the total ratio of message that is not scheduled in said difference and the said message queue, if said ratio is less than or equal to preset value, then increase the number of said lot size scheduling device; If the message that the message sum that is not scheduled in the said message queue can be dispatched less than current number purpose lot size scheduling device in the Preset Time is total, then reduce the number of said lot size scheduling device.
9. method according to claim 1; It is characterized in that; Said regulation and control strategy is: the maximum scheduling message number of setting said lot size scheduling device; If can't dispatch all message in the said message queue when the said lot size scheduling device of current number purpose carries out the message scheduling with maximum scheduling message number; Increase the number of said lot size scheduling device,, then reduce the number of said lot size scheduling device if the said lot size scheduling device of current number purpose can be dispatched the message in the said message queue with maximum scheduling message number.
10. the lot size scheduling system of a message is characterized in that, comprises client and server; Said server comprises receiver, message dispatcher, resolver, lot size scheduling device, controller and service logic controller; Said client connects said server, and said receiver connects said message dispatcher, and said message dispatcher connects said resolver; Said resolver connects said lot size scheduling device; Said lot size scheduling device connects said service logic controller, and said controller connects said lot size scheduling device and said resolver
Wherein, Said receiver is used to receive the message that client described in the Web conference is sent, and the type information that carries according to the said message that receives is judged the type of said message; And said message is put into corresponding message sink formation according to the type under the said message
Said message dispatcher is used for dispatching message to the said resolver of said message sink formation,
Said resolver is used for the said message of dissection process, and according to the enterprise under the said message, said message is put into the message queue of corresponding enterprise,
Said lot size scheduling device is used for according to the time scheduling strategy message of the message queue of different enterprises being dispatched to corresponding said service logic controller respectively,
Said controller is used for the number according to the said lot size scheduling device of the tactful dynamic regulation of regulation and control.
CN2012101936700A 2012-06-13 2012-06-13 Batch scheduling method and system of messages Pending CN102739781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101936700A CN102739781A (en) 2012-06-13 2012-06-13 Batch scheduling method and system of messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101936700A CN102739781A (en) 2012-06-13 2012-06-13 Batch scheduling method and system of messages

Publications (1)

Publication Number Publication Date
CN102739781A true CN102739781A (en) 2012-10-17

Family

ID=46994552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101936700A Pending CN102739781A (en) 2012-06-13 2012-06-13 Batch scheduling method and system of messages

Country Status (1)

Country Link
CN (1) CN102739781A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468841A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Method and device for transmitting information in batches
CN104468629A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Method and device for transmitting information in batches
CN107515781A (en) * 2017-07-20 2017-12-26 哈尔滨工业大学(威海) A kind of multicomputer system deterministic schedule and load-balancing method
CN114338584A (en) * 2022-01-11 2022-04-12 平安科技(深圳)有限公司 Message withdrawing method and message transmission system
CN117076138A (en) * 2023-10-17 2023-11-17 西安羚控电子科技有限公司 System simulation-oriented resource cross-platform integration and scheduling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020064136A1 (en) * 2000-11-02 2002-05-30 O'neil Timothy M. Conferencing network resource optimization for multi-point conferences
CN101340390A (en) * 2008-08-15 2009-01-07 中兴通讯股份有限公司 Scheduling apparatus and method for real-time service
CN102217256A (en) * 2011-05-26 2011-10-12 华为技术有限公司 Queue scheduling method and apparatus
CN102710517A (en) * 2012-05-31 2012-10-03 苏州阔地网络科技有限公司 Information scheduling control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020064136A1 (en) * 2000-11-02 2002-05-30 O'neil Timothy M. Conferencing network resource optimization for multi-point conferences
CN101340390A (en) * 2008-08-15 2009-01-07 中兴通讯股份有限公司 Scheduling apparatus and method for real-time service
CN102217256A (en) * 2011-05-26 2011-10-12 华为技术有限公司 Queue scheduling method and apparatus
CN102710517A (en) * 2012-05-31 2012-10-03 苏州阔地网络科技有限公司 Information scheduling control method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468841A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Method and device for transmitting information in batches
CN104468629A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Method and device for transmitting information in batches
CN104468629B (en) * 2014-12-30 2018-10-09 北京奇虎科技有限公司 A kind of method and apparatus of Batch sending message
CN107515781A (en) * 2017-07-20 2017-12-26 哈尔滨工业大学(威海) A kind of multicomputer system deterministic schedule and load-balancing method
CN114338584A (en) * 2022-01-11 2022-04-12 平安科技(深圳)有限公司 Message withdrawing method and message transmission system
CN114338584B (en) * 2022-01-11 2023-11-14 平安科技(深圳)有限公司 Message withdraw method and message transmission system
CN117076138A (en) * 2023-10-17 2023-11-17 西安羚控电子科技有限公司 System simulation-oriented resource cross-platform integration and scheduling method and device
CN117076138B (en) * 2023-10-17 2024-02-23 西安羚控电子科技有限公司 System simulation-oriented resource cross-platform integration and scheduling method and device

Similar Documents

Publication Publication Date Title
CN102710517A (en) Information scheduling control method and system
CN102739781A (en) Batch scheduling method and system of messages
CN102307230B (en) Service transmission method and device
US10554430B2 (en) Systems and methods for providing adaptive flow control in a notification architecture
CN107257392A (en) Equipment Serial Number establishing method and device and computer-readable recording medium
CN102739412A (en) Batch scheduling control method and system of information
CN103139100A (en) Business handling method and business handling system
CN104349280A (en) Time slot allocation method and system
CN102685250A (en) Message scheduling process method and system
CN102685032A (en) Method and system for processing information of net meeting
CN114501351B (en) Flow control method, device and storage medium
CN102685235A (en) Message dispatching method and system
CN102685227A (en) Message scheduling method and message scheduling system for cloud conference
CN102685130A (en) Dispatching control method and system for cloud conference
CN109801425B (en) Queue polling prompting method, device, equipment and storage medium in surface tag service
CN103021167A (en) Method and system for taxi information interaction
Tahir et al. Event-and priority-driven coordination in next-generation grid
CN102685236A (en) Message processing method and system
CN104994588B (en) A kind of GMR-1 3G terminal RLC/MAC data dispatching method
CN102739564A (en) Information batch scheduling control method and system
CN101594642A (en) The resource allocation methods and the device that are used for communication network element equipment
CN102685253A (en) Message scheduling method and system of web conference
CN102685251A (en) Message scheduling control method and system of web conference
CN104243483A (en) Message processing method and message processing equipment
CN102685228A (en) Message processing method and system for cloud conference

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121017