CN105610986A - Service scheduling method, load balancing server and service scheduling system - Google Patents

Service scheduling method, load balancing server and service scheduling system Download PDF

Info

Publication number
CN105610986A
CN105610986A CN201610144342.XA CN201610144342A CN105610986A CN 105610986 A CN105610986 A CN 105610986A CN 201610144342 A CN201610144342 A CN 201610144342A CN 105610986 A CN105610986 A CN 105610986A
Authority
CN
China
Prior art keywords
server
service
standby
service request
master server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610144342.XA
Other languages
Chinese (zh)
Inventor
李大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201610144342.XA priority Critical patent/CN105610986A/en
Publication of CN105610986A publication Critical patent/CN105610986A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a service scheduling method, a load balancing server and a service scheduling system; a standby server corresponding to a master server is created preliminarily, wherein a standby program included in the standby server is identical to a master program included in the master server; the load balancing server is created; the method is applied to the load balancing server; and the method comprises the following steps: obtaining a service request sent by a user side; judging a service state of the master server; when the service state of the master server includes a service pausing function, sending the service request to the standby server so that the standby server responds to the service request; and when the service state of the master server includes a service opening function, sending the service request to the master server so that the master server responds to the service request. According to the scheme disclosed by the invention, the master server can be guaranteed to still provide the service for a user in the process of service update; and thus, the user experience is improved.

Description

A kind of service scheduling method, load-balanced server and service dispatch system
Technical field
The present invention relates to field of computer technology, particularly a kind of service scheduling method, load balancing clothesBusiness device and service dispatch system.
Background technology
Along with the development of Internet technology and cloud computing technology, the function that publicly-owned cloud service can provideService is also more and more.
In prior art, publicly-owned cloud service can provide function services for user by a station server,When user has other demands to the function services providing, publicly-owned cloud service suspends the function clothes of this station serverBusiness, and according to user's request, this station server is upgraded, and after being updated successfully, reopenThis station server, continues as user function services is provided.
But in the ordinary course of things, the frequency that function services is upgraded in publicly-owned cloud service is very high, it is upgradingIn the process of function services, cannot provide corresponding function services for user, experience thereby affect user.
Summary of the invention
The embodiment of the present invention provides a kind of service scheduling method, load-balanced server and service dispatch systemSystem, provides service can continue as user in the process that ensures to upgrade in service.
First aspect, the embodiment of the present invention provides a kind of service scheduling method, is pre-created and main serviceThe corresponding standby server of device, wherein, in standby program and described master server that described standby server comprisesThe main program comprising is identical, creates load-balanced server, and described method is applied to described load balancing clothesBusiness device, comprising:
Obtain the service request that user side sends;
Judge the service state of described master server;
In the time that the service state of described master server comprises function out of service, described service request is sentGive described standby server, so that described standby server responds described service request;
In the time that the service state of described master server comprises unlatching service function, described service request is sentGive described master server, so that described master server responds described service request.
Preferably, described described service request is sent to described standby server after, further comprise:
Monitor the service state of described master server, in the service state that monitors described master server by temporarilyStopping service function and switch to while opening service function, is described master server by described standby Server switching,So that described master server responds described service request.
Preferably, further comprise:
Instruction is upgraded in the service of obtaining;
Described service is upgraded to instruction and send to described standby server, so that described in described standby server basisService is upgraded instruction described standby program is upgraded;
Receive the notice being updated successfully that described standby server returns;
Described service is upgraded to instruction and send described master server, so that described master server is according to described clothesBusiness is upgraded instruction self service state is revised as to function out of service, and described main program is upgraded,And in the time being updated successfully, self service state is revised as to unlatching service function;
And/or,
In the number of the service request getting while being multiple, described described service request is sent to described inStandby server, comprising: determine the number of free area included in described standby server, and according to obtainingThe number of the service request arriving, distributes to each free time in described standby server by the plurality of service requestDistrict;
In the number of the service request getting while being multiple, described described service request is sent to described inMaster server, comprising: determine the number of free area included in described master server, and according to obtainingThe number of the service request arriving, distributes to each free time in described master server by the plurality of service requestDistrict.
Second aspect, the embodiment of the present invention provides a kind of load-balanced server, comprising:
Acquiring unit, the service request sending for obtaining user side, and get the clothes that user side sendsWhen business request, trigger judging unit and carry out corresponding operating;
Described judging unit, for according to the triggering of described acquiring unit, judges the clothes of described master serverBusiness state; In the time that the service state of described master server comprises function out of service, trigger first and send listUnit carries out corresponding operating; Comprise and opening when service function in the service state of described master server, trigger theTwo transmitting elements are carried out corresponding operating;
Described the first transmitting element, for described service request being sent to described standby server, so that instituteState standby server and respond described service request;
Described the second transmitting element, for described service request is sent to described master server, so that instituteState master server and respond described service request.
Preferably, further comprise:
Monitoring unit, for monitoring the service state of described master server, is monitoring described master serverService state switch to and open when service function by function out of service, trigger switch unit and carry out correspondingOperation;
Described switch unit, for being institute according to the triggering of described monitoring unit by described standby Server switchingState master server, so that described master server responds described service request.
Preferably, described acquiring unit, instruction is upgraded in the service that is further used for obtaining, and gettingThe service of stating triggers the 3rd transmitting element while upgrading instruction and carries out corresponding operating;
Further comprise: described the 3rd transmitting element, described in described service renewal instruction is sent toStandby server, upgrades described standby program so that described standby server upgrades instruction according to described service;
Further comprise: receiving element, the notice being updated successfully of returning for receiving described standby server,And this notice is exported to the 4th transmitting element;
Described the 4th transmitting element, sends described master server for described service is upgraded to instruction, so thatDescribed master server upgrades instruction according to described service self service state is revised as to function out of service,And described main program is upgraded, and self service state is revised as to the service of unlatching in the time being updated successfullyFunction;
And/or,
In the number of the service request getting while being multiple, described the first transmitting element, specifically for reallyThe number of included free area in fixed described standby server, and according to the number of the service request getting,The plurality of service request is distributed to each free area in described standby server;
In the number of the service request getting while being multiple, described the second transmitting element, specifically for reallyThe number of included free area in fixed described master server, and according to the number of the service request getting,The plurality of service request is distributed to each free area in described master server.
The third aspect, the embodiment of the present invention also provides a kind of service dispatch system, comprising: above-mentioned arbitraryDescribed load-balanced server and master server, standby server; Wherein,
Described master server, the service request sending for receiving described load-balanced server, and responseDescribed service request;
Described standby server, the service request sending for receiving described load-balanced server, and responseDescribed service request.
Preferably, described master server and described standby server are same station server;
Described main program is positioned at different file territories from described standby program;
Described load-balanced server is by using different ports to access respectively described main program and described standbyProgram.
Preferably, described master server and described standby server are different server;
Described load-balanced server is by using the same port of described master server and described standby serverAccess respectively described main program and described standby program.
Preferably, described master server and described standby server are different server;
Described load-balanced server is by using the end that described master server is not identical with described standby serverMouth is accessed respectively described main program and described standby program.
The embodiment of the present invention provides a kind of service scheduling method, load-balanced server and service dispatch systemSystem, serves the corresponding standby server of equalization server and establishment and master server by establishment, to ensureThe main program that in standby server, included standby program comprises with master server is identical, when load balancing clothesBusiness device is determined when the service state of master server is function out of service, shows that now master server entersRow service is upgraded, and therefore, this service request can be dispatched to standby server, thereby be come by standby serverRespond this service request, thereby can ensure to serve in the process of upgrading at master server, still canFor user provides service, thereby improve user's experience.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to realityThe accompanying drawing of executing required use in example or description of the Prior Art is briefly described, apparently, belowAccompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, notPay under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of method flow diagram that one embodiment of the invention provides;
Fig. 2 is a kind of load-balanced server structure chart that one embodiment of the invention provides;
Fig. 3 is the another kind of load-balanced server structure chart that one embodiment of the invention provides;
Fig. 4 is another load-balanced server structure chart that one embodiment of the invention provides;
Fig. 5 is another load-balanced server structure chart that one embodiment of the invention provides;
Fig. 6 is a kind of service dispatch system construction drawing that one embodiment of the invention provides;
Fig. 7 is the another kind of method flow diagram that one embodiment of the invention provides.
Detailed description of the invention
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with thisAccompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,Obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment, based onEmbodiment in the present invention, those of ordinary skill in the art are institute under the prerequisite of not making creative workThe every other embodiment obtaining, belongs to the scope of protection of the invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of service scheduling method, is pre-created and main clothesThe corresponding standby server of business device, wherein, standby program and described master server that described standby server comprisesThe main program comprising is identical, creates load-balanced server, and described method is applied to described load balancingServer, the method can comprise the following steps:
Step 101: obtain the service request that user side sends;
Step 102: the service state that judges described master server; In the service state of described master serverWhile comprising function out of service, execution step 103; Service state at described master server comprises unlatchingWhen service function, execution step 104;
Step 103: described service request is sent to described standby server, so that described standby server ringsAnswer described service request;
Step 104: described service request is sent to described master server, so that described master server ringsShould described service request.
The scheme providing according to above-described embodiment, serves equalization server and establishment and main clothes by establishmentThe corresponding standby server of business device, to ensure that in standby server, included standby program and master server comprisesMain program identical, determining the service state of master server when load-balanced server is function out of serviceTime, show that now master server is being served renewal, therefore, this service request can be dispatched toStandby server, thus this service request responded by standby server, thus can ensure to enter at master serverIn the process that row service is upgraded, still can be for user provides service, thus improve user's experience.
In one embodiment of the invention, because standby server is used for realizing standby operation, only have and work asWhen master server upgrades in service, just can need standby server to take for user side provides corresponding functionBusiness, therefore, is the process that user side provides corresponding function to serve at standby server, may further include:Monitor the service state of described master server, in the service state that monitors described master server by suspending clothesBusiness function switches to while opening service function, is described master server by described standby Server switching, so thatDescribed master server responds described service request. Thereby can utilize the more stable master server of function servicesFor user side provides corresponding function service.
In one embodiment of the invention, upgrade in order to realize service in master server, can utilize asLower a kind of mode realizes:
Further comprise:
Instruction is upgraded in the service of obtaining;
Described service is upgraded to instruction and send to described standby server, so that described in described standby server basisService is upgraded instruction described standby program is upgraded;
Receive the notice being updated successfully that described standby server returns;
Described service is upgraded to instruction and send described master server, so that described master server is according to described clothesBusiness is upgraded instruction self service state is revised as to function out of service, and described main program is upgraded,And in the time being updated successfully, self service state is revised as to unlatching service function.
In above-mentioned implementation, in the time that needs are realized service and are upgraded, can be first standby by standby serverProgram is upgraded, after standby program updates finishes the main program in master server is upgraded.
In another kind of implementation, in the time that needs are realized service and are upgraded, can be first will be from by master serverBody status modifier is function out of service, then upgrades main program, upgrading in the process of main program, negativeCarry equalization server and this service request can be dispatched to standby server, responding this service by standby server pleaseAsk, after main program is updated successfully, then upgrade standby program.
In one embodiment of the invention, this load-balanced server not only can be realized the tune of service requestDegree, also can be achieved as follows load balancing, thereby can improve the efficiency of service dispatch:
In the number of the service request getting while being multiple, described described service request is sent to described inStandby server, comprising: determine the number of free area included in described standby server, and according to obtainingThe number of the service request arriving, distributes to each free time in described standby server by the plurality of service requestDistrict;
In the number of the service request getting while being multiple, described described service request is sent to described inMaster server, comprising: determine the number of free area included in described master server, and according to obtainingThe number of the service request arriving, distributes to each free time in described master server by the plurality of service requestDistrict.
Please refer to Fig. 2, the embodiment of the present invention also provides a kind of load-balanced server, this load balancingServer can comprise:
Acquiring unit 201, the service request sending for obtaining user side, and get user side transmissionService request time trigger judging unit 202 and carry out corresponding operating;
Described judging unit 202, for according to the triggering of described acquiring unit 201, judges described main clothesThe service state of business device; In the time that the service state of described master server comprises function out of service, trigger theOne transmitting element 203 is carried out corresponding operating; Comprise and open service merit in the service state of described master serverWhen energy, trigger the second transmitting element 204 and carry out corresponding operating;
Described the first transmitting element 203, for described service request being sent to described standby server, withMake described standby server respond described service request;
Described the second transmitting element 204, for described service request is sent to described master server, withMake described master server respond described service request.
In one embodiment of the invention, please refer to Fig. 3, this load-balanced server can further wrapDraw together:
Monitoring unit 301, for monitoring the service state of described master server, is monitoring described main clothesWhen the service state of business device switches to unlatching service function by function out of service, trigger switch unit 302Carry out corresponding operating;
Described switch unit 302, for according to the triggering of described monitoring unit 301 by described standby serverSwitch to described master server, so that described master server responds described service request.
In one embodiment of the invention, described acquiring unit 201, can be further used for the service of obtainingUpgrade instruction, and in the time getting described service renewal instruction, trigger the 3rd transmitting element 401 and carry out correspondingOperation;
In one embodiment of the invention, please refer to Fig. 4, this load-balanced server can further wrapDraw together:
Described the 3rd transmitting element 401, sends to described standby server for described service being upgraded to instruction,So that described standby server upgrades instruction according to described service, described standby program is upgraded;
Receiving element 402, the notice being updated successfully of returning for receiving described standby server, and shouldNotice is exported to the 4th transmitting element 403;
Described the 4th transmitting element 403, sends described master server for described service is upgraded to instruction,So that described master server upgrades instruction according to described service, self service state is revised as to merit out of serviceCan, and described main program is upgraded, and in the time being updated successfully, self service state is revised as to unlatchingService function.
In one embodiment of the invention, please refer to Fig. 5, this load-balanced server can further wrapDraw together:
Described the 3rd transmitting element 501, sends to described standby server for described service being upgraded to instruction,So that described standby server upgrades instruction according to described service, described standby program is upgraded;
Receiving element 502, the notice being updated successfully of returning for receiving described standby server, and shouldNotice is exported to the 4th transmitting element 503;
Described the 4th transmitting element 503, sends described master server for described service is upgraded to instruction,So that described master server upgrades instruction according to described service, self service state is revised as to merit out of serviceCan, and described main program is upgraded, and in the time being updated successfully, self service state is revised as to unlatchingService function.
In one embodiment of the invention, in the number of the service request getting while being multiple, describedOne transmitting element 203, specifically for determining the number of free area included in described standby server, andAccording to the number of the service request getting, the plurality of service request is distributed in described standby serverEach free area;
In one embodiment of the invention, in the number of the service request getting while being multiple, describedTwo transmitting elements 204, specifically for determining the number of free area included in described master server, andAccording to the number of the service request getting, the plurality of service request is distributed in described master serverEach free area.
Please refer to Fig. 6, the embodiment of the present invention also provides a kind of service dispatch system, comprising: above-mentioned realityExecute in example arbitrary described load-balanced server 60 and master server 70, standby server 80; Wherein,
Described master server 70, the service request sending for receiving described load-balanced server 60,And respond described service request;
Described standby server 80, the service request sending for receiving described load-balanced server 60,And respond described service request.
In one embodiment of the invention, described master server 70 and described standby server 80 are sameServer;
Described main program is positioned at different file territories from described standby program;
Described load-balanced server 60 is by using different ports to access respectively described main program and instituteState standby program.
In one embodiment of the invention, described master server 70 and described standby server 80 are different clothesBusiness device;
Described load-balanced server 60 is by using described master server and described identical for serverPort is accessed respectively described main program and described standby program.
In one embodiment of the invention, described master server 70 and described standby server 80 are different clothesBusiness device;
Described load-balanced server 60 is by using described master server not identical with described standby serverPort access respectively described main program and described standby program.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing and specifically realThe present invention is described in further detail to execute example.
As shown in Figure 7, the embodiment of the present invention provides a kind of service update method, and the method can compriseFollowing steps:
Step 701: using corresponding publicly-owned cloud service server as master server, and establishment and main clothesThe corresponding standby server of business device. Wherein, this standby program and master server comprising for server comprisesMain program identical.
In the present embodiment, to serve in the process of upgrading in order realizing at master server, still canFor user side provides function services, can create and the corresponding standby server of this master server, wherein, shouldStandby server only, when master server is served renewal, just can use.
In order to ensure that standby server and master server can provide identical function services for user side, therefore,Need to be by identical with main program in master server the standby program in standby server.
In one embodiment of the invention, the relation of this master server and standby server can be divided into following twoThe relation of kind:
Be related to A: master server is same station server with standby server.
Under this is related to A, when ensureing that main program upgrades, not affecting standby program provides merit for user sideCan service, and ensure that standby program is in the time upgrading, not affecting main program provides function services for user side,Need to, by main program and standby program isolated storage, store different files by this main program into from standby programIn territory.
Under this is related to A, need to configure different port to access respectively the standby program of main program and access, exampleAs, 8000 ports that configure this server visit main program, and 8001 ports that configure this server comeThe standby program of access.
Be related to B: master server and standby server are different server.
Under this is related to B, because master server and standby server are different server, therefore, main programRealize isolated storage with standby program.
Under this is related to B, can configures same port and access respectively main program and the standby program of access. ExampleAs, 8000 ports of configuration master server visit the main program in master server, the standby server of configuration8000 ports visit the standby program in standby server.
Under this is related to B, also can configures different port and access respectively main program and the standby program of access.For example, 8000 ports of configuration master server visit the main program in master server, the standby server of configuration8001 ports visit the standby program in standby server.
Below taking master server with standby server as same station server, it is right respectively that configuration different port is realizedA kind of code form of the access of main program and standby program:
Step 702: create load-balanced server.
In the present embodiment, this load-balanced server can use Nginx (enginex) service and NginxBackup attribute is as backup technique.
Wherein, this load-balanced server for and master server, standby server between carry out data interaction,To realize the scheduling to service request and service renewal instruction.
Step 703: when load-balanced server upgrades instruction in the service of obtaining, execution step 704, is obtainingWhile getting the service request of user side transmission, execution step 709.
Step 704: load-balanced server upgrades instruction by this service and sends to standby server.
Step 705: standby server upgrades instruction according to this service standby program is upgraded, and is upgradingThe backward load-balanced server of success returns to the notice being updated successfully.
Step 706: load-balanced server is notified it being updated successfully of receiving that standby server returnsAfter, this service is upgraded to instruction and send master server.
Step 707: master server is receiving after this service upgrades instruction, by self service state byOpen service function and be revised as function out of service, and upgrade instruction according to this service main program is carried out moreNewly.
Step 708: master server is repaiied self service state after being updated successfully by function out of serviceChange unlatching service function into, and send to load-balanced server the notice being updated successfully.
Step 709: load-balanced server judges the service state of master server; At described master serverService state while comprising function out of service, execution step 710; At the service shape of described master serverState comprises while opening service function, execution step 712.
In one embodiment of the invention, load-balanced server can by and master server between keepThe service state of master server is determined in the transmission of heartbeat message and response.
Step 710: described service request is sent to described standby server, described in standby server responseService request.
Step 711: monitor the service state of described master server, monitoring the clothes of described master serverBusiness state is switched to and is opened when service function by function out of service, will describedly for Server switching be described inMaster server, so that described master server responds described service request.
Step 712: described service request is sent to described master server, so that described master server ringsShould described service request.
In one embodiment of the invention, above-mentioned steps 703-712 can be by the generation of following a kind of formCode is realized:
In sum, the embodiment of the present invention at least can be achieved as follows beneficial effect:
1, in embodiments of the present invention, serve equalization server and establishment and master server phase by establishmentThe standby server of answering, with the main journey that ensures that standby program included in standby server and master server compriseOrder is identical, in the time that load-balanced server determines that the service state of master server is function out of service, and tableBright now master server is being served renewal, therefore, this service request can be dispatched to standby serviceDevice, thus this service request responded by standby server, thus can ensure to serve at master serverIn the process of upgrading, still can be for user provides service, thus improve user's experience.
2, in embodiments of the present invention, monitor the service state of described master server, monitoring described masterWhen the service state of server switches to unlatching service function by function out of service, by described standby serverSwitch to described master server, so that described master server responds described service request. Thereby can utilizeThe more stable master server of function services provides corresponding function service for user side.
3, in embodiments of the present invention, in the number of the service request getting while being multiple, by determiningFor user side provides the number of free area included in the server of service, and according to the service gettingThe number of request, distributes to each free area in this server by the plurality of service request, thereby canRealize load balancing, improve the efficiency of service dispatch.
4, in embodiments of the present invention, by using, main program and standby program are stored in to same station serverIn, use different ports to realize the access to main program, standby program, thereby can reduce service dispatchCost.
The content such as information interaction, implementation between each unit in said apparatus, due to the present inventionEmbodiment of the method is based on same design, and particular content can be referring to the narration in the inventive method embodiment, thisPlace repeats no more.
It should be noted that, in this article, the relational terms such as first and second be only used for byEntity or operation and another entity or operating space separate, and not necessarily require or imply thisBetween a little entities or operation, there is relation or the order of any this reality. And term " comprises "," comprise " or its any other variant is intended to contain comprising of nonexcludability, thereby make to comprise that one isProcess, method, article or the equipment of row key element not only comprise those key elements, but also comprise do not have brightOther key elements of really listing, or it is intrinsic to be also included as this process, method, article or equipment instituteKey element. In the situation that there is no more restrictions, " comprise one " by statement and limitKey element, and be not precluded within process, method, article or the equipment that comprises described key element also exist anotherOuter same factor.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodimentCan complete by the relevant hardware of programmed instruction, aforesaid program can be stored in embodied on computer readableStorage medium in, this program, in the time carrying out, is carried out and is comprised the step of said method embodiment; And it is aforementionedStorage medium comprise: various Jie that can be program code stored such as ROM, RAM, magnetic disc or CDIn matter.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for this is describedThe technical scheme of invention, is not intended to limit protection scope of the present invention. All in spirit of the present invention and formerAny amendment of making, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a service scheduling method, is characterized in that, is pre-created and the corresponding standby service of master serverDevice, wherein, the main program phase that the standby program that described standby server comprises and described master server compriseWith, creating load-balanced server, described method is applied to described load-balanced server, comprising:
Obtain the service request that user side sends;
Judge the service state of described master server;
In the time that the service state of described master server comprises function out of service, described service request is sentGive described standby server, so that described standby server responds described service request;
In the time that the service state of described master server comprises unlatching service function, described service request is sentGive described master server, so that described master server responds described service request.
2. method according to claim 1, is characterized in that, described, described service request is sent outAfter giving described standby server, further comprise:
Monitor the service state of described master server, in the service state that monitors described master server by temporarilyStopping service function and switch to while opening service function, is described master server by described standby Server switching,So that described master server responds described service request.
3. method according to claim 1 and 2, is characterized in that,
Further comprise:
Instruction is upgraded in the service of obtaining;
Described service is upgraded to instruction and send to described standby server, so that described in described standby server basisService is upgraded instruction described standby program is upgraded;
Receive the notice being updated successfully that described standby server returns;
Described service is upgraded to instruction and send described master server, so that described master server is according to described clothesBusiness is upgraded instruction self service state is revised as to function out of service, and described main program is upgraded,And in the time being updated successfully, self service state is revised as to unlatching service function;
And/or,
In the number of the service request getting while being multiple, described described service request is sent to described inStandby server, comprising: determine the number of free area included in described standby server, and according to obtainingThe number of the service request arriving, distributes to each free time in described standby server by the plurality of service requestDistrict;
In the number of the service request getting while being multiple, described described service request is sent to described inMaster server, comprising: determine the number of free area included in described master server, and according to obtainingThe number of the service request arriving, distributes to each free time in described master server by the plurality of service requestDistrict.
4. a load-balanced server, is characterized in that, comprising:
Acquiring unit, the service request sending for obtaining user side, and get the clothes that user side sendsWhen business request, trigger judging unit and carry out corresponding operating;
Described judging unit, for according to the triggering of described acquiring unit, judges the clothes of described master serverBusiness state; In the time that the service state of described master server comprises function out of service, trigger first and send listUnit carries out corresponding operating; Comprise and opening when service function in the service state of described master server, trigger theTwo transmitting elements are carried out corresponding operating;
Described the first transmitting element, for described service request being sent to described standby server, so that instituteState standby server and respond described service request;
Described the second transmitting element, for described service request is sent to described master server, so that instituteState master server and respond described service request.
5. load-balanced server according to claim 4, is characterized in that, further comprises:
Monitoring unit, for monitoring the service state of described master server, is monitoring described master serverService state switch to and open when service function by function out of service, trigger switch unit and carry out correspondingOperation;
Described switch unit, for being institute according to the triggering of described monitoring unit by described standby Server switchingState master server, so that described master server responds described service request.
6. according to the load-balanced server described in claim 4 or 5, it is characterized in that,
Described acquiring unit, instruction is upgraded in the service that is further used for obtaining, and is getting described service moreWhen new instruction, trigger the 3rd transmitting element and carry out corresponding operating;
Further comprise: described the 3rd transmitting element, described in described service renewal instruction is sent toStandby server, upgrades described standby program so that described standby server upgrades instruction according to described service;
Further comprise: receiving element, the notice being updated successfully of returning for receiving described standby server,And this notice is exported to the 4th transmitting element;
Described the 4th transmitting element, sends described master server for described service is upgraded to instruction, so thatDescribed master server upgrades instruction according to described service self service state is revised as to function out of service,And described main program is upgraded, and self service state is revised as to the service of unlatching in the time being updated successfullyFunction;
And/or,
In the number of the service request getting while being multiple, described the first transmitting element, specifically for reallyThe number of included free area in fixed described standby server, and according to the number of the service request getting,The plurality of service request is distributed to each free area in described standby server;
In the number of the service request getting while being multiple, described the second transmitting element, specifically for reallyThe number of included free area in fixed described master server, and according to the number of the service request getting,The plurality of service request is distributed to each free area in described master server.
7. a service dispatch system, is characterized in that, comprising: arbitrary institute in the claims 4-6The load-balanced server of stating and master server, standby server; Wherein,
Described master server, the service request sending for receiving described load-balanced server, and responseDescribed service request;
Described standby server, the service request sending for receiving described load-balanced server, and responseDescribed service request.
8. service dispatch system according to claim 7, is characterized in that,
Described master server and described standby server are same station server;
Described main program is positioned at different file territories from described standby program;
Described load-balanced server is by using different ports to access respectively described main program and described standbyProgram.
9. service dispatch system according to claim 7, is characterized in that,
Described master server and described standby server are different server;
Described load-balanced server is by using the same port of described master server and described standby serverAccess respectively described main program and described standby program.
10. service dispatch system according to claim 7, is characterized in that,
Described master server and described standby server are different server;
Described load-balanced server is by using the end that described master server is not identical with described standby serverMouth is accessed respectively described main program and described standby program.
CN201610144342.XA 2016-03-14 2016-03-14 Service scheduling method, load balancing server and service scheduling system Pending CN105610986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610144342.XA CN105610986A (en) 2016-03-14 2016-03-14 Service scheduling method, load balancing server and service scheduling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610144342.XA CN105610986A (en) 2016-03-14 2016-03-14 Service scheduling method, load balancing server and service scheduling system

Publications (1)

Publication Number Publication Date
CN105610986A true CN105610986A (en) 2016-05-25

Family

ID=55990520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610144342.XA Pending CN105610986A (en) 2016-03-14 2016-03-14 Service scheduling method, load balancing server and service scheduling system

Country Status (1)

Country Link
CN (1) CN105610986A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060088A (en) * 2016-07-26 2016-10-26 杭州华三通信技术有限公司 Service management method and device
CN106452871A (en) * 2016-10-13 2017-02-22 安徽鼎集信息科技有限公司 High-availability disaster recovery system
CN107819825A (en) * 2017-10-11 2018-03-20 深圳市买买提乐购金融服务有限公司 A kind of service scheduling method, device and electronic equipment
CN108243150A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of difunctional processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215266A (en) * 2011-06-20 2011-10-12 中兴通讯股份有限公司 Implementation method of persistency services and persistency service system
CN103024058A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Method and system for invoking web services
CN103812945A (en) * 2014-02-26 2014-05-21 可牛网络技术(北京)有限公司 Method for upgrading data and central server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215266A (en) * 2011-06-20 2011-10-12 中兴通讯股份有限公司 Implementation method of persistency services and persistency service system
CN103024058A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Method and system for invoking web services
CN103812945A (en) * 2014-02-26 2014-05-21 可牛网络技术(北京)有限公司 Method for upgrading data and central server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060088A (en) * 2016-07-26 2016-10-26 杭州华三通信技术有限公司 Service management method and device
CN106060088B (en) * 2016-07-26 2020-11-06 新华三技术有限公司 Service management method and device
CN106452871A (en) * 2016-10-13 2017-02-22 安徽鼎集信息科技有限公司 High-availability disaster recovery system
CN108243150A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of difunctional processor
CN108243150B (en) * 2016-12-23 2022-03-18 中科星图股份有限公司 Dual-function processor
CN107819825A (en) * 2017-10-11 2018-03-20 深圳市买买提乐购金融服务有限公司 A kind of service scheduling method, device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107426034B (en) Large-scale container scheduling system and method based on cloud platform
CN112099918B (en) Live migration of clusters in a containerized environment
WO2021017301A1 (en) Management method and apparatus based on kubernetes cluster, and computer-readable storage medium
US9967136B2 (en) System and method for policy-based smart placement for network function virtualization
US10292044B2 (en) Apparatus for end-user transparent utilization of computational, storage, and network capacity of mobile devices, and associated methods
US20190363934A1 (en) Network operation support system and network device management method
EP3447965B1 (en) Network function instance management method and relevant device
CN108431796A (en) Distributed resource management system and method
CN102937911B (en) The management method and system of resources of virtual machine
CN110795503A (en) Multi-cluster data synchronization method and related device of distributed storage system
CN105610986A (en) Service scheduling method, load balancing server and service scheduling system
CN113783922A (en) Load balancing method, system and device
KR101430649B1 (en) System and method for providing data analysis service in cloud environment
US8606908B2 (en) Wake-up server
CN112291224B (en) Interaction method and device for real-time communication and electronic equipment
CN112953982B (en) Service processing method, service configuration method and related device
CN106911741B (en) Method for balancing virtual network management file downloading load and network management server
US11099827B2 (en) Networking-device-based hyper-coverged infrastructure edge controller system
US12035156B2 (en) Communication method and apparatus for plurality of administrative domains
CN113791799A (en) System upgrading method and device, computer readable storage medium and electronic equipment
CN114579250A (en) Method, device and storage medium for constructing virtual cluster
CN111078348A (en) Interface management method, device, equipment and storage medium
CN116155978A (en) Multi-registry adaptation method, device, electronic equipment and storage medium
CN114615268B (en) Service network, monitoring node, container node and equipment based on Kubernetes cluster
CN109445966A (en) Event-handling method, device, medium and calculating equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160525

WD01 Invention patent application deemed withdrawn after publication