CN107040558A - A kind of Mission Monitor method and device - Google Patents
A kind of Mission Monitor method and device Download PDFInfo
- Publication number
- CN107040558A CN107040558A CN201610078167.9A CN201610078167A CN107040558A CN 107040558 A CN107040558 A CN 107040558A CN 201610078167 A CN201610078167 A CN 201610078167A CN 107040558 A CN107040558 A CN 107040558A
- Authority
- CN
- China
- Prior art keywords
- count number
- server
- apps server
- task
- counting
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present application discloses a kind of Mission Monitor method and device, and methods described includes:Apps server sends batch counting request, the count number of order caching server-assignment to caching server;The count number is that caching server is apps server distribution, the threshold value for statistics task number;Apps server is locally carrying out Mission Monitor according to the count number by counting mode.Pass through the application; apps server is by way of applying for count number; to share the counting load of caching server; reduce the interaction times with caching server; so as to reduce the access pressure to caching server; so as to improve the monitoring performance of whole monitoring system, big cluster, the business scenario of high concurrent can be adapted well to.
Description
Technical field
The application is related to Internet technical field, more particularly to a kind of Mission Monitor method and apparatus.
Background technology
There are many business scenarios in the Internet, applications, using task count mode come monitor task, according to
Whether task number exceedes threshold value, to determine to carry out different processing;If for example, task count does not surpass
Predetermined threshold value is crossed, then normal process task, if task count exceedes predetermined threshold value, stop processing and appoint
Business.For example:The industry of some excessive risks, such as Third-party payment, it to risk in order to control effectively
And management, then risk of fraud is realized to the method for the real-time tracking of business and processing using risk control platform
The automation of early warning.In risk control platform, one threshold can be set for each risk control rule
Value, if the hit-count of risk control rule exceedes predetermined threshold value, just stops business processing.
At present, in the Internet, applications, for above-mentioned specific transactions scene, frequently with skill as shown in Figure 1
Art scheme carries out Mission Monitor, as shown in figure 1, every apps server (App in distributed type assemblies
Server) when there is task initiation, request first just is initiated to caching server (Cache Server),
Task count is performed by Cache Server, Cache Server controls are just held for the counter of the task
Operation that row Jia one, after the completion of counting, Cache Server return to nonce counter to App Server again
Whether numerical value, the numerical value for judging nonce counter by App Server exceedes pre-set threshold value, is tied according to judgement
Fruit determines follow-up processing mode again.
The problem of existing technical scheme is present is that Cache Server visit capacity is separate unit App Server
Visit capacity and the product of cluster Server sums, its access pressure are very big, especially in big cluster, height
Under concurrent scene, the visit capacity of high concurrent easilys lead to Cache Server paralysis, so as to cause whole
Individual Mission Monitor systemic breakdown, therefore, Cache Server access performance is into whole Mission Monitor system
The development bottleneck of system.
The content of the invention
In order to solve the above-mentioned technical problem, this application provides Mission Monitor method, it can ensure artificial
In the case of monitoring accurately, alleviate the access pressure of caching server, so as to improve whole monitoring system
Monitoring performance, can be adapted well to big cluster, the business scenario of high concurrent.
Present invention also provides Mission Monitor device, the device is used to ensure the reality of the above method in practice
Existing and application.
A kind of Mission Monitor method is provided in the application first aspect, methods described includes:
Apps server sends batch counting request, order caching server-assignment to caching server
Count number;The count number is that caching server is appointed for apps server distribution, for counting
The threshold value for number of being engaged in;
Apps server is locally carrying out Mission Monitor according to the count number by counting mode.
Optionally, the apps server sends batch counting request to caching server, receives slow
The count number of server-assignment is deposited, including:
The apps server sends to caching server and carries what apps server can be carried
The batch counting request of count number;
The apps server order caching server is distributed according to the count number that can be carried to it
Count number.
Optionally, the apps server calculates apps server and can carried in the following manner
Count number:
Apps server calculates flat according to apps server total number in predetermined threshold value and system
Equal count number;Apps server selects minimum from the average counter amount and system default apportioning cost
Value, the count number that the minimum value can be carried as apps server.
Optionally, the apps server is locally being entered according to the count number by counting mode
Row Mission Monitor, including:
When apps server receives task, judge whether the local current task amount counted is less than
The count number;If it is, apps server is directed to received task, task count is carried out;
If not, apps server sends batch counting request to caching server again.
Optionally, the apps server is locally being entered according to the count number by counting mode
Row Mission Monitor, including:
Apps server is total according to the allocated counting of the count number and caching server feedback
Amount, calculates the effective count number of apps server;
When receiving task, apps server judges whether effective count number is more than zero;If it is,
Then apps server carries out task count for received task, and updates effective count number;Such as
Really no, apps server sends batch counting request to caching server again.
Optionally, the apps server is according to the count number and caches having divided for server feedback
The counting total amount matched somebody with somebody, calculates the effective count number of apps server, including:
Apps server judges whether the counting total amount is less than predetermined threshold value;
If it is, apps server determines that effective count number is the count number;
If not, apps server calculates effective count number according to equation below:
Effective count number=the count number-(the counting total amount-predetermined threshold value).
Optionally, send batch counting to caching server again in the apps server and ask it
Before, methods described also includes:
Apps server judges that caching server is allocated and counts whether total amount exceedes predetermined threshold value;
If it is, the counting that ends task;If it is not, then apps server is sent to caching server again
Batch counting is asked.
Optionally, the apps server is directed to received task, carries out task count, including:
Apps server control task counter is started from scratch, for connecing in the way of gradually increasing one
Receiving for task carries out task count;Or,
Apps server control task counter is since the count number, according to the side for gradually subtracting one
Formula, task count is carried out for received task.
Optionally, methods described also includes:
Effective count number of preservation is fed back to caching by apps server when system is closed or restarted
Server;Effective count number refers to the available count number of apps server.
A kind of Mission Monitor method is provided in the application second aspect, methods described includes:
Caching server receives the batch counting request that apps server is sent;
Caching server is to apps server distribution counting amount, and the count number is to be used for statistics task
The threshold value of number;So that the apps server is according to the count number received, by counting side
Formula carries out Mission Monitor.
Optionally, methods described also includes:During caching server distribution counting amount, also taken to application program
The currently allocated technology total amount of device feedback of being engaged in, so that apps server is according to the count number and meter
Number total amount calculates effective count number, and carries out Mission Monitor according to effective count number.
Optionally, the caching server is to apps server distribution counting amount, including:
Caching server calculates average meter according to apps server total number in predetermined threshold value and system
Quantity, according to the average counter amount to apps server distribution counting amount;Or,
The counting that the apps server that caching server contains according to the batch counting request bag can be carried
Amount, to apps server distribution counting amount.
Optionally, the apps server that the caching server contains according to the batch counting request bag
The count number that can be carried, to apps server distribution counting amount, including:
Caching server calculates the difference of predetermined threshold value and allocated counting total amount, and the difference is to divide
The count number matched somebody with somebody;
When assignable count number is less than the count number that the apps server can be carried, caching clothes
The count number that business device is distributed to apps server is the assignable count number;
When assignable count number is not less than the count number that the apps server can be carried, caching
The count number that server is distributed to apps server is the counting that the apps server can be carried
Amount.
A kind of Mission Monitor device is provided in the application third aspect, described device includes:
Transmitting and receiving unit, for sending batch counting request, order caching service to caching server
The count number of device distribution;The count number is that caching server is distributed for apps server, is used for
The threshold value of statistics task number;
Mission Monitor unit, for according to the count number, task prison locally to be carried out by counting mode
Control.
Optionally, the transmitting and receiving unit, including:
Transmission sub-unit, is carried based on apps server can carry by being sent to caching server
The batch counting request of quantity;
Receiving subelement, for order caching server according to the count number that can be carried to application program
The count number of server-assignment.
Optionally, described device also includes:
Computing unit, for according to apps server total number in predetermined threshold value and system, calculating flat
Equal count number;
Selecting unit, will for selecting minimum value from the average counter amount and system default apportioning cost
The count number that the minimum value can be carried as apps server.
Optionally, the Mission Monitor unit, including:
First judgment sub-unit, for when receiving task, judging the local current task amount counted
Whether the count number is less than;If it is, performing task count subelement;The task count subelement,
For carrying out task count for received task;
If not, the transmitting and receiving unit is performed, to send batch counting to caching server again
Request.
Optionally, the Mission Monitor unit, including:
Effective count number computation subunit, for having divided according to the count number and caching server feedback
The counting total amount matched somebody with somebody, calculates the effective count number of apps server;
Second judgment sub-unit, for when receiving task, apps server to judge effective count
Whether amount is more than zero;If it is, performing task count subelement and effective count number renewal subelement;Institute
Task count subelement is stated, for carrying out task count for received task;The renewal subelement,
For after task count sub-element performs task count, updating effective count number;If not, performing institute
Transmitting and receiving unit is stated, to send batch counting request to caching server again.
Optionally, effective count number computation subunit, including:
Judgment sub-unit, for judging whether the counting total amount is less than predetermined threshold value;If it is, performing
Determining module, if not, performing computing module;
Determination subelement, for determining that effective count number is the count number;
Computation subunit, for calculating effective count number according to equation below:
Effective count number=the count number-(the counting total amount-predetermined threshold value).
Optionally, described device also includes:
When first judging unit or second judging unit are judged as NO, triggering the described 3rd is sentenced
Whether disconnected unit, the 3rd judgment sub-unit counts total amount for judging that caching server is allocated
More than predetermined threshold value;Terminate subelement, the end subelement, for ending task if it is, performing
Count;If not, the transmitting and receiving unit is performed, in terms of sending batch to caching server again
Number request.
Optionally, it is characterised in that the task count subelement, including:
First count sub-element, starts from scratch for control task counter, in the way of gradually increasing one
Task count is carried out for received task;Or,
Second count sub-element, for control task counter since the count number, according to gradually subtracting
One mode, task count is carried out for received task.
Optionally, described device also includes:
Feedback unit, for when apps server system is closed or restarted, by effective meter of preservation
Quantity feeds back to caching server;Effective count number refers to the available count number of apps server.
A kind of Mission Monitor device is provided in terms of the application, described device includes:
Receiving unit, the batch counting request for receiving apps server transmission;
Allocation unit, for apps server distribution counting amount, the count number to be to be used to count
The threshold value of task number;So that the apps server passes through meter according to the count number received
Number mode carries out Mission Monitor.
Optionally, described device also includes:
Feedback unit, in distribution counting amount, feeding back currently allocated to apps server
Total amount is counted, so that apps server is according to the count number and counts the effective count number of total amount calculating,
And Mission Monitor is carried out according to effective count number.
Optionally, the allocation unit, including:
First distribution subelement, for according to apps server total number in predetermined threshold value and system,
Average counter amount is calculated, according to the average counter amount to apps server distribution counting amount;Or,
Second distribution subelement, the apps server for being contained according to the batch counting request bag can
The count number of carrying, to apps server distribution counting amount.
Optionally, the second distribution subelement, including:
Computation subunit, the difference for calculating predetermined threshold value and allocated counting total amount, the difference
For assignable count number;
Subelement is distributed, for being less than what the apps server can be carried when assignable count number
During count number, the count number distributed to apps server is the assignable count number;Or,
For when the count number that assignable count number can be carried not less than the apps server, Xiang Ying
The count number distributed with program servers is the count number that the apps server can be carried.
As can be seen from the above-described embodiment, compared with prior art, the advantage of the application is:
Mission Monitor is realized using the technical scheme of the application, apps server is mainly used to slow
Deposit server and send batch counting request, the count number of order caching server-assignment;The count number is
Caching server is threshold value that apps server is distributed, for statistics task number;Using journey
Sequence server is locally carrying out Mission Monitor according to the count number by counting mode.It is to be understood that
Apps server is to caching server application count number, then according to the count number applied local
Complete independently Mission Monitor, i.e. when there is task, apps server and indirect request caching clothes
Business device performs counting, but is performed locally counting.It can be seen that:Apps server without connecing every time
During receiving for task, with regard to direct access cache server, and only need with caching server carry out once or
Interact several times, obtain the count number of caching server distribution, the count number based on distribution is local independent complete
Into Mission Monitor, this makes it possible to the task count pressure for sharing caching server, greatly reduce to caching
The visit capacity of server, can be perfectly suitable for the business scenario of high concurrent, so as to improve whole system
Performance.
Brief description of the drawings
, below will be to reality in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
The accompanying drawing used required for applying in example or description of the prior art is briefly described, it should be apparent that, below
Accompanying drawing in description is only some embodiments of the present application, for those of ordinary skill in the art,
Without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the application schematic diagram of the Mission Monitor method of prior art;
A kind of flow chart for Mission Monitor embodiment of the method 1 that Fig. 2 provides for the application;
A kind of flow chart for Mission Monitor embodiment of the method 2 that Fig. 3 provides for the application;
A kind of flow chart for Mission Monitor embodiment of the method 3 that Fig. 4 provides for the application;
A kind of structure chart for Mission Monitor device embodiment 1 that Fig. 5 provides for the application;
A kind of structure chart for Mission Monitor device embodiment 2 that Fig. 6 provides for the application.
Embodiment
To enable above-mentioned purpose, the feature and advantage of the application more obvious understandable, below in conjunction with the accompanying drawings
The embodiment of the present application is described in detail.
Embodiment of the method
Referring to Fig. 2, a kind of flow chart for Mission Monitor embodiment of the method 1 that Fig. 2 provides for the application,
This method can be performed by apps server (App Server), and this method can include:Step
101 and step 102:
Step 101:Apps server sends batch counting request, order caching clothes to caching server
The count number of business device distribution;The count number is that caching server is apps server distribution, use
In the threshold value of statistics task number.
The embodiment of the present application can apply to realize the scene of task supervision in the mechanism according to task count
In, when apps server receives task, it is necessary to determined by counter mechanism to the task such as
What is handled, for example, when total task number is not above predetermined threshold value, then normally being located to task
Reason;When total task number exceedes predetermined threshold value, then stop to task processing.
The embodiment of the present application is when realizing, apps server can be held before Mission Monitor starts
Row step 101;Step 101 can also be performed again when receiving first task.
Step 101 can have following two implementations when realizing:
The first of step 101 is achieved in that apps server sends to caching server and carried
The batch counting for having task type to be monitored is asked;And after caching server receives the request, root
According to apps server total number in the corresponding predetermined threshold value of the task type and system, average meter is calculated
Quantity, according to the average counter amount to apps server distribution counting amount;Apps server
The count number of order caching server-assignment.
Illustrate:Altogether comprising 10 apps servers (App Server1-20) in system, and
Different types of task is provided with corresponding threshold value in system, i.e. predetermined threshold value;Assuming that App
Server1 first sends the batch counting request for carrying type A to caching server (Cache Server),
The predetermined threshold value that then Cache Server search type A is 10000, then Cache Server are according to as follows
Formula calculates average counter amount:
Calculate apps server in average counter amount=corresponding predetermined threshold value/system of type A tasks total
Number=10000/20=500.
Cache Server calculate average counter amount, are then 500 to App Server1 distribution countings amount.
It is mainly independent according to the concrete condition of system by Cache Server in the first implementation
The distribution condition of count number is determined, to realize the reasonable distribution of count number.
Second of step 101 is achieved in that apps server sends to caching server and carried
There is the batch counting request for the count number that apps server can carry;The apps server connects
Receive the count number that caching server is distributed according to the count number that can be carried to it.
Wherein, the count number that apps server can be carried can be pre-set by user;It can also lead to
Cross in the following manner calculating to obtain, which includes:S11 and S12.
S11:Apps server is according to apps server total number in predetermined threshold value and system, meter
Calculate average counter amount;Specifically, apps server is always individual in average counter amount=predetermined threshold value/system
Number.
S12:Apps server selects minimum from the average counter amount and system default apportioning cost
Value, the count number that the minimum value can be carried as apps server.
Illustrate:Still by taking above-mentioned scene as an example, App Server1 are responsible for supervising type A task
Control, the type A corresponding predetermined threshold value of task is that App Server total numbers are 20 in 10000, system;
App Server1 system default apportioning cost b, for example:B=100.
App Server1 first calculate average counter amount, and average counter amount is equal to predetermined threshold value and App in system
The ratio of Server total numbers, the average counter amount is denoted as a;App in a=predetermined threshold values/group system
Server total numbers, i.e. a=10000/20=500;B=100.App Server1 are again from a and b
The count number a l locateNum that selection minimum value can be carried as apps server, then select b=100
The count number that can be carried for App Server1.
Explanation is needed exist for, in actual applications, different App Server system default is distributed
Value may be identical, it is also possible to differs, the application is not construed as limiting to this.
In second of implementation, apps server first calculates the count number that oneself can be carried,
Then so many count numbers directly are asked to caching server, this mode enables caching server
Realize that count number is distributed according to the process performance of apps server itself, partition size mistake can be limited
Greatly, it is ensured that reasonable distribution, to ensure in system that each apps server effectively plays its effect.
Step 102:Apps server is appointed according to the count number by counting mode locally
Business monitoring.
Step 102 can have following four implementation when realizing:
The first implementation of step 102, including:S21-S23:
S21:When apps server receives task, whether the local current task amount counted is judged
Less than the count number;If it is, S22 is performed, if not, performing S23;
S22:Apps server carries out task count for received task;
S23:Apps server sends batch counting request to caching server again.S23 i.e., is returned
Receipt row step 101.
In order to further reduce the access pressure to caching server, step 102 can also be used second
Implementation, is achieved in that the increase S24 and S25 on the basis of above-mentioned first implementation for second:
Specifically exist, when S21 is judged as NO, first carry out S24.
S24:Apps server judges that caching server is allocated and counts whether total amount exceedes default threshold
Value;If it is, S25 is performed, if not, performing S23;
S25:End task counting.
Using second of implementation, apps server is locally first being judged, then further according to
Judged result decides whether to visit again caching server with the batch of count number that please look for novelty, and this makes it possible to root
Decide whether access cache server according to actual conditions, can further reduce to caching server
Access pressure.
Wherein, " task amount currently counted " described in S21 refers to apps server in reception
After the count number distributed to caching server, the task amount counted on.It is to be understood that application program takes
Business device is sent to caching server every time asks and receives count number, represents that new batch of task count is opened
Move, therefore, apps server just restarts statistics and appointed after count number is received every time
Business amount.
Wherein, when realizing S23, apps server can be according to caching server in distribution counting
The allocated counting total amount fed back during amount judged, can also real-time query caching server divided
The counting total amount matched somebody with somebody is judged.
In the above two implementation of step 102, caching server is to apply journey according to actual conditions
Sequence server-assignment count number, i.e. caching server is that the count number that apps server is distributed is exactly
Effective count number;So, after apps server receives count number, it is possible to directly according to should
Count number carries out task count.Caching server reasonable distribution count number is illustrated below:
Illustrate:Predetermined threshold value is 10000, if allocated counting total amount is 9900;If using journey
The count number of sequence server current request is 100, then caching server is 100 directly to its distribution counting amount.
Predetermined threshold value is 10000, if allocated counting total amount is 9900;If apps server is worked as
The count number of preceding request is 200, and caching server also can only be 100 to its distribution counting amount.
Predetermined threshold value is 10000, if allocated counting total amount is 10000, i.e. be fully allocated.This
When, the count number of apps server current request is 100, then caching server is directly counted to its distribution
Quantity is 0;As can be seen that using this automatic control distribution mechanism by caching server, taken for application program
It is engaged in for device, its count number received is exactly effective count number, and so, apps server is with regard to root
Mission Monitor is completed according to the count number received.
The third implementation of step 102, including:S31-S37:
S31:Apps server is according to the count number and the allocated counting for caching server feedback
Total amount, calculates the effective count number of apps server;
S32:When receiving task, apps server judges whether effective count number is more than zero;Such as
Fruit is to perform S33 and S34;If not, performing S35;
S33:Then apps server carries out task count for received task;S34:Update effective
Count number;
S35:Apps server sends batch counting request to caching server again.S35 is exactly to return
Receipt row step 101.
In order to further reduce the access pressure to caching server, step 102 can also use the 4th kind
Implementation, the 4th kind is achieved in that on the basis of above-mentioned 3rd implementation and increases S36:
Specifically exist, when S32 is judged as NO, first carry out S36.
S36:Apps server judges that caching server is allocated and counts whether total amount exceedes default threshold
Value;If it is, S37 is performed, if not, performing S35;
S37:End task counting.
Using the 4th kind of implementation, apps server is locally first being judged, then further according to
Judged result decides whether to visit again caching server with the batch of count number that please look for novelty, and this makes it possible to root
Decide whether access cache server according to actual conditions, can further reduce to caching server
Access pressure.
In the third implementation of step 102 and the 4th kind of implementation, caching server only needs
In response to the request of apps server, directly to its distribution counting amount, caching server is not
Whether the count number of concern distribution is exactly effective count number;As long as it is to be understood that caching server is received
To mass distributed request, caching server will be to apps server distribution counting amount, by applying journey
Sequence server oneself judges whether the count number being assigned to is effective count number.
When realizing, above-mentioned S31 can include:
Apps server judges whether the counting total amount is less than predetermined threshold value;
If it is, apps server determines that effective count number is the count number;
If not, apps server calculates effective count number according to equation below:
Effective count number=the count number-(the counting total amount-predetermined threshold value).
Illustrate:Predetermined threshold value is 10000, if allocated counting total amount is 10000, i.e. complete
Full distribution.Now, the count number of apps server current request is 100, then caching server is responded
It is 100 directly to its distribution counting amount in the request, and it is 10100 to record allocated counting total amount;
Apps server receives the count number 100 of distribution, and the counting total amount that caching server feeds back
10100, then apps server judge 10100 be more than predetermined threshold value 10000;Then calculate effectively meter
Quantity=100- (10100-10000)=0.
In the above two implementation of step 102, caching server only needs to response batch counting please
Ask, distribution counting amount, it is not necessary to which whether pay close attention to count number is specifically available, but by application program service
Device independently calculates effective count number, in this way, it is possible to reduce the implementation complexity of caching server.
The step of described in above-mentioned four kinds of implementations of step 102, " apps server was for receiving
To task carry out task count " specifically have following two implementations:
One kind is that apps server control task counter is started from scratch, according to the side for gradually increasing one
Formula carries out task count for received task.
According to this mode, apps server receive caching server distribution count number when,
It is accomplished by counter being initialized as zero, is counted so that counter is started from scratch, once using journey
Sequence server receives task, it is necessary to when counting, Jia one with regard to control counter execution and operate.
It is another to be, apps server control task counter since the count number, according to by
The secondary mode for subtracting one, task count is carried out for received task.
According to this mode, apps server receive caching server distribution count number when,
It is accomplished by counter being initialized as effective count number, so that counter is proceeded by from effective count number
Count, receive task once apps server, it is necessary to when counting, perform and subtract with regard to control counter
One operation.
Based on the above method, inventor is also contemplated that in actual applications, and each in system should
Startup and shut-in time with program servers are simultaneously asynchronous, therefore, in order to ensure the reliable of task count
Property, following steps can also be increased on the basis of method shown in above-mentioned Fig. 1:
Effective count number of preservation is fed back to caching by apps server when system is closed or restarted
Server;Effective count number refers to the available count number of apps server.
So, when certain App Server closes system or restarts system, system container can be passed through
Shutdown Hook (shutdown hook), Cache is returned to by effective count number in the App Server internal memories
Server, in case the reallocation of count number.
Wherein, Shutdown Hook, which implement process, is, registers a thread to virtual machine, works as program
When exiting, virtual machine can start this thread, can make some default works in the operation of this thread
Make.In the embodiment of the present application, the main effective count number obtained using Shutdown Hook in internal memory
And feed back to Cache Server.
From above-described embodiment as can be seen that realizing Mission Monitor using the technical scheme of the application, mainly
Using apps server batch counting request, order caching server-assignment are sent to caching server
Count number;The count number is that caching server is appointed for apps server distribution, for counting
The threshold value for number of being engaged in;Apps server is locally being entered according to the count number by counting mode
Row Mission Monitor.It is to be understood that apps server is to caching server application count number, then
According to the count number applied in local complete independently Mission Monitor, i.e. when there is task, application program
Server and indirect request caching server performs counting, but it is performed locally counting.It can be seen that:Should
With program servers without in each received task, with regard to direct access cache server, and only needing
To be interacted once or several times with caching server, obtain the count number of caching server distribution, be based on
The count number of distribution is in local complete independently Mission Monitor, and this makes it possible to the sharing caching server of the task
Counter-pressure, greatly reduces the visit capacity to caching server, can be perfectly suitable for the industry of high concurrent
Business scene, so as to improve the performance of whole system.
The Mission Monitor method provided with reference to Fig. 3 the application is illustrative.
Referring to Fig. 3, a kind of flow chart for Mission Monitor embodiment of the method 2 that Fig. 3 provides for the application,
This method can be performed by apps server (App Server), and this method can include:Step
201-207:
Step 201:Apps server sends batch counting request, order caching clothes to caching server
The count number and currently allocated counting total amount of business device distribution;The batch counting request carries application
The count number that program can be carried.Wherein, the count number is that caching server is apps server point
Threshold value matching somebody with somebody, for statistics task number.Wherein, the counting total amount is that caching server is current
The summation of allocated count number.
When realizing, caching server is received after the batch counting request of apps server transmission,
Response and the request, are apps server distribution counting amount, and are worked as to apps server feedback
Preceding allocated counting total amount.
Illustrate:It is assumed that in group system comprising two apps server App Server1 and
App Server2, App Server1 and App Server2 are the hit tasks for monitoring rules A,
The regular A corresponding predetermined threshold value of task is 400.
When the hit of regular A the 1st time on App Server1, App Server1 take for the 1st time to caching
Business device (Cache Server) request count number.
Cache Server receive the batch counting request of App Server1 transmissions first;The batch is counted
Number request includes:The count number that App Server1 can be carried is 100.
Cache Server are to App Server1 distribution countings amount 100, after this sub-distribution, and statistics is current
Allocated counting total amount is 100, and it is 100 to feed back currently allocated counting total amount to App Server1.
Step 202:Apps server applies journey according to the count number and the counting total amount, calculating
The effective count number of sequence server.
Apps server is asked to after count number from caching server every time, it is necessary to calculate effective
Count number, effective count number refers to the available count number of apps server;Because, caching server
Only responsible distribution counting amount, but do not supervise whether exceed predetermined threshold value, so, apps server
Need to weigh by effective count number and whether exceed predetermined threshold value.
Herein, predetermined threshold value be user according to the actual requirements, the threshold pre-set for task type
Value.The predetermined threshold value is the threshold value for limiting task number, when the task of statistics is not above thresholding
During value, then normal process task, but when the task of statistics alreadys exceed threshold value, then held for task
Row predetermined registration operation, for example, abandoning handling the task.When realizing, implementing for step 202 can be with
With reference to above-described content, here is omitted.
Illustrate:Example 1, as described in above-mentioned example, the counting that App Server1 are received
Measure as 100, the counting total amount received is 100, and predetermined threshold value is 400.Understand, it is described to count
Total amount is less than the predetermined threshold value;It is 100 then to determine effective count number.
Example 2, it is assumed that the count number that App Server1 are received is 100, the meter received
Number total amounts are the 500 (countings that apps server of the caching server in warp-wise group system is distributed altogether
Measure as 500), predetermined threshold value is 400.Understand, the counting total amount is more than the predetermined threshold value;Calculate
Effective count number=100- (500-400)=0.
Above-mentioned steps 201 and 202 are described, and apps server is counted to caching server application
The implementation process of amount, the purpose of apps server application count number is, locally independently in bulk
Mission Monitor statistics is completed, to reduce the access times to caching server.Therefore, determining effectively
After count number, apps server is just realized to Mission Monitor and statistics according to step 203-207.
Step 203:When apps server receives task, judge whether effective count number is more than zero;
If it is, performing step 204;Otherwise step 205 is performed;
Step 204:Apps server carries out task count for received task;
Step 205:Apps server judges whether the counting total amount is more than predetermined threshold value;If it is,
Perform step 206;Otherwise step 207 is performed;
Step 206:End task counting.
Step 207:Apps server sends batch counting request to caching server again.Return
To step 201, apply for count number again.
Followed by example, the process that implements to step 203-207 is explained.
Example 3, as described in above-mentioned example 1, the count number that App Server1 are received is 100,
The counting total amount received is 100, and predetermined threshold value is 400.Understand, the counting total amount is less than institute
State predetermined threshold value;It is 100 then to determine effective count number.
App Server1 and App Server2 effect are the Mission Monitors hit into line discipline A, for
The task of hit is handled accordingly.Detailed process is as follows:
When App Server1 regular A is hit for the first time, then first task, now, App are produced
Server1 performs step 203:Judge whether effective count number is more than zero;Understand:100 are more than 0;Cause
This, App Server1 carry out task count;For example:App Server1 control the effective count number behaviour that subtracts one
Make, and update effective count number.After being finished, effective count number is updated to 99 from 100.
When App Server1 regular A is hit for the second time, then second task, now, App are produced
Server1 need not be asked to count to Cache Server again, but step 203 is repeated in the machine:
Judge whether effective count number is more than zero;Because effective count number has been updated to 99, now judge that 99 is big
In 0, therefore, App Server1 perform task count;For example:App Server1 controls are effective to be counted
Operation that amount subtracts one, and update effective count number.After being finished, effective count number is updated to 98 from 99.
By that analogy, when the 3-100th hit of rule A on AppServer1, its processing procedure is similar
2nd subtask, does not elaborate herein.
But when App Server1 the 101st hit of regular A, then the 101st task is produced, this
When, App Server1 perform step 203:Judge whether effective count number is more than zero;Due to App Server1
100 tasks are had received that before, therefore its effective count number is being updated to 0 before, now judges
Go out effective count number and be not more than 0, then App Server1 perform step 205 again.Count total due to described
Measure and be less than predetermined threshold value 400 for 100, then perform step 207, i.e., step 201 is performed again, using journey
Sequence server sends batch counting request to caching server again.Now, App Server1 second to
Cache Server send batch counting request;Then App Server1 again step 201-202 to apply
Count number simultaneously calculates effective count number.
It is assumed that before App Server1 send batch counting request to Cache Server for the second time,
Warp-wise Cache Server applied for 3 count numbers to App Server2, and the count number per sub-distribution is
100.That is, before App Server1 send batch counting request to Cache Server for the second time, Cache
Server is assigned with a count number to App Server1, and the count number of distribution is 100;To App
Server2 is assigned with three count numbers, and the count number per sub-distribution is 100, then Cache Server have been
The counting total amount of distribution is 100+300=400.
And Cache Server are counted in response to the request of App Server1 second of transmission to its distribution
Quantity is 100, feeds back currently allocated counting total amount and (allocated 400 is added now before for 500
Distribution 100).Then App Server1 determine effective count number=100- (500-400)=0.
Then App Server1 are for the 101st task, then perform step 104:Judging effective count number is
It is no to be more than zero;Because the currently active count number is 0, now, judge that effective count number is not more than 0,
Then App Server1 perform step 205.Due to the counting total amount for 500 more than predetermined threshold value 400,
Then App Server1 perform step 206:App Server1 end task counting.
When the 102nd hit of rule A on AppServer1, the 102nd task is generated, now, is had
It is 0 to imitate count number, then processing procedure is identical with the above-mentioned processing procedure for being directed to the 101st task, terminates to appoint
Business is counted.It can be seen that, subsequently received task, AppServer1 does not visit again Cache Server
But respective handling locally is being independently completed, so it is considerably reduced Cache Server visit capacity.
The processing procedure of AppServer2 in the example is similar with the above-mentioned processing procedures of AppServer1,
Here is omitted.
Solved with reference to Fig. 4 Mission Monitor methods applied to caching server provided the application
Release explanation.
Referring to Fig. 4, a kind of flow chart for Mission Monitor embodiment of the method 3 that Fig. 4 provides for the application,
This method can be performed by caching server (Cache Server), and this method can include:Step
301-303:
Step 301:Caching server receives the batch counting request that apps server is sent;
Step 301:Caching server to apps server distribution counting amount, the count number be to be used for
The threshold value of statistics task number;So that the apps server is according to the count number received, lead to
Cross counting mode and carry out Mission Monitor.
When realizing, methods described also includes:During caching server distribution counting amount, also to application program
The currently allocated counting total amount of server feedback so that apps server according to the count number and
Count total amount and calculate effective count number, and Mission Monitor is carried out according to effective count number.
Optionally, the caching server is to apps server distribution counting amount, including:
Caching server calculates average meter according to apps server total number in predetermined threshold value and system
Quantity, according to the average counter amount to apps server distribution counting amount;Or,
The counting that the apps server that caching server contains according to the batch counting request bag can be carried
Amount, to apps server distribution counting amount.
Optionally, the apps server that the caching server contains according to the batch counting request bag
The count number that can be carried, to apps server distribution counting amount, including:
Caching server calculates the difference of predetermined threshold value and allocated counting total amount, and the difference is to divide
The count number matched somebody with somebody;
When assignable count number is less than the count number that the apps server can be carried, caching clothes
The count number that business device is distributed to apps server is the assignable count number;
When assignable count number is not less than the count number that the apps server can be carried, caching
The count number that server is distributed to apps server is the counting that the apps server can be carried
Amount.
From above-described embodiment as can be seen that the technical scheme provided using the application, caching server is only needed
The batch counting request that response application program servers are sent is wanted, is apps server distribution counting amount,
So that apps server independently carries out Mission Monitor according to received task amount by counting mode.
For caching server, without as prior art, counting statistics is carried out for each task again,
And by way of distribution counting amount, the threshold value counted for task is distributed to apps server,
Here it is apps server is distributed in the work that task is counted, by apps server according to this
Threshold value is in local independent progress task statistics.The mode of this distribution counting amount, substantially reduces caching
The interaction times of server and apps server, are distributed to different application programs by counter-pressure and take
Business device, it becomes possible to be significantly reduced the visit capacity of caching server, overcomes because caching server is accessed
The problem of bottleneck causes the poor performance of whole system.
It is corresponding with the above method, present invention also provides corresponding device, below in conjunction with the accompanying drawings to this
Device is explained.
Referring to Fig. 5, a kind of structure chart for Mission Monitor device embodiment 1 that Fig. 5 provides for the application,
The device can be only fitted in apps server, to realize its function, and the device can include following
Unit:
Transmitting and receiving unit 401, for sending batch counting request, order caching clothes to caching server
The count number of business device distribution;The count number is that caching server is apps server distribution, use
In the threshold value of statistics task number;
Mission Monitor unit 402, for according to the count number, task locally to be carried out by counting mode
Monitoring.
Optionally, the transmitting and receiving unit, including:
Transmission sub-unit, is carried based on apps server can carry by being sent to caching server
The batch counting request of quantity;
Receiving subelement, for order caching server according to the count number that can be carried to application program
The count number of server-assignment.
Optionally, described device also includes:
Computing unit, for according to apps server total number in predetermined threshold value and system, calculating flat
Equal count number;
Selecting unit, will for selecting minimum value from the average counter amount and system default apportioning cost
The count number that the minimum value can be carried as apps server.
Optionally, the Mission Monitor unit, including:
First judgment sub-unit, for when receiving task, judging the local current task amount counted
Whether the count number is less than;If it is, performing task count subelement;The task count subelement,
For carrying out task count for received task;
If not, the transmitting and receiving unit is performed, to send batch counting to caching server again
Request.
Optionally, the Mission Monitor unit, including:
Effective count number computation subunit, for having divided according to the count number and caching server feedback
The counting total amount matched somebody with somebody, calculates the effective count number of apps server;
Second judgment sub-unit, for when receiving task, apps server to judge effective count
Whether amount is more than zero;If it is, performing task count subelement and effective count number renewal subelement;Institute
Task count subelement is stated, for carrying out task count for received task;The renewal subelement,
For after task count sub-element performs task count, updating effective count number;If not, performing institute
Transmitting and receiving unit is stated, to send batch counting request to caching server again.
Optionally, effective count number computation subunit, including:
Judgment sub-unit, for judging whether the counting total amount is less than predetermined threshold value;If it is, performing
Determining module, if not, performing computing module;
Determination subelement, for determining that effective count number is the count number;
Computation subunit, for calculating effective count number according to equation below:
Effective count number=the count number-(the counting total amount-predetermined threshold value).
Optionally, described device also includes:
When first judging unit or second judging unit are judged as NO, triggering the described 3rd is sentenced
Whether disconnected unit, the 3rd judgment sub-unit counts total amount for judging that caching server is allocated
More than predetermined threshold value;Terminate subelement, the end subelement, for ending task if it is, performing
Count;If not, the transmitting and receiving unit is performed, in terms of sending batch to caching server again
Number request.
Optionally, the task count subelement, including:
First count sub-element, starts from scratch for control task counter, in the way of gradually increasing one
Task count is carried out for received task;Or,
Second count sub-element, for control task counter since the count number, according to gradually subtracting
One mode, task count is carried out for received task.
Optionally, described device also includes:
Feedback unit, for when apps server system is closed or restarted, by effective meter of preservation
Quantity feeds back to caching server;Effective count number refers to the available count number of apps server.
Referring to Fig. 6, a kind of structure chart for Mission Monitor device embodiment 2 that Fig. 6 provides for the application,
The device can be only fitted in caching server, to realize its function, and the device can include with lower unit:
Receiving unit 501, the batch counting request for receiving apps server transmission;
Allocation unit 502, for apps server distribution counting amount, the count number to be to be used to unite
The threshold value of meter task number;So that the apps server passes through according to the count number received
Counting mode carries out Mission Monitor.
Optionally, described device also includes:
Feedback unit, in distribution counting amount, feeding back currently allocated to apps server
Total amount is counted, so that apps server is according to the count number and counts the effective count number of total amount calculating,
And Mission Monitor is carried out according to effective count number.
Optionally, the allocation unit, including:
First distribution subelement, for according to apps server total number in predetermined threshold value and system,
Average counter amount is calculated, according to the average counter amount to apps server distribution counting amount;Or,
Second distribution subelement, the apps server for being contained according to the batch counting request bag can
The count number of carrying, to apps server distribution counting amount.
Optionally, the second distribution subelement, including:
Computation subunit, the difference for calculating predetermined threshold value and allocated counting total amount, the difference
For assignable count number;
Subelement is distributed, for being less than what the apps server can be carried when assignable count number
During count number, the count number distributed to apps server is the assignable count number;Or,
For when the count number that assignable count number can be carried not less than the apps server, Xiang Ying
The count number distributed with program servers is the count number that the apps server can be carried.
The technical staff in the field can be understood that, for convenience of description and succinctly, above-mentioned
The device of description and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment,
It will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can be realized by another way.For example, it is described above to device embodiment be only
Schematically, for example, the division of the unit, only a kind of division of logic function, when actually realizing
There can be other dividing mode, such as multiple units or component can combine or be desirably integrated into another
System, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING of device or unit by some interfaces
Or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or can also be it is physically separate, as
The part that unit is shown can be or may not be physical location, you can with positioned at a place, or
Person can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Whole units realize the purpose of this embodiment scheme.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit,
Can also be that unit is individually physically present, can also two or more units be integrated in a list
In member.Above-mentioned integrated unit can both be realized in the form of hardware, can use SFU software functional unit
Form realize.
It should be noted that one of ordinary skill in the art will appreciate that realizing in above-described embodiment method
All or part of flow, can be by computer program to instruct the hardware of correlation to complete, described
Program can be stored in a computer read/write memory medium, and the program is upon execution, it may include as described above
The flow of the embodiment of each method.Wherein, described storage medium can be magnetic disc, CD, read-only storage
Memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory,
RAM) etc..
Mission Monitor method and apparatus provided herein are described in detail above, herein should
The principle and embodiment of the application are set forth with specific embodiment, the explanation of above example
It is only intended to help and understands the present processes and its core concept;Simultaneously for the general skill of this area
Art personnel, according to the thought of the application, will change in specific embodiments and applications,
In summary, this specification content should not be construed as the limitation to the application.
Claims (26)
1. a kind of Mission Monitor method, it is characterised in that methods described includes:
Apps server sends batch counting request, order caching server-assignment to caching server
Count number;The count number is that caching server is appointed for apps server distribution, for counting
The threshold value for number of being engaged in;
Apps server is locally carrying out Mission Monitor according to the count number by counting mode.
2. according to the method described in claim 1, it is characterised in that the apps server is to slow
Deposit server transmission batch counting to ask, the count number of order caching server-assignment, including:
The apps server sends to caching server and carries what apps server can be carried
The batch counting request of count number;
The apps server order caching server is distributed according to the count number that can be carried to it
Count number.
3. method according to claim 2, it is characterised in that the apps server passes through
In the following manner calculates the count number that apps server can be carried:
Apps server calculates flat according to apps server total number in predetermined threshold value and system
Equal count number;
Apps server selects minimum value from the average counter amount and system default apportioning cost, will
The count number that the minimum value can be carried as apps server.
4. according to the method described in claim 1, it is characterised in that the apps server according to
The count number, Mission Monitor is locally being carried out by counting mode, including:
When apps server receives task, judge whether the local current task amount counted is less than
The count number;If it is, apps server carries out task count for received task;
If not, apps server sends batch counting request to caching server again.
5. according to the method described in claim 1, it is characterised in that the apps server according to
The count number, Mission Monitor is locally being carried out by counting mode, including:
Apps server is total according to the allocated counting of the count number and caching server feedback
Amount, calculates the effective count number of apps server;
When receiving task, apps server judges whether effective count number is more than zero;If it is,
Then apps server carries out task count for received task, and updates effective count number;Such as
Really no, apps server sends batch counting request to caching server again.
6. method according to claim 5, it is characterised in that the apps server according to
The allocated counting total amount of the count number and caching server feedback, calculating apps server has
Count number is imitated, including:
Apps server judges whether the counting total amount is less than predetermined threshold value;
If it is, apps server determines that effective count number is the count number;
If not, apps server calculates effective count number according to equation below:
Effective count number=the count number-(the counting total amount-predetermined threshold value).
7. the method according to claim 4 or 5, it is characterised in that in the application program service
Before device sends batch counting request to caching server again, methods described also includes:
Apps server judges that caching server is allocated and counts whether total amount exceedes predetermined threshold value;
If it is, the counting that ends task;If it is not, then apps server is sent to caching server again
Batch counting is asked.
8. the method according to claim 4 or 5, it is characterised in that the apps server
For received task, task count is carried out, including:
Apps server control task counter is started from scratch, for connecing in the way of gradually increasing one
Receiving for task carries out task count;Or,
Apps server control task counter is since the count number, according to the side for gradually subtracting one
Formula, task count is carried out for received task.
9. according to the method described in claim 1, it is characterised in that methods described also includes:
Effective count number of preservation is fed back to caching by apps server when system is closed or restarted
Server;Effective count number refers to the available count number of apps server.
10. a kind of Mission Monitor method, it is characterised in that methods described includes:
Caching server receives the batch counting request that apps server is sent;
Caching server is to apps server distribution counting amount, and the count number is to be used for statistics task
The threshold value of number;So that the apps server is according to the count number received, by counting side
Formula carries out Mission Monitor.
11. method according to claim 10, it is characterised in that methods described also includes:Caching
During server-assignment count number, currently allocated counting total amount is also fed back to apps server, with
Make apps server according to the count number and count the effective count number of total amount calculating, and according to effective
Count number carries out Mission Monitor.
12. method according to claim 10, it is characterised in that the caching server is to application
Program servers distribution counting amount, including:
Caching server calculates average meter according to apps server total number in predetermined threshold value and system
Quantity, according to the average counter amount to apps server distribution counting amount;Or,
The counting that the apps server that caching server contains according to the batch counting request bag can be carried
Amount, to apps server distribution counting amount.
13. method according to claim 12, it is characterised in that the caching server is according to institute
The count number that the apps server that batch counting request bag contains can be carried is stated, to apps server
Distribution counting amount, including:
Caching server calculates the difference of predetermined threshold value and allocated counting total amount, and the difference is to divide
The count number matched somebody with somebody;
When assignable count number is less than the count number that the apps server can be carried, caching clothes
The count number that business device is distributed to apps server is the assignable count number;
When assignable count number is not less than the count number that the apps server can be carried, caching
The count number that server is distributed to apps server is the counting that the apps server can be carried
Amount.
14. a kind of Mission Monitor device, it is characterised in that described device includes:
Transmitting and receiving unit, for sending batch counting request, order caching service to caching server
The count number of device distribution;The count number is that caching server is distributed for apps server, is used for
The threshold value of statistics task number;
Mission Monitor unit, for according to the count number, task prison locally to be carried out by counting mode
Control.
15. device according to claim 14, it is characterised in that the transmitting and receiving unit,
Including:
Transmission sub-unit, is carried based on apps server can carry by being sent to caching server
The batch counting request of quantity;
Receiving subelement, for order caching server according to the count number that can be carried to application program
The count number of server-assignment.
16. device according to claim 14, it is characterised in that described device also includes:
Computing unit, for according to apps server total number in predetermined threshold value and system, calculating flat
Equal count number;
Selecting unit, will for selecting minimum value from the average counter amount and system default apportioning cost
The count number that the minimum value can be carried as apps server.
17. device according to claim 14, it is characterised in that the Mission Monitor unit, bag
Include:
First judgment sub-unit, for when receiving task, judging the local current task amount counted
Whether the count number is less than;If it is, performing task count subelement;The task count subelement,
For carrying out task count for received task;
If not, the transmitting and receiving unit is performed, to send batch counting to caching server again
Request.
18. device according to claim 14, it is characterised in that the Mission Monitor unit, bag
Include:
Effective count number computation subunit, for having divided according to the count number and caching server feedback
The counting total amount matched somebody with somebody, calculates the effective count number of apps server;
Second judgment sub-unit, for when receiving task, apps server to judge effective count
Whether amount is more than zero;If it is, performing task count subelement and effective count number renewal subelement;Institute
Task count subelement is stated, for carrying out task count for received task;The renewal subelement,
For after task count sub-element performs task count, updating effective count number;If not, performing institute
Transmitting and receiving unit is stated, to send batch counting request to caching server again.
19. device according to claim 18, it is characterised in that effective count number calculates son
Unit, including:
Judgment sub-unit, for judging whether the counting total amount is less than predetermined threshold value;If it is, performing
Determining module, if not, performing computing module;
Determination subelement, for determining that effective count number is the count number;
Computation subunit, for calculating effective count number according to equation below:
Effective count number=the count number-(the counting total amount-predetermined threshold value).
20. the device according to claim 17 or 18, it is characterised in that described device also includes:
When first judging unit or second judging unit are judged as NO, triggering the described 3rd is sentenced
Whether disconnected unit, the 3rd judgment sub-unit counts total amount for judging that caching server is allocated
More than predetermined threshold value;Terminate subelement, the end subelement, for ending task if it is, performing
Count;If not, the transmitting and receiving unit is performed, in terms of sending batch to caching server again
Number request.
21. the device according to claim 17 or 18, it is characterised in that task count
Unit, including:
First count sub-element, starts from scratch for control task counter, in the way of gradually increasing one
Task count is carried out for received task;Or,
Second count sub-element, for control task counter since the count number, according to gradually subtracting
One mode, task count is carried out for received task.
22. device according to claim 14, it is characterised in that described device also includes:
Feedback unit, for when apps server system is closed or restarted, by effective meter of preservation
Quantity feeds back to caching server;Effective count number refers to the available count number of apps server.
23. a kind of Mission Monitor device, it is characterised in that described device includes:
Receiving unit, the batch counting request for receiving apps server transmission;
Allocation unit, for apps server distribution counting amount, the count number to be to be used to count
The threshold value of task number;So that the apps server passes through meter according to the count number received
Number mode carries out Mission Monitor.
24. device according to claim 23, it is characterised in that described device also includes:
Feedback unit, in distribution counting amount, feeding back currently allocated to apps server
Total amount is counted, so that apps server is according to the count number and counts the effective count number of total amount calculating,
And Mission Monitor is carried out according to effective count number.
25. device according to claim 23, it is characterised in that the allocation unit, including:
First distribution subelement, for according to apps server total number in predetermined threshold value and system,
Average counter amount is calculated, according to the average counter amount to apps server distribution counting amount;Or,
Second distribution subelement, the apps server for being contained according to the batch counting request bag can
The count number of carrying, to apps server distribution counting amount.
26. device according to claim 25, it is characterised in that the second distribution subelement,
Including:
Computation subunit, the difference for calculating predetermined threshold value and allocated counting total amount, the difference
For assignable count number;
Subelement is distributed, for being less than what the apps server can be carried when assignable count number
During count number, the count number distributed to apps server is the assignable count number;Or,
For when the count number that assignable count number can be carried not less than the apps server, Xiang Ying
The count number distributed with program servers is the count number that the apps server can be carried.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610078167.9A CN107040558A (en) | 2016-02-03 | 2016-02-03 | A kind of Mission Monitor method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610078167.9A CN107040558A (en) | 2016-02-03 | 2016-02-03 | A kind of Mission Monitor method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107040558A true CN107040558A (en) | 2017-08-11 |
Family
ID=59532213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610078167.9A Pending CN107040558A (en) | 2016-02-03 | 2016-02-03 | A kind of Mission Monitor method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107040558A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491304A (en) * | 2018-03-06 | 2018-09-04 | 平安科技(深圳)有限公司 | Electronic device, operation system risk control method and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923577A (en) * | 2010-09-02 | 2010-12-22 | 北京开心人信息技术有限公司 | Expandable counting method and system |
CN102833281A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Method, device and system for realizing distributed automatically-increasing counting |
US20150006754A1 (en) * | 2009-06-30 | 2015-01-01 | Oracle International Corporation | Completion Tracking for Groups of Transfer Requests |
CN105095423A (en) * | 2015-07-15 | 2015-11-25 | 北京奇虎科技有限公司 | Write-in method and device for count data |
-
2016
- 2016-02-03 CN CN201610078167.9A patent/CN107040558A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150006754A1 (en) * | 2009-06-30 | 2015-01-01 | Oracle International Corporation | Completion Tracking for Groups of Transfer Requests |
CN101923577A (en) * | 2010-09-02 | 2010-12-22 | 北京开心人信息技术有限公司 | Expandable counting method and system |
CN102833281A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Method, device and system for realizing distributed automatically-increasing counting |
CN105095423A (en) * | 2015-07-15 | 2015-11-25 | 北京奇虎科技有限公司 | Write-in method and device for count data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491304A (en) * | 2018-03-06 | 2018-09-04 | 平安科技(深圳)有限公司 | Electronic device, operation system risk control method and storage medium |
CN108491304B (en) * | 2018-03-06 | 2019-12-10 | 平安科技(深圳)有限公司 | electronic device, business system risk control method and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109062658A (en) | Realize dispatching method, device, medium, equipment and the system of computing resource serviceization | |
CN109194584A (en) | A kind of flux monitoring method, device, computer equipment and storage medium | |
CN107832126A (en) | The method of adjustment and its terminal of a kind of thread | |
EP1024432A2 (en) | Performance counter for monitoring multiple events | |
CN107209682A (en) | The automatic management of resource adjustment | |
CN106502918B (en) | A kind of scheduling memory method and device | |
CN101652838B (en) | A recipe-and-component control module and methods thereof | |
CN106681834A (en) | Distributed calculating method and management device and system | |
CN106874361B (en) | Data processing method and device applied to customs declaration | |
CN108205541A (en) | The dispatching method and device of distributed network reptile task | |
CN107977763A (en) | Resource allocation method and related device | |
CN106326002A (en) | Resource scheduling method, device and equipment | |
CN108519917A (en) | A kind of resource pool distribution method and device | |
CN106997546A (en) | A kind of order processing method and device | |
CN106844027A (en) | A kind of method for scheduling task based on node load | |
CN106407207A (en) | Real-time added data updating method and apparatus | |
CN111985748A (en) | Order batch processing method, device and computer system | |
CN106936877A (en) | A kind of content distribution method, apparatus and system | |
CN106790388A (en) | A kind of method and mobile terminal for carrying out data renewal | |
CN110020046A (en) | A kind of data grab method and device | |
CN108875035A (en) | The date storage method and relevant device of distributed file system | |
CN107040558A (en) | A kind of Mission Monitor method and device | |
CN111768174A (en) | Activity management method, apparatus, device and medium | |
CN106952085A (en) | A kind of method and device of data storage and Business Processing | |
CN110147277A (en) | A kind of resource dynamic deployment method, device, server and storage medium |
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: 20170811 |
|
RJ01 | Rejection of invention patent application after publication |