CN102932266A - Method and device for controlling traffic distribution of server - Google Patents
Method and device for controlling traffic distribution of server Download PDFInfo
- Publication number
- CN102932266A CN102932266A CN2012104718604A CN201210471860A CN102932266A CN 102932266 A CN102932266 A CN 102932266A CN 2012104718604 A CN2012104718604 A CN 2012104718604A CN 201210471860 A CN201210471860 A CN 201210471860A CN 102932266 A CN102932266 A CN 102932266A
- Authority
- CN
- China
- Prior art keywords
- destination server
- server
- state
- described destination
- data
- 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
Images
Abstract
The invention discloses a method and a device for controlling the traffic distribution of a server. The method comprises the following steps: detecting the state of a target server; if detecting that the state of the target server is abnormal, stopping sending data to the target server in a preset time period; and after the preset time period, continuously sending the data to the target server. According to the invention, by stopping sending the data to the target server in the preset time period when detecting that the state of the target server is abnormal and continuously sending the data to the target server after the preset time period, the unnecessary traffic switching of the server can be reduced and the stability of the service quality of a cloud computing data center can be improved.
Description
Technical field
The present invention relates to computer realm, particularly, relate to control method and device that a kind of server traffic distributes.
Background technology
Numerous network services such as the Internet bank, online working, network inquiry and shopping online have become an inseparable part in people's life day by day, these internet, applications provide great help all for people's live and work, and for the data center of these application is provided, increasing rapidly of the incident user's of being flowing of access and number of servers, so data center needs load-balancing device that flowing of access is reasonably allocated on every station server, guarantees the operational efficiency of whole data center.
Along with mind-set cloud computing data center development in the general data, in extensive cloud computing environment, userbase constantly enlarges, the user proposes the requirement of the aspects such as higher access speed, access security and stability to the service of using, the load-balancing function of network layer can not satisfy the demand that higher level application service provides, therefore the application layer process of flow is added among the load-balancing device gradually, finally formed application delivery equipment.Application delivery equipment can carry out load balancing to the flow that enters cloud computing data center according to the state of applied business on the server, thereby improves the performance of cloud computing center applied business.
Application delivery equipment need to be according to the applied business state of server, and selection is assigned to different flow on the different servers and processes.In cloud computing environment, a lot of servers of data center are the virtual servers that is erected on the physical server, compare with physical server, and the variation of the service condition of virtual server is faster, and variation tendency has more uncertainty.
Do not consider the difference that virtual server and physical server service condition change in the general application delivery equipment, when a server is unavailable, can be directly on the new server of the flow switch on this server, this processing method is applicable to physical server, generally needs for a long time because physical server reverts to upstate from down state.But for virtual server, its down state probably is not real breaking down, but the abnormal state of moment, just can revert to upstate in short time, if too fast arrives other servers to flow switch, may cause the reconstruction of some network connection, reduce the stability of service quality.
For in the correlation technique during destination server abnormal state immediately with flow switch to other servers, thereby reduce service quality stability problem, effective solution is not yet proposed at present.
Summary of the invention
For in the correlation technique during destination server abnormal state immediately with flow switch to other servers, thereby reduce the problem of service quality stability, the present invention proposes control method and the device that a kind of server traffic distributes, can when the destination server abnormal state, stop within a predetermined period of time sending data to destination server, after predetermined amount of time, continuation sends data to destination server, reduces the unnecessary flow switch of server, the stability of improving service quality.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, the control method that provides a kind of server traffic to distribute, this control method comprises:
Detect the state of destination server;
If detect the state of destination server for unusual, then stop within a predetermined period of time sending data to destination server;
After predetermined amount of time, continue to send data to destination server.
In addition, before predetermined amount of time later continuation sent data to destination server, this control method further comprised:
State to destination server detects, and is in the normal situation at this state that detects destination server, continues to send data to destination server.
And before predetermined amount of time later continuation sent data to destination server, this control method further comprised:
State to destination server detects, and under this state that detects destination server is unusual situation, selects other servers to substitute the destination server receive data.
In addition, this control method further comprises:
Will send to the data of destination server in the buffer memory predetermined amount of time.
In addition, after predetermined amount of time, continue to send data to destination server and further comprise:
The data of buffer memory are sent to destination server.
Alternatively, this destination server comprises: virtual server and/or physical server.
According to another aspect of the present invention, the control device that provides a kind of server traffic to distribute, this control device comprises:
Detection module is for detection of the state of destination server;
Control module is used for stopping within a predetermined period of time sending data to destination server under the state that detects destination server is unusual situation; And, also be used for after predetermined amount of time, allowing to send data to destination server.
Wherein, detection module is further used for that the state to destination server detects before predetermined amount of time continues later to send data to destination server, and, the state that control module also is used at this detection destination server is in the normal situation, allows to send data to destination server.
In addition, detection module is further used for that the state to destination server detects before predetermined amount of time continues later to send data to destination server; And control module also is used for selecting other servers to substitute the destination server receive data under this state that detects destination server is unusual situation.
And this control device further comprises:
Cache module is for the data that will send to destination server in the buffer memory predetermined amount of time.
The present invention by at the state that detects destination server for after unusual, stop within a predetermined period of time sending data to destination server, and after predetermined amount of time, continuation sends data to server, can after server oneself adjustment and recovery, continue to send, thereby reduce the unnecessary flow switch of server, improved the stability of cloud computing data center services quality.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart according to the control method of the server traffic distribution of the embodiment of the invention;
Fig. 2 is the block diagram according to the control device of the server traffic distribution of the embodiment of the invention;
Fig. 3 is the block diagram of the concrete structure example of the control device that distributes of server traffic according to an embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtain belongs to the scope of protection of the invention.
According to one embodiment of present invention, the control method that provides a kind of server traffic to distribute.
The control method of distributing according to the server traffic of the embodiment of the invention as shown in Figure 1, comprises:
Step S101, the state of detection destination server;
Step S103 is if the state that detects destination server then stops to send data to destination server for unusual within a predetermined period of time;
Step S105 after predetermined amount of time, continues to send data to destination server.
In addition, before predetermined amount of time later continuation sent data to destination server, this control method further comprised:
State to destination server detects, and is in the normal situation at this state that detects destination server, continues to send data to destination server.
And before predetermined amount of time later continuation sent data to destination server, this control method further comprised:
State to destination server detects, and under this state that detects destination server is unusual situation, selects other servers to substitute the destination server receive data.
In addition, this control method further comprises:
Will send to the data of destination server in the buffer memory predetermined amount of time.
In addition, after predetermined amount of time, continue to send data to destination server and further comprise:
The data of buffer memory are sent to destination server.
Alternatively, this destination server comprises: virtual server and/or physical server.
According to one embodiment of present invention, the control device that provides a kind of server traffic to distribute.
As shown in Figure 2, the control device that distributes according to the server traffic of the embodiment of the invention comprises:
Wherein, detection module 21 is further used for that the state to destination server detects before predetermined amount of time continues later to send data to destination server, and, the state that control module 22 also is used at this detection destination server is in the normal situation, allows to send data to destination server.
In addition, detection module 21 is further used for that the state to destination server detects before predetermined amount of time continues later to send data to destination server; And control module 22 also is used for selecting other servers to substitute the destination server receive data under this state that detects destination server is unusual situation.
And this control device further comprises:
The cache module (not shown) is for the data that will send to destination server in the buffer memory predetermined amount of time.
According to control device of the present invention, can realize according to functional module shown in Figure 3.
As shown in Figure 3, in actual applications, the control device of server traffic distribution can correspond to application delivery device server assignment of traffic module according to an embodiment of the invention, and this module can comprise: server service state detection module, server state recovery timer, assignment of traffic module and flow buffering module.
In device shown in Figure 3, disposed the flow buffering module, when the service condition of finding the destination server of flow after assignment of traffic module and server service condition detection module are mutual is unavailable, the assignment of traffic module can directly not given new server assignment of traffic, but the flow temporary cache in the flow buffering module, simultaneously, start the server state recovery timer, if in the default maximum duration of server state recovery timer, the destination server service condition becomes upstate, then the flow of buffer memory is sent to this destination server, if the server state recovery timer has surpassed default maximum duration, the state of destination server still is unavailable, think that then fault has occured in this service, need to give new server the assignment of traffic of buffer memory.
The concrete steps of the processing procedure of the control device of server traffic distribution are as follows according to an embodiment of the invention:
One, after the assignment of traffic module receives input flow rate, obtains the business state information of current server from the server service state detection module, according to the load balancing of system, determine the destination server that this flow need to distribute.
If the service condition of two destination servers is in upstate, then flow is exported to this server.
If three destination servers are in down state (state of destination server for unusual), and destination server is physical server, then chooses a new server as destination server, output flow.
If four destination servers are in down state (state of destination server for unusual), and destination server is virtual server, then flow buffering in the flow buffering module, start simultaneously the recovering state counter of this virtual server.
Five, the recovering state counter carries out countdown according to the maximum duration (predetermined amount of time) of systemic presupposition.
Six, before countdown finishes, if destination server reverts to upstate, then the flow in the flow buffering module is sent to destination server.
If seven countdowns finish, destination server still is in down state, then chooses a new server as destination server, and flow in the flow buffering module is exported to new destination server.
Above processing method is a preferred embodiment of the present invention, alternatively, when destination server is detected when being in down state, can not judge that destination server is virtual or the physics service, and directly flow buffering in the flow buffering module, start simultaneously the step that server state recovers counter.
Alternatively, the timer that server state recovers can substitute with the capacity limit of flow buffering, if the buffer memory flow of certain station server has surpassed certain limit, thinking then that this server state is overtime recovers.
In sum, by means of technique scheme of the present invention, by at the state that detects destination server for after unusual, stop within a predetermined period of time sending data to destination server, and after predetermined amount of time, continuation sends data to server, can reduce the unnecessary flow switch of server, has improved the stability of cloud computing data center services quality.By server state is unusual to be stopped to send data to server in the scheduled time afterwards detecting, but be not directly again assignment of traffic to be arrived new server, but according to timer flow buffering is arrived cache module, within the scheduled time recovering state of server be available after, continuation sends state to server, can reduce the unnecessary flow switch of server, and saved server resource, and data cachedly can reduce loss of data, guarantee data continuity, improved the stability of access speed, access security and the service quality of cloud computing data center.
The above is preferred embodiment of the present invention only, is not limited to the present invention, and is within the spirit and principles in the present invention all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. the server traffic control method of distributing is characterized in that described control method comprises:
Detect the state of destination server;
If detect the state of described destination server for unusual, then stop within a predetermined period of time sending data to described destination server;
After described predetermined amount of time, continue to send data to described destination server.
2. control method according to claim 1 is characterized in that, before described predetermined amount of time later continuation sent data to described destination server, described control method further comprised:
State to described destination server detects, and is in the normal situation at this state that detects described destination server, continues to send data to described destination server.
3. control method according to claim 1 is characterized in that, before described predetermined amount of time later continuation sent data to described destination server, described control method further comprised:
State to described destination server detects, and under this state that detects described destination server is unusual situation, selects other servers to substitute described destination server receive data.
4. control method according to claim 1 is characterized in that, further comprises:
Will send to the data of described destination server in the described predetermined amount of time of buffer memory.
5. control method according to claim 1 is characterized in that, after described predetermined amount of time, continues to send data to described destination server and further comprises:
The described data of buffer memory are sent to described destination server.
6. control method according to claim 1 is characterized in that, described destination server comprises: virtual server and/or physical server.
7. the control device that distributes of a server traffic is characterized in that described control device comprises:
Detection module is for detection of the state of destination server;
Control module is used for stopping within a predetermined period of time sending data to described destination server under the state that detects described destination server is unusual situation; And, also be used for after described predetermined amount of time, allowing to send data to described destination server.
8. control device according to claim 7, it is characterized in that, described detection module is further used for that the state to described destination server detects before described predetermined amount of time continues later to send data to described destination server, and, it is in the normal situation that described control module also is used at this state that detects described destination server, allows to send data to described destination server.
9. control device according to claim 7 is characterized in that, described detection module is further used for that the state to described destination server detects before described predetermined amount of time continues later to send data to described destination server; And described control module also is used for selecting other servers to substitute described destination server receive data under this state that detects described destination server is unusual situation.
10. control device according to claim 7 is characterized in that, described control device further comprises:
Cache module is for the data that will send to described destination server in the described predetermined amount of time of buffer memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210471860.4A CN102932266B (en) | 2012-11-20 | 2012-11-20 | The control method that server traffic distributes and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210471860.4A CN102932266B (en) | 2012-11-20 | 2012-11-20 | The control method that server traffic distributes and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102932266A true CN102932266A (en) | 2013-02-13 |
CN102932266B CN102932266B (en) | 2016-02-10 |
Family
ID=47646973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210471860.4A Active CN102932266B (en) | 2012-11-20 | 2012-11-20 | The control method that server traffic distributes and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102932266B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933530A (en) * | 2016-05-30 | 2016-09-07 | 乐视控股(北京)有限公司 | Method for saving data traffic and traffic management device |
WO2017092414A1 (en) * | 2015-12-03 | 2017-06-08 | 杭州海康威视数字技术股份有限公司 | Data cloud storage system, client terminal, storage server and application method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050102393A1 (en) * | 2003-11-12 | 2005-05-12 | Christopher Murray | Adaptive load balancing |
CN101079742A (en) * | 2007-07-03 | 2007-11-28 | 中兴通讯股份有限公司 | Data synchronization method and system between disaster tolerance home user servers |
CN101156142A (en) * | 2005-04-14 | 2008-04-02 | 松下电器产业株式会社 | Server device, information report method, and information report system |
CN101519078A (en) * | 2009-03-13 | 2009-09-02 | 国电南瑞科技股份有限公司 | Method for synchronizing multi-region data of comprehensive monitoring system |
CN101557315A (en) * | 2009-05-15 | 2009-10-14 | 成都市华为赛门铁克科技有限公司 | Method, device and system for active-standby switch |
CN101651691A (en) * | 2009-08-31 | 2010-02-17 | 中兴通讯股份有限公司 | Network system, access equipment and application layer service assess method |
CN101849384A (en) * | 2007-11-06 | 2010-09-29 | 朗讯科技公司 | Method for controlling load balance of network system, client, server and network system |
CN102739799A (en) * | 2012-07-04 | 2012-10-17 | 合一网络技术(北京)有限公司 | Distributed communication method in distributed application |
-
2012
- 2012-11-20 CN CN201210471860.4A patent/CN102932266B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050102393A1 (en) * | 2003-11-12 | 2005-05-12 | Christopher Murray | Adaptive load balancing |
CN101156142A (en) * | 2005-04-14 | 2008-04-02 | 松下电器产业株式会社 | Server device, information report method, and information report system |
CN101079742A (en) * | 2007-07-03 | 2007-11-28 | 中兴通讯股份有限公司 | Data synchronization method and system between disaster tolerance home user servers |
CN101849384A (en) * | 2007-11-06 | 2010-09-29 | 朗讯科技公司 | Method for controlling load balance of network system, client, server and network system |
CN101519078A (en) * | 2009-03-13 | 2009-09-02 | 国电南瑞科技股份有限公司 | Method for synchronizing multi-region data of comprehensive monitoring system |
CN101557315A (en) * | 2009-05-15 | 2009-10-14 | 成都市华为赛门铁克科技有限公司 | Method, device and system for active-standby switch |
CN101651691A (en) * | 2009-08-31 | 2010-02-17 | 中兴通讯股份有限公司 | Network system, access equipment and application layer service assess method |
CN102739799A (en) * | 2012-07-04 | 2012-10-17 | 合一网络技术(北京)有限公司 | Distributed communication method in distributed application |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017092414A1 (en) * | 2015-12-03 | 2017-06-08 | 杭州海康威视数字技术股份有限公司 | Data cloud storage system, client terminal, storage server and application method |
CN106850710A (en) * | 2015-12-03 | 2017-06-13 | 杭州海康威视数字技术股份有限公司 | A kind of safe data cloud storage system, client terminal, storage server and application process |
CN106850710B (en) * | 2015-12-03 | 2020-02-28 | 杭州海康威视数字技术股份有限公司 | Data cloud storage system, client terminal, storage server and application method |
US10623516B2 (en) | 2015-12-03 | 2020-04-14 | Hangzhou Hikvision Digital Technology Co., Ltd. | Data cloud storage system, client terminal, storage server and application method |
CN105933530A (en) * | 2016-05-30 | 2016-09-07 | 乐视控股(北京)有限公司 | Method for saving data traffic and traffic management device |
Also Published As
Publication number | Publication date |
---|---|
CN102932266B (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pires et al. | A virtual machine placement taxonomy | |
US6442165B1 (en) | Load balancing between service component instances | |
US9703608B2 (en) | Variable configurations for workload distribution across multiple sites | |
US20110078303A1 (en) | Dynamic load balancing and scaling of allocated cloud resources in an enterprise network | |
Nakai et al. | Load balancing for internet distributed services using limited redirection rates | |
CN106161076B (en) | Virtual network function extended method and device | |
CN105190558A (en) | Accelerated instantiation of cloud resource | |
US20100262860A1 (en) | Load balancing and high availability of compute resources | |
CN104333568A (en) | Cloud system for household electronic commerce based on CDN (Content Delivery Network) and load balancing technology as well as implementation method | |
CN109032830A (en) | A kind of fault recovery method of distributed memory system, system and associated component | |
US20120254444A1 (en) | Dynamic capacity management of multiple parallel-connected computing resources | |
CN108028850B (en) | Private cloud management platform | |
CN102158387A (en) | Protection fault information processing system based on dynamic load balance and mutual hot backup | |
CN110225137B (en) | Service request processing method, system, server and storage medium | |
CN106657416A (en) | Method and device for balancing load of controllers | |
CN104426694A (en) | Method and device for adjusting virtual-machine resources | |
CN110928637A (en) | Load balancing method and system | |
KR101586354B1 (en) | Communication failure recover method of parallel-connecte server system | |
Zhou et al. | Network failure–aware redundant virtual machine placement in a cloud data center | |
CN106254095B (en) | The backup processing method and equipment of tunnel traffic | |
Aghdai et al. | In-network congestion-aware load balancing at transport layer | |
CN106059940A (en) | Flow control method and device | |
US7616640B1 (en) | Load balancing between service component instances | |
CN102932266A (en) | Method and device for controlling traffic distribution of server | |
CN104219730A (en) | Method and device for controlling access in high-speed moving scenario |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |