CN106412120A - Load server configuration method and device - Google Patents
Load server configuration method and device Download PDFInfo
- Publication number
- CN106412120A CN106412120A CN201611036299.1A CN201611036299A CN106412120A CN 106412120 A CN106412120 A CN 106412120A CN 201611036299 A CN201611036299 A CN 201611036299A CN 106412120 A CN106412120 A CN 106412120A
- Authority
- CN
- China
- Prior art keywords
- access
- access terminal
- terminal
- network
- business
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a load server configuration method and device. The method comprises the steps that whether the service of currently accessing a target network and the service of accessing the target network last time are continuous services is judged when a first access terminal and a second access terminal have different network addresses but the same physical address, wherein the first access terminal is the access terminal which currently accesses the target network and the second access terminal is the access terminal which accesses the target network last time; and if the service of currently accessing the target network and the service of accessing the target network last time are continuous services, the first access terminal is assigned to the same load server as the second access terminal. According to the invention, the technical problem that the same session of the same access terminal is interrupted due to the change of the IP address of the access terminal in the prior art is solved.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of collocation method of loaded server and device.
Background technology
At present in terms of network configuration, because the operational efficiency problem of single server, in the deployment of mega project with send out
In cloth, substantially all can take bunch, the deployment scheme of multi load, therefore cluster and multi load are a popular trend.Existing
Some network configuration aspects, load management server would generally be according to the loaded server in network and the client computer accessing network
Carry out comprehensive load computing, the client computer of access be assigned in corresponding loaded server according to certain algorithm and access,
So that the load reduction of whole network is to minimum.
In common cluster multi load network, when load computing, row operation can be entered according to the IP of client computer.Common
In load balancing configuration, typically the access of identical IP can be assigned on same loaded server, that is an IP first
After secondary access is assigned on a loaded server, later all access all can be assigned to same loaded server
On, because the seriality of SESSION (session) database caching when so can ensure that system accesses.
But according to above-mentioned situation it may appear that a problem be exactly:When user access IP because network problem or
Person is because that some other reasonses lead to change, or when frequently changing, if the IP address after conversion does not have in systems
Occurred, and when so visiting again this network, management server can be supported be considered as once brand-new request and enter row operation, this
When according to load computing it is possible to allocated loaded server and IP address conversion before be not same, thus can
Lead to the loss of SESSION and cookie (data cached), be exactly that system accesses time-out in the experience of user side, this because IP
Change leads to loaded server assignment error to lead to the improper time-out of custom system can reduce the experience of customer access network.
For in prior art, the change due to accessing IP address of terminal leads to the same same session quilt accessing terminal
The problem interrupted, not yet proposes effective solution at present.
Content of the invention
Embodiments provide a kind of collocation method of loaded server and device, at least to solve prior art
In, the change due to accessing IP address of terminal leads to the technical problem that the same same session accessing terminal is interrupted.
A kind of one side according to embodiments of the present invention, there is provided collocation method of loaded server, including:First
Access terminal with second access terminal the network address is different and physical address identical in the case of, judge present access destination net
Whether the business of network is continuous business with the business of last access target network, and wherein, first accesses terminal for current accessed
The access terminal of objective network, the second access terminal is the access terminal of last access target network;If current accessed mesh
The business of mark network is continuous business with the business of last access target network, then access terminal distribution to second by first
Access terminal identical loaded server.
Further, judge the business of present access destination network with the business of once access target network be whether
Before continuous business, method also includes:Judge whether the first access terminal meets different from the network address of the second access terminal
And physical address identical condition, wherein, judge whether the first access terminal meets the network address accessing terminal with second not
With and physical address identical condition, including:In the case of the first access terminal access objective network is detected, judge first
Whether the network address accessing terminal is identical with the network address of the second access terminal;First access terminal the network address with
In the case of the network address difference of the second access terminal, if first accesses the MAC Address phase of terminal and the second access terminal
With it is determined that the first access terminal accesses terminal for same access terminal with second.
Further, judge whether the business of present access destination network is even with the business of last access target network
Continuous business, including:Obtain the very first time and the second access terminal access objective network of the first access terminal access objective network
The second time;If the time difference of the very first time and the second time is in preset time range it is determined that present access destination
The business of network is continuous business with the business of last access target network.
Further, first is accessed terminal distribution and access terminal identical loaded server to second, including:Judge
Whether the loaded server of the first access terminal is identical with the loaded server of the second access terminal;If first access terminal with
The loaded server of the second access terminal is different, then the loaded server of the first access terminal is replaced by the second access terminal
Loaded server.
Further, before judging whether the first access terminal is same access terminal with the second access terminal, method
Also include:Setting preset time range.
Further, before judging whether the first access terminal is same access terminal with the second access terminal, method
Also include:Preset time range is stored to any one or more regions as follows:XML file, registration table and system file.
Further, before judging whether the first access terminal is same access terminal with the second access terminal, method
Also include:Set up data base, wherein, data base at least includes following field:The network ground of the access terminal of access target network
Location, the MAC Address of the access terminal of access target network, access the network address of loaded server and the access target of terminal
The time of network.
Further, before judging whether the first access terminal is same access terminal with the second access terminal, method
Also include:Set up data base, wherein, data base at least includes following field:Preset time range, the access of access target network
The network address of terminal, the MAC Address of the access terminal of access target network, access the network address of the loaded server of terminal
And the time of access target network.
Another aspect according to embodiments of the present invention, additionally provides a kind of configuration device of loaded server, including:First
Judge module, for first access terminal with second access terminal the network address is different and physical address identical situation
Under, judge whether the business of present access destination network and the business of last access target network are continuous business, wherein, the
One accesses the access terminal that terminal is present access destination network, and the second access terminal is the access of last access target network
Terminal;Distribute module, if business and the business of last access target network for present access destination network are continuous
Business, then access terminal distribution by first and access terminal identical loaded server to second.
Further, device also includes:Second judge module, wherein, the second judge module includes:Judging unit, is used for
In the case of the first access terminal access objective network is detected, judge the network address and second access of the first access terminal
Whether the network address of terminal is identical;Determining unit, in the network address of the first access terminal and the second access terminal
The network address difference in the case of, if first access terminal with second access terminal MAC Address identical it is determined that first visit
Ask that terminal accesses terminal for same access terminal with second.
Further, the first judge module includes:Acquisition submodule, for obtaining the first access terminal access objective network
The very first time and second access terminal access objective network the second time;Determination sub-module, if for the very first time with
The time difference of the second time in preset time range it is determined that the business of present access destination network with once access target
The business of network is continuous business.
Further, distribute module includes:Judging submodule, for judging the loaded server and the of the first access terminal
Whether the loaded server of two access terminals is identical;Change submodule, if accessing terminal and the second access terminal for first
Loaded server different, then the loaded server of the first access terminal is replaced by the loaded server of the second access terminal.
Further, device also includes:Setup module, for judging whether the first access terminal accesses terminal with second
Before same access terminal, preset time range is set.
Further, device also includes:Memory module, for by preset time range store to following any one or many
In individual region:XML file, registration table and system file.
Further, device also includes:First creation module, for judging the first access terminal and the second access terminal
Before whether being same access terminal, set up data base, wherein, data base at least includes following field:Access target network
Access the network address, the MAC Address of the access terminal of access target network of terminal, access the network of the loaded server of terminal
Address and the time of access target network.
Further, device also includes:Second creation module, for judging the first access terminal and the second access terminal
Before whether being same access terminal, set up data base, wherein, data base at least includes following field:Preset time range, visit
Ask the network address of access terminal of objective network, the MAC Address of the access terminal of access target network, access the load of terminal
The network address of server and the time of access target network.
In embodiments of the present invention, first access terminal with second access terminal the network address is different and physical address
In the case of identical, judge whether the business of present access destination network and the business of last access target network are continuous industry
Business;If the business of present access destination network is continuous business with the business of last access target network, first is visited
Ask that terminal distribution accesses terminal identical loaded server to second.Such scheme is in the request of the access target network receiving
Afterwards, current accessed and on once access for same access terminal initiate continuous business in the case of, by current accessed mesh
The access terminal identical loaded server extremely with last access target network for the access terminal distribution of mark network, thus solve
In prior art, the change due to accessing IP address of terminal leads to the technology that the same same session accessing terminal is interrupted
Problem.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description is used for explaining the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the collocation method of loaded server according to embodiments of the present invention;
Fig. 2 is the flow chart of the collocation method of the first optional loaded server according to the embodiment of the present application;
Fig. 3 is that a kind of a kind of optionally service by load management server distribution network according to embodiments of the present invention please
The schematic diagram asked;And
Fig. 4 is the schematic diagram of the configuration device of loaded server according to embodiments of the present invention;
Fig. 5 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention;
Fig. 7 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention;
Fig. 8 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention;
Fig. 9 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention;
Figure 10 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention;And
Figure 11 is the schematic diagram of the configuration device of a kind of optional loaded server according to embodiments of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only
The embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of not making creative work, all should belong to the model of present invention protection
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that such use
Data can exchange in the appropriate case so that embodiments of the invention described herein can with except here diagram or
Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation are it is intended that cover
Cover non-exclusive comprising, for example, contain series of steps or process, method, system, product or the equipment of unit are not necessarily limited to
Those steps clearly listed or unit, but may include clearly not listing or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the collocation method of loaded server, it should be noted that
Can execute in the computer system of such as one group of computer executable instructions in the step that the flow process of accompanying drawing illustrates, and
And although showing logical order in flow charts, but in some cases, can be with different from order execution institute herein
The step illustrating or describing.
Fig. 1 is the flow chart of the collocation method of loaded server according to embodiments of the present invention, as shown in figure 1, the method
Comprise the steps:
Step S102, first access terminal with second access terminal the network address is different and physical address identical feelings
Under condition, judge whether the business of present access destination network and the business of last access target network are continuous business, wherein,
First accesses the access terminal that terminal is present access destination network, and the second access terminal is the visit of last access target network
Ask terminal.
Specifically, above-mentioned access terminal can be used for accessing the equipment of network for any user, for example:Computer, industrial computer,
The mobile terminal such as flat board and smart mobile phone;The network address of above-mentioned access terminal can be IP address;Above-mentioned continuous business is used
Need continuous record access daily record in representing, or need the business proceeding to access on the basis of upper once access.Example
If, user is just in access target network, network failure during browsing, recovers after 30s, now user needs to exist
Continue on the basis of before network failure to access, then the access service before and after this network failure belongs to continuous business;
Again for example, for after access target network terminates, the next day also need to access target network again, then this accesses twice as not connecting
Continuous business.
In above-mentioned steps, if the first access terminal accesses terminal for same access terminal with second, can determine
It is due to network reason so that the IP address accessing terminal changes, and be not that a new access terminal carrys out access target
Network, now, judge current access with last access be whether one-time continuous business.
Step S104, if the business of present access destination network is continuous industry with the business of last access target network
Business, then access terminal distribution by first and access terminal identical loaded server to second.
In above-mentioned steps, current accessed and on once access for same access terminal continuous business when, then need
Will be with the first access terminal identical loaded server, thus preventing from leading to session eventually due to distribution to other loaded server
End accesses the situation of time-out.
From the foregoing, it will be observed that the application such scheme first access terminal with second access terminal the network address is different and thing
In the case of reason address identical, judge that whether the business of the business of present access destination network and last time access target network is
Continuous business;If the business of present access destination network is continuous business with the business of last access target network, will
First accesses terminal distribution accesses terminal identical loaded server to second.Such scheme is in the access target network receiving
Request after, current accessed and on once access for same access the continuous business that terminal is initiated in the case of, will be current
The access terminal identical loaded server extremely with last access target network for the access terminal distribution of access target network, from
And solve in prior art, the change due to accessing IP address of terminal leads to the same same session accessing terminal to be interrupted
Technical problem.
Optionally, in the above embodiments of the present application, step S102, judge the business of present access destination network with
Before whether the business of access target network is continuous business, method also includes:Judge whether the first access terminal meets
From the second access terminal the network address is different and physical address identical condition, wherein, judge whether the first access terminal expires
Foot with second access terminal the network address is different and physical address identical condition, including:
Step S1021, in the case of the first access terminal access objective network is detected, judges the first access terminal
Whether the network address is identical with the network address of the second access terminal.
Specifically, the above-mentioned network address can be IP address.
If the IP address of the access terminal of the access terminal of last access target network and present access destination network
Identical, then include two kinds of situations, the first situation is the access request that two different access terminal-pair targeted websites are initiated, separately
A kind of situation is the access request that same access terminal is initiated to targeted website, but because network reason leads to the change of IP address
Dynamic.
In a kind of optional embodiment, when access terminal access objective network has been detected, that is, start to judge currently
Whether the IP address of access terminal accessing is identical with the IP address of the last access terminal accessing, if identical, ought
The access terminal of front access target network is according to default algorithm (for example:Concordance hash algorithm) distribute to corresponding load clothes
Business device, because loaded server is distributed by IP address during distribution request, and this visit is eventually
The IP address at end does not change, and therefore can will access terminal distribution to loaded server as before;If no
With whether then entering the access terminal of the accesss terminal starting to judge present access destination network and last time access target network
For same access terminal.
Step S1023, in the network address of the first access terminal situation different from the network address of the second access terminal
Under, if the first access terminal is identical with the MAC Address of the second access terminal it is determined that the first access terminal is whole with the second access
Hold as same access terminal.
If because network reason makes the same IP address accessing terminal change, but the MAC of this access terminal ground
Location (physical address) can't change, if therefore MAC Address is identical, can determine in initiation current accessed and initiation
The access terminal once accessing is same access terminal.
If the first access terminal is different from the MAC Address of the second access terminal, initiate the access terminal accessing twice
For different access terminals, current access does not need relevant with the last session accessing, then according to default calculation
Method is allocated.
From the foregoing, it will be observed that the application above-mentioned steps have reached determination according to the MAC Address accessing terminal, and access terminal is twice
The no purpose for same access terminal.
Optionally, in the above embodiments of the present application, step S102, judge the business and upper of present access destination network
Whether the business of secondary access target network is continuous business, including:
Step S1025, obtains the very first time and the second access terminal access mesh of the first access terminal access objective network
Second time of mark network.
Step S1027, if the time difference of the very first time and shown second time in preset time range it is determined that working as
The business of front access target network is continuous business with the business of last access target network.
Specifically, above-mentioned preset time range is used for determining the business of present access destination network and last access target
Whether the business of website is continuous business, and above-mentioned preset time range can be the time range of system default it is also possible to useful
The self-defining time range in family.From the foregoing, it will be observed that the application above-mentioned steps determined by preset time range current accessed with upper
Whether the business once accessing is same access service.
Optionally, in the above embodiments of the present application, step S104, first is accessed terminal distribution and accesses eventually to second
End identical loaded server, including:
Whether step S1041, judge loaded server that the loaded server of the first access terminal accesses terminal with second
Identical.
Step S1043, if the first access terminal is different from the loaded server of the second access terminal, first is accessed
The loaded server of terminal is replaced by the loaded server of the second access terminal.
Determine first access terminal with second access terminal be same access terminal after, in order to by first access terminal
Distribute and access terminal identical loaded server to second, need to judge the loaded server of the first access terminal and the second visit
Ask whether the loaded server of terminal is identical, if it is different, in order to avoid causing very long time-out, then changing first and access eventually
The loaded server at end.
Optionally, in the above embodiments of the present application, judging whether the first access terminal is same with the second access terminal
Before one accesses terminal, method also includes:Setting preset time range.
Above-mentioned setting preset time range can be carried out by user, for example, the display of the access terminal being used in user
Interface for arranging preset time range is shown on equipment.
Optionally, in the above embodiments of the present application, judging whether the first access terminal is same with the second access terminal
Before one accesses terminal, method also includes:Preset time range is stored to any one or more regions as follows:XML literary composition
Part, registration table and system file.
Specifically, the time range of above-mentioned autonomous setting can preserve the place that can obtain to any server, also may be used
To save as the form that any server can read.
Optionally, in the above embodiments of the present application, judging whether the first access terminal is same with the second access terminal
Before one accesses terminal, method also includes:Set up data base, wherein, data base at least includes following field:Access target network
The network address of access terminal, the MAC Address of the access terminal of access target network, access terminal loaded server net
Network address and the time of access target network.
In a kind of optional embodiment, the data base of foundation includes tetra- fields of A, B, C, D, and wherein A field is used for table
Show the IP address accessing terminal, B field is used for representing the MAC Address accessing terminal, C field is used for representing the net of loaded server
Network address, D field is used for representing the time of access target network.For example, data-base recording A1 during last access target network,
B1, C1, D1, have recorded A2, B2, C2, D2 in data base during present access destination network, detect B1 identical with B2 when, then
Whether A1 is identical with A2 for detection, if A1 is differed with A2, whether C1 is identical with C2 for detection, if C1 is differed with C2,
Calculate the time difference of the time in the D2 field of current accessed and the time in D1 field, if the time difference of D2 and D1 is default
Time range in, then by the address substitution of the loaded server in C2 be C1 in loaded server address.
Optionally, in the above embodiments of the present application, judging whether the first access terminal is same with the second access terminal
Before one accesses terminal, method also includes:Set up data base, wherein, data base at least includes following field:Preset Time model
Enclose, the network address of access terminal of access target network, the MAC Address of the access terminal of access target network, access terminal
The network address of loaded server and access target network time.
In a kind of optional embodiment, the data base of foundation includes five fields of A, B, C, D, E, and wherein A field is used for
Represent the IP address accessing terminal, B field is used for representing the MAC Address accessing terminal, C field is used for representing loaded server
The network address, D field is used for representing the time of access target network, E is used for representing preset time range, in same cluster net
In network, different access can lead to the change of tetra- fields of A, B, C, D, but if not changing equipment, the data accessing every time is remembered
E all same in record.For example, data-base recording A1, B1, C1, D1 during last access target network, present access destination network
When data base in have recorded A2, B2, C2, D2, detect B1 identical with B2 when, then detection A1 whether identical with A2, if A1
Differ with A2, then detection C1 whether identical with C2, if C1 is differed with C2, calculating current accessed D2 field in when
Between with D1 field in time time difference, if the time difference of D2 and D1 is in the time range that E field is recorded, by C2
In loaded server address substitution be C1 in loaded server address.
Fig. 2 is the flow chart of the collocation method of the first optional loaded server according to the embodiment of the present application, shows at this
In example, because the IP address that equipment after network failure reparation reconnects during network is that silent setting leads to and IP address before
Difference, is described further to the collocation method of above-mentioned loaded server with reference to this flow chart.
S21, records access IP, the MAC Address of new request.
Above- mentioned information can be recorded in data base.
S22, the algorithm by concordance Hash load balancing is new request distribution loaded server.
S23, records the IP of the loaded server to be visited of new request.
S24, is obtained access IP when last identical MAC Address accesses for the last time, is accessed load clothes by data base
The IP of business device, time.
Above- mentioned information still can be recorded in the corresponding field in data base.
S25, judges whether the access IP of new request is consistent with the access IP of last time.
If the access IP of new request is consistent with last access IP, enter step S29, otherwise enter step
S26.
S26, judges whether the loaded server IP of new request is consistent with the loaded server IP of the access of last time.
If the loaded server IP of new request is identical with the loaded server IP of last visit, enter step S29,
Otherwise enter step S27.
S27, judges whether with the time interval of last visit within business timeout period.
Above-mentioned business timeout period can be the time period of user oneself setting or the time period of acquiescence, such as
The time interval of really new access and last visit not in business timeout period, then enters step S29, otherwise enters step
S28.
S28, this loaded server IP to be visited asking is changed to the loaded server IP of last visit.
Above-mentioned steps be used for by new access request distribute to last access request identical loaded server.
S29, record in data base this access IP, MAC Address, access loaded server IP, access time.
In data base, record above- mentioned information is used for distributing suitable loaded server to next access.
Herein it should be noted that such scheme can be by a small routine being cased with evaluation algorithm and data base's group
Become, leave in a computer of present networks, this computer can be any one loaded server or other servers.Figure
3 is a kind of a kind of signal optionally passing through load management server distribution network service request according to embodiments of the present invention
Figure, in conjunction with shown in Fig. 3, user initiates after access request to objective network, using load management server as load management node,
Request is distributed to multiple loaded server (if the server A of in figure is to server D), the mode of concrete distribution is configuration management
Mode:Obtain the information of this user's last visit by data base, analyze required for this request further according to business continuance
The loaded server connecting, i.e. mode shown in embodiment 1.
Embodiment 2
According to embodiments of the present invention, there is provided a kind of embodiment of the configuration device of loaded server, Fig. 4 is according to this
The schematic diagram of the configuration device of the loaded server of bright embodiment, as shown in figure 4, this device includes:
First judge module 40, different and physically with second network address accessing terminal for accessing terminal first
In the case of the identical of location, judge whether the business of present access destination network and the business of last access target network are continuous
Business, wherein, first accesses the access terminal that terminal is present access destination network, and second accesses terminal accesses mesh for last
The access terminal of mark network.
Distribute module 42, if business and the business of last access target network for present access destination network are
Continuous business, then access terminal distribution by first and access terminal identical loaded server to second.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Fig. 5, said apparatus also include:Second judge module
50, wherein, the second judge module 50 includes:
Judging unit 52, in the case of the first access terminal access objective network is detected, judging the first access
Whether the network address of terminal is identical with the network address of the second access terminal.
Determining unit 54, for different from the network address of the second access terminal in the network address of the first access terminal
In the case of, if the first access terminal is identical with the MAC Address of the second access terminal it is determined that first accesses terminal and the second visit
Ask that terminal is same access terminal.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Fig. 6, the first judge module 40 includes:
Acquisition submodule 60, for obtaining the very first time and the second access terminal of the first access terminal access objective network
Second time of access target network.
Determination sub-module 62, if for the very first time and the second time time difference in preset time range, really
Determining the business of present access destination network with the business of last access target network is continuous business.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Fig. 7, distribute module 42 includes:
Judging submodule 70, for judging the loaded server of the first access terminal and the load services of the second access terminal
Whether device is identical.
Change submodule 72, if it is different from the loaded server that second accesses terminal to access terminal for first, will
The loaded server of the first access terminal is replaced by the loaded server of the second access terminal.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Fig. 8, device also includes:
Setup module 80, for judge the first access terminal and the second access terminal be whether same access terminal it
Before, preset time range is set.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Fig. 9, said apparatus also include:
Memory module 90, for storing preset time range to any one or more regions as follows:XML file,
Registration table and system file.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Figure 10, device also includes:
First creation module 100, for judging whether the first access terminal is same access eventually with the second access terminal
Before end, set up data base, wherein, data base at least includes following field:The network ground of the access terminal of access target network
Location, the MAC Address of the access terminal of access target network, access the network address of loaded server and the access target of terminal
The time of network.
Optionally, according to the above embodiments of the present application, in conjunction with shown in Figure 11, device also includes:
Second creation module 110, for judging whether the first access terminal is same access eventually with the second access terminal
Before end, set up data base, wherein, data base at least includes following field:Preset time range, the access of access target network
The network address of terminal, the MAC Address of the access terminal of access target network, access the network address of the loaded server of terminal
And the time of access target network.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part describing in detail, may refer to the associated description of other embodiment.
It should be understood that disclosed technology contents in several embodiments provided herein, can pass through other
Mode is realized.Wherein, device embodiment described above is only the schematically division of for example described unit, Ke Yiwei
A kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly can in conjunction with or
Person is desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of unit or module or communication link
Connect, can be electrical or other form.
The described unit illustrating as separating component can be or may not be physically separate, show as unit
The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.The purpose to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products
Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server or network equipment etc.) execution each embodiment methods described of the present invention whole or
Part steps.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is only the preferred embodiment of the present invention it is noted that ordinary skill people for the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (16)
1. a kind of collocation method of loaded server is it is characterised in that include:
First access terminal and the second access terminal the network address is different and physical address identical in the case of, judge currently
Whether the business of access target network is continuous business with the last business accessing described objective network, wherein, described first
Access the access terminal that terminal is present access destination network, described second accesses terminal accesses described objective network for last
Access terminal;
If the business of objective network described in current accessed is continuous business with the last business accessing described objective network,
Described first is accessed terminal distribution and accesses terminal identical loaded server to described second.
2. method according to claim 1 it is characterised in that judge the business of objective network described in current accessed with
Once access described objective network business whether be continuous business before, methods described also includes:Judge described first access
Whether terminal meets and physical address identical condition different from the network address of the described second access terminal, wherein, judges institute
State whether the first access terminal meets and physical address identical condition different from the network address of the described second access terminal, bag
Include:
In the case of described first access terminal access objective network is detected, judge the network ground of described first access terminal
Whether location is identical with the network address of the second access terminal;
In the case that the network address of the described first access terminal is different from the network address of the described second access terminal, if
Described first access terminal with described second access terminal MAC Address identical it is determined that described first access terminal with described
Second accesses terminal for same access terminal.
3. method according to claim 2 it is characterised in that judge the business of objective network described in described current accessed with
Whether the last business accessing described objective network is continuous business, including:
Obtain described first to access described in the very first time of objective network described in terminal access and described second access terminal access
Second time of objective network;
If the time difference of the described very first time and described second time is in preset time range it is determined that described current accessed
The business of described objective network is described continuous business with the last business accessing described objective network.
4. method according to claim 3 is visited it is characterised in that accessing terminal distribution by described first to described second
Ask terminal identical loaded server, including:
Judge whether the loaded server of described first access terminal is identical with the loaded server of the described second access terminal;
If described first access terminal is different from the loaded server of the described second access terminal, will be whole for the described first access
The loaded server at end is replaced by the loaded server of described second access terminal.
5. method as claimed in any of claims 1 to 4 is it is characterised in that judging described first access terminal
Before whether being same access terminal with the described second access terminal, methods described also includes:Setting preset time range.
6. method according to claim 5 is it is characterised in that judging that described first accesses terminal and described second access
Before whether terminal is same access terminal, methods described also includes:Described preset time range is stored to any one as follows
In individual or multiple region:XML file, registration table and system file.
7. method according to claim 6 is it is characterised in that judging that described first accesses terminal and described second access
Before whether terminal is same access terminal, methods described also includes:
Set up data base, wherein, described data base at least includes following field:Access the net of the access terminal of described objective network
Network address, the MAC Address of the access terminal of the described objective network of access, the network address of the loaded server of described access terminal
And access the time of described objective network.
8. method according to claim 5 is it is characterised in that judging that described first accesses terminal and described second access
Before whether terminal is same access terminal, methods described also includes:
Set up data base, wherein, described data base at least includes following field:Preset time range, the described objective network of access
The network address of access terminal, access described objective network accesss terminal MAC Address, the load of described access terminal takes
The network address of business device and the time accessing described objective network.
9. a kind of configuration device of loaded server is it is characterised in that include:
First judge module, for accessing first, terminal is different from the network address of the second access terminal and physical address is identical
In the case of, judge whether the business of present access destination network and the last business accessing described objective network are continuous industry
Business, wherein, described first accesses the access terminal that terminal is present access destination network, and described second accesses terminal for the last time
Access the access terminal of described objective network;
Distribute module, if the business for objective network described in current accessed and the last business accessing described objective network
For continuous business, then described first is accessed terminal distribution and access terminal identical loaded server to described second.
10. device according to claim 9 is it is characterised in that described device also includes:Second judge module, wherein, institute
State the second judge module to include:
Judging unit, for, in the case of described first access terminal access objective network is detected, judging described first visit
Ask whether the network address of terminal is identical with the network address of the second access terminal;
Determining unit, for different from the network address of the described second access terminal in the network address of the described first access terminal
In the case of, if described first access terminal with described second access terminal MAC Address identical it is determined that described first visit
Ask that terminal accesses terminal for same access terminal with described second.
11. devices according to claim 10 are it is characterised in that described first judge module includes:
Acquisition submodule, accesses the very first time of objective network described in terminal access and described second visit for obtaining described first
Ask the second time of objective network described in terminal access;
Determination sub-module, if for the described very first time and shown second time time difference in preset time range,
Determine that the business of objective network described in described current accessed is described continuous industry with the last business accessing described objective network
Business.
12. devices according to claim 11 are it is characterised in that described distribute module includes:
Judging submodule, for judging the loaded server of described first access terminal and the load clothes of described second access terminal
Whether business device is identical;
Change submodule, if it is different from the loaded server that described second accesses terminal to access terminal for described first,
The loaded server of the described first access terminal is replaced by the loaded server of described second access terminal.
13. devices according to any one in claim 9 to 12 are it is characterised in that described device also includes:
Setup module, for judge described first access terminal and described second access terminal be whether same access terminal it
Before, preset time range is set.
14. devices according to claim 13 are it is characterised in that described device also includes:
Memory module, for storing described preset time range to any one or more regions as follows:XML file, note
Volume table and system file.
15. devices according to claim 14 are it is characterised in that described device also includes:
First creation module, for judging whether described first access terminal is same access eventually with described second access terminal
Before end, set up data base, wherein, described data base at least includes following field:Access the access terminal of described objective network
The network address, access described objective network access terminal MAC Address, the network of the loaded server of described access terminal
Address and the time accessing described objective network.
16. devices according to claim 13 are it is characterised in that described device also includes:
Second creation module, for judging whether described first access terminal is same access eventually with described second access terminal
Before end, set up data base, wherein, described data base at least includes following field:Preset time range, the described target network of access
The network address of access terminal of network, the MAC Address of the access terminal of the described objective network of access, the load of described access terminal
The network address of server and the time accessing described objective network.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611036299.1A CN106412120A (en) | 2016-11-22 | 2016-11-22 | Load server configuration method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611036299.1A CN106412120A (en) | 2016-11-22 | 2016-11-22 | Load server configuration method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106412120A true CN106412120A (en) | 2017-02-15 |
Family
ID=58083145
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611036299.1A Pending CN106412120A (en) | 2016-11-22 | 2016-11-22 | Load server configuration method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106412120A (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1416064A (en) * | 2001-10-31 | 2003-05-07 | 富士通株式会社 | load balancer |
| CN105141689A (en) * | 2015-02-05 | 2015-12-09 | 物联智慧科技(深圳)有限公司 | Management server, operation method thereof and server system |
| CN105530311A (en) * | 2015-12-25 | 2016-04-27 | 北京奇虎科技有限公司 | Load distribution method and device |
-
2016
- 2016-11-22 CN CN201611036299.1A patent/CN106412120A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1416064A (en) * | 2001-10-31 | 2003-05-07 | 富士通株式会社 | load balancer |
| CN105141689A (en) * | 2015-02-05 | 2015-12-09 | 物联智慧科技(深圳)有限公司 | Management server, operation method thereof and server system |
| CN105530311A (en) * | 2015-12-25 | 2016-04-27 | 北京奇虎科技有限公司 | Load distribution method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105681217B (en) | Dynamic load balancing method and system for container cluster | |
| CN106294073B (en) | Service calling method and device | |
| CN102025630A (en) | Load balancing method and load balancing system | |
| CN106453519A (en) | Interface call method and device | |
| CN107105013B (en) | File processing method, server, terminal and system | |
| CN108023967A (en) | A kind of management equipment in data balancing method, apparatus and distributed memory system | |
| CN101257406B (en) | Method and system for discovering net elements | |
| CN102075556A (en) | Method for designing service architecture with large-scale loading capacity | |
| CA2916258C (en) | Producer system partitioning among leasing agent systems | |
| CN107071074A (en) | A kind of load-balancing method and web server group system | |
| CN107172214A (en) | A kind of service node with load balancing finds method and device | |
| CN107105049A (en) | Data migration method and device | |
| CN101783742B (en) | Discovery method and device of network topology | |
| CN107678906A (en) | Hard disk management method and system | |
| CN110198227B (en) | Log file processing method and device, storage medium and electronic device | |
| CN116800825A (en) | Calling method, device, equipment and medium based on micro-service splitting | |
| CN115826845B (en) | Storage resource allocation method and device, storage medium, and electronic device | |
| CN101599857A (en) | Detect method, device and the network measuring system that inserts number of host of sharing | |
| CN111464574B (en) | Calling, loading, registering and managing method and route, server, node and medium | |
| CN103200124A (en) | Service strategy adjustment method and service strategy adjustment device | |
| CN109347994A (en) | Internet Protocol IP address acquisition method, device, storage medium and electronic device | |
| CN106412120A (en) | Load server configuration method and device | |
| CN108063814A (en) | A kind of load-balancing method and device | |
| CN105657014A (en) | Load balancing method, system and system | |
| CN110995542A (en) | Network state detection method, system and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |
|
| RJ01 | Rejection of invention patent application after publication |