CN105915655A - Proxy method and agent method for network - Google Patents
Proxy method and agent method for network Download PDFInfo
- Publication number
- CN105915655A CN105915655A CN201610506654.0A CN201610506654A CN105915655A CN 105915655 A CN105915655 A CN 105915655A CN 201610506654 A CN201610506654 A CN 201610506654A CN 105915655 A CN105915655 A CN 105915655A
- Authority
- CN
- China
- Prior art keywords
- server
- access request
- group
- agent
- cluster
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/564—Enhancement of application control based on intercepted application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention provides a proxy method for a network. The method comprises following steps of carrying out domain name analysis on an access request; analyzing the access request to a first proxy server; carrying out proxy on the access request to an officially released server group in a first server cluster by the first proxy server based on own configuration information, wherein the first server cluster comprises the officially released server group and a pre-released server group for upgrade of servers, the pre-released server group is switched to the officially released server group for providing access service after the upgrade is finished, and the officially released server group is correspondingly switched to the pre-released server group for upgrade of servers.
Description
Technical field
The present invention relates to Internet technology, particularly relate to network agent method and agency plant.
Background technology
Network agent function is the common internet function performed by proxy server, i.e. agency network is used
Family is gone to obtain the network information.Figuratively, proxy server is the terminal of the network information.In ordinary circumstance
Under, we use client, and such as web browser directly goes to connect other Internet websites and obtains network
During information, must send access request and be answered, then the other side returns information transmission again.Agency service
Device is the station server between browser and Web server, and after having had it, browser is not
Directly go to fetch webpage to Web server but send request to proxy server.Access request can first be sent
To proxy server, proxy server fetch browser required for information and send your browse to
Device.And, major part proxy server all has the function of buffering, and just as a big Cache, it has
The biggest memory space, it is constantly stored into newly obtaining data on the memorizer of its machine, if browser
The data asked have existed on the memorizer of its machine and have been up-to-date, then it the most again from
Web server fetches data, and the data on memorizer directly send to the browser of user, thus can
Significantly improve surfing and efficiency.
Summary of the invention
The brief overview of one or more aspect given below is to provide the basic comprehension in terms of these.This is general
State the extensive overview of the not all aspect contemplated, and be both not intended to identify the key of all aspects
Or the most non-scope attempting to define in terms of any or all of decisive key element.Its unique purpose is intended to simplify
Form provides some concepts of one or more aspect and thinks the sequence of more detailed description given later.
According to an aspect of the present invention, it is provided that a kind of Proxy Method for network, including:
Access request is performed domain name mapping, this access request is resolved to first agent's server;And
By this first agent's server configuration information based on self, this access request is acted on behalf of to first service
Formal publisher server group in device cluster, this first server cluster includes for just providing access service
Formula publisher server group and the pre-publisher server group for server updating, this pre-publisher server group is rising
Formal publisher server group is switched to service for providing to access after Ji, and this formal publisher server
Group correspondingly switches to this pre-publisher server group for server updating.
In one example, this execution domain name mapping includes: launch position based on this access request is by this visit
Asking this first agent's server in request analysis extremely multiple proxy servers, the plurality of proxy server is disposed
Corresponding server cluster, the launch position of this access request it is deployed with in different regions, each region
Falling in the first region residing for this first agent's server, this first server cluster is this first agent clothes
Server cluster in first-selected region in the configuration information of business device.
In one example, what this access request was acted on behalf of to this first server cluster by this formally issues clothes
Business device group farther includes: act on behalf of this access request to this first server cluster based on load balancing
In server in this formal publisher server group.
In one example, this Proxy Method also includes: if the formal publisher server of this first server cluster
The equal response abnormality of Servers-all in group, then will by this first agent's server configuration information based on self
This access request agency is to the formal publisher server group in the server cluster in next region until this visit
The request of asking obtains normal response.
In one example, this Proxy Method also includes: if the formal issue of the server cluster in all regions
The equal response abnormality of server group, then please by this access by this first agent's server configuration information based on self
Seek the pre-publisher server group acted on behalf of to this first server cluster.
In one example, this Proxy Method also includes: if the pre-publisher server group of this first server cluster
In the equal response abnormality of Servers-all, then should by this first agent's server configuration information based on self
Access request agency is to the pre-publisher server group in the server cluster in this next region until this access
Request obtains normal response, wherein, has detected that formal publisher server group normally works if follow-up, then will
Subsequent access request agency is to the normal formal publisher server group worked.
In one example, this Proxy Method also includes: after this access request obtains normal response, amendment
This configuration information is configured to first-selected region with the region at the server cluster place by providing normal response.
In one example, this load balancing includes following at least one: repeating query equilibrium, weight repeating query are equal
The equilibrium of weighing apparatus, Stochastic Equilibrium, response speed, the equilibrium of minimum connection number, disposal ability equilibrium, DNS response are all
Weighing apparatus.
In one example, this access request includes head portion and main part, also includes: by this first generation
Reason server resolves the main part of this access request to obtain ID, for this load balancing
Mark.
In one example, this first agent's server is based on the locally stored request lattice about this access request
Formula performs parsing to the main part of this access request.
According to a further aspect in the invention, it is provided that a kind of agency plant for network, including:
Domain name resolution server, for performing domain name mapping to access request;
At least one proxy server, each proxy server is used for performing agent functionality;And
At least one server cluster, each server cluster includes the formal issue for providing the service of access
Server group and the pre-publisher server group for server updating, this pre-publisher server group is complete in upgrading
After switch to formal publisher server group for providing the service of access, and this formal publisher server group is corresponding
Switch to this pre-publisher server group for server updating,
Wherein this access request is resolved to this at least one proxy server by this domain name resolution server
First agent's server, this access request is acted on behalf of extremely by this first agent's server configuration information based on self
The formal publisher server group of the first server cluster in this at least one server cluster.
In one example, this at least one proxy server includes the multiple agency's clothes being deployed in different regions
Business device, this at least one server cluster includes the multiple server clusters being deployed in different geographical, this domain name
The parsing of this access request is serviced by resolution server launch position based on this access request to this first agent
Device, the launch position of this access request falls in the first region residing for this first agent's server, and this is first years old
Server cluster be this first agent's server configuration information in server cluster in first-selected region.
In one example, this first agent's server is further used for this access being asked based on load balancing
Seek the server acted on behalf of to this formal publisher server group in this first server cluster.
In one example, if this first agent's server is further used for the formal of this first server cluster and sends out
The equal response abnormality of Servers-all in cloth server group, then configuration information based on self is by this access request
Act on behalf of the formal publisher server group in the server cluster to next region until this access request obtains
Normal response.
In one example, if this first agent's server server cluster of being further used in all regions
The formal equal response abnormality of publisher server group, then this access request agency extremely should by configuration information based on self
Pre-publisher server group in first server cluster, wherein, has detected formal publisher server if follow-up
The normal work of group, then by the formal publisher server group of subsequent access request agency to normal work.
In one example, if this first agent's server is further used for the pre-issue of this first server cluster
The equal response abnormality of Servers-all in server group, then configuration information based on self is by this access request generation
Manage the pre-publisher server group in the server cluster to this next region until this access request just obtains
Often response.
In one example, this first agent's server be further used for this access request obtain normal response it
After, revise this configuration information and be configured to first-selected ground with the region at the server cluster place by providing normal response
Territory.
In one example, this load balancing includes following at least one: repeating query equilibrium, weight repeating query are equal
The equilibrium of weighing apparatus, Stochastic Equilibrium, response speed, the equilibrium of minimum connection number, disposal ability equilibrium, DNS response are all
Weighing apparatus.
In one example, this access request includes head portion and main part, and this first agent's server is also
Including parsing module, for resolving the main part of this access request to obtain ID, for this
The mark of load balancing.
In one example, this first agent's server also includes data base, and in this data base, storage has multiple asking
Seeking the request form of type, this parsing module searches this data base with the request form asked according to this user
The main part of this access request is performed parsing.
In the present invention, issue and the pre-real-time switching issuing environment by providing formal, solve all generations
The problem come into force after needing to restart after reason server amendment configuration, this technology need not restart server, amendment
Any configuration comes into force the most in real time, it is achieved that the effect of dynamic proxy.On the other hand, by adding the general of region
Read, can be individually to some region Proxy load, it is also possible to configure multiple region, multiple regions are carried out
Load agent, multiple regions switch over, it is provided that the motility of agency.
Additionally, compare nginx can only obtain load strategy related content from request header information, the present invention is led to
Cross analysis request body acquisition of information load strategy content, thus strengthen load strategy, solve general load
The problem that strategy execution mode is single, thus support that Proxy load equalizes multiformity, such as can support wechat
With various ways such as webservice.
Accompanying drawing explanation
After reading the detailed description that embodiment of the disclosure in conjunction with the following drawings, it is possible to be more fully understood that this
The features described above of invention and advantage.In the accompanying drawings, each assembly is not necessarily drawn to scale, and has class
As the assembly of correlation properties or feature be likely to be of same or like reference.
Fig. 1 shows the block diagram of agency plant according to an aspect of the present invention;
Fig. 2 shows the flow chart of Proxy Method according to an aspect of the present invention;
Fig. 3 shows the block diagram of agency plant according to a further aspect in the invention;And
Fig. 4 shows the flow chart of Proxy Method according to a further aspect in the invention.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.Note, below in conjunction with accompanying drawing and
The aspects that specific embodiment describes is only exemplary, and is understood not to protection scope of the present invention
Carry out any restriction.
Fig. 1 shows the block diagram of agency plant 100 according to an aspect of the present invention.As it is shown in figure 1,
Agency plant 100 can include domain name resolution server 101, proxy server 121,122 and server
Cluster 131,132.
User initiates an access request via client.Here client can be web browser, APP
Software such as wechat etc..First the access request initiated via client is entered via domain name resolution server 101
Row domain name mapping.Domain name resolution server 101 is responsible for resolving to proxy server 121,122 access request
In one.
According to an aspect of the present invention, agent functionality is performed by " region ".Proxy server 121,
122 are deployed in different geographical, and server cluster 131,132 is also deployed in different regions.Shown in Fig. 1
Example in, proxy server 121 and server cluster 131 are deployed in identical region 1;Agency
Server 122 and server cluster 132 are deployed in identical region 2.
In the example shown in Fig. 1, illustrate only two regions, region 1, region 2, the most only illustrate
The proxy server of the two region and server cluster, but, it will be understood by those skilled in the art that
Can exist and plural region, and each region are disposed corresponding proxy server and server set
Group, such as, deposit the proxy server 12n being deployed in the n of region and server cluster 13n (wherein n > 2) (not
Illustrate).
In one embodiment, domain name resolution server 101 can initiation address based on access request determine by
Which proxy server is this access request resolve to.Such as, domain name resolution server 101 can be asked accessing
Solving and analyse to first agent's server, wherein the initiation address of this access request falls at this first agent's server
Residing region.
As example, this first agent's server can be proxy server 121, i.e. domain name resolution server
Access request is resolved the proxy server 121 to region 1 by 101.
Proxy server 121 such as receives this access request by monitoring 80 ports.Proxy server 121
Can determine the server cluster in first-selected for access request agency region by configuration information based on self.Configuration letter
Can store first-selected region in breath, so-called first-selected region refers to that proxy server 121 is preferential by access request
Act on behalf of the server cluster to this first-selection region.Configuration information can also store its that sort by priority
The sorted lists of his region.
As example, the preferred region in the configuration information of next proxy server of normal condition is this agency
The region that server self is residing.Such as proxy server 121, its first-selected region is region 1,
For proxy server 122, first-selected region is region 2.Certainly, the first-selected region in configuration information
Can change, the such as server cluster in first-selected region occur the machine of delaying cannot normal response time, permissible
The first-selected region of change, this is described in detail below.
In the example shown in Fig. 1, proxy server 121 can be based on own configuration information by access request generation
Manage the server cluster 131 to region 1.
Containing multiple servers in server cluster 131, such as server A, B, C, D, the most only show
Go out 4 servers, however it will be appreciated that and can there is more server.
Proxy server 121 can be based on load balancing by the clothes in access request agency to first-selected region
The server in server cluster 131 in business device cluster i.e. region 1.
Conventional load balancing includes following several types:
Repeating query equilibrium (Round Robin): the request of automatic network each time is distributed in inside in turn
Server, then restarts from 1 to N.All services that this kind of equalization algorithm is suitable in server group
Device has identical software and hardware configuration and the situation of average service request relative equilibrium.
Weight repeating query equilibrium (Weighted Round Robin): according to the different disposal ability of server,
To the weights that each server-assignment is different so that it is the service request of corresponding weight value number can be accepted.Such as:
The weights of server A are designed to 1, and the weights of B are 3, and the weights of C are 6, then server A, B,
The service receiving 10%, 30%, 60% respectively is asked by C.This kind of equalization algorithm can ensure that high performance
Server obtains more utilization rate, it is to avoid the server load of low performance is overweight.
Stochastic Equilibrium (Random): multiple services that the request carrying out automatic network is randomly assigned in inside
Device.
Weight Stochastic Equilibrium (Weighted Random): this kind of equalization algorithm is similar to weight Round-Robin Algorithm,
It it is but a process randomly choosed when processing request and sharing.
Response speed equilibrium (Response Time): load-balancing device sends one to internal each server
Individual probe requests thereby (such as Ping), then according to server each in inside to the fastest response of probe requests thereby time
Between determine which station server come customer in response end service request.This kind of equalization algorithm can preferably reflect
The current operating conditions of server, but this fastest response time only refer only to load-balancing device and server
Between the fastest response time rather than fastest response time between client and server.
Minimum connection number equilibrium (Least Connection): the service of request each time of client is at server
Residence time there may be bigger difference, along with longer working time, if use simple repeating query or
Stochastic Equilibrium algorithm, the connection process on each station server may produce and differ greatly from, not reach
To real load balancing.The each station server needing load in inside is had by minimum connection number equalization algorithm
One data record, the connection quantity that record this server current is processing, please when there being new service to connect
When asking, by current request is distributed to connect the server that number is minimum, equilibrium is made to more conform to practical situation,
Load more equalizes.The request service processed when this kind of equalization algorithm is suitable for long, such as FTP.
Disposal ability equalizes: this kind of equalization algorithm will service request assignment to inside processes load (according to
Server CPU model, CPU quantity, memory size and current connect the conversions such as number and form) the lightest clothes
Business device, it is contemplated that the disposal ability of internal server and current network operation conditions, so this kind all
Account method the most accurate, be especially suitable for applying to the situation of layer 7 (application layer) load balancing
Under.
DNS response equilibrium (Flash DNS): on internet, either HTTP, FTP or its
Its service request, client is typically all and finds the definite IP address of server by domain name mapping.
Under this equalization algorithm, office receives the territory of same client at the load-balancing device of diverse geographic location
Name analysis is asked, and within the same time, this domain name mapping is become the IP address of respective corresponding server (i.e.
With this load-balancing device in the IP address of the server in geographical position, same position) and return to client,
Then request service is continued in the domain name mapping IP address to receive at first by client, and ignores other IP
Address response.In the case of kind of a balance policy is suitably applied in GSLB, to local load balancing
It is nonsensical.
Access request can be acted on behalf of to server cluster by such as proxy server 121 based on load balancing
Server A in 131, if server A response abnormality, then can be again based on load balancing will access
Other servers to this server cluster 131 are acted on behalf of in request, if response is the most abnormal, the most again act on behalf of
Next server to this server cluster 131, repeats this operation until access request obtains normal response.
In extreme circumstances, if the Servers-all in the server cluster in first-selected region all can not normally ring
Should, then proxy server 121 can be based on configuration information by the server in access request agency to another region
Cluster, such as configuration information medium priority are only second to the server cluster in next region of first-selected region.Make
For example, such as, access request can be acted on behalf of the server cluster to region 2 by proxy server 121
132。
If server cluster 2 can provide normal response, then proxy server 121 can revise configuration information with
Change first-selection region into region 2.More preferably, when the server cluster 131 in region 1 recovers normal, generation
The first-selected region of reason server 121 can change back region 1 again.
Access request generally comprises head portion and main part.As discussed previously, access request is likely
Sent, now, as the information of the head portion of access request is by network platforms such as wechat platforms
, it is impossible to as the sign of some normal load strategies.
In the present invention, proxy server can include data base and parsing module (not shown).Data
Storehouse can prestore the request form of multiple request type.Parsing module can be by searching data base with root
The main part of access request is resolved by the request form asked according to this user, to obtain ID,
Thus can be as the mark of load balancing.
Fig. 2 shows the flow chart of Proxy Method 200 according to an aspect of the present invention.As in figure 2 it is shown,
Proxy Method 200 can comprise the following steps that
In step 201: access request is performed domain name mapping, access request is resolved to multiple agency services
First agent's server in device, the plurality of proxy server is deployed in different regions.
This parsing can be that launch position based on access request is carried out, the initiation of such as this access request
Position falls in the first region residing for first agent's server.
In step 202: by first agent's server configuration information based on self by access request agency to first
Server cluster in selection of land territory.
Can store first-selected region in configuration information, so-called first-selected region refers to that proxy server please by access
Ask preferential agency to the server cluster of this first-selection region.Configuration information can also store and according to priority arranged
The sorted lists of other regions of sequence.As example, the configuration information of next proxy server of normal condition
In preferred region be the residing region of this proxy server self.
Further, first agent's server can be based on load balancing by the most first-selected for access request agency ground
A server in server cluster in territory.As it was previously stated, the load balancing often having can include repeating query
Equilibrium, weight repeating query equilibrium, Stochastic Equilibrium, response speed equilibrium, the equilibrium of minimum connection number, disposal ability
Equilibrium, DNS response equilibrium etc..
If the server response abnormality acted on behalf of, then it is again based on load balancing and access request is acted on behalf of
Other servers in server cluster to first-selected region are until access request obtains normal response.
If the equal response abnormality of Servers-all in the server cluster in this first-selection region, then by first agent
Server configuration information based on self is by the server cluster in access request agency to another region, such as
Configuration information is positioned at the server cluster of the next region of first-selected region according to prioritization.
Normally rung in server cluster and the access request that access request is acted on behalf of to another region
After should, revise this configuration information this another region to be configured to first-selected region.Preferably, can be at this
Server cluster in first region can with normal response time, selection of land territory headed by the first region is changeed back.
In one example, the main part of access request can be resolved to obtain user by first agent's server
ID, for the mark of load balancing.Such as, first agent's server can be based on locally stored pass
Request form in access request performs parsing to the main part of access request.
Fig. 3 shows the block diagram of agency plant 300 according to a further aspect in the invention.
As it is shown on figure 3, agency plant 300 can include domain name resolution server 301, proxy server 321,
322 and server cluster 331,332.Shown in Fig. 3 two proxy server 321,322 and
Two server clusters 331,332 are only examples, in practice, can exist a proxy server and
One server cluster, it is also possible to there is the proxy server more than two and the server set more than two
Group.
According to an aspect of the present invention, each server cluster can include two server groups, one of them clothes
Business device group is for providing the formal publisher server group of the service of access, and another group is pre-for server updating
Cloth server group.These two groups of server groups are duplicate, and the role differing only in both is different, i.e.
The role of each server group is carried out between " formal publisher server group " and " pre-publisher server group "
Switching.When a server group is " formal publisher server group ", another group is then " pre-issuing service
Device group ", and originally ought switch to for the server group of " formal publisher server group " role and " issue clothes in advance
Business device group " time, original server group for " pre-publisher server group " role switches to simultaneously " formally to be sent out
Cloth server group ".
As a example by example in Fig. 3, server cluster 331 includes two server groups 3311,3312.
Server group 3311 and server group 3312 are originally used for two server groups mapped each other, and i.e. both are completely
Identical.But be used for providing a user with access response by server group 3311, another server group 3312 is not
For providing a user with access response, but for server updating.Now, server group 3311
Being referred to as formal publisher server group, now server group 3312 can be described as pre-publisher server group.
In one example, in server group 3312 is the time undertaking pre-publisher server group role,
If needing server is made any upgrading, the most not to the server group undertaking formal publisher server group role
3311 do any operation, but only upgrade server group 3312, and server updating here is permissible
It is the renewal of server content, or the amendment of server configures.
After the server group 3312 undertaking pre-publisher server group role is upgraded, server group 3312
Can be formal publisher server group, correspondingly, server group 3311 from the role switching of pre-publisher server group
Then the role switching from formal publisher server group is pre-publisher server group, and both realize role exchange.
In another example, in server group 3312 is the time undertaking pre-publisher server group role,
If needing server is made any upgrading, first server group 3312 can be switched to formal server group,
Server group 3311 is switched to pre-publisher server group simultaneously;Then, server group 3311 is risen
Level.
After upgrading server group 3311, server group 3312 switches to pre-issue to take again
Business device group, the server group 3311 after upgrading switches to formal server group.It should be noted that it is above-mentioned
Switch to the passive switching between server group.But can also be all abnormal in formal server group in the present invention
In the case of, pre-publisher server group is switched to formal server group, and formal server group switches to pre-
Publisher server group.Whether the follow-up pre-publisher server group that can also regularly detect exception recovers normal, treats
After pre-publisher server group is recovered normally, recover normal pre-publisher server and switch to formal server
Group, and formal server group switches back into pre-publisher server group again.
User initiates an access request via client.Here client can be web browser, APP
Software such as wechat etc..First the access request initiated via client is entered via domain name resolution server 301
Row domain name mapping.Domain name resolution server 301 is responsible for resolving to proxy server 321,322 access request
In one, such as proxy server 321.Proxy server 321 can will be visited by configuration information based on self
Ask request agency the formal publisher server group to a server cluster, such as server cluster 331.
From the foregoing, it will be observed that proxy server always by access request agency to server cluster formally issues clothes
Business device group.Always pass through upgrading due to formal publisher server group and be provided that the server of normal access response
Group, therefore, access request can obtain normal response.Although additionally, formal publisher server group is in service
Switch between two server groups of device cluster, but this switching is sightless for a user, therefore,
The upgrading of server can be with seamless switching, it is not necessary to restart server.
In the case of there is multiple proxy server and multiple server cluster, can come by " region "
Perform agent functionality.Such as, proxy server 321,322 is deployed in different geographical, server cluster 331,
332 are also deployed in different regions.In examples as shown in figure 3, proxy server 321 and server
Cluster 331 is deployed in identical region 1;Proxy server 322 and server cluster 332 are deployed in phase
Same region 2.
In one embodiment, domain name resolution server 301 can initiation address based on access request determine by
Which proxy server is this access request resolve to.Such as, domain name resolution server 101 can be asked accessing
Solving and analyse to first agent's server, wherein the initiation address of this access request falls at this first agent's server
Residing region.
Proxy server 321 such as receives this access request by monitoring 80 ports.In one example,
Proxy server 321 can determine the service in first-selected for access request agency region by configuration information based on self
Device cluster.Can store first-selected region in configuration information, so-called first-selected region refers to proxy server 321
Access request is preferentially acted on behalf of the server cluster to this first-selection region.Configuration information can also store by
The sorted lists of other regions of prioritization.
As example, the preferred region in the configuration information of next proxy server of normal condition is this agency
The region that server self is residing.Such as proxy server 321, its first-selected region is region 1,
For proxy server 322, first-selected region is region 2.
In examples as shown in figure 3, proxy server 321 can be based on own configuration information by access request generation
Manage the server cluster 331 to region 1.
Proxy server 321 can be based on load balancing by the clothes in access request agency to first-selected region
The formal publisher server group such as server group in server cluster 331 in business device cluster i.e. region 1
Server in 3311.
Conventional load balancing can include repeating query equilibrium, weight repeating query equilibrium, Stochastic Equilibrium, response speed
Degree equilibrium, the equilibrium of minimum connection number, disposal ability equilibrium, DNS response equilibrium etc..
Access request can be acted on behalf of to server cluster by such as proxy server 321 based on load balancing
Server A in formal publisher server group 3311 in 331, if server A response abnormality, then can be again
Secondary based on load balancing by access request agency to other servers in this server group 3311, if
Response is the most abnormal, the most again acts on behalf of next server to this server group 3311, repeats this operation
Until access request obtains normal response.
In extreme circumstances, if all clothes in the formal publisher server group 3311 of server cluster 331
Business device all can not normal response, then proxy server 321 can based on configuration information by access request agency under
In one region, such as configuration information medium priority is only second to the server cluster in next region of first-selected region
In formal publisher server group.As example, access request can be acted on behalf of extremely by such as proxy server 321
Formal publisher server group in server cluster 332 in region 2.If now in server cluster 332
Formal publisher server group be server group 3321, then by access request act on behalf of to server group 3321,
Otherwise act on behalf of to server group 3322.
In more extreme cases, if the formal publisher server group of the server cluster in all regions is the loudest
Should be abnormal, then access request can be acted on behalf of the server set to first-selected region by proxy server 321 again
The pre-publisher server group of group, such as the pre-publisher server group 3312 in the server cluster 331 of region 1.
If the pre-publisher server group 3312 in the server cluster 331 of this region 1 also cannot normal response,
Then can be by access request agency to next region, such as configuration information medium priority is only second to first-selected region
Pre-publisher server group in server cluster in next region, the server cluster 332 of such as region 2
In pre-publisher server group 3322 till access request obtains normal response.
In the case of the formal publisher server group of Servers-all cluster all delays machine, follow-up when can be spaced
Between whether detect formal publisher server group normal, if formally recovered, it is possible to switch back into and formally issue clothes
Business device group.
As discussed previously, access request generally comprises head portion and main part.Access request is likely
Being sent by wechat platform, webservice etc., now, the information of the head portion of access request is
The same, it is impossible to as the sign of some normal load strategies.
In the present invention, proxy server can include data base and parsing module (not shown).Data
Storehouse can prestore the request form of multiple request type.Parsing module can be by searching data base with root
The main part of access request is resolved by the request form asked according to this user, to obtain ID,
Thus can be as the mark of load balancing.
Fig. 4 shows the flow chart of Proxy Method 400 according to an aspect of the present invention.As shown in Figure 4,
Proxy Method 400 can comprise the following steps that
In step 401: access request is performed domain name mapping, access request is resolved to first agent's service
Device.
In one example, described access request is resolved to multiple agency's clothes by launch position based on access request
This first agent's server in business device, these multiple proxy servers are deployed in different regions, each region
Inside it is deployed with corresponding server cluster.The launch position of this access request falls at described first agent's server
In the first residing region
In step 402: by this first agent's server configuration information based on self, access request is acted on behalf of extremely
Formal publisher server group in first server cluster, this first server cluster includes for providing access
The formal publisher server group serviced and the pre-publisher server group being used for server updating, this pre-issuing service
Device group switches to formal publisher server group to service for providing to access after upgrading, and formally issues
Server group correspondingly switches to pre-publisher server group for server updating.
In the example of one server cluster of each region configuration, this first server cluster can be this
Server cluster in first-selected region in the configuration information of one proxy server.
Further, first agent's server can based on load balancing by access request agency to this first
The server in formal publisher server group in server cluster.Conventional load balancing can include wheel
Follow equilibrium, weight repeating query equilibrium, Stochastic Equilibrium, response speed equilibrium, the equilibrium of minimum connection number, process energy
Power equilibrium, DNS response equilibrium etc..
If the equal response abnormality of Servers-all in the formal publisher server group of first server cluster, then may be used
By first agent's server configuration information based on self by the service in access request agency to next region
Formal publisher server group in device cluster is until access request obtains normal response.
In extreme situations, if the formal publisher server group of the server cluster in all regions all responds
Abnormal, then by first agent's server configuration information based on self, access request can be acted on behalf of to first service
Pre-publisher server group in device cluster.
In more extreme cases, if the Servers-all in the pre-publisher server group of first server cluster
All response abnormality, then can act on behalf of supreme by access request by first agent's server configuration information based on self
State the pre-publisher server group in the server cluster in next region, repeat this operation until access request obtains
To normal response.
In the case of the formal publisher server group of Servers-all cluster all delays machine, follow-up when can be spaced
Between whether detect formal publisher server group normal, if formally recovered, it is possible to switch back into and formally issue clothes
Business device group.
In one example, the main part of access request can be resolved to obtain user by first agent's server
ID, for the mark of load balancing.Such as, first agent's server can be based on locally stored pass
Request form in access request performs parsing to the main part of access request.
Although illustrate for making explanation simplify said method and be described as a series of actions, it should be understood that also
Understanding, these methods are not limited by the order of action, because of according to one or more embodiments, and some actions
Can occur in different order and/or with from depicted and described herein or the most not shown and describe but this
Skilled person may be appreciated other actions and occurs concomitantly.
In the present invention, by adding the concept of region, can be individually to some region Proxy load, also
Can configure multiple region, multiple regions carry out load agent, multiple regions switch over, it is provided that generation
The motility of reason.On the other hand, issue and the pre-real-time switching issuing environment by providing formal, solve
The problem come into force after needing to restart after the amendment configuration of all proxy servers, this technology need not the service of restarting
Device, revises any configuration and comes into force the most in real time, it is achieved that the effect of dynamic proxy.
Additionally, compare nginx can only obtain load strategy related content from request header information, the present invention is led to
Cross analysis request body acquisition of information load strategy content, thus strengthen load strategy, solve general load
The problem that strategy execution mode is single, thus support that Proxy load equalizes multiformity, such as can support wechat
With various ways such as webservice.
Skilled artisans will appreciate that, the various illustrative described in conjunction with the embodiments described herein
Logic plate, module, circuit and algorithm steps can be embodied as electronic hardware, computer software or this two
The combination of person.For clearly explaining orally this interchangeability of hardware and software, various illustrative components, frame,
Module, circuit and step are made vague generalization above with its functional form and are described.This type of is functional
It is implemented as hardware or software depends on specifically applying and putting on the design constraint of total system.Technology
Personnel can realize described functional for every kind of application-specific by different modes, but such realization
Decision-making should not be interpreted to cause departing from the scope of the present invention.
The various illustrative logic modules and the circuit that describe in conjunction with presently disclosed embodiment can use general place
Reason device, digital signal processor (DSP), special IC (ASIC), field programmable gate array
(FPGA) or other PLD, discrete door or transistor logic, discrete nextport hardware component NextPort,
Or its any combination being designed to carry out function described herein realizes or performs.General processor can be
Microprocessor, but in alternative, this processor can be the processor of any routine, controller, micro-
Controller or state machine.Processor is also implemented as the combination of calculating equipment, such as DSP with micro-
One or more microprocessors that the combination of processor, multi-microprocessor cooperate with DSP core or
Any other this type of configuration.
The method described in conjunction with embodiment disclosed herein or the step of algorithm can be embodied directly in hardware, in by
Embody in the software module that processor performs or in combination of the two.Software module can reside in RAM
Memorizer, flash memory, ROM memory, eprom memory, eeprom memory, depositor,
Hard disk, removable dish, CD-ROM or known in the art any other form storage medium in.
Exemplary storage medium is coupled to processor so that this processor can read from/to this storage medium and write
Information.In alternative, storage medium can be integrated into processor.Processor and storage medium can be stayed
Stay in ASIC.ASIC can reside in user terminal.In alternative, processor and storage are situated between
Matter can be resident in the user terminal as discrete assembly.
In one or more exemplary embodiments, described function can hardware, software, firmware or its
Any combination realizes.If being embodied as computer program in software, the most each function can be as one
Bar or more a plurality of instruction or code storage on a computer-readable medium or mat its transmit.Computer-readable
Medium includes computer-readable storage medium and communication media, and it includes facilitating computer program from a ground to separately
Any medium of one ground transfer.Storage medium can be any usable medium that can be accessed by a computer.As
Example and non-limiting, such computer-readable medium can include RAM, ROM, EEPROM, CD-ROM
Or other optical disc storage, disk storage or other magnetic storage apparatus, maybe can be used to carry or store instruction or
The desirable program code of data structure form and other medium any that can be accessed by a computer.Any connection is also
It is properly termed a computer-readable medium.Such as, if software be use coaxial cable, fiber optic cables,
Twisted-pair feeder, numeral subscriber's line (DSL) or the wireless skill of the most infrared, radio and microwave etc
Art from web site, server or other remote source transmission, then this coaxial cable, fiber optic cables,
The wireless technology of twisted-pair feeder, DSL or the most infrared, radio and microwave etc is just included in Jie
Among the definition of matter.As used herein dish (disk) and dish (disc) include compact disc (CD),
Laser dish, laser disc, digital versatile dish (DVD), floppy disk and blu-ray disc, its mid-game (disk) often with
The mode of magnetic reproduces data, and dish (disc) reproduces data optically with laser.Combinations of the above is also
Should be included within the scope of computer readable media.
Claims (20)
1. for a Proxy Method for network, including:
Access request is performed domain name mapping, described access request is resolved to first agent's server;And
By described first agent's server configuration information based on self, described access request is acted on behalf of to first
Formal publisher server group in server cluster, described first server cluster includes for providing access clothes
The formal publisher server group being engaged in and the pre-publisher server group being used for server updating, described pre-issuing service
Device group upgrading after switch to formal publisher server group for provide access service, and described formally
Publisher server group correspondingly switches to described pre-publisher server group for server updating.
2. Proxy Method as claimed in claim 1, it is characterised in that described execution domain name mapping includes:
Described access request is resolved to multiple proxy servers by launch position based on described access request
Described first agent's server, the plurality of proxy server is deployed in different regions, in each region
Being deployed with corresponding server cluster, the launch position of described access request falls at described first agent's server
In the first residing region, described first server cluster is in the configuration information of described first agent's server
Server cluster in first-selected region.
3. Proxy Method as claimed in claim 2, it is characterised in that described by described access request generation
Formal publisher server group in reason extremely described first server cluster farther includes:
Based on load balancing by described access request agency to described in described first server cluster just
Server in formula publisher server group.
4. Proxy Method as claimed in claim 3, it is characterised in that also include:
If the equal response abnormality of Servers-all in the formal publisher server group of described first server cluster,
Then by described first agent's server configuration information based on self, described access request is acted on behalf of to next ground
Formal publisher server group in server cluster in territory is until described access request obtains normal response.
5. Proxy Method as claimed in claim 4, it is characterised in that also include:
If the formal equal response abnormality of publisher server group of the server cluster in all regions, then by described
One proxy server configuration information based on self is by described access request agency extremely described first server collection
Pre-publisher server group in Qun.
6. Proxy Method as claimed in claim 5, it is characterised in that also include:
If the equal response abnormality of Servers-all in the pre-publisher server group of described first server cluster, then
By described first agent's server configuration information based on self by described access request agency to the most described next
Pre-publisher server group in server cluster in region until described access request obtains normal response, its
In, detect that formal publisher server group normally works if follow-up, then subsequent access request has been acted on behalf of to just
The often formal publisher server group of work.
7. the Proxy Method as described in claim 4 or 6, it is characterised in that also include:
After described access request obtains normal response, revise described configuration information so that normal response will be provided
The region at server cluster place be configured to first-selected region.
8. Proxy Method as claimed in claim 4, it is characterised in that described load balancing includes
Following at least one: repeating query equilibrium, weight repeating query equilibrium, Stochastic Equilibrium, response speed equilibrium, minimum company
Connect number equilibrium, disposal ability equalizes, DNS responds equilibrium.
9. Proxy Method as claimed in claim 4, it is characterised in that described access request includes head
Part and main part, also include:
By the main part of described first agent's server described access request of parsing to obtain ID, with
Mark for described load balancing.
10. Proxy Method as claimed in claim 9, it is characterised in that described first agent's server base
In the locally stored request form about described access request, the main part of described access request is performed
Resolve.
11. 1 kinds of agency plants for network, including:
Domain name resolution server, for performing domain name mapping to access request;
At least one proxy server, each proxy server is used for performing agent functionality;And
At least one server cluster, each server cluster includes the formal issue for providing the service of access
Server group and the pre-publisher server group for server updating, described pre-publisher server group is being upgraded
Formal publisher server group is switched to service for providing to access after Biing, and described formal publisher server group
Correspondingly switch to described pre-publisher server group for server updating,
Described access request is resolved at least one agency service described by wherein said domain name resolution server
First agent's server in device, described first agent's server configuration information based on self is by described access
The formal publisher server of the first server cluster in request agency extremely at least one server cluster described
Group.
12. agency plants as claimed in claim 11, it is characterised in that at least one agency's clothes described
Business device includes the multiple proxy servers being deployed in different regions, and at least one server cluster described includes
Being deployed in multiple server clusters of different geographical, domain name resolution server is based on described access request
Described access request is resolved to described first agent's server, the initiation position of described access request by launch position
Putting in the first region residing for described first agent's server, described first server cluster is described
Server cluster in first-selected region in the configuration information of one proxy server.
13. agency plants as claimed in claim 12, it is characterised in that described first agent's server
It is further used in described access request agency to described first server cluster based on load balancing
Server in described formal publisher server group.
14. agency plants as claimed in claim 13, it is characterised in that described first agent's server
If the Servers-all being further used in the formal publisher server group of described first server cluster is the loudest
Should be abnormal, then configuration information based on self is by the server set in described access request agency to next region
Formal publisher server group in Qun is until described access request obtains normal response.
15. agency plants as claimed in claim 14, it is characterised in that described first agent's server
If the formal equal response abnormality of publisher server group of the server cluster being further used in all regions, then base
Pre-issue in described access request agency to described first server cluster is taken by the configuration information in self
If follow-up, business device group, wherein, has detected that formal publisher server group normally works, then please by subsequent access
Seek the formal publisher server group acted on behalf of to normal work.
16. agency plants as claimed in claim 15, it is characterised in that described first agent's server
If the Servers-all being further used in the pre-publisher server group of described first server cluster all responds
Abnormal, then configuration information based on self is by the server in described access request agency to next region described
Pre-publisher server group in cluster is until described access request obtains normal response.
17. agency plants as described in claim 14 or 16, it is characterised in that described first agent takes
Business device is further used for after described access request obtains normal response, revises described configuration information carrying
Region for the server cluster place of normal response is configured to first-selected region.
18. agency plants as claimed in claim 14, it is characterised in that described load balancing bag
Include following at least one: repeating query equilibrium, weight repeating query equilibrium, Stochastic Equilibrium, response speed equilibrium, minimum
Connect number equilibrium, disposal ability equalizes, DNS responds equilibrium.
19. agency plants as claimed in claim 14, it is characterised in that described access request includes head
Portion's part and main part, described first agent's server also includes:
Parsing module, for resolving the main part of described access request to obtain ID, for institute
State the mark of load balancing.
20. agency plants as claimed in claim 19, it is characterised in that described first agent's server
Also including data base, in described data base, storage has the request form of multiple request type, described parsing module
Search described data base and carry out the main part to described access request with the request form asked according to described user
Divide and perform parsing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610506654.0A CN105915655B (en) | 2016-06-30 | 2016-06-30 | Network agent method and agency plant |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610506654.0A CN105915655B (en) | 2016-06-30 | 2016-06-30 | Network agent method and agency plant |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105915655A true CN105915655A (en) | 2016-08-31 |
CN105915655B CN105915655B (en) | 2019-06-21 |
Family
ID=56754208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610506654.0A Active CN105915655B (en) | 2016-06-30 | 2016-06-30 | Network agent method and agency plant |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105915655B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657050A (en) * | 2016-12-15 | 2017-05-10 | 迈普通信技术股份有限公司 | Domain name resolution anomaly detection method, detection management server and gateway equipment |
CN106941420A (en) * | 2017-03-16 | 2017-07-11 | 北京深思数盾科技股份有限公司 | A kind of cluster application environment upgrade method and device |
CN107092511A (en) * | 2017-04-25 | 2017-08-25 | 北京百家互联科技有限公司 | Pre- dissemination method and device |
CN113596157A (en) * | 2021-07-30 | 2021-11-02 | 绿漫科技有限公司 | SpringCloud-based alliance chain non-inductive publishing method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431532A (en) * | 2008-12-15 | 2009-05-13 | 中国电信股份有限公司 | Content routing method, load balancing equipment and resource management equipment |
CN102457557A (en) * | 2010-10-29 | 2012-05-16 | 卓望数码技术(深圳)有限公司 | Wireless network application system and wireless network application method based on C/S (client/server) structure |
US20140040478A1 (en) * | 2000-09-26 | 2014-02-06 | Brocade Communications Systems, Inc. | Global server load balancing |
-
2016
- 2016-06-30 CN CN201610506654.0A patent/CN105915655B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140040478A1 (en) * | 2000-09-26 | 2014-02-06 | Brocade Communications Systems, Inc. | Global server load balancing |
CN101431532A (en) * | 2008-12-15 | 2009-05-13 | 中国电信股份有限公司 | Content routing method, load balancing equipment and resource management equipment |
CN102457557A (en) * | 2010-10-29 | 2012-05-16 | 卓望数码技术(深圳)有限公司 | Wireless network application system and wireless network application method based on C/S (client/server) structure |
Non-Patent Citations (2)
Title |
---|
蒋业文: "CDN关键技术的研究及其系统设计", 《中国优秀硕士学位论文全文数据库(电子期刊)》 * |
谌丽: "基于云计算的CDN平台研究及其缓存技术探索", 《中国优秀硕士学位论文全文数据库(电子期刊)》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657050A (en) * | 2016-12-15 | 2017-05-10 | 迈普通信技术股份有限公司 | Domain name resolution anomaly detection method, detection management server and gateway equipment |
CN106941420A (en) * | 2017-03-16 | 2017-07-11 | 北京深思数盾科技股份有限公司 | A kind of cluster application environment upgrade method and device |
CN106941420B (en) * | 2017-03-16 | 2019-12-13 | 北京深思数盾科技股份有限公司 | cluster application environment upgrading method and device |
CN107092511A (en) * | 2017-04-25 | 2017-08-25 | 北京百家互联科技有限公司 | Pre- dissemination method and device |
CN113596157A (en) * | 2021-07-30 | 2021-11-02 | 绿漫科技有限公司 | SpringCloud-based alliance chain non-inductive publishing method |
Also Published As
Publication number | Publication date |
---|---|
CN105915655B (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210377337A1 (en) | Load balanced network file accesses | |
US11411817B2 (en) | Optimizing application configurations in a provider network | |
US8639748B2 (en) | Optimized content distribution based on metrics derived from the end user | |
CN105915655A (en) | Proxy method and agent method for network | |
CN111182089B (en) | Container cluster system, method and device for accessing big data assembly and server | |
US20120054266A1 (en) | Optimized Content Distribution Based on Metrics Derived from the End User | |
US20090210513A1 (en) | Asynchronous automated routing of user to optimal host | |
JP2009532781A (en) | Leader inquiry system | |
CN102047243A (en) | Request routing based on class | |
CN103731498B (en) | Big data real-time enquiry system load balancing method based on copy selection | |
CN112954089B (en) | Method, device, equipment and storage medium for analyzing data | |
US20170118232A1 (en) | Method, device and system for processing dns behavior | |
EP3066577B1 (en) | Content node selection using network performance profiles | |
CN104320488A (en) | Proxy server system and proxy service method | |
CN105357233A (en) | Remote call method and device | |
CN104301439B (en) | Load-balancing method, apparatus and system | |
CN103685056A (en) | Load balancing method and load balancing system | |
CN110213365B (en) | User access request processing method based on user partition and electronic equipment | |
US20150106494A1 (en) | Characterization of domain names based on changes of authoritative name servers | |
CN106992999B (en) | Cross-server data communication processing method | |
CN105049463A (en) | Distributed database, method of sharing data, and apparatus for a distributed database | |
CN106257895A (en) | The method and device of network addressing | |
CN105959413A (en) | Network proxy method and system | |
CN105610991A (en) | Load balancing method of recursion and analysis DNS (Domain Name Server) under DHCP (Dynamic Host Configuration Protocol) environment | |
US20100057837A1 (en) | Shared hosting using host name affinity |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Network proxy method and proxy system Effective date of registration: 20230223 Granted publication date: 20190621 Pledgee: China Construction Bank Corporation Shanghai No.5 Sub-branch Pledgor: SHANGHAI XIAOI ROBOT TECHNOLOGY Co.,Ltd. Registration number: Y2023980033272 |