CN107635010A - Traffic scheduling method, device, computer-readable recording medium and electronic equipment - Google Patents
Traffic scheduling method, device, computer-readable recording medium and electronic equipment Download PDFInfo
- Publication number
- CN107635010A CN107635010A CN201710953261.9A CN201710953261A CN107635010A CN 107635010 A CN107635010 A CN 107635010A CN 201710953261 A CN201710953261 A CN 201710953261A CN 107635010 A CN107635010 A CN 107635010A
- Authority
- CN
- China
- Prior art keywords
- computer room
- flow
- user
- computer
- client
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000002159 abnormal effect Effects 0.000 claims abstract description 24
- 238000013507 mapping Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 4
- 235000014510 cooky Nutrition 0.000 description 18
- 230000008859 change Effects 0.000 description 11
- 238000003860 storage Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011065 in-situ storage Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Embodiments of the present invention provide a kind of traffic scheduling method, flow scheduling device, computer-readable recording medium and electronic equipment, are related to big data technical field, and this method includes:It is identified according to user request of the field identification of multiple computer rooms to a client, and determines the computer room that the client accesses first;The field identification in all user's requests of the client is parsed, and each user's request dynamic is sent to corresponding computer room rear end;When abnormal conditions occurs in the application state for detecting the computer room rear end, Automatic dispatching is carried out to the flow of the computer room by front end inlet.It the method increase the efficiency of flow scheduling.
Description
Technical field
Embodiments of the present invention are related to big data technical field, more specifically, embodiments of the present invention are related to flow
Dispatching method, flow scheduling device, computer-readable recording medium and electronic equipment.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein
Description recognizes it is prior art not because not being included in this part.
With the development of big data, carry out financial service, electric business platform or be the user base numbers such as game application it is big,
It when the high website of availability requirement is disposed, can typically be required to do the deployment of more computer rooms, be influenceed with avoiding unit room from breaking down
The problem of network reliability.
In correlation technique, when carrying out more computer room deployment, because special line bandwidth is limited between more computer rooms, in order to save cost
The process that the core data such as database synchronization, core cache system synchronization transmits often only is ensured, other data are tried one's best
Local computer room treatment in situ solves.Multiple web portals will be disposed in multiple computer rooms in terms of business, then pass through DNS
View mechanism in (Domain Name System, domain name system) does depth recognition analysis to user sources, and then which is determined
Which computer room entrance is a little user sources access.
The content of the invention
In existing scheme, rely on dns resolution system of users source and be identified, and the change of dns resolution system is given birth to
Effect is all slowly, therefore have impact on the flow switch efficiency between computer room, and flow switch is less efficient to cause
During quick dilatation switching, the situation of the temporarily unavailable change of computer room, Consumer's Experience is poor;On the one hand, the machine that user specifically accesses
Room entrance relies on dns resolution change, for many systems do not done across the logging status synchronization of computer room in correlation technique
Speech, can not solve the network of client from data switch to WiFi when computer room entrance change, so as to cause the login shape of user
State is lost, and reliability is poor.Therefore in the prior art, it is unusual troublesome quickly and efficiently to carry out across computer room flow scheduling
Process.
Therefore, be highly desirable to a kind of improved traffic scheduling method, enable to efficiently and reliably to different computer rooms it
Between flow be scheduled.
In the present context, embodiments of the present invention it is expected to provide a kind of traffic scheduling method, flow scheduling device, meter
Calculation machine readable storage medium storing program for executing and electronic equipment.
In the first aspect of embodiment of the present invention, there is provided a kind of traffic scheduling method, including:
It is identified according to user request of the field identification of multiple computer rooms to a client, and determines that the client is first
The computer room of secondary access;
The field identification in all user's requests of the client is parsed, and each user's request dynamic is sent out
Computer room rear end corresponding to delivering to;
When abnormal conditions occurs in the application state for detecting the computer room rear end, by front end inlet to the computer room
Flow carries out Automatic dispatching.
In one embodiment of the invention, the flow progress Automatic dispatching of the computer room is included:
The field identification in being asked according to the user is scheduled to the flow of the computer room.
In yet another embodiment of the present invention, carrying out Automatic dispatching to flow corresponding to the computer room also includes:
The flow of the computer room is scheduled according to logic of propositions according to the application state of the computer room rear end.
In one embodiment of the invention, according to the application state of the computer room rear end to the flow of the computer room according to
Logic of propositions be scheduled including:
When abnormal conditions occurs in application state in the first computer room rear end, the front end for only retaining first computer room enters
Mouthful;
When the client has access to the front end inlet of first computer room, ignore the word of the client
The flow is simultaneously imported the second computer room by flow scheduling information in segment identification;
The front end inlet of second computer room stops the flow scheduling to the rear end of first computer room.
In one embodiment of the invention, the field identification in being asked according to the user enters to the flow of the computer room
Row scheduling includes:
The mapping between the field identification and each computer room backend application cluster in being asked according to the user is closed
System, is scheduled to the flow of the computer room according to logic of propositions.
In one embodiment of the invention, determine that the computer room that the client accesses first includes:
Asked by user described in dns resolution, and described in the attribute field determination in user request return value
The computer room that client accesses first.
In one embodiment of the invention, the field identification is set by Website page JavaScript or using journey
Sequence backstage is set.
In the second aspect of embodiment of the present invention, there is provided a kind of flow scheduling device, including:
Traffic identification module, it is identified for user request of the field identification according to multiple computer rooms to a client,
And determine the computer room that the client accesses first;
Request sending module, the preset field in all user's requests for parsing the client, and will be each
User's request dynamic is sent to different computer room rear ends;
Automatic dispatching module, during for abnormal conditions occur in the application state for detecting the computer room rear end, pass through institute
The front end inlet for stating computer room carries out Automatic dispatching to the flow of the computer room.
In one embodiment of the invention, the Automatic dispatching module includes:
First scheduler module, the flow of the computer room is carried out for the field identification in being asked according to the user
Scheduling.
In yet another embodiment of the present invention, the Automatic dispatching module also includes:
Second scheduler module, the flow of the computer room is patrolled according to default for the application state according to the computer room rear end
Collect and be scheduled.
In one embodiment of the invention, second scheduler module includes:
Entrance reservation module, when there are abnormal conditions for the application state in the first computer room rear end, only retain described
The front end inlet of one computer room;
Second dispatching control module, during the front end inlet for having access to first computer room in the client,
Ignore the flow scheduling information in the field identification of the client and the flow is imported into the second computer room;
Stopping modular is dispatched, the front end inlet for second computer room stops the flow scheduling to described the
The rear end of one computer room.
In one embodiment of the invention, first scheduler module includes:
First dispatching control module, for the field identification in being asked according to the user and each computer room rear end
Mapping relations between application cluster, the flow of the computer room is scheduled according to logic of propositions.
In one embodiment of the invention, the traffic identification module includes:
Flow parsing module, asked for being asked by user described in dns resolution, and according to the user in return value
Attribute field determines the computer room that the client accesses first.
In one embodiment of the invention, the field identification is set by Website page JavaScript or using journey
Sequence backstage is set.
In the third aspect of embodiment of the present invention, there is provided a kind of computer-readable recording medium, be stored thereon with
Computer program, the traffic scheduling method according to above-mentioned first aspect is realized when described program is executed by processor.
In the fourth aspect of embodiment of the present invention, there is provided a kind of electronic equipment, including:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to perform the flow of above-mentioned first aspect tune via the executable instruction is performed
Degree method.
According to the traffic scheduling method of embodiment of the present invention and flow scheduling device, first according to the field of multiple computer rooms
Mark determines the computer room that the client accesses first;Parse default in all user's requests of the client
Field, and each user's request dynamic is sent to different computer room rear ends;Detecting the application shape of the computer room rear end
When abnormal conditions occurs in state, Automatic dispatching is carried out to the flow of the computer room by the front end inlet of the computer room.On the one hand, lead to
Cross and the computer room that the client accesses first is determined according to the field identification of multiple computer rooms, avoid in correlation technique and rely on
Domain name mapping carries out flow identification, and then improves flow switch efficiency;On the other hand, answering for the computer room rear end is being detected
When there are abnormal conditions with state, Automatic dispatching is carried out to the flow of the computer room by the front end inlet of the computer room, solved
The problem of computer room entrance causes customer flow to be lost when changing, realize the state holding across computer room, it is ensured that business
Continuity, improve reliability.
Brief description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing
, feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation
Dry embodiment, wherein:
Fig. 1 diagrammatically illustrates the block schematic illustration of an exemplary application scene according to embodiment of the present invention;
Fig. 2 diagrammatically illustrates the flow chart of traffic scheduling method according to an embodiment of the invention;
Fig. 3 diagrammatically illustrates the schematic block diagram of flow scheduling device according to an embodiment of the invention;
Fig. 4 diagrammatically illustrates a kind of block diagram of electronic equipment according to embodiments of the present invention;And
Fig. 5 diagrammatically illustrates a kind of program product for flow scheduling according to embodiments of the present invention.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Embodiment
The principle and spirit of the present invention is described below with reference to some illustrative embodiments.It should be appreciated that provide this
A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention
Mode limits the scope of the present invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy
It is enough that the scope of the present disclosure is intactly communicated to those skilled in the art.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment,
Method or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:It is complete hardware, complete soft
Part (including firmware, resident software, microcode etc.), or the form that hardware and software combines.
According to the embodiment of the present invention, it is proposed that a kind of traffic scheduling method and flow scheduling device.
Herein, any number of elements in accompanying drawing is used to example and unrestricted, and any name is only used for
Distinguish, without any restrictions implication.
Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.
Summary of the invention
The inventors discovered that when carrying out flow scheduling using method of the prior art, due to relying on dns resolution system pair
User sources are identified, and it is all slowly that the change of dns resolution system, which comes into force, therefore have impact on and carry out between computer room
Switching needs to expend longer time, so as to cause the less efficient of flow scheduling;And when causing quick dilatation to switch, machine
The situation of the temporarily unavailable change in room causes whole flow scheduling process experience poor;For not doing the login across computer room a lot
For the system of state synchronized, can not solve the network of client from data switch to WiFi when computer room entrance change, so as to
The logging status of user is caused to be lost, reliability is poor.
Based on the above, basic thought of the invention is:According to the field identification of multiple computer rooms to a client
User's request is identified, and determines the computer room that the client accesses first;Parse all described of the client
Field identification in user's request, and each user's request dynamic is sent to corresponding computer room rear end;It is described detecting
When abnormal conditions occurs in the application state of computer room rear end, Automatic dispatching is carried out to the flow of the computer room by front end inlet.Cause
This, can realize to the flow between different computer rooms rapidly and efficiently dispatch according to the embodiment of the present invention, and solve computer room
The problem of causing customer flow to be lost when entrance changes, realize across computer room state holding, it is ensured that business it is continuous
Property, improve reliability.
After the general principle of the present invention is described, lower mask body introduces the various non-limiting embodiment party of the present invention
Formula.
Application scenarios overview
With reference first to Fig. 1, Fig. 1 shows the framework signal of an exemplary application scene of embodiments of the present invention
Figure.As shown in figure 1, client can send user's request to computer room.It should be appreciated by those skilled in the art that showing shown in Fig. 1
Meaning framework is only the example that embodiments of the present invention can be achieved wherein.The applicable model of embodiment of the present invention
Enclose and do not limited by any aspect of the framework.
It should be noted that the present invention exemplary drawings by taking two computer rooms as an example, however, the present invention application scenarios not
It is limited to two server in machine room.The application scenarios of the present invention can also be applied to include any number of distributed server cluster
In.
It should also be noted that, computer room can by server group into, wherein server may each be home server or
Remote server, other product such as Cloud Servers that store function or processing function can be provided are can also be, the present invention
Embodiment do not do particular determination herein.
It should be understood that in the application scenarios of the present invention, it is unrestricted in terms of executive agent, as long as performing
Action disclosed in embodiment of the present invention.
Illustrative methods
With reference to Fig. 1 application scenarios, it is described with reference to Figure 2 and flow is used for according to exemplary embodiment of the invention
The method of scheduling.Understand spirit and principles of the present invention it should be noted that above-mentioned application scenarios are for only for ease of and show,
Embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can apply to applicable appoint
What scene.
Fig. 2 shows the flow chart of traffic scheduling method according to an embodiment of the invention.It should be noted that in Fig. 2
The flow scheduling that shown step S210 can be used between different computer rooms to step S230.Shown in reference picture 2, the flow scheduling
Method may comprise steps of:
Step S210. is identified according to user's request of the field identification of multiple computer rooms to a client, and determines institute
State the computer room that client accesses first;
Step S220. parses the field identification in all users' requests of the client, and by each user
Request dynamic is sent to corresponding computer room rear end;
Step S230. passes through the computer room when abnormal conditions occurs in the application state for detecting the computer room rear end
Front end inlet carries out Automatic dispatching to the flow of the computer room.
According to the traffic scheduling method of embodiment of the present invention and flow scheduling device, on the one hand, by according to multiple machines
The field identification in room determines the computer room that the client accesses first, avoids and domain name mapping progress is relied in correlation technique
Flow identifies, and then improves flow switch efficiency;On the other hand, occur in the application state for detecting the computer room rear end different
During reason condition, Automatic dispatching is carried out to the flow of the computer room by the front end inlet of the computer room, solves computer room entrance hair
The problem of causing customer flow to be lost during changing, realize the state holding across computer room, it is ensured that the continuity of business, improve
Reliability, more preferable experience is brought for user.
Next, the traffic scheduling method in this example embodiment will be further illustrated.
In step S210, it is identified according to user request of the field identification of multiple computer rooms to a client, and really
The computer room that the fixed client accesses first.
In this exemplary embodiment, network reliability is influenceed in order to solve the problems, such as and avoid unit room to break down, can
To carry out more computer room deployment to a certain business.For a product such as electric business system, inside is to need many subsystems
Assist together.Its more computer room deployment scenario can be described as:Assuming that computer room 1 is deployed in using a, can in the other application of computer room 1
To call the interface using a, then also many subsystems are to be deployed in computer room 2, and the application in computer room 2 is also required to calling and arrived
Using a, then when a in the application call computer room 1 so in computer room 2 is applied, just have because the delay problem caused by computer room.
If the query rate QPS per second of system requires very high, then preferably should be also deployed in computer room 2 using a, so as to carry out multimachine
Room is disposed.It is required for calling using e and d and apply a, then we also can disposes application a in computer room 2, thus can be with
Avoid across computer room delay problem.
Multiple computer rooms can be built according to the actual requirements, the flow scheduling process in this example between two computer rooms
Exemplified by illustrate.It can be provided first for each computer room or configure a field identification, the field identification for example may be used
Think cookie field identifications either http.Cookie is stored in the variable in the client of visitor, whenever same
When client is by some page of browse request, this cookie will be sent.Cookie can apply to preservation user and step on
Record state.Such as user id is stored in a cookie, so avoided the need for again when user accesses the page next time
Log in.In addition, cookie can also set the login term of validity, and after more than the term of validity is logged in, cookie will be automatic
Disappear.Because cookie operates in client, therefore can be by specific Website page JavaScript
Cookie field identifications described in setcookie function setups, it can also be set by application program backstage.
Because each computer room has unique corresponding field identification, therefore the user of a certain client can be asked to carry out
Parsing identification, so as to can quickly determine the computer room that the client accesses first according to analysis result.Client is for example
It can be the electronic equipment that mobile phone, computer, IPAD etc. can connect network.
Wherein it is determined that the specific steps for the computer room that the client accesses first can include:
Asked by user described in dns resolution, and the attribute field in user request determines the client
The computer room accessed first.
For example, if some core application deploys Hadoop processing clusters in computer room 1 and computer room 2 respectively.Client
By dns resolution when holding the A to access for the first time, it is determined that had access to computer room 1, then client request corresponding to customer end A is such as
Following content occurs in http request head:“Set-Cookie:CLUSTERENV=HZIDC;Domain=.xx.163.com;
Path=/;Expires=Tue, 15-Aug-201715:46:37GMT”.Then all can be with this when customer end A accesses
Computer room 1 will be all accessed after CLUSTERENV attribute cookie, i.e. customer end A.For example, the application scenarios with reference to shown in figure 1,
If one needs the user for carrying out the client of payment transaction to ask to include HZIDC corresponding to the computer room of Hangzhou inside cookie,
Even if the user asks current accessed Guangzhou computer room, also flow can be dispatched to Hangzhou computer room by Intranet and carry out payment transaction.
In this example, the computer room entrance of cookie fields identification user's request in being asked by user, correlation is avoided
To the dependence of DNS systems in technology, therefore the slowly caused poorly efficient influence of DNS systems is also reduced, quickly cut to realize
Change planes room and flow scheduling makees basis.
In step S220, the field identification in all user's requests of the client is parsed, and will be each described
User's request dynamic is sent to corresponding computer room rear end.
In the present example embodiment, field identification can be understood as in above-mentioned steps as the field of each computer room configuration
Mark, the field identification in all users request of the client can be parsed by front end web portal cluster, and according to right
All user's requests are dynamically distributed to corresponding computer room by the attribute field in the analysis result of the field identification successively, with
Computer room rear end is set to handle the user's request received.Such as each user can be asked to distribute one by one in chronological order
To different back-end servers, each user can also be asked by the hash results distribution for accessing IP or by back-end services
The response time of device carrys out distributing user request, and this example is not particularly limited to this.
Specifically, each http that web portal cluster in front end can be sent by dns resolution system analysis client please
Ask, and find out the CLUSTERENV fields in each http request analysis result cookie of the client, then according to each
Mapping relations between individual computer room backend application cluster and each user request, will client corresponding with CLUSTERENV fields
Http request dynamic be distributed to corresponding to computer room rear end.
In step S230, when abnormal conditions occurs in the application state for detecting the computer room rear end, entered by front end
Mouth carries out Automatic dispatching to the flow of the computer room.
In the present example embodiment, the application state of computer room rear end occur going offline etc. abnormal conditions when, in order to ensure industry
Business or the continuity of application, it usually needs switching computer room, such as the network of cell-phone customer terminal can be switched to by 4G data
WiFi.Can now depth customization be carried out to front end web portal, so as to realize that user keeps across the state of computer room.For example, with
When family carries out net purchase, when having access to computer room 2 because of network change after user A login computer rooms 1, computer room 2, which can pass through to parse, to be used
The http request data at family, so as to which user A flow water conservancy diversion to be returned to the application cluster of the rear end of computer room 1.Similarly, in computer room 2
When network changes, front end web portal cluster can dynamically by originally by the cluster of computer room 2 handle user ask water conservancy diversion to
Computer room 1, so that it is guaranteed that the continuity of overall business.Due to computer room entrance as network changes, avoid user and log in shape
The problem of state is lost, improve the reliability of system.
Specifically, the flow to the computer room described in step S230, which carries out Automatic dispatching, to include:
The field identification in being asked according to the user is scheduled to the flow of the computer room.
In the present example embodiment, front end inlet can parse the field mark in user's request that a certain client is sent
Know, and according to the field identification by flow scheduling to the unique corresponding computer room of the field identification, so as to realize the accurate of flow
Scheduling.
Wherein, the field identification in being asked according to the client user is scheduled tool to the flow of the computer room
Body can include:
The mapping between the field identification and each computer room backend application cluster in being asked according to the user is closed
System, is scheduled to the flow of the computer room according to logic of propositions.
For example, CLUSTERENV fields corresponding to computer room 1 are GZIDC, and CLUSTERENV fields are corresponding to computer room 2
GZIDC is included inside BJIDC, the cookie for the http request that customer end A is sent, then according to the field identification and each machine
Mapping relations between room backend application cluster, the http request is distributed to computer room 1.Further, if a client
The user at end asks current accessed Guangzhou computer room, but the user asks to include HZIDC corresponding to the computer room of Hangzhou inside cookie,
Also flow can be dispatched by Intranet according to the mapping relations between the field identification and each computer room backend application cluster
To Hangzhou computer room.The method can not avoid computer room from abnormal conditions occur, therefore can not ensure the reliability of flow scheduling.
In order to avoid above mentioned problem, being adjusted automatically to flow corresponding to the computer room described in this exemplary step S230
Degree can also include:
The flow of the computer room is scheduled according to logic of propositions according to the application state of the computer room rear end.
In the present example embodiment, the flow of a certain computer room can be adjusted by the application state of computer room rear end
Degree.It can judge whether the application state of computer room rear end is abnormal, and unavailable shape is in backend application by test program first
During state, it can be adjusted automatically by front end inlet pair flow corresponding with the computer room according to the logic of propositions set in advance
Degree.Logic of propositions herein can be configured according to the actual requirements, for example, when computer room 1 is abnormal, the flow of computer room 1 is adjusted
Spend to computer room 2 or computer room 3.By the front end inlet of computer room in this example, and according to the application state pair of the computer room rear end
The flow of the computer room is scheduled, and avoids and dns resolution system is depended on unduly, so as to improve stream during switching computer room
Measure dispatching efficiency.
Specifically, in this example embodiment, the flow according to the application state of the computer room rear end to the computer room
Being scheduled according to logic of propositions to include:
When abnormal conditions occurs in application state in the first computer room rear end, the front end for only retaining first computer room enters
Mouthful;
When the client has access to the front end inlet of first computer room, ignore the word of the client
The flow is simultaneously imported the second computer room by flow scheduling information in segment identification;
The front end inlet of second computer room stops the flow scheduling to the rear end of first computer room.
In the present example embodiment, if the application state of the first computer room rear end is in down state or occurred whole
When body change can not service, then it can only retain the front end web portal cluster of the first computer room.Had access in any one client
During the first computer room entrance, because the front end web portal of the first computer room finds that the first computer room backend state is abnormal, therefore it can ignore
The information that field identification in user's request includes, the flow of the first computer room automatically imported or be dispatched to the second computer room, with
This simultaneously, the front end inlet of the second computer room will also stop the flow scheduling to the rear end of first computer room.In this example,
Scheduling of the flow between different computer rooms can be achieved by the application state of computer room rear end in front end web portal, ensure that business
Continuity.
For example, in the application scenarios shown in Fig. 1, the first computer room is Hangzhou computer room, and corresponding cookie is
HZIDC;Second computer room is Guangzhou computer room, and corresponding cookie is GZIDC.In Hangzhou, the business of computer room is temporarily unavailable or will
When moving back the computer room, flow scheduling can be carried out according to computer room backend application state.Specific flow is as follows:The computer room and wide in Hangzhou
When computer room 2 computer rooms in state all operate online, if the business of Hangzhou computer room will occur overall change and can not service, product or
Using that can select, all business clusters to Hangzhou computer room are offline, and only retain the front end web portal of Hangzhou computer room.
If user's request has access to Hangzhou computer room entrance, because the front end web portal of Hangzhou computer room finds Hangzhou machine
Room rear end is unavailable, then can actively ignore user and ask to require the information for being dispatched to Hangzhou computer room cluster in cookie, and actively
Flow is imported into Guangzhou computer room.The front end web portal of Guangzhou computer room can also find that Hangzhou computer room cluster is unavailable, and actively stopping will
Flow scheduling is to the rear end of Hangzhou computer room, so as to realize that the flow moment of all business, smoothly computer room was switched to Guangzhou from Hangzhou
The function of computer room.
In this example, front end web portal can carry out across the computer room scheduling of flow, phase according to the application state of computer room rear end
Than for prior art, in front end, web portal layer improves business fault-tolerance, more computer room applications when reducing backend services exploitation
Difficulty, improve the efficiency of flow scheduling between computer room.
Further, by the flow scheduling between different computer rooms, business phase mutual tolerance can be realized between multiple computer rooms
It is wrong, it is ensured that each user request that client is sent is affected all without the abnormal failure because of some computer room cluster.Example
Such as not supporting the synchronous applications of across computer room session, telecommunications room is accessed in the previous request of cellphone subscriber, it is latter
When individual request accesses moving machine room, avoid causes user to need to log in repeatedly because of the loss of flow in computer room handoff procedure
The problem of, so that it is guaranteed that partial service will not cause service disconnection and discontinuous problem because of a certain computer room failure, improve system
The reliability of system.
Example devices
After the method for exemplary embodiment of the invention is described, next, exemplary to the present invention one with reference to figure 3
The flow scheduling device 300 of embodiment is described in detail.As shown in figure 3, flow scheduling device 300 can include:Flow
Identification module 301, request sending module 302 and Automatic dispatching module 303.Wherein:
Traffic identification module 301, can be used for according to the field identification of multiple computer rooms the user of one client is asked into
Row identification, and determine the computer room that the client accesses first;
Request sending module 302, it can be used for parsing the preset field in all user's requests of the client,
And each user's request dynamic is sent to different computer room rear ends;
Automatic dispatching module 303, it can be used for when abnormal conditions occurs in the application state for detecting the computer room rear end,
Automatic dispatching is carried out to the flow of the computer room by the front end inlet of the computer room.
In one embodiment of the invention, the Automatic dispatching module 303 can include:
First scheduler module, the flow of the computer room is carried out for the field identification in being asked according to the user
Scheduling.
In yet another embodiment of the present invention, the Automatic dispatching module 303 can also include:
Second scheduler module, the flow of the computer room is patrolled according to default for the application state according to the computer room rear end
Collect and be scheduled.
In one embodiment of the invention, second scheduler module includes:
Entrance reservation module, when there are abnormal conditions for the application state in the first computer room rear end, only retain described
The front end inlet of one computer room;
Second dispatching control module, during the front end inlet for having access to first computer room in the client,
Ignore the flow scheduling information in the field identification of the client and the flow is imported into the second computer room;
Stopping modular is dispatched, the front end inlet for second computer room stops the flow scheduling to described the
The rear end of one computer room.
In one embodiment of the invention, first scheduler module includes:
First dispatching control module, for the field identification in being asked according to the user and each computer room rear end
Mapping relations between application cluster, the flow of the computer room is scheduled according to logic of propositions.
In one embodiment of the invention, the traffic identification module 301 can include:
Flow parsing module, asked for being asked by user described in dns resolution, and according to the user in return value
Attribute field determines the computer room that the client accesses first.
In one embodiment of the invention, the field identification is set by Website page JavaScript or using journey
Sequence backstage is set.
Each functional module and above-mentioned flow scheduling due to the flow scheduling device 300 in the example embodiment of the present invention
Each step of method is corresponding, therefore will not be described in great detail herein.
Example devices
After the method and apparatus of exemplary embodiment of the invention are described, next, introducing according to the present invention's
The electronic equipment for flow scheduling of another exemplary embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here
Referred to as " circuit ", " module " or " system ".
In some possible embodiments, at least one place can be comprised at least according to the flow scheduling equipment of the present invention
Manage unit and at least one memory cell.Wherein, the memory cell has program stored therein code, when described program code quilt
When the processing unit performs so that the processing unit performs the root described in above-mentioned " illustrative methods " part of this specification
According to the step in the traffic scheduling method of the various illustrative embodiments of the present invention.For example, the processing unit can perform such as
Step S210 shown in Fig. 2:It is identified, and is determined according to user's request of the field identification of multiple computer rooms to a client
The computer room that the client accesses first;Step S220:Parse the word in all user's requests of the client
Segment identification, and each user's request dynamic is sent to corresponding computer room rear end;Step S230:After the computer room is detected
When abnormal conditions occurs in the application state at end, the flow of the computer room is adjusted automatically by the front end inlet of the computer room
Degree.
The electronic equipment 400 for flow scheduling according to the embodiment of the invention is described referring to Fig. 4.
Flow scheduling equipment 400 shown in Fig. 4 is only an example, and the function and use range of the embodiment of the present invention should not be brought
Any restrictions.
As shown in figure 4, flow scheduling equipment 400 is showed in the form of universal computing device.The group of flow scheduling equipment 400
Part can include but is not limited to:Above-mentioned at least one processing unit 401, above-mentioned at least one memory cell 402, connect not homology
The bus 403 of system component (including memory cell 402 and processing unit 401).
Bus 403 represents the one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.
Memory cell 402 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM)
4021 and/or cache memory 4022, it can further include read-only storage (ROM) 4023.
Memory cell 402 can also include program/utility with one group of (at least one) program module 4024
4025, such program module 4024 includes but is not limited to:Operating system, one or more application program, other program moulds
Block and routine data, the realization of network environment may be included in each or certain combination in these examples.
Flow scheduling equipment 400 can also (such as keyboard, sensing equipment, bluetooth be set with one or more external equipments 404
It is standby etc.) communication, it can also enable a user to the equipment communication interacted with flow scheduling equipment 400 with one or more, and/or with
Any equipment that flow scheduling equipment 400 communicated with one or more of the other computing device (such as router, is adjusted
Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 405.Also, flow scheduling equipment
400 can also by network adapter 406 and one or more network (such as LAN (LAN), wide area network (WAN) and/or
Public network, such as internet) communication.As illustrated, network adapter 406 passes through bus 403 and flow scheduling equipment 400
Other module communications.It should be understood that although not shown in Fig. 4, can combine flow scheduling equipment 400 using other hardware and/
Or software module, include but is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID
System, tape drive and data backup storage system etc..
Exemplary process product
In some possible embodiments, various aspects of the invention are also implemented as a kind of shape of program product
Formula, it includes program code, and when described program product is run on the terminal device, described program code is used to make the terminal
Equipment performs the stream according to the various illustrative embodiments of the present invention described in above-mentioned " illustrative methods " part of this specification
The step in dispatching method is measured, for example, the processing unit can perform step S210 as shown in Figure 2:According to multiple machines
User request of the field identification in room to a client is identified, and determines the computer room that the client accesses first;
Step S220:Parse the field identification in all users requests of the client, and by each user's request dynamic
Send to corresponding computer room rear end;Step S230:When abnormal conditions occurs in the application state for detecting the computer room rear end, lead to
The front end inlet for crossing the computer room carries out Automatic dispatching to the flow of the computer room.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or any combination above.The more specifically example of readable storage medium storing program for executing
(non exhaustive list) includes:Electrical connection, portable disc with one or more wires, hard disk, random access memory
(RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 5, describing the program product 500 for flow scheduling according to the embodiment of the present invention, it can
With use portable compact disc read only memory (CD-ROM) and including program code, and can be in terminal device, such as individual
Run on computer.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be any bag
Contain or the tangible medium of storage program, the program can be commanded the either device use or in connection of execution system, device
Use.
Readable signal medium can be included in a base band or as a part of data-signal propagated of carrier wave, wherein carrying
Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter
Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can
Read medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or
Program in connection.
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, including --- but being not limited to ---
Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., include routine
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user
Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to
In the situation of journey computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) or wide
Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service
Provider passes through Internet connection).
If it should be noted that although be referred to the equipment for drying or sub-device of flow scheduling equipment in above-detailed, but
It is that this division is only not enforceable.In fact, according to the embodiment of the present invention, two or more above-described dresses
The feature and function put can embody in one apparatus.Conversely, the feature and function of an above-described device can be with
It is further divided into being embodied by multiple devices.
In addition, although the operation of the inventive method is described with particular order in the accompanying drawings, still, this do not require that or
Hint must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize it is desired
As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/or by one
Step is decomposed into execution of multiple steps.
Although describe spirit and principles of the present invention by reference to some embodiments, it should be appreciated that, this
Invention is not limited to disclosed embodiment, and the division to each side does not mean that the feature in these aspects can not yet
Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and
In the range of included various modifications and equivalent arrangements.
Claims (10)
- A kind of 1. traffic scheduling method, it is characterised in that including:It is identified according to user request of the field identification of multiple computer rooms to a client, and determines that the client is visited first The computer room asked;Parse the field identification in all users requests of the client, and by each user's request dynamic send to Corresponding computer room rear end;When there are abnormal conditions in the application state for detecting the computer room rear end, the flow by front end inlet to the computer room Carry out Automatic dispatching.
- 2. traffic scheduling method according to claim 1, it is characterised in that Automatic dispatching is carried out to the flow of the computer room Including:The field identification in being asked according to the user is scheduled to the flow of the computer room.
- 3. traffic scheduling method according to claim 1, it is characterised in that carried out to flow corresponding to the computer room automatic Scheduling also includes:The flow of the computer room is scheduled according to logic of propositions according to the application state of the computer room rear end.
- 4. traffic scheduling method according to claim 3, it is characterised in that according to the application state pair of the computer room rear end The flow of the computer room according to logic of propositions be scheduled including:When abnormal conditions occurs in application state in the first computer room rear end, only retain the front end inlet of first computer room;When the client has access to the front end inlet of first computer room, ignore the field mark of the client The flow is simultaneously imported the second computer room by flow scheduling information in knowledge;The front end inlet of second computer room stops the flow scheduling to the rear end of first computer room.
- 5. traffic scheduling method according to claim 2, it is characterised in that the field identification in being asked according to the user The flow of the computer room is scheduled including:The mapping relations between the field identification and each computer room backend application cluster in being asked according to the user are right The flow of the computer room is scheduled according to logic of propositions.
- 6. traffic scheduling method according to claim 1, it is characterised in that determine that the client accesses described first Computer room includes:Asked by user described in dns resolution, and ask the attribute field in return value to determine the client according to the user Hold the computer room accessed first.
- 7. traffic scheduling method according to claim 1, it is characterised in that the field identification passes through Website page JavaScript is set or application program backstage is set.
- A kind of 8. flow scheduling device, it is characterised in that including:Traffic identification module, it is identified for user request of the field identification according to multiple computer rooms to a client, and really The computer room that the fixed client accesses first;Request sending module, the preset field in all user's requests for parsing the client, and will be each described User's request dynamic is sent to different computer room rear ends;Automatic dispatching module, during for abnormal conditions occur in the application state for detecting the computer room rear end, pass through the machine The front end inlet in room carries out Automatic dispatching to the flow of the computer room.
- 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The traffic scheduling method described in any one in claim 1-7 is realized during computing device.
- 10. a kind of electronic equipment, it is characterised in that including:Processor;AndMemory, for storing the executable instruction of the processor;Wherein, the processor is configured to come any one institute in perform claim requirement 1-7 via the execution executable instruction The traffic scheduling method stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710953261.9A CN107635010B (en) | 2017-10-13 | 2017-10-13 | Traffic scheduling method and device, computer readable storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710953261.9A CN107635010B (en) | 2017-10-13 | 2017-10-13 | Traffic scheduling method and device, computer readable storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107635010A true CN107635010A (en) | 2018-01-26 |
CN107635010B CN107635010B (en) | 2021-04-13 |
Family
ID=61105405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710953261.9A Active CN107635010B (en) | 2017-10-13 | 2017-10-13 | Traffic scheduling method and device, computer readable storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107635010B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327520A (en) * | 2018-10-19 | 2019-02-12 | 中国银行股份有限公司 | Establish the method and device that terminal is connect with server node |
CN109508912A (en) * | 2018-12-29 | 2019-03-22 | 广州虎牙信息科技有限公司 | A kind of business scheduling method, device, equipment and storage medium |
CN110046092A (en) * | 2019-03-12 | 2019-07-23 | 北京创鑫旅程网络技术有限公司 | Test shunt method, device, electronic equipment and computer readable storage medium |
CN110198346A (en) * | 2019-05-06 | 2019-09-03 | 北京三快在线科技有限公司 | Method for reading data, device, electronic equipment and readable storage medium storing program for executing |
CN110266747A (en) * | 2019-04-12 | 2019-09-20 | 阿里巴巴集团控股有限公司 | The computer room forwarding method and device of service request |
CN113472687A (en) * | 2021-07-15 | 2021-10-01 | 北京京东振世信息技术有限公司 | Data processing method and device |
WO2023169202A1 (en) * | 2022-03-11 | 2023-09-14 | 北京沃东天骏信息技术有限公司 | Video stream data acquisition method and apparatus, and electronic device and computer-readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379130A (en) * | 2012-04-13 | 2013-10-30 | 深圳市腾讯计算机***有限公司 | Network access system and method based on application layer data |
CN104852934A (en) * | 2014-02-13 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method for realizing flow distribution based on front-end scheduling, device and system thereof |
EP2961124A1 (en) * | 2014-06-23 | 2015-12-30 | Alcatel Lucent | Method for enhancing captive portal service |
CN106060088A (en) * | 2016-07-26 | 2016-10-26 | 杭州华三通信技术有限公司 | Service management method and device |
CN106961469A (en) * | 2017-02-28 | 2017-07-18 | 北京致远互联软件股份有限公司 | Unaware orientation Proxy Method and system based on http proxy servers |
-
2017
- 2017-10-13 CN CN201710953261.9A patent/CN107635010B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379130A (en) * | 2012-04-13 | 2013-10-30 | 深圳市腾讯计算机***有限公司 | Network access system and method based on application layer data |
CN104852934A (en) * | 2014-02-13 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method for realizing flow distribution based on front-end scheduling, device and system thereof |
EP2961124A1 (en) * | 2014-06-23 | 2015-12-30 | Alcatel Lucent | Method for enhancing captive portal service |
CN106060088A (en) * | 2016-07-26 | 2016-10-26 | 杭州华三通信技术有限公司 | Service management method and device |
CN106961469A (en) * | 2017-02-28 | 2017-07-18 | 北京致远互联软件股份有限公司 | Unaware orientation Proxy Method and system based on http proxy servers |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327520A (en) * | 2018-10-19 | 2019-02-12 | 中国银行股份有限公司 | Establish the method and device that terminal is connect with server node |
CN109327520B (en) * | 2018-10-19 | 2021-04-30 | 中国银行股份有限公司 | Method and device for establishing connection between terminal and server node |
CN109508912A (en) * | 2018-12-29 | 2019-03-22 | 广州虎牙信息科技有限公司 | A kind of business scheduling method, device, equipment and storage medium |
CN109508912B (en) * | 2018-12-29 | 2021-05-28 | 广州虎牙信息科技有限公司 | Service scheduling method, device, equipment and storage medium |
CN110046092A (en) * | 2019-03-12 | 2019-07-23 | 北京创鑫旅程网络技术有限公司 | Test shunt method, device, electronic equipment and computer readable storage medium |
CN110266747A (en) * | 2019-04-12 | 2019-09-20 | 阿里巴巴集团控股有限公司 | The computer room forwarding method and device of service request |
CN110266747B (en) * | 2019-04-12 | 2022-04-08 | 创新先进技术有限公司 | Method and device for switching machine room of service request |
CN110198346A (en) * | 2019-05-06 | 2019-09-03 | 北京三快在线科技有限公司 | Method for reading data, device, electronic equipment and readable storage medium storing program for executing |
CN110198346B (en) * | 2019-05-06 | 2020-10-27 | 北京三快在线科技有限公司 | Data reading method and device, electronic equipment and readable storage medium |
CN113472687A (en) * | 2021-07-15 | 2021-10-01 | 北京京东振世信息技术有限公司 | Data processing method and device |
CN113472687B (en) * | 2021-07-15 | 2023-12-05 | 北京京东振世信息技术有限公司 | Data processing method and device |
WO2023169202A1 (en) * | 2022-03-11 | 2023-09-14 | 北京沃东天骏信息技术有限公司 | Video stream data acquisition method and apparatus, and electronic device and computer-readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN107635010B (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107635010A (en) | Traffic scheduling method, device, computer-readable recording medium and electronic equipment | |
US9667750B2 (en) | Client-initiated leader election in distributed client-server systems | |
US10733384B2 (en) | Emotion detection and expression integration in dialog systems | |
US10873546B2 (en) | System and method for automated contact center agent workstation testing | |
US11032126B2 (en) | Diagnostic traffic generation for automatic testing and troubleshooting | |
US20200045117A1 (en) | Dynamic backoff and retry attempts based on incoming request | |
US11645582B2 (en) | Parameter sharing in federated learning | |
GB2495609A (en) | Interface integrating multiple communications channels using respective media | |
CN108989583A (en) | Method for testing pressure, system, electronic equipment and the storage medium of call center | |
US20160239762A1 (en) | System and method for an optimized, self-learning and self-organizing contact center | |
US20220171011A1 (en) | Positioning method and device, server, storage medium and terminal | |
CN110445844A (en) | Short message multi-center selection method and device, storage medium, electronic equipment | |
US20160378162A1 (en) | Validating power paths to it equipment | |
US20210160374A1 (en) | Agent to bot transfer | |
CN112152879B (en) | Network quality determination method, device, electronic equipment and readable storage medium | |
US11184477B2 (en) | Gapless audio communication via discourse gap recovery model | |
EP4005167A1 (en) | Systems and methods for providing bidirectional forwarding detection with performance routing measurements | |
CN109698774A (en) | Method and device for monitoring device working condition | |
US9749468B1 (en) | Area code and call duration-aware call screening | |
US20220076661A1 (en) | Duration based task monitoring of artificial intelligence voice response systems | |
US11089137B2 (en) | Dynamic data transmission | |
US10783886B2 (en) | Cognitive agent disambiguation | |
CN113452539B (en) | Source station switching method and device, electronic equipment and storage medium | |
WO2018195276A1 (en) | Automated contact center agent workstation testing | |
US11972304B1 (en) | Systems and methods for automatic detection of an event and providing resources customized based on the event |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231110 Address after: 310052 Room 301, Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Hangzhou NetEase Shuzhifan Technology Co.,Ltd. Address before: 310052 Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province, 4, 7 stories Patentee before: NETEASE (HANGZHOU) NETWORK Co.,Ltd. |