CN104899096A - Request dequeue control method and apparatus - Google Patents

Request dequeue control method and apparatus Download PDF

Info

Publication number
CN104899096A
CN104899096A CN201510164969.7A CN201510164969A CN104899096A CN 104899096 A CN104899096 A CN 104899096A CN 201510164969 A CN201510164969 A CN 201510164969A CN 104899096 A CN104899096 A CN 104899096A
Authority
CN
China
Prior art keywords
server
load
team
out team
preset range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510164969.7A
Other languages
Chinese (zh)
Other versions
CN104899096B (en
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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510164969.7A priority Critical patent/CN104899096B/en
Publication of CN104899096A publication Critical patent/CN104899096A/en
Application granted granted Critical
Publication of CN104899096B publication Critical patent/CN104899096B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Abstract

The invention discloses a request dequeue control method and apparatus, for performing dequeue processing on a message request received by a server. The method comprises: requesting dequeue, and acquiring a server that processes the request; determining a loading situation of the server; and performing dequeue processing on the request according to the loading situation of the server. According to the invention, dequeue processing is performed on the request according to the loading situation of the server, so that the server effectively processes the message request.

Description

One asks out group control method and device
Technical field
The present invention relates to internet arena, particularly one asks out group control method and device.
Background technology
In broad terms, server refer to some can be provided to serve to other machine in network computer system in the narrow sense, server specially refers to some high-performance computer, by network, externally provides service.Relative to common PC, the aspects such as stability, security, performance all require higher; And server is as the node of network, stores, process data, the information of on network 80%, be therefore also referred to as the soul of network.Network-termination device, as the microcomputer online in family, enterprise, obtains information, links up with the external world, amusement etc., and also having to pass through server, is therefore alternatively that server is at " tissue " and " leader " these equipment.
One station server supports hundreds of platform client computer possibly, and will ceaselessly run, and processes a large amount of message request, and so one effectively asks out group control method to be vital concerning server.
Summary of the invention
The invention provides one and ask out group control method and device, the message request in order to receive server goes out team's process.
The invention provides one and ask out group control method, for server, comprising:
Ask out team, and know the server of processes said request;
Judge the load condition of described server;
According to the load condition of described server, team's process is gone out to described request.
Some beneficial effects of the embodiment of the present invention can comprise: ask out team, and know the server of processes said request; Judge the load condition of described server; According to the load condition of described server, team's process is gone out to described request; And then make the effective processing messages request of server.
In one embodiment, the described load condition according to described server, carries out the corresponding team that goes out to described request and processes, comprising: in preset range, carry out judgement load condition; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process.
In this embodiment, the described load condition according to described server, carries out the corresponding team that goes out to described request and processes, comprising: in preset range, carry out judgement load condition; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process; For the load condition of different described servers, concrete describing carries out different going out team's process to described request, and server can efficiently be worked.
In one embodiment, described m is 3.
In this embodiment, described m is 3 is optimal value.
In one embodiment, the described load condition according to described server, goes out team's process to described request, comprising: according to judging load condition and judge server data amount according to preset value A in preset range; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B.
In this embodiment, the described load condition according to described server, goes out team's process to described request, comprising: according to judging load condition and judge server data amount according to preset value A in preset range; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B; For the load condition of different described servers, concrete describing carries out different going out team's process to described request, and server can efficiently be worked.
The invention provides one and ask out group control device, comprising:
Request module, for asking out team and knowing the server of processes said request;
Judge module, for judging the load condition of described server;
Control module, for the load condition according to described server, goes out team's process to described request.
In one embodiment, described control module, comprising:
Control submodule, for carrying out judgement load condition in preset range; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process.
In one embodiment, described m is 3.
In one embodiment, described judge module, comprising:
Judge submodule, in preset range, judge load condition for basis and judge server data amount according to preset value A; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is that the one shown in the present invention one exemplary embodiment asks out group control method process flow diagram;
Fig. 2 is that the one shown in the present invention one exemplary embodiment asks out group control method process flow diagram;
Fig. 3 is that the one shown in the present invention one exemplary embodiment asks out group control method process flow diagram;
Fig. 4 is that the one shown in the present invention one exemplary embodiment asks out group control device block diagram;
Fig. 5 is that the one shown in the present invention one exemplary embodiment asks out group control device block diagram;
Fig. 6 is that the one shown in the present invention one exemplary embodiment asks out group control device block diagram.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
As shown in Figure 1, the invention provides one and ask out group control method, for server, comprise step 101-103:
Step 101, asks out team, and knows the server of processes said request;
Step 102, judges the load condition of described server;
Step 103, according to the load condition of described server, goes out team's process to described request.
Some beneficial effects of the embodiment of the present invention can comprise: ask out team, and know the server of processes said request; Judge the load condition of described server; According to the load condition of described server, team's process is gone out to described request; And then make the effective processing messages request of server.
In one embodiment, as shown in Figure 2, described step 103, the described load condition according to described server, carries out the corresponding team that goes out to described request and processes, comprising: step 201, in preset range, carry out judgement load condition; When the load of described server exceedes the higher limit of preset range, perform step 202; When the load of described server is in preset range, perform step 203; When the load of described server is lower than the lower limit of preset range, perform step 204;
Step 202, when the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0;
Step 203, when the load of described server is in preset range, then notifies that described request goes out team at once, and distributes a resource i.e. thread and complete out team's process;
Step 204, the load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process.
In this embodiment, the described load condition according to described server, carries out the corresponding team that goes out to described request and processes, comprising: in preset range, carry out judgement load condition; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process; For the load condition of different described servers, concrete describing carries out different going out team's process to described request, and server can efficiently be worked.
In one embodiment, described m is 3.
In this embodiment, described m is 3 is optimal value.
In one embodiment, as shown in Figure 3, described step 103, the described load condition according to described server, team's process is gone out to described request, comprising: step 301, according to judging load condition and judge server data amount according to preset value A in preset range; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then perform step 302; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then perform step 303; When described server load lower than preset range lower limit and server data amount is less than setting value A, then perform step 304;
Step 302, when the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B;
Step 303, when described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify described request go out team at once, and Resources allocation complete out team process, if Resources allocation number is c, and preset value B < c≤preset value C;
Step 304, when described server load lower than preset range lower limit and server data amount is less than setting value A, then notify described request go out team at once, and Resources allocation complete out team process, if Resources allocation number is d, and 0 < d≤preset value B.
In this embodiment, the described load condition according to described server, goes out team's process to described request, comprising: according to judging load condition and judge server data amount according to preset value A in preset range; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B; For the load condition of different described servers, concrete describing carries out different going out team's process to described request, and server can efficiently be worked.
As shown in Figure 4, the invention provides one and ask out group control device, comprising:
Request module 401, for asking out team and knowing the server of processes said request;
Judge module 402, for judging the load condition of described server;
Control module 403, for the load condition according to described server, goes out team's process to described request.
In one embodiment, as shown in Figure 5, described control module 403, comprising:
Control submodule 501, for carrying out judgement load condition in preset range; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process.
In one embodiment, described m is 3.
In one embodiment, as shown in Figure 6, described judge module 402, comprising:
Judge submodule 601, in preset range, judge load condition for basis and judge server data amount according to preset value A; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (8)

1. ask out a group control method, it is characterized in that, for server, comprising:
Ask out team, and know the server of processes said request;
Judge the load condition of described server;
According to the load condition of described server, team's process is gone out to described request.
2. the method for claim 1, is characterized in that, the described load condition according to described server, carries out the corresponding team that goes out and processes, comprising: in preset range, carry out judgement load condition described request; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process.
3. method as claimed in claim 2, it is characterized in that, described m is 3.
4. the method for claim 1, is characterized in that, the described load condition according to described server, goes out team's process, comprising: according to judging load condition and judge server data amount according to preset value A in preset range described request; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B.
5. ask out a group control device, it is characterized in that, comprising:
Request module, for asking out team and knowing the server of processes said request;
Judge module, for judging the load condition of described server;
Control module, for the load condition according to described server, goes out team's process to described request.
6. device as claimed in claim 5, it is characterized in that, described control module, comprising:
Control submodule, for carrying out judgement load condition in preset range; When the load of described server exceedes the higher limit of preset range, then notify that described request stops team, step back m position and again wait for, described m is greater than 0; When the load of described server is in preset range, then notify that described request goes out team at once, and distribute a resource i.e. thread and complete out team's process; The load of described server lower than the lower limit of preset range, then notifies that described request goes out team at once, and distributes two parts of resources i.e. two threads and realize accelerating out team's process.
7. device as claimed in claim 6, it is characterized in that, described m is 3.
8. device as claimed in claim 7, it is characterized in that, described judge module, comprising:
Judge submodule, in preset range, judge load condition for basis and judge server data amount according to preset value A; When the load of described server exceedes the higher limit of preset range and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is b, 0 < b≤preset value B; When described server load lower than preset range lower limit and server data amount is greater than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is c, and preset value B < c≤preset value C; The load of described server lower than preset range lower limit and server data amount is less than setting value A, then notify that described request goes out team at once, and Resources allocation completes out team's process, if Resources allocation number is d, and 0 < d≤preset value B.
CN201510164969.7A 2015-04-08 2015-04-08 It is a kind of to ask out group control method and device Expired - Fee Related CN104899096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510164969.7A CN104899096B (en) 2015-04-08 2015-04-08 It is a kind of to ask out group control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510164969.7A CN104899096B (en) 2015-04-08 2015-04-08 It is a kind of to ask out group control method and device

Publications (2)

Publication Number Publication Date
CN104899096A true CN104899096A (en) 2015-09-09
CN104899096B CN104899096B (en) 2018-07-24

Family

ID=54031773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510164969.7A Expired - Fee Related CN104899096B (en) 2015-04-08 2015-04-08 It is a kind of to ask out group control method and device

Country Status (1)

Country Link
CN (1) CN104899096B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277175A (en) * 2007-03-30 2008-10-01 国际商业机器公司 Method and device for improving conversation starting protocol server performance
CN102207891A (en) * 2011-06-10 2011-10-05 浙江大学 Method for achieving dynamic partitioning and load balancing of data-partitioning distributed environment
US20140372486A1 (en) * 2013-06-12 2014-12-18 Oracle International Corporation In-Database Sharded Queue

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277175A (en) * 2007-03-30 2008-10-01 国际商业机器公司 Method and device for improving conversation starting protocol server performance
CN102207891A (en) * 2011-06-10 2011-10-05 浙江大学 Method for achieving dynamic partitioning and load balancing of data-partitioning distributed environment
US20140372486A1 (en) * 2013-06-12 2014-12-18 Oracle International Corporation In-Database Sharded Queue

Also Published As

Publication number Publication date
CN104899096B (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN107343045B (en) Cloud computing system and cloud computing method and device for controlling server
CN109213600B (en) GPU resource scheduling method and device based on AI cloud
US20180183862A1 (en) Apparatus and method for logically grouping client nodes in an iot environment using client identifiers
US9323580B2 (en) Optimized resource management for map/reduce computing
US11240745B2 (en) Network slice instance processing method and apparatus, and system
US9122889B2 (en) Managing access to class objects in a system utilizing a role-based access control framework
WO2015158108A1 (en) Virtual machine resource changing method, device and virtual network function device
US11144366B2 (en) Computing node processor resource optimization method, computing node and server cluster
CN104750549A (en) Computational task processing device, method and system
CN109726004B (en) Data processing method and device
CN110083651B (en) Data loading method and device
EP3101965A1 (en) Method and apparatus for adjacent node registration, and method and system for crossing node registration
CN105357045A (en) Cloud platform service establishment method and cloud platform service establishment device
US20210111949A1 (en) Hierarchical cloud computing resource configuration techniques
US10437645B2 (en) Scheduling of micro-service instances
US10585696B2 (en) Predicting transaction outcome based on artifacts in a transaction processing environment
CN105573827A (en) Multi-machine parallel processing method and device
CN106716405A (en) System, method and computer program product for injecting directly into a web browser commands and/or contents created on local desktop applications of a computer device, and vice-versa
WO2018079162A1 (en) Information processing system
CN111163140A (en) Method, apparatus and computer readable storage medium for resource acquisition and allocation
US8938522B2 (en) Tiered XML services in a content management system
CN104702534A (en) Method and device for processing data of multi-process sharing port
CN109347982A (en) A kind of dispatching method and device of data center
CN110716809B (en) Method and device for scheduling cloud resources
CN112463833A (en) Data set acquisition method, system, device and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and device for requesting to leave the team

Effective date of registration: 20210104

Granted publication date: 20180724

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001517

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180724

Termination date: 20210408