CN108234668A - The dispatching method and system of a kind of consumer queue - Google Patents

The dispatching method and system of a kind of consumer queue Download PDF

Info

Publication number
CN108234668A
CN108234668A CN201810044707.0A CN201810044707A CN108234668A CN 108234668 A CN108234668 A CN 108234668A CN 201810044707 A CN201810044707 A CN 201810044707A CN 108234668 A CN108234668 A CN 108234668A
Authority
CN
China
Prior art keywords
consumer
machine
configuration
machines
clusters
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
CN201810044707.0A
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.)
Beijing Net Letter Cloud Suit Mdt Infotech Ltd
Original Assignee
Beijing Net Letter Cloud Suit Mdt Infotech 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 Beijing Net Letter Cloud Suit Mdt Infotech Ltd filed Critical Beijing Net Letter Cloud Suit Mdt Infotech Ltd
Priority to CN201810044707.0A priority Critical patent/CN108234668A/en
Publication of CN108234668A publication Critical patent/CN108234668A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention discloses a kind of dispatching method of consumer queue, including:When receiving the scheduling request to target consumer's queue, clusters of machines corresponding with the scheduling request is obtained, the clusters of machines includes at least one consumer's machine;Obtain consumer's configuration in the clusters of machines and the configuration of consumer's machine;The scheduling thresholds of each consumer's machine are determined according to consumer configuration and consumer's machine configuration;According to the scheduling thresholds, the consumer in target consumer's queue is scheduled to consumer's machine.Above-mentioned dispatching method, since the quantity for the consumer for generating consumer person's queue in scheduling request every time is all variation, in order to adapt to the variation of customer count, the scheduling thresholds of each consumer's machine will preferentially be adjusted, the mode that avoids adjustment scheduling thresholds is dumb, time-consuming, the problem of causing the efficiency of the scheduling of consumer queue low.

Description

The dispatching method and system of a kind of consumer queue
Technical field
The present invention relates to scheduling field of configuration more particularly to the dispatching methods and system of a kind of consumer queue.
Background technology
Nowadays, along with the rapid development of Internet technology, a large amount of customer requests, the customer requests are produced It is stored in consumer queue, each customer requests of the consumer queue is scheduled according to clusters of machines.Institute It states clusters of machines and includes multiple consumer's machines, each consumer's machine can handle the consumer of preset scheduling thresholds Request, the scheduling thresholds are a fixed values for being previously written consumer's machine configuration file, to the tune of the scheduling thresholds It is whole can be by way of changing configuration file.
Inventor carries out the consumer the study found that due to consumer queue to the scheduling process of existing consumer queue When the quantity of request is variation, fixed scheduling thresholds, which cannot meet consumer queue, constantly to be changed, and needs constantly to repair Change configuration file and adjust the scheduling thresholds, the adjustment mode of the scheduling thresholds is dumb, and time-consuming, leads to consumer queue Scheduling efficiency it is low.
Invention content
In view of this, the present invention provides a kind of dispatching method and system of consumer queue, to solve in the prior art Since the quantity of the customer requests of consumer queue is when changing, fixed scheduling thresholds cannot meet consumer queue not Disconnected variation needs constantly to change the configuration file adjustment scheduling thresholds, and the adjustment mode of the scheduling thresholds is dumb, Time-consuming, the problem of causing the efficiency of the scheduling of consumer queue low, and concrete scheme is as follows:
A kind of dispatching method of consumer queue, including:
When receiving the scheduling request to target consumer's queue, machine collection corresponding with the scheduling request is obtained Group, the clusters of machines include at least one consumer's machine;
Obtain consumer's configuration in the clusters of machines and the configuration of consumer's machine;
The scheduling thresholds of each consumer's machine are determined according to consumer configuration and consumer's machine configuration;
According to the scheduling thresholds, the consumer in target consumer's queue is scheduled to consumer's machine.
Above-mentioned method, it is preferred that further include:
When detect any one consumer's machine delay machine instruction when, obtain the clusters of machines consumer configuration and The quantity of remaining consumer's machine in the clusters of machines;;
According to the quantity of remaining consumer's machine in consumer configuration and the clusters of machines, redistribute described The scheduling thresholds of each consumer in clusters of machines.
Above-mentioned method, it is preferred that determine that each disappears according to consumer configuration and consumer's machine configuration The machine configuration of expense person's machine includes:
Parse the customer count included in consumer's configuration;
Parse the consumer's machine quantity included in consumer's machine configuration;
The customer count according to consumer's machine quantity is distributed equally, obtains each consumer's machine The scheduling thresholds of device.
Above-mentioned method, it is preferred that further include:
When the newly-increased instruction for detecting consumer's machine, the corresponding IP address of newly-increased consumer's machine is obtained;
The IP address is added to the configuration center of the clusters of machines.
Above-mentioned method, it is preferred that further include:
When detect consumer's machine in the clusters of machines delay machine quantity with being consumed in the target machine cluster When the ratio of the sum of person's machine is more than preset threshold value ratio, stop the scheduling to target consumer's queue.
A kind of scheduling system of consumer queue, including:
First acquisition module, for when receiving the scheduling request to target consumer's queue, obtaining and the scheduling Corresponding clusters of machines is asked, the clusters of machines includes at least one consumer's machine;
Second acquisition module, for obtaining the configuration of the consumer in the clusters of machines and the configuration of consumer's machine;
Determining module, for determining each consumer's machine according to consumer configuration and consumer's machine configuration The scheduling thresholds of device;
Scheduler module, for according to the scheduling thresholds, the consumer in target consumer's queue to be scheduled to institute State consumer's machine.
Above-mentioned system, it is preferred that further include:
Third acquisition module, for when the machine of delaying for detecting any one consumer's machine instructs, obtaining the machine The quantity of remaining consumer's machine in consumer's configuration of cluster and the clusters of machines;
Distribution module, for the number according to remaining consumer's machine in consumer configuration and the clusters of machines Amount redistributes the scheduling thresholds of each consumer in the clusters of machines.
Above-mentioned system, it is preferred that the determining module includes:
First resolution unit, for parsing the customer count included in consumer's configuration;
Second resolution unit, for parsing the consumer's machine quantity included in consumer's machine configuration;
Allocation unit for the customer count to be distributed equally according to consumer's machine quantity, obtains The scheduling thresholds of each consumer's machine.
Above-mentioned system, it is preferred that further include:
4th acquisition module, for when the newly-increased instruction for detecting consumer's machine, obtaining newly-increased consumer's machine pair The IP address answered;
Add module, for the IP address to be added to the configuration center of the clusters of machines.
Above-mentioned system, it is preferred that further include:
Stopping modular, for when the consumer's machine that detect in the clusters of machines delay machine quantity and the target machine When the ratio of the sum of consumer's machine is more than preset threshold value ratio in device cluster, stop the tune to target consumer's queue Degree.
Compared with prior art, the present invention includes advantages below:
The invention discloses a kind of dispatching method of consumer queue, including:When receiving to target consumer's queue During scheduling request, clusters of machines corresponding with the scheduling request is obtained, the clusters of machines includes at least one consumer's machine Device;Obtain consumer's configuration in the clusters of machines and the configuration of consumer's machine;Disappear according to consumer configuration with described The configuration of the person's of expense machine determines the scheduling thresholds of each consumer's machine;According to the scheduling thresholds, by the target consumer Consumer in queue is scheduled to consumer's machine.Above-mentioned dispatching method, due to generating disappearing in scheduling request every time The quantity of the consumer of expense person's person's queue is all variation, in order to adapt to the variation of customer count, all can preferentially be adjusted each The scheduling thresholds of a consumer's machine, avoid adjustment scheduling thresholds mode it is dumb, time-consuming, lead to consumer queue The problem of efficiency of scheduling is low.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of dispatching method flow chart of consumer queue disclosed in the embodiment of the present application;
Fig. 2 is a kind of another method flow diagram of the dispatching method of consumer queue disclosed in the embodiment of the present application;
Fig. 3 is a kind of another method flow diagram of the dispatching method of consumer queue disclosed in the embodiment of the present application;
Fig. 4 is a kind of scheduling system structure diagram of consumer queue disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide range caused.
The present invention provides a kind of dispatching method of consumer queue, the executive agent of the method can be processor or Person's dispatching platform etc., the processor or dispatching platform are installed on consumer's machine.The dispatching method is applied to network The scheduling of middle consumer queue, the consumer queue refer to the queue of multiple pending consumer's compositions, wherein, consumer refers to The information of a certain concrete function is performed in network.The method flow of the dispatching method is as shown in Figure 1, including step:
S101, when receiving the scheduling request to target consumer's queue, obtain corresponding with scheduling request machine Device cluster, the clusters of machines include at least one consumer's machine;
In the embodiment of the present invention.Target consumer's queue is currently pending consumer queue, and the target disappears Multiple consumers are included in the person's of expense queue.The clusters of machines is made of at least one consumer's machine, consumer's machine For handling the consumer in target consumer's queue.
S102, the consumer obtained in the clusters of machines are configured and the configuration of consumer's machine;
In the embodiment of the present invention, consumer's configuration includes task names, type of message, configuration quantity, task description With the affiliated people of task.The configuration of consumer's machine includes the quantity of consumer's machine and the IP address of consumer's machine.
S103, the scheduling that each consumer's machine is determined according to consumer configuration and consumer's machine configuration Threshold value;
In the embodiment of the present invention, the configuration quantity of consumer in consumer configuration and consumer's machine are obtained The quantity of consumer's machine in configuration according to the principle of mean allocation distribution, determines the scheduling thresholds of each consumer's machine.
S104, according to the scheduling thresholds, the consumer in target consumer's queue is scheduled to the consumer Machine.
In the embodiment of the present invention, according to the scheduling thresholds of each consumer's machine, target consumer's queue is selected The consumer of the quantity identical with the scheduling thresholds is taken, is scheduled to consumer's machine.Preferably, the target consumer Consumer in queue needs to be registered to the configuration center of the clusters of machines, so as to consumption of the configuration center according to registration The quantity of person is scheduled.
In the embodiment of the present invention, in a network or there are multiple consumer queues and clusters of machines, each consumer teams The corresponding specific function type of row, each consumer queue correspond to a clusters of machines for dispatching the consumer queue. In the embodiment of the present invention, only to consumer queue by taking consumer queue clusters of machines corresponding with the consumer queue as an example Scheduling process illustrate.
In the embodiment of the present invention, the quantity of consumer is continually changing in target consumer's queue, and variation comes from In two kinds of situations:When the dispatch deal of the complete consumer information of consumer's machine processing, to target consumer's queue Scheduling request is sent, a corresponding consumer in target consumer's queue is obtained, the consumer is assigned to correspondence Consumer's machine in;Due to network, this consumer information constantly generates, and often generating a consumer information will be by institute It states in consumer information storage to corresponding consumer queue.
In the embodiment of the present invention, consumer's machine in the clusters of machines is not that can all be incited somebody to action when having scheduling request every time What all consumer's machines all enabled, when the negligible amounts of consumer in target consumer's queue or generate newly When the speed of consumer information is slower, it can refer to and enable some consumers' machine, when the speed for generating consumer information adds suddenly When fast, the quantity of consumer's machine can also be increased in real time to adapt to the increased situation of consumer information of burst.In order to ensure The smoothness of the network operation, it is preferred that all consumer's machines in the clusters of machines can all carry out the processing of consumer information.
In the embodiment of the present invention, the quantity of consumer's machine is not changeless in consumer's cluster, in order to suitable Consumer information is answered to be on the increase, needs constantly to increase consumer's machine newly to safeguard the normal operation of network, therefore, works as detection To consumer's machine newly-increased instruction when, obtain the corresponding IP address of newly-increased consumer's machine, the IP address be added to institute State the configuration center of clusters of machines.
The invention discloses a kind of dispatching method of consumer queue, including:When receiving to target consumer's queue During scheduling request, clusters of machines corresponding with the scheduling request is obtained, the clusters of machines includes at least one consumer's machine Device;Obtain consumer's configuration in the clusters of machines and the configuration of consumer's machine;Disappear according to consumer configuration with described The configuration of the person's of expense machine determines the scheduling thresholds of each consumer's machine;According to the scheduling thresholds, by the target consumer Consumer in queue is scheduled to consumer's machine.Above-mentioned dispatching method, due to generating disappearing in scheduling request every time The quantity of the consumer of expense person's person's queue is all variation, in order to adapt to the variation of customer count, all can preferentially be adjusted each The scheduling thresholds of a consumer's machine, avoid adjustment scheduling thresholds mode it is dumb, time-consuming, lead to consumer queue The problem of efficiency of scheduling is low.
In the embodiment of the present invention, the consumer of message queue is typically deployed at a clusters of machines, it would be desirable to each disappear The person's of expense machine dynamically quickly can adjust the quantity of itself, clothes are utilized with maximum according to the difference of oneself consumption message number Business device resource, quickly consumes current message.It can ensure that consumer's machine is delayed machine, it being capable of disappearing machine automatically Expense person is transferred to other consumer's machines, realizes the fault-tolerant of consumer's machine.Consumer is also required to uniformly to distribute as possible To each consumer's machine, to ensure not occurring single hot spot machine.Therefore, when detecting any one consumer's machine When machine of delaying instructs, consumer's configuration of the clusters of machines and the number of remaining consumer's machine in the clusters of machines are obtained Amount;According to the quantity of remaining consumer's machine in consumer configuration and the clusters of machines, the machine is redistributed The scheduling thresholds of each consumer in cluster.
In the embodiment of the present invention, the quantity for recording machine of delaying in the clusters of machines is further included, when detecting the machine collection Consumer's machine in group delay machine quantity and the target machine cluster in the ratio of sum of consumer's machine be more than default Threshold value ratio when, stop the scheduling to target consumer's queue.
In the embodiment of the present invention, each consumer is determined according to consumer configuration and consumer's machine configuration The method flow of the machine configuration of machine is as shown in Fig. 2, including step:
The customer count included in S201, parsing consumer's configuration;
The consumer's machine quantity included in S202, parsing consumer's machine configuration;
S203, the customer count according to consumer's machine quantity is distributed equally, obtains each and disappear The scheduling thresholds of the person's of expense machine.
In the embodiment of the present invention, in the consumption cluster is determined during each consumer's machine scheduling threshold value, It cannot be guaranteed consumer's machine in the configuration quantity of the consumer in consumer's configuration and consumer's machine configuration Both quantity can divide exactly, and when the two is aliquant, can enable the quantity of consumer handled in some consumer's machine Less than the threshold value distributed for each consumer.
In the embodiment of the present invention, the scheduling process of the consumer queue is as shown in figure 3, wherein, coordinator, configurations A configuration center is constituted with machine configuration, for monitoring the state of consumer's machine.
First, corresponding consumer is configured by exploitation operation maintenance personnel to be configured.Consumer's machine startup queue process manager, Machine is reported to configuration center, and monitors the corresponding consumer's configuration of machine.
Coordinator monitors the change of consumer's configuration and machine configuration, by all consumers according to the generation of mean allocation algorithm The scheduling thresholds of corresponding consumer's machine
Such as:
It is configured to:
Quantity 3 is opened in registration
It ties up card and opens quantity 4
Consumer's machine is configured to:
10.xx.xx.13,10.xx.xx.22
The correspondence machine then generated is configured to:
10.xx.xx.13=>Quantity 2 is opened in registration, ties up card, opens quantity 2
10.xx.xx.22=>Quantity 1 is opened in registration, ties up card, opens quantity 2
Queue process manager gets the configuration of corresponding consumer's machine, opens the consumer of corresponding number, and supervises Listen the variation of configuration.
Coordinator is according to the change of configuration, and dynamic adjusts the configuration of consumer's machine, when the configuration for detecting consumer's machine During change, queue process manager is increased or is reduced to the quantity of consumer in consumer's machine.
Queue process manager is hung or consumer's machine is died, and corresponding consumer's machine configuration is automatically from configuration center It disappears, coordinator listens to variation, re-starts distribution.
In the embodiment of the present invention, the assigning process of the scheduling thresholds of middle consumer's machine of consumer queue is illustrated: Consumer's configuration is determined first, and consumer's configuration is as shown in table 1, and developer can manually adjust confirms the consumption to be opened Quantity is configured in person.
Task names Type of message Quantity is configured Task description The affiliated people of task
Test It opens an account 6 11 email
1 consumer of table is configured
When consumer's machine startup, the IP of consumer's machine of startup is reported to configuration center by manager, and automatic The configuration quantity of the machine is monitored, such as has reported following three machines:
10.20.78.53,10.35.47.89 and 10.55.78.76
The scheduling thresholds of consumer's machine so automatically generated by mean allocation algorithm are as shown in table 2:
Machine Task Scheduling thresholds Start quantity
10.20.78.53 Test 2 0
10.35.47.89 Test 2 0
10.55.78.76 Test 2 0
The scheduling thresholds of 2 consumer's machine of table
When consumer's machine gets corresponding scheduling thresholds, start to open consumer information such as 3 institute of table of corresponding number Show:
Machine Task Scheduling thresholds Start quantity
10.20.78.53 Test 2 2
10.35.47.89 Test 2 2
10.55.78.76 Test 2 2
The startup quantity of consumer in 3 consumer's machine of table
It is that the true of task on server starts quantity to start quantity, if startup quantity and scheduling thresholds are inconsistent When, which can alarm, the form of alarm can be sound the alarm or warning lamp flicker etc. forms.
When have consumer's machine it is offline either delay machine when such as 10.55.78.76 it is offline or delay machine when, then current machine Only it is left two consumer's machines in device cluster, two consumer's machines is divided again according to consumer configuration Match, allocation result is as shown in Figure 4:
Machine Task Quantity is configured Start quantity
10.20.78.53 Test 3 3
10.35.47.89 Test 3 3
4 consumer's machine of table is redistributed
In the embodiment of the present invention, based on configuration center, the manager of each consumer's machine monitors the current machine of configuration center The configuration quantity of device when customer count changes, adjusts corresponding customer count.Configuration center configuration completion Afterwards, all consumers are evenly distributed to each consumer's machine according to certain algorithm.Consumer's machine is with transient node Identity registration to configuration center, so that configuration center distributes consumer according to machine quantity.
Above-mentioned scheduling process, also comprising a kind of protection mechanism to the clusters of machines, it is preferred that when consumer's machine When machine quantity of delaying is more than half, no longer gives dynamic and adjust, wait for consumer's mechanical recovery.
The dispatching method of the consumer queue provided in the embodiment of the present invention can disappear according to queue monitoring parameter dynamic regulation The person's of expense quantity, without restarting maintenance of reaching the standard grade;Event call-back mechanism based on configuration center, lightweight monitor configuration variation;It is based on The transient node mechanism of configuration center monitors the inventory status of consumer's machine;Automatic load balancing makes full use of consumer's machine The resource of device cluster and included disaster recovery mechanism.
In the embodiment of the present invention, corresponding with the dispatching method of above-mentioned consumer queue, the present invention also provides one The scheduling system of kind of consumer queue, the structure diagram of the scheduling system as shown in figure 4, including:
First acquisition module 301, the second acquisition module 302, determining module 303 and scheduler module 304.
Wherein,
First acquisition module 301 for when receiving the scheduling request to target consumer's queue, obtains and institute The corresponding clusters of machines of scheduling request is stated, the clusters of machines includes at least one consumer's machine;
Second acquisition module 302 is matched for obtaining the configuration of the consumer in the clusters of machines and consumer's machine It puts;
The determining module 303, for determining each according to consumer configuration and consumer's machine configuration The scheduling thresholds of consumer's machine;
The scheduler module 304, for according to the scheduling thresholds, by consumer's tune in target consumer's queue It spends to consumer's machine.
The invention discloses a kind of scheduling system of consumer queue, including:When receiving to target consumer's queue During scheduling request, clusters of machines corresponding with the scheduling request is obtained, the clusters of machines includes at least one consumer's machine Device;Obtain consumer's configuration in the clusters of machines and the configuration of consumer's machine;Disappear according to consumer configuration with described The configuration of the person's of expense machine determines the scheduling thresholds of each consumer's machine;According to the scheduling thresholds, by the target consumer Consumer in queue is scheduled to consumer's machine.Above-mentioned scheduling system, due to generating disappearing in scheduling request every time The quantity of the consumer of expense person's person's queue is all variation, in order to adapt to the variation of customer count, all can preferentially be adjusted each The scheduling thresholds of a consumer's machine, avoid adjustment scheduling thresholds mode it is dumb, time-consuming, lead to consumer queue The problem of efficiency of scheduling is low.
In the embodiment of the present invention, the scheduling system of the consumer queue further includes:Third acquisition module 305 and distribution mould Block 306.
Wherein,
The third acquisition module 305, for when the machine of delaying for detecting any one consumer's machine instructs, obtaining institute State consumer's configuration of clusters of machines and the quantity of remaining consumer's machine in the clusters of machines;
The distribution module 306, for according to remaining consumer's machine in consumer configuration and the clusters of machines The quantity of device redistributes the scheduling thresholds of each consumer in the clusters of machines.
In the embodiment of the present invention, the determining module 303 includes:
First resolution unit 307, the second resolution unit 308 and allocation unit 309.
Wherein,
First resolution unit 307, for parsing the customer count included in consumer's configuration;
Second resolution unit 308, for parsing the consumer's machine quantity included in consumer's machine configuration;
The allocation unit 309, for the customer count to be carried out average mark according to consumer's machine quantity Match, obtain the scheduling thresholds of each consumer's machine.
In the embodiment of the present invention, the scheduling system of the consumer queue further includes:4th acquisition module 310 and addition mould Block 311.
Wherein,
4th acquisition module 310, for when the newly-increased instruction for detecting consumer's machine, obtaining newly-increased consumer The corresponding IP address of machine;
The add module 311, for the IP address to be added to the configuration center of the clusters of machines.
In the embodiment of the present invention, the scheduling system of the consumer queue further includes:
Stopping modular 312, for when the consumer's machine that detect in the clusters of machines delay machine quantity and the mesh When marking the ratio of the sum of consumer's machine in clusters of machines more than preset threshold value ratio, stop to target consumer's queue Scheduling.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment. For device class embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, it is to be noted that, in this application, relational terms such as first and second and the like are used merely to It distinguishes one entity or operation from another entity or operation, without necessarily requiring or implying these entities or behaviour There are any actual relationship or orders between work.Moreover, term " comprising ", "comprising" or its any other variant Non-exclusive inclusion is intended to, so that process, method, article or equipment including a series of elements not only include Those elements, but also including other elements that are not explicitly listed or further include for this process, method, article or The intrinsic element of person's equipment.In the absence of more restrictions, the element limited by sentence "including a ...", not Also there are other identical elements in the process, method, article or apparatus that includes the element for exclusion.
The foregoing description of the disclosed embodiments enables those skilled in the art to realize or use the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited The embodiments shown herein is formed on, and is to fit to consistent with the principles and novel features disclosed herein most wide Range.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of dispatching method of consumer queue, which is characterized in that including:
When receiving the scheduling request to target consumer's queue, clusters of machines corresponding with the scheduling request, institute are obtained It states clusters of machines and includes at least one consumer's machine;
Obtain consumer's configuration in the clusters of machines and the configuration of consumer's machine;
The scheduling thresholds of each consumer's machine are determined according to consumer configuration and consumer's machine configuration;
According to the scheduling thresholds, the consumer in target consumer's queue is scheduled to consumer's machine.
2. it according to the method described in claim 1, it is characterized in that, further includes:
When detect any one consumer's machine delay machine instruction when, obtain the clusters of machines consumer configuration and it is described The quantity of remaining consumer's machine in clusters of machines;
According to the quantity of remaining consumer's machine in consumer configuration and the clusters of machines, the machine is redistributed The scheduling thresholds of each consumer in cluster.
3. according to the method described in claim 1, it is characterized in that, match according to consumer configuration and consumer's machine It puts and determines that the machine configuration of each consumer's machine includes:
Parse the customer count included in consumer's configuration;
Parse the consumer's machine quantity included in consumer's machine configuration;
The customer count according to consumer's machine quantity is distributed equally, obtains each consumer's machine Scheduling thresholds.
4. it according to the method described in claim 1, it is characterized in that, further includes:
When the newly-increased instruction for detecting consumer's machine, the corresponding IP address of newly-increased consumer's machine is obtained;
The IP address is added to the configuration center of the clusters of machines.
5. it according to the method described in claim 1, it is characterized in that, further includes:
When detect consumer's machine in the clusters of machines delay machine quantity and the target machine cluster in consumer's machine When the ratio of the sum of device is more than preset threshold value ratio, stop the scheduling to target consumer's queue.
6. a kind of scheduling system of consumer queue, which is characterized in that including:
First acquisition module, for when receiving the scheduling request to target consumer's queue, obtaining and the scheduling request Corresponding clusters of machines, the clusters of machines include at least one consumer's machine;
Second acquisition module, for obtaining the configuration of the consumer in the clusters of machines and the configuration of consumer's machine;
Determining module, for determining each consumer's machine according to consumer configuration and consumer's machine configuration Scheduling thresholds;
Scheduler module, for according to the scheduling thresholds, the consumer in target consumer's queue to be scheduled to described disappear The person's of expense machine.
7. system according to claim 6, which is characterized in that further include:
Third acquisition module, for when the machine of delaying for detecting any one consumer's machine instructs, obtaining the clusters of machines Consumer configuration and the clusters of machines in remaining consumer's machine quantity;
Distribution module, for the quantity according to remaining consumer's machine in consumer configuration and the clusters of machines, weight Newly distribute the scheduling thresholds of each consumer in the clusters of machines.
8. system according to claim 6, which is characterized in that the determining module includes:
First resolution unit, for parsing the customer count included in consumer's configuration;
Second resolution unit, for parsing the consumer's machine quantity included in consumer's machine configuration;
Allocation unit for the customer count to be distributed equally according to consumer's machine quantity, obtains each The scheduling thresholds of a consumer's machine.
9. system according to claim 6, which is characterized in that further include:
4th acquisition module, it is corresponding for when the newly-increased instruction for detecting consumer's machine, obtaining newly-increased consumer's machine IP address;
Add module, for the IP address to be added to the configuration center of the clusters of machines.
10. it according to the method described in claim 1, it is characterized in that, further includes:
Stopping modular, for when the consumer's machine that detect in the clusters of machines delay machine quantity and the target machine collection When the ratio of the sum of consumer's machine is more than preset threshold value ratio in group, stop the scheduling to target consumer's queue.
CN201810044707.0A 2018-01-17 2018-01-17 The dispatching method and system of a kind of consumer queue Pending CN108234668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810044707.0A CN108234668A (en) 2018-01-17 2018-01-17 The dispatching method and system of a kind of consumer queue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810044707.0A CN108234668A (en) 2018-01-17 2018-01-17 The dispatching method and system of a kind of consumer queue

Publications (1)

Publication Number Publication Date
CN108234668A true CN108234668A (en) 2018-06-29

Family

ID=62640588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810044707.0A Pending CN108234668A (en) 2018-01-17 2018-01-17 The dispatching method and system of a kind of consumer queue

Country Status (1)

Country Link
CN (1) CN108234668A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367439A (en) * 2002-02-10 2002-09-04 苏州市蜗牛电子有限公司 Several customer terminals interdynamic load equalizing method and its system
US8520522B1 (en) * 2010-10-15 2013-08-27 Juniper Networks, Inc. Transmit-buffer management for priority-based flow control
CN103812949A (en) * 2014-03-06 2014-05-21 中国科学院信息工程研究所 Task scheduling and resource allocation method and system for real-time cloud platform
CN105072182A (en) * 2015-08-10 2015-11-18 北京佳讯飞鸿电气股份有限公司 Load balancing method, load balancer and user terminal
CN107196865A (en) * 2017-06-08 2017-09-22 中国民航大学 A kind of adaptive threshold overload moving method of Load-aware

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367439A (en) * 2002-02-10 2002-09-04 苏州市蜗牛电子有限公司 Several customer terminals interdynamic load equalizing method and its system
US8520522B1 (en) * 2010-10-15 2013-08-27 Juniper Networks, Inc. Transmit-buffer management for priority-based flow control
CN103812949A (en) * 2014-03-06 2014-05-21 中国科学院信息工程研究所 Task scheduling and resource allocation method and system for real-time cloud platform
CN105072182A (en) * 2015-08-10 2015-11-18 北京佳讯飞鸿电气股份有限公司 Load balancing method, load balancer and user terminal
CN107196865A (en) * 2017-06-08 2017-09-22 中国民航大学 A kind of adaptive threshold overload moving method of Load-aware

Similar Documents

Publication Publication Date Title
EP3179673B1 (en) Energy-saving control method, management server and network device
CN105743995B (en) A kind of system and method for the deployment of portable High Availabitity and management container cluster
CN101232511B (en) Distribution of network communications based on server power consumption
CN102685237B (en) Method for requesting session maintaining and dispatching in cluster environment
CN106133693B (en) Moving method, device and the equipment of virtual machine
CN102891868B (en) The load-balancing method of a kind of distributed system and device
WO2012144647A1 (en) Virtual machine administration device, virtual machine administration method, and program
CN105159775A (en) Load balancer based management system and management method for cloud computing data center
CN103067293A (en) Method and system for multiplex and connection management of a load balancer
CN106254471A (en) Resource United Dispatching method and system under a kind of isomery cloud environment
CN109388488B (en) Power allocation in computer system
CN103502944A (en) Method and device for adjusting memories of virtual machines
JP7079998B1 (en) Cluster capacity expansion method and equipment
CN102984184A (en) A method and a device for service load balancing for a distributed system
CN107835262A (en) A kind of streaming media server dynamical load distribution method
CN108322358A (en) Strange land distributed message transmission, processing, consuming method and device mostly living
US8745125B2 (en) Routing traffic after power failure
CN111352726B (en) Stream data processing method and device based on containerized micro-service
CN108234668A (en) The dispatching method and system of a kind of consumer queue
CN107122230A (en) A kind of high availability method and its device based on server cluster
JP2001202318A (en) Data distribution system
CN110493355A (en) A kind of method for down loading and device of system log
CN114338670B (en) Edge cloud platform and network-connected traffic three-level cloud control platform with same
EP1867081A1 (en) Distributed redundancy capacity licensing in a telecommunication network element
US20170019300A1 (en) Method and system for auto distribution of workload among a plurality of servers which run web services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication