CN102932266B - The control method that server traffic distributes and device - Google Patents

The control method that server traffic distributes and device Download PDF

Info

Publication number
CN102932266B
CN102932266B CN201210471860.4A CN201210471860A CN102932266B CN 102932266 B CN102932266 B CN 102932266B CN 201210471860 A CN201210471860 A CN 201210471860A CN 102932266 B CN102932266 B CN 102932266B
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.)
Active
Application number
CN201210471860.4A
Other languages
Chinese (zh)
Other versions
CN102932266A (en
Inventor
刘朝辉
邵宗有
刘新春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUXI CITY CLOUD COMPUTER CENTER CO Ltd
Original Assignee
WUXI CITY CLOUD COMPUTER CENTER CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUXI CITY CLOUD COMPUTER CENTER CO Ltd filed Critical WUXI CITY CLOUD COMPUTER CENTER CO Ltd
Priority to CN201210471860.4A priority Critical patent/CN102932266B/en
Publication of CN102932266A publication Critical patent/CN102932266A/en
Application granted granted Critical
Publication of CN102932266B publication Critical patent/CN102932266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses control method and the device of the distribution of a kind of server traffic, the method comprises: the state detecting destination server; If detect that the state of destination server is for abnormal, 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.The present invention is by after detecting that the state of destination server is for exception, stop within a predetermined period of time sending data to destination server, and after predetermined amount of time, continue to send data to server, the flow switch that server is unnecessary can be reduced, improve the stability of cloud computation data center service quality.

Description

The control method that server traffic distributes and device
Technical field
The present invention relates to computer realm, particularly, relate to control method and the device of a kind of server traffic distribution.
Background technology
Numerous network services such as the Internet bank, online working, network inquiry and shopping online have become a part inseparable in people's life day by day, these internet, applications provide great help all to the live and work of people, and for the data center providing these to apply, 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, ensure the operational efficiency of whole data center.
Along with general data center is developed to cloud computation data center, in large-scale cloud computing environment, userbase constantly expands, user proposes the requirement of the aspects such as higher access speed, access security and stability to application service, the load-balancing function of network layer can not meet the demand that higher level application service provides, therefore added among load-balancing device gradually to the application layer process of flow, finally defined application delivery equipment.Application delivery equipment can carry out load balancing according to the state of applied business on server to the flow entering cloud computation data center, thus improves the performance of cloud computing center applied business.
Application delivery equipment needs the applied business state according to server, selects different flow to be assigned to the enterprising row relax of different servers.In cloud computing environment, a lot of servers of data center are the virtual servers be erected on physical server, and compared with physical server, the change of the service condition of virtual server is faster, and variation tendency has more uncertainty.
The difference of virtual server and the change of physical server service condition is not considered in general application delivery equipment, when a server is unavailable, can directly the flow switch on this server on a new 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 is not probably real breaking down, but the abnormal state of moment, just upstate can be reverted in short time, if too fast flow switch to other servers, the reconstruction that some network connects may be caused, reduce the stability of service quality.
For in correlation technique during destination server abnormal state immediately by flow switch to other servers, thus reduce service quality stability problem, at present effective solution is not yet proposed.
Summary of the invention
For in correlation technique during destination server abnormal state immediately by flow switch to other servers, thus reduce the problem of service quality stability, the present invention proposes control method and the device of the distribution of a kind of server traffic, can stop within a predetermined period of time when destination server abnormal state sending data to destination server, after predetermined amount of time, continue to send data to destination server, reduce the flow switch that server is unnecessary, the stability of improving service quality.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, provide the control method that a kind of server traffic distributes, this control method comprises:
Detect the state of destination server;
If detect that the state of destination server is for abnormal, 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, continue to send data to destination server after predetermined amount of time before, this control method comprises further:
The state of destination server is detected, under this state detecting destination server is normal situation, continues to send data to destination server.
Further, continue to send data to destination server after predetermined amount of time before, this control method comprises further:
The state of destination server is detected, when the state that this detects destination server is abnormal, selects other servers to substitute destination server and receive data.
In addition, this control method comprises further:
The data of destination server will be sent in buffer memory predetermined amount of time.
In addition, after predetermined amount of time, continue to send data to destination server and comprise further:
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, provide the control device that a kind of server traffic distributes, this control device comprises:
Detection module, for detecting the state of destination server;
Control module, for when detecting that the state of destination server is abnormal, stops sending data to destination server within a predetermined period of time; Further, also for after predetermined amount of time, allow to send data to destination server.
Wherein, detection module is further used for continuing to detect the state of destination server before destination server sends data after predetermined amount of time, and, under the state of control module also for detecting destination server at this is normal situation, allow to send data to destination server.
In addition, detection module is further used for continuing to detect the state of destination server before destination server sends data after predetermined amount of time; Further, the state of control module also for detecting destination server when this being abnormal, selecting other servers to substitute destination server and receiving data.
Further, this control device comprises further:
Cache module, for sending to the data of destination server in buffer memory predetermined amount of time.
The present invention is by after detecting that the state of destination server is for exception, stop within a predetermined period of time sending data to destination server, and after predetermined amount of time, continue to send data to server, can continue to send after server oneself adjustment and recovery, thus reduce the unnecessary flow switch of server, improve the stability of cloud computation data center service quality.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the control method of distributing according to the server traffic of the embodiment of the present invention;
Fig. 2 is the block diagram of the control device distributed according to the server traffic of the embodiment of the present invention;
Fig. 3 is the block diagram of the concrete structure example of the control device of server traffic distribution according to an embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to one embodiment of present invention, the control method that a kind of server traffic distributes is provided.
As shown in Figure 1, the control method of distributing according to the server traffic of the embodiment of the present invention comprises:
Step S101, detects the state of destination server;
Step S103, if detect that the state of destination server is for abnormal, then stops sending data to destination server within a predetermined period of time;
Step S105, after predetermined amount of time, continues to send data to destination server.
In addition, continue to send data to destination server after predetermined amount of time before, this control method comprises further:
The state of destination server is detected, under this state detecting destination server is normal situation, continues to send data to destination server.
Further, continue to send data to destination server after predetermined amount of time before, this control method comprises further:
The state of destination server is detected, when the state that this detects destination server is abnormal, selects other servers to substitute destination server and receive data.
In addition, this control method comprises further:
The data of destination server will be sent in buffer memory predetermined amount of time.
In addition, after predetermined amount of time, continue to send data to destination server and comprise further:
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 a kind of server traffic distributes is provided.
As shown in Figure 2, the control device distributed according to the server traffic of the embodiment of the present invention comprises:
Detection module 21, for detecting the state of destination server;
Control module 22, for when detecting that the state of destination server is abnormal, stops sending data to destination server within a predetermined period of time; Further, also for after predetermined amount of time, allow to send data to destination server.
Wherein, detection module 21 is further used for continuing to detect the state of destination server before destination server sends data after predetermined amount of time, and, under the state of control module 22 also for detecting destination server at this is normal situation, allow to send data to destination server.
In addition, detection module 21 is further used for continuing to detect the state of destination server before destination server sends data after predetermined amount of time; Further, the state of control module 22 also for detecting destination server when this being abnormal, selecting other servers to substitute destination server and receiving data.
Further, this control device comprises further:
Cache module (not shown), for sending to the data of destination server in buffer memory predetermined amount of time.
According to control device of the present invention, can realize according to the functional module shown in Fig. 3.
As shown in Figure 3, in actual applications, the control device that server traffic distributes according to an embodiment of the invention can correspond to application delivery device server assignment of traffic module, and this module can comprise: server service state detection module, server state recovery timer, assignment of traffic module and flow buffering module.
Flow buffering module is configured with in the device shown in Fig. 3, when assignment of traffic module and server service condition detection module find that the service condition of the destination server of flow is unavailable alternately afterwards, assignment of traffic module directly can not give new server assignment of traffic, but flow temporary cache in flow buffering module, simultaneously, start server state recovery timer, if in the maximum duration that server state recovery timer is preset, destination server service condition becomes upstate, then the flow of buffer memory is sent to this destination server, if server state recovery timer has exceeded default maximum duration, the state of destination server is still unavailable, then think that this service there occurs fault, need the assignment of traffic of buffer memory to new server.
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 assignment of traffic module receives input flow rate, obtain the business state information of current server from server service state detection module, according to the load balancing of system, determine that this flow needs the destination server distributed.
If the service condition of two destination servers is in upstate, then flow is exported to this server.
If three destination servers are in the down state state of the destination server (for abnormal), and destination server is physical server, then choose a new server as destination server, output flow.
If four destination servers are in down state (state of destination server is for abnormal), and destination server is virtual server, then flow buffering in flow buffering module, start the recovering state counter of this virtual server simultaneously.
Five, recovering state counter carries out countdown according to the maximum duration (predetermined amount of time) of systemic presupposition.
Six, before countdown terminates, if destination server reverts to upstate, then the flow in flow buffering module is sent to destination server.
If seven countdowns terminate, destination server is still in down state, then choose a new server as destination server, flow in flow buffering module is exported to new destination server.
Above processing method is a preferred embodiment of the present invention, alternatively, when destination server be detected be in down state time, can not judge that destination server is virtual or physical services, and directly flow buffering in flow buffering module, start server state simultaneously and recover the step of counter.
Alternatively, the timer that server state recovers, can substitute by the capacity limit of flow buffering, if the buffer memory of certain station server has flowed exceed certain limit, then think that this server state time-out is not recovered.
In sum, by means of technique scheme of the present invention, by after detecting that the state of destination server is for exception, stop within a predetermined period of time sending data to destination server, and after predetermined amount of time, continue to send data to server, the flow switch that server is unnecessary can be reduced, improve the stability of cloud computation data center service quality.By detecting that server state stops sending data to server in the scheduled time after abnormal, but and non-immediate again by assignment of traffic to new server, but according to timer by flow buffering to cache module, after the recovering state of scheduled time server is available, continue to send state to server, the flow switch that server is unnecessary can be reduced, and saved server resource, and data cachedly can reduce loss of data, ensure data continuity, improve the access speed of cloud computation data center, the stability of access security and service quality.
The foregoing is only preferred embodiment of the present invention, be not limited to the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. a control method for server traffic distribution, it is characterized in that, described control method comprises:
Detect the state of destination server;
If detect that the state of described destination server is for abnormal, then stop within a predetermined period of time sending data to described destination server;
The data of described destination server will be sent in predetermined amount of time described in buffer memory;
After described predetermined amount of time, continue to send data to described destination server;
Continue to send data to described destination server after described predetermined amount of time before, the state of described destination server is detected, under this state detecting described destination server is normal situation, continue to send data to described destination server, when the state that this detects described destination server is abnormal, selects other servers to substitute described destination server and receive data.
2. 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 comprises further:
The described data of buffer memory are sent to described destination server.
3. control method according to claim 1, is characterized in that, described destination server comprises: virtual server and/or physical server.
4. a control device for server traffic distribution, it is characterized in that, described control device comprises:
Detection module, for detecting the state of destination server;
Control module, for when detecting that the state of described destination server is abnormal, stops sending data to described destination server within a predetermined period of time; Further, also for after described predetermined amount of time, allow to send data to described destination server;
Cache module, for sending to the data of described destination server in predetermined amount of time described in buffer memory;
Described detection module is further used for continuing to detect the state of described destination server before described destination server sends data after described predetermined amount of time, and, described control module is also for detecting under the state of described destination server is normal situation at this, allow to send data to described destination server, and, described control module, also for detect the state of described destination server when this be abnormal, selected other servers to substitute described destination server and is received data.
CN201210471860.4A 2012-11-20 2012-11-20 The control method that server traffic distributes and device Active CN102932266B (en)

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 CN102932266A (en) 2013-02-13
CN102932266B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850710B (en) * 2015-12-03 2020-02-28 杭州海康威视数字技术股份有限公司 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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156142A (en) * 2005-04-14 2008-04-02 松下电器产业株式会社 Server device, information report method, and information report 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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421695B2 (en) * 2003-11-12 2008-09-02 Cisco Tech Inc System and methodology for adaptive load balancing with behavior modification hints
CN101079742A (en) * 2007-07-03 2007-11-28 中兴通讯股份有限公司 Data synchronization method and system between disaster tolerance home user servers
CN101519078B (en) * 2009-03-13 2011-06-29 国电南瑞科技股份有限公司 Method for synchronizing multi-region data of comprehensive monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156142A (en) * 2005-04-14 2008-04-02 松下电器产业株式会社 Server device, information report method, and information report system
CN101849384A (en) * 2007-11-06 2010-09-29 朗讯科技公司 Method for controlling load balance of network system, client, server and network 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

Also Published As

Publication number Publication date
CN102932266A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
TWI755417B (en) Computing task allocation method, execution method of stream computing task, control server, stream computing center server cluster, stream computing system and remote multi-active system
CN103428008B (en) The big data distributing method of facing multiple users group
US9703608B2 (en) Variable configurations for workload distribution across multiple sites
US8122289B2 (en) Load balancing and high availability of compute resources
CN102112981B (en) Distribution of virtual machines in a communication network
Rabbani et al. On achieving high survivability in virtualized data centers
CN102891868B (en) The load-balancing method of a kind of distributed system and device
CN113037560B (en) Service flow switching method and device, storage medium and electronic equipment
CN102868754A (en) High-availability method, node device and system for achieving cluster storage
WO2013163865A1 (en) Virtual machine hot migration and deployment method, server and cluster system
CN103019889A (en) Distributed file system and failure processing method thereof
CN103560907A (en) Management method and device for double machine load balancing devices
CN111190745A (en) Data processing method and device and computer readable storage medium
CN107682442B (en) Web connection method and device
CN108028850B (en) Private cloud management platform
CN102769670A (en) Method, device and system for migration of virtual machines
CN105553872A (en) Multipath data traffic load equalizing method
CN106385363A (en) SDN data plane data-flow backup method and device
CN110928637A (en) Load balancing method and system
CN106059940B (en) A kind of flow control methods and device
KR20150124642A (en) Communication failure recover method of parallel-connecte server system
CN104394163A (en) Safety detection method based on Web application
CN109245926A (en) Intelligent network adapter, intelligent network adapter system and control method
CN103957251A (en) Method and system for achieving server load balancing
CN102932266B (en) The control method that server traffic distributes and device

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