CN105991750A - Service scheduling method of service cluster, equipment and service cluster - Google Patents

Service scheduling method of service cluster, equipment and service cluster Download PDF

Info

Publication number
CN105991750A
CN105991750A CN201510098451.8A CN201510098451A CN105991750A CN 105991750 A CN105991750 A CN 105991750A CN 201510098451 A CN201510098451 A CN 201510098451A CN 105991750 A CN105991750 A CN 105991750A
Authority
CN
China
Prior art keywords
processing equipment
service processing
service
request
load
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
CN201510098451.8A
Other languages
Chinese (zh)
Other versions
CN105991750B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510098451.8A priority Critical patent/CN105991750B/en
Publication of CN105991750A publication Critical patent/CN105991750A/en
Application granted granted Critical
Publication of CN105991750B publication Critical patent/CN105991750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a service scheduling method of a service cluster, equipment and the service cluster. The method is applied to the service cluster comprising load balancing equipment and multiple service processing equipment. The method comprises the steps that through detecting the Java virtual machine JVM running state parameter of the service processing equipment, when the JVM running state parameter reaches a set threshold, the service processing equipment sends a service pause request to the load balancing equipment, wherein the service pause request is used for allowing the load balancing equipment to suspend the sending of a service request to the service processing equipment. Through the invention, a response timeout problem when each of the service processing equipment carries out JVM old garbage collection is avoided, and the overall stability of a system is improved.

Description

The business scheduling method of a kind of business cluster, equipment and business cluster
Technical field
The application relates to networking technology area, particularly relate to a kind of business cluster business scheduling method, Equipment and business cluster.
Background technology
Current the Internet, applications is mostly processed by multiple system coordinations and completes, and passes through RPC between system and system (Remote Procedure Call Protocol, remote procedure call protocol) service call carries out data friendship Change.One concrete operation system, is made up of multiple service processing equipments and load-balancing device.When having When other system calls this system, load-balancing device can be passed through according to load balancing principle by service request It is assigned to one of them service processing equipment to carry out, as it is shown in figure 1, operation system A includes at 4 business Reason equipment, when load-balancing device receives the service request of other system, according to load balancing principle This service request is sent to service processing equipment 2 process.
Although service request can be evenly distributed to each industry according to load balancing principle by load-balancing device Business processing equipment, but each service processing equipment JVM of self is not accounted for when task is distributed (Java Virtual Machine, Java Virtual Machine) ruuning situation.Such as above example, at business Reason equipment 2 triggers GC (Garbage Collection, the rubbish in JVM old generation due to the generation of junk data Rubbish reclaims) when, the process of all users can be suspended, i.e. all external responses suspend, if now industry Business request is sent to service processing equipment 2, then can cause this request response timeout.
The response timeout causing during the garbage reclamation solving JVM old generation in prior art by the following method Problem:
The first, method is regulated by JVM parameter, reduces garbage reclamation number of times and the frequency in JVM old generation;
Method the 2nd, when there being service processing equipment will carry out garbage reclamation, then all in whole system Service processing equipment carries out garbage reclamation simultaneously.
But, such scheme can't be fully solved the response timeout that the garbage reclamation in JVM old generation causes Problem:
Even if reduce garbage reclamation number of times and the frequency in JVM old generation for mode one, still also can deposit Problem at service processing equipment response timeout when carrying out the garbage reclamation in JVM old generation.
2nd, shorten in whole system because the time delay that causes of the garbage reclamation in JVM old generation for mode, Improve the garbage reclamation frequency in the overall JVM of system old generation, add the consumption that system is run, and And still can not avoid the response timeout problem that the garbage reclamation in JVM old generation causes completely.
During realizing the application, it is found by the applicant that prior art at least there are the following problems:
No matter mode one or mode two, all can not avoid the garbage reclamation in JVM old generation to cause completely Response timeout problem, does not avoid the response that the garbage reclamation in JVM old generation causes completely in prior art The solution of timeout issue.
Content of the invention
The embodiment of the present application provides the business scheduling method of a kind of business cluster, is used for solving JVM old The response timeout problem causing during the garbage reclamation in generation.
The embodiment of the present application provides the business scheduling method of a kind of business cluster, is applied to comprise load balancing In the business cluster of equipment and multiple service processing equipment, it is characterised in that described method includes:
Service processing equipment detects self corresponding Java Virtual Machine JVM running state parameter;
If described JVM running state parameter reaches to set threshold value, described service processing equipment is born to described Carry balancing equipment and send the request of suspending operation;
Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Business Processing Equipment sends service request.
Wherein, if described JVM running state parameter reaches to set after threshold value, also include: described Service processing equipment carries out garbage reclamation.
After described service processing equipment completes garbage reclamation, described service processing equipment is to described load all Weighing apparatus equipment sends and recovers service request;
Wherein, described recovery service request is used for making described load-balancing device recover to described Business Processing Equipment sends service request.
Wherein, described JVM running state parameter includes: the old age of JVM is for utilization rate and fragmentation parameter.
The embodiment of the present application provides the business scheduling method of a kind of business cluster, is applied to comprise load balancing In the business cluster of equipment and multiple service processing equipment, it is characterised in that described method includes:
Load-balancing device receives the request of suspending operation that service processing equipment sends, at described business Reason device flag is down state, suspends and sends service request to described service processing equipment;
When described load-balancing device receives the service request needing to be sent to service processing equipment, will Described service request is sent to be not marked with the service processing equipment of down state;
Wherein, described load-balancing device receives the recovery service request that described service processing equipment sends, Remove the down state mark of described service processing equipment, recover to send industry to described service processing equipment Business request.
Wherein, after described load-balancing device receives the request of suspending operation that service processing equipment sends, Also include: the described service processing equipment of described load-balancing device instruction carries out garbage reclamation.
The embodiment of the present application provides a kind of service processing equipment, is applied to comprise load-balancing device and multiple In the business cluster of service processing equipment, it is characterised in that described service processing equipment includes:
Detection module, for detecting the Java Virtual Machine JVM running status ginseng of corresponding service processing equipment Number;
Sending module, for reaching to set when the JVM running state parameter detected by described detection module During threshold value, send, to described load-balancing device, the request of suspending operation;
Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Business Processing Equipment sends service request.
Wherein, described sending module, is additionally operable to when the JVM running status detected by described detection module When parameter reaches to set threshold value, carry out garbage reclamation.
Wherein, described sending module, is additionally operable to after completing garbage reclamation, to described load-balancing device Send and recover service request;
Wherein, described recovery service request is used for making described load-balancing device recover to described Business Processing Equipment sends service request.
Wherein, described JVM running state parameter includes: the old age of JVM is for utilization rate and fragmentation parameter.
The embodiment of the present application provides a kind of load-balancing device, is applied to comprise load-balancing device and multiple In the business cluster of service processing equipment, it is characterised in that include:
Receiver module, for receiving the request of suspending operation that service processing equipment sends;
Mark module, please for receiving suspending operation of service processing equipment transmission at described receiver module When asking, described service processing equipment is labeled as down state, so that described load-balancing device suspends Send service request to described service processing equipment;
Sending module, for needing to be sent to service processing equipment when described load-balancing device receives During service request, described service request is sent to be not labeled as down state by described mark module Service processing equipment;
Wherein, described receiver module, is additionally operable to receive the recovery service request that service processing equipment sends;
Described mark module, is additionally operable to receive, at described receiver module, the recovery that service processing equipment sends During service request, remove the down state mark of described service processing equipment, so that described sending module Recover to send service request to described service processing equipment.
Wherein, described mark module, is additionally operable to receive the request of suspending operation that service processing equipment sends When, indicate that described service processing equipment carries out garbage reclamation.
The embodiment of the present application provides a kind of business cluster, comprises load-balancing device and multiple Business Processing sets Standby, it is characterised in that to include:
Described service processing equipment, for detecting self corresponding Java Virtual Machine JVM running status ginseng Number;If described JVM running state parameter reaches to set threshold value, send temporarily to described load-balancing device Stop service request;Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Service processing equipment sends service request;
Described load-balancing device, for receiving the request of suspending operation that service processing equipment sends, will Described service processing equipment is labeled as down state, and suspending please to described service processing equipment transmission business Ask;When receiving the service request needing to be sent to service processing equipment, described service request is sent Give the service processing equipment being not marked with down state.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
Brief description
In order to be illustrated more clearly that the application or technical scheme of the prior art, below will to the application or In description of the prior art, the accompanying drawing of required use is briefly described, it should be apparent that, in describing below Accompanying drawing be only some embodiments of the present application, for those of ordinary skill in the art, do not paying On the premise of going out creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is operation system structural representation of the prior art;
Fig. 2 is the flow chart of the business scheduling method of a kind of business cluster in the embodiment of the present application;
Fig. 3 is the flow chart of the business scheduling method of another kind of business cluster in the embodiment of the present application;
Fig. 4 is the structural representation of a kind of service processing equipment in the embodiment of the present application;
Fig. 5 is the structural representation of a kind of load-balancing device in the embodiment of the present application;
Fig. 6 is the structural representation of a kind of business cluster in the embodiment of the present application.
Detailed description of the invention
Embodiments herein includes: service processing equipment sets JVM running state parameter threshold value, and examines Survey self corresponding JVM running state parameter;If described JVM running state parameter reaches to set During threshold value, described service processing equipment sends, to load-balancing device, the request of suspending operation, and makes described load Balancing equipment suspends to described service processing equipment transmission service request.
Below in conjunction with the accompanying drawing in the application, the technical scheme in the application is carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the application, rather than whole enforcement Example.Based on the embodiment in the application, those of ordinary skill in the art are not making creative work Under the premise of the every other embodiment that obtained, broadly fall into the scope of the application protection.
As in figure 2 it is shown, the method for traffic scheduling of a kind of business cluster providing for the embodiment of the present application, Specifically include following steps:
Step S201, service processing equipment set JVM running state parameter threshold value.
Wherein, JVM running state parameter includes: the old age of JVM is for utilization rate and fragmentation parameter.
Step S202, service processing equipment detect self corresponding JVM running state parameter.
Specifically, this service processing equipment of Port detecting that service processing equipment is provided by detection JVM JVM running state parameter.
If step S203 described JVM running state parameter reaches to set threshold value, described Business Processing Equipment sends, to described load-balancing device, the request of suspending operation.
Wherein, if JVM running state parameter reaches to set after threshold value, described service processing equipment is carried out Garbage reclamation.
Need to point out, reach setting when the old age of JVM for utilization rate and fragmentation parameter During JVM running state parameter threshold value, service processing equipment preferentially can send to load-balancing device and suspend Service request, then carries out garbage reclamation again;Also can carry out sending to load-balancing device suspending simultaneously Service request and carry out garbage reclamation.This is because when service processing equipment carries out garbage reclamation, can be temporarily Stopping the response to service request, if now first carrying out garbage reclamation, then this service processing equipment is to negative The service request carrying reception before balancing equipment sends the request of suspending operation then may be overtime.
The request of suspending operation sends industry for making described load-balancing device suspend to described service processing equipment Business request, wherein, this service request refers to that load-balancing device is receiving the request of suspending operation to reception It is sent to business to recover to receive between service request from other system for needing of calling of system The service request of processing equipment.
After this service processing equipment completes garbage reclamation, send recovery business to described load-balancing device Request;
Wherein, after this service processing equipment completes garbage reclamation, the utilization rate in JVM old generation can under Fall, thus will not have influence on the response time of service request because of garbage reclamation.
Wherein, described recovery service request is used for making described load-balancing device recover to described Business Processing Equipment is sent service request, and is sent to described service request including described service processing equipment Any one being not marked with in disabled service processing equipment all.Wherein, this service request is Refer to load-balancing device receive recover to receive after service request from other system for system The service request needing to be sent to service processing equipment called.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
As it is shown on figure 3, the method for traffic scheduling of a kind of business cluster providing for the embodiment of the present application, It is applied to comprise in the business cluster of load-balancing device and multiple service processing equipment, specifically include following Step:
Step S301, load-balancing device receive the request of suspending operation that service processing equipment sends, by institute State service processing equipment and be labeled as down state, suspend and send service request to described service processing equipment.
When described load-balancing device receives the service request needing to be sent to service processing equipment, will Described service request is sent to be not marked with the service processing equipment of down state;
After described load-balancing device receives the request of suspending operation that service processing equipment sends, also Including: the described service processing equipment of described load-balancing device instruction carries out garbage reclamation.
Wherein it is desired to point out, send out when described load-balancing device receives service processing equipment Send suspend operation request when, can preferentially described service request be sent to be not marked with unavailable shape The service processing equipment of state, then indicates that described service processing equipment carries out garbage reclamation again;Also can be same When enter to be about to described service request and be sent to be not marked with service processing equipment and the instruction of down state Described service processing equipment carries out garbage reclamation.This is because when service processing equipment carries out garbage reclamation, Can suspend the response to service request, if now first carrying out garbage reclamation, then this service processing equipment exists The service request receiving before load-balancing device sends the request of suspending operation then may time-out.
Specifically, when JVM running state parameter reaches to set threshold value, load-balancing device receives industry This service processing equipment is labeled as down state, temporarily by the request of suspending operation that business processing equipment sends Stop sending service request to described service processing equipment, when this load-balancing device receives service request, Service request is sent to do not comprise other of described service processing equipment according to load balancing principle not mark It is designated as the service processing equipment of down state.
Wherein, this service request refer to load-balancing device receive suspend operation request extensive to receiving Receive between multiple service request is sent to Business Processing from other system for needing of calling of system The service request of equipment.
Step S302, load-balancing device receive the recovery service request that service processing equipment sends, by institute Stating service processing equipment and re-flagging as upstate, recovering to send business to described service processing equipment please Ask.
Specifically, after this service processing equipment completes garbage reclamation, send to described load-balancing device Recovering service request, load-balancing device receives the recovery service request that service processing equipment sends, will Described service processing equipment re-flags as upstate, recovers to send business to described service processing equipment This service request, when this load-balancing device receives service request, is sent to include described by request Service processing equipment is in interior any one being not marked with in disabled service processing equipment all.
Wherein, this service request refers to that load-balancing device receives after receiving recovery service request The service request needing to be sent to service processing equipment called for system from other system.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
Below in conjunction with concrete application scenarios, the above-mentioned two stage is described in detail.
As it is shown in figure 1, operation system A includes 4 service processing equipments, when load-balancing device receives it During the service request of his system, need this service request is sent to Business Processing according to load balancing principle Equipment 2 is processed.
If now service processing equipment 2 detects that JVM running state parameter reaches to set threshold value, then business Processing equipment 2 sends, to load-balancing device, the request of suspending operation, and carries out garbage reclamation.
Load-balancing device receives the request of suspending operation, and service processing equipment 2 is labeled as down state, Suspend and send service request to service processing equipment 2, and according to load balancing principle, this business is sent to Service processing equipment 3.
When Business Processing set 2 complete garbage reclamation after, service processing equipment 2 to load-balancing device send Recover service request.
Load-balancing device receives the recovery service request that service processing equipment 2 sends, and sets Business Processing Standby 2 re-flag as upstate, and according to load balancing principle, are sent to include industry by service request Business processing equipment 2 is at the interior service processing equipment being not marked with down state.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
The embodiment of the present application provides a kind of service processing equipment, as shown in Figure 4, comprising:
Setting module 401, for setting the JVM running state parameter threshold value of service processing equipment;
Wherein, JVM running state parameter includes: the old age of JVM is for utilization rate and fragmentation parameter.
Detection module 402, for detecting the JVM running state parameter of service processing equipment;
Specifically, the JVM of this service processing equipment of Port detecting that detection module is provided by detection JVM Running state parameter.
Sending module 403, for when described JVM running state parameter reaches to set threshold value, to load Balancing equipment sends the request of suspending operation.Wherein, this service request refers to that load-balancing device is receiving The request of suspending operation is to receiving adjusting from other system of recovering to receive between service request for system Need to be sent to the service request of service processing equipment.
Sending module 403, for reaching to set JVM running status when described JVM running state parameter During parameter threshold, carry out garbage reclamation;
Sending module 403, is additionally operable to after service processing equipment completes garbage reclamation, to described load balancing Equipment sends and recovers service request.
Wherein, after service processing equipment completes garbage reclamation, the utilization rate in JVM old generation can decline, The response time of service request thus will not be had influence on because of garbage reclamation.
Wherein, described recovery service request is used for making described load-balancing device recover to described Business Processing Equipment is sent service request, and is sent to described service request including described service processing equipment Any one being not marked with in disabled service processing equipment all.Wherein, this service request is Refer to load-balancing device receive recover to receive after service request from other system for system The service request needing to be sent to service processing equipment called.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
The embodiment of the present application provides a kind of load-balancing device, as shown in Figure 5, comprising:
Receiver module 501, please for receiving the request of suspending operation of service processing equipment transmission and recovery business Ask.
Mark module 502, for receive service processing equipment send suspend operation request when, by institute State service processing equipment and be labeled as down state, suspend and send service request to described service processing equipment; Or when described receiver module receives the recovery service request that service processing equipment sends, remove described The down state mark of service processing equipment, so that described sending module recovers to set to described Business Processing Preparation send service request.
Wherein, described mark module 502, being additionally operable to receive suspending operation of service processing equipment transmission please After asking, indicate that described service processing equipment carries out garbage reclamation.
Sending module 503, needs to be sent to the industry of service processing equipment for receiving at this load-balancing device During business request, described service request is sent to be not labeled as down state by described mark module Service processing equipment.
Receive service processing equipment send suspend operation request when, if this load-balancing device connects When receipts need the service request being sent to service processing equipment, according to load balancing principle by this service request Other Business Processing being not marked with down state being sent to not comprise described service processing equipment set Standby.
Wherein, this service request refer to load-balancing device receive suspend operation request extensive to receiving Receive between multiple service request is sent to Business Processing from other system for needing of calling of system The service request of equipment.
When receiving the recovery service request that service processing equipment sends, if this load-balancing device connects When receipts need the service request being sent to service processing equipment, according to load balancing principle by this service request Be sent to comprise described service processing equipment the Business Processing being not flagged as down state Equipment.
Wherein, this service request refers to that load-balancing device receives after receiving recovery service request The service request needing to be sent to service processing equipment called for system from other system.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
The embodiment of the present application provides a kind of business cluster, as shown in Figure 6, comprising:
Service processing equipment 61, for detecting self corresponding Java Virtual Machine JVM running status ginseng Number;If described JVM running state parameter reaches to set threshold value, send temporarily to described load-balancing device Stop service request;Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Service processing equipment sends service request;
Load-balancing device 62, for receiving the request of suspending operation that service processing equipment sends, by institute State service processing equipment and be labeled as down state, suspend and send service request to described service processing equipment; When receiving the service request needing to be sent to service processing equipment, described service request is sent to not There is the service processing equipment being labeled as down state.
Needing to point out, in the application, service processing equipment carries out garbage reclamation and is not limited in Load-balancing device indicates, it is possible to be when JVM running state parameter reaches to set threshold value, by described business Processing equipment carries out garbage reclamation voluntarily.
The embodiment of the present application has the advantage that service processing equipment by detecting the Java Virtual Machine of self JVM running state parameter, when JVM running state parameter reaches to set threshold value, described Business Processing sets Standby to the load-balancing device transmission request of suspending operation, the described request of suspending operation makes load-balancing device Suspend and send service request to described service processing equipment, it is to avoid each service processing equipment is being carried out JVM old for garbage reclamation when the response timeout problem that causes, improve the overall stability of system.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this Application can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the skill of the application The part that prior art is contributed by art scheme substantially in other words can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium, including some instructions are in order to make Obtain a station terminal equipment (can be mobile phone, personal computer, server, or the network equipment etc.) Perform the method described in each embodiment of the application.
The above is only the preferred embodiment of the application, it is noted that for the art For those of ordinary skill, on the premise of without departing from the application principle, some improvement can also be made And retouching, these improvements and modifications also should regard the protection domain of the application.

Claims (14)

1. a business scheduling method for business cluster, is applied to comprise load-balancing device and multiple business In the business cluster of processing equipment, it is characterised in that described method includes:
Service processing equipment detects self corresponding Java Virtual Machine JVM running state parameter;
If described JVM running state parameter reaches to set threshold value, described service processing equipment is born to described Carry balancing equipment and send the request of suspending operation;
Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Business Processing Equipment sends service request.
2. the method for claim 1, it is characterised in that if described JVM runs shape After state parameter reaches to set threshold value, also include: described service processing equipment carries out garbage reclamation.
3. method as claimed in claim 2, it is characterised in that described method also includes:
After described service processing equipment completes garbage reclamation, described service processing equipment is to described load all Weighing apparatus equipment sends and recovers service request;
Wherein, described recovery service request is used for making described load-balancing device recover to described Business Processing Equipment sends service request.
4. the method for claim 1, it is characterised in that described method also includes: described JVM Running state parameter includes: the old age of JVM is for utilization rate and fragmentation parameter.
5. a business scheduling method for business cluster, is applied to comprise load-balancing device and multiple business In the business cluster of processing equipment, it is characterised in that described method includes:
Load-balancing device receives the request of suspending operation that service processing equipment sends, at described business Reason device flag is down state, suspends and sends service request to described service processing equipment;
When described load-balancing device receives the service request needing to be sent to service processing equipment, will Described service request is sent to be not marked with the service processing equipment of down state;
6. method as claimed in claim 5, it is characterised in that described method also includes:
Described load-balancing device receives the recovery service request that described service processing equipment sends, and removes The down state mark of described service processing equipment, recovering to send business to described service processing equipment please Ask.
7. method as claimed in claim 5, it is characterised in that described load-balancing device receives industry After the request of suspending operation that business processing equipment sends, also include: the instruction of described load-balancing device is described Service processing equipment carries out garbage reclamation.
8. a service processing equipment, is applied to comprise load-balancing device and multiple service processing equipment In business cluster, it is characterised in that described service processing equipment includes:
Detection module, for detecting the Java Virtual Machine JVM running state parameter of service processing equipment;
Sending module, for reaching to set when the JVM running state parameter detected by described detection module During threshold value, send, to described load-balancing device, the request of suspending operation;
Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Business Processing Equipment sends service request.
9. equipment as claimed in claim 8, it is characterised in that
Described sending module, is additionally operable to when the JVM running state parameter detected by described detection module reaches To when setting threshold value, carry out garbage reclamation.
10. equipment as claimed in claim 9, it is characterised in that
Described sending module, is additionally operable to after completing garbage reclamation, sends extensive to described load-balancing device Multiple service request;
Wherein, described recovery service request is used for making described load-balancing device recover to described Business Processing Equipment sends service request.
Wherein, described JVM running state parameter includes: the old age of JVM is for utilization rate and fragmentation parameter.
11. 1 kinds of load-balancing devices, are applied to comprise load-balancing device and multiple service processing equipment Business cluster in, it is characterised in that include:
Receiver module, for receiving the request of suspending operation that service processing equipment sends;
Mark module, please for receiving suspending operation of service processing equipment transmission at described receiver module When asking, described service processing equipment is labeled as down state, so that described load-balancing device suspends Send service request to described service processing equipment;
Sending module, for needing to be sent to service processing equipment when described load-balancing device receives During service request, described service request is sent to be not labeled as down state by described mark module Service processing equipment;
12. load-balancing devices as claimed in claim 10, it is characterised in that also include:
Described receiver module, is additionally operable to receive the recovery service request that service processing equipment sends;
Described mark module, is additionally operable to receive, at described receiver module, the recovery that service processing equipment sends During service request, remove the down state mark of described service processing equipment, so that described sending module Recover to send service request to described service processing equipment.
13. load-balancing devices as claimed in claim 10, it is characterised in that
Described mark module, be additionally operable to receive service processing equipment sends suspend operation request when, refer to Show that described service processing equipment carries out garbage reclamation.
14. 1 kinds of business clusters, comprise load-balancing device and multiple service processing equipment, and its feature exists In, comprising:
Described service processing equipment, for detecting self corresponding Java Virtual Machine JVM running status ginseng Number;If described JVM running state parameter reaches to set threshold value, send temporarily to described load-balancing device Stop service request;Wherein, the described request of suspending operation is for making described load-balancing device suspend to described Service processing equipment sends service request;
Described load-balancing device, for receiving the request of suspending operation that service processing equipment sends, will Described service processing equipment is labeled as down state, and suspending please to described service processing equipment transmission business Ask;When receiving the service request needing to be sent to service processing equipment, described service request is sent Give the service processing equipment being not marked with down state.
CN201510098451.8A 2015-03-05 2015-03-05 A kind of business scheduling method of business cluster, equipment and business cluster Active CN105991750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510098451.8A CN105991750B (en) 2015-03-05 2015-03-05 A kind of business scheduling method of business cluster, equipment and business cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510098451.8A CN105991750B (en) 2015-03-05 2015-03-05 A kind of business scheduling method of business cluster, equipment and business cluster

Publications (2)

Publication Number Publication Date
CN105991750A true CN105991750A (en) 2016-10-05
CN105991750B CN105991750B (en) 2019-06-21

Family

ID=57038341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510098451.8A Active CN105991750B (en) 2015-03-05 2015-03-05 A kind of business scheduling method of business cluster, equipment and business cluster

Country Status (1)

Country Link
CN (1) CN105991750B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291555A (en) * 2017-07-10 2017-10-24 上海斐讯数据通信技术有限公司 A kind of garbage reclamation of Java Virtual Machine, load-balancing method and system
CN108255582A (en) * 2018-01-16 2018-07-06 携程旅游信息技术(上海)有限公司 Method, system, equipment and the storage medium of java virtual machine garbage reclamations
CN110442432A (en) * 2019-08-22 2019-11-12 北京三快在线科技有限公司 Method for processing business, system, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070100919A1 (en) * 2005-11-01 2007-05-03 Electronics And Telecommunications Research Institute Garbage collection unit and method thereof
US20080133212A1 (en) * 2006-09-12 2008-06-05 Infosys Technologies Ltd. Performance evaluation of j2ee applications
CN102307224A (en) * 2011-05-17 2012-01-04 华为软件技术有限公司 Method and device for realizing service isolation in cloud computing system, and cloud server
US20130185337A1 (en) * 2012-01-18 2013-07-18 Cloudera, Inc. Memory allocation buffer for reduction of heap fragmentation
CN103514102A (en) * 2013-10-25 2014-01-15 中国联合网络通信集团有限公司 Memory garbage collecting method and device for Java virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070100919A1 (en) * 2005-11-01 2007-05-03 Electronics And Telecommunications Research Institute Garbage collection unit and method thereof
US20080133212A1 (en) * 2006-09-12 2008-06-05 Infosys Technologies Ltd. Performance evaluation of j2ee applications
CN102307224A (en) * 2011-05-17 2012-01-04 华为软件技术有限公司 Method and device for realizing service isolation in cloud computing system, and cloud server
US20130185337A1 (en) * 2012-01-18 2013-07-18 Cloudera, Inc. Memory allocation buffer for reduction of heap fragmentation
CN103514102A (en) * 2013-10-25 2014-01-15 中国联合网络通信集团有限公司 Memory garbage collecting method and device for Java virtual machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291555A (en) * 2017-07-10 2017-10-24 上海斐讯数据通信技术有限公司 A kind of garbage reclamation of Java Virtual Machine, load-balancing method and system
CN108255582A (en) * 2018-01-16 2018-07-06 携程旅游信息技术(上海)有限公司 Method, system, equipment and the storage medium of java virtual machine garbage reclamations
CN108255582B (en) * 2018-01-16 2021-02-02 携程旅游信息技术(上海)有限公司 Method, system, equipment and storage medium for garbage recovery of java virtual machine
CN110442432A (en) * 2019-08-22 2019-11-12 北京三快在线科技有限公司 Method for processing business, system, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105991750B (en) 2019-06-21

Similar Documents

Publication Publication Date Title
WO2018082709A1 (en) Method for sharing load of mobile edge computing application and controller
CN110380917B (en) Control method and device of federal learning system, terminal equipment and storage medium
CN109155994B (en) User plane resource management method, user plane network element and control plane network element
CN101741912A (en) Method, network apparatus and distributed network system for processing computation task
CN101127766B (en) Message processing method, device and IP communication system based on SIP protocol
CN110958281B (en) Data transmission method and communication device based on Internet of things
CN103853826B (en) A kind of distributed performance data processing method
CN106850834A (en) A kind of service request method and apparatus and load equalizer
CN102611809A (en) Call processing method, call control device, automatic call distribution device and seat terminal
CN104243182A (en) Directional traffic charging method and directional traffic charging system
US9621599B2 (en) Communication system, communication method, and call control server
CN110650503B (en) Network access method, device, system and computer readable storage medium
CN106506701A (en) A kind of server load balancing method and load equalizer
CN108600355A (en) A kind of mist computational load balance dispatching system and method
CN104980472A (en) Network traffic control method and device
CN105991750A (en) Service scheduling method of service cluster, equipment and service cluster
CN105554099A (en) Method and device for balancing load of acquisition servers
CN105407166A (en) Communication implementation method and system for wearable equipment
CN105207856A (en) Load balancing system and method based on SDN virtual switch
CN104320551A (en) Service processing method for call center routing and network equipment
CN104113510A (en) Virtual desktop system and message data transmitting method thereof
CN107548038A (en) Method for processing short messages and device
CN106302432B (en) A kind of communication device and control method based on car networking
CN104065656A (en) Media stream data identification method
CN106878117A (en) A kind of data processing method and device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201010

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201010

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.