CN107770086A - Load balance method and device based on centralized controller and DCI (Data Centre Interconnection) equipment - Google Patents

Load balance method and device based on centralized controller and DCI (Data Centre Interconnection) equipment Download PDF

Info

Publication number
CN107770086A
CN107770086A CN201710147706.4A CN201710147706A CN107770086A CN 107770086 A CN107770086 A CN 107770086A CN 201710147706 A CN201710147706 A CN 201710147706A CN 107770086 A CN107770086 A CN 107770086A
Authority
CN
China
Prior art keywords
cloud
dci
server cluster
client
apparatus
Prior art date
Application number
CN201710147706.4A
Other languages
Chinese (zh)
Inventor
易仁杰
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Priority to CN201710147706.4A priority Critical patent/CN107770086A/en
Publication of CN107770086A publication Critical patent/CN107770086A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/10Flow control or congestion control
    • H04L47/12Congestion avoidance or recovery
    • H04L47/125Load balancing, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
    • H04L67/1002Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers, e.g. load balancing

Abstract

The invention relates to a load balance method and device based on a centralized controller and DCI (Data Center Interconnection) equipment. The method comprises the following steps: establishing a communication connection between the centralized controller and DCI equipment arranged in a data center of each region in advance; after receiving an access request of a client inside cloud architecturefor a cloud service application, determining a region where the client is positioned, and analyzing whether a cloud server cluster corresponding to the cloud service application is deployed in the region where the client is positioned or not according to a predetermined relationship; and if so, determining a data center where the cloud service cluster deployed in the region where the client is positioned, and allocating access requests of the client to the cloud server cluster for responding through the DCI equipment of the data center. Through adoption of the load balance method and device,accesses from the client inside the cloud architecture can be dispersed to the cloud server clusters of the data centers in different regions for responding, so that the client access speed is increased.

Description

基于集中控制器及DC I设备的负载均衡的方法及装置 Based on a centralized controller and DC I apparatus and method of load balancing apparatus

技术领域 FIELD

[0001]本发明涉及通信技术领域,尤其涉及一种基于集中控制器及DC;[设备的负载均衡的方法及装置。 [0001] The present invention relates to communication technologies, particularly to a centralized controller and based on the DC; [Method and apparatus for load balancing device. ' / '/

背景技术 Background technique

[0002]业界采用的应用服务的云部署方案通常为多可用区应用服务部署方案,如下图1 所示,Region表示不同地域的数据中心,AZ表示不同的可用区(一个地域的数据中心由多个可用区组成,每个可用区单独提供计算能力,并且同地域的可用区之间具备相互灾备的逻fe结构),Subnet表不z?服务器所在的子网网段,VPC为虚拟私有(Virtual Private Cloud)。 [0002] Cloud deployment application service industry typically uses multiple application service deployment area is available, as shown below, in different regions of Region 1 represents a data center, AZ represents a different available region (a region from the plurality of data centers available areas, each area can be used to provide separate computing capabilities, and have mutually disaster recovery fe logical structure) between the same geographical area available, subnet table no Z? subnet of the server is located, the VPC virtual private ( Virtual Private Cloud). 多可用区应用服务部署方案主要采用跨地域的负载均衡机制(LB,Load Balance), 即云租户可以将自己的应用服务器部署在不同的地域的数据中心中的不同的可用区,保证业务的高访问效率和高可用性。 Multi-available applications and services deployment area mainly cross-regional load balancing mechanism (LB, Load Balance), that is, the tenant can own application server deployments available in different geographical zones of the data center, ensuring high service access efficiency and high availability.

[0003] 目前,虽然可以使用GSLB (Global Server Load Balance,全局负载均衡)的技术完成上述需求,但是GSLB依赖于DNS服务器(Domain Name Server,域名服务器)的域名解析功能和DNS协议的实现机制。 Implementation Mechanism domain name resolution and the DNS protocol [0003] At present, although you can use GSLB (Global Server Load Balance, global load balancing) technology to complete the above requirements, but GSLB dependent on the DNS server (Domain Name Server, Domain Name Server) is. 在实际应用过程中,对于来自云架构外部的客户端的访问,由于来自云架构外部的客户端的IP十分离散,通过GSLB技术将客户端的访问可以分散到全区域的不同地域的数据中心中,进而达到负载均衡的效果;然而,对于来自云架构内部的客户端的访问,由于来自云架构内部的客户端的IP十分集中,即使通过GSLB技术也难以将客户端的访问均衡分散到全区域的不同地域的数据中心中,这样就容易导致客户端访问延时较长,特别是故障修改GSLB策略或者故障进行HA (High Available,高可用性集群)切换时,客户端的响应时间较长。 In practical application process, access to the client from the cloud architecture outside, because the IP clients from cloud architecture outside is very discrete, by GSLB technology client access can be distributed to the whole area of ​​different regions of the data center, and then to of load balancing; however, for the client from within the cloud infrastructure end access, since from the IP client internal cloud infrastructure very concentrated, even when it is difficult to access to the client equalization into different areas of a region-wide data center GSLB technology , so it is easy to lead to a longer delay client access, modify particular fault or faults GSLB policy when HA (high available, high availability cluster) switching, the response time for the client.

发明内容 SUMMARY

[0004] 本发明的目的在于提供一种基于集中控制器及DCI设备的负载均衡的方法及装置,旨在通过集中控制器及DCI设备将来自云架构内部的客户端的访问分散至不同地域的数据中心的云服务器集群进行响应,提高客户端访问的速度。 [0004] The object of the present invention to provide a method and apparatus based on a centralized controller and a load balancing device DCI, intended to access from the client's internal architecture cloud data geographically dispersed by the centralized controller and device DCI center cloud cluster server responds to speed the client access.

[0005] 为实现上述目的,本发明提供一种基于集中控制器及DCI设备的负载均衡的方法, 所述基于集中控制器及DCI设备的负载均衡的方法包括: [0005] To achieve the above object, the present invention provides a centralized controller and a device DCI load balancing method based on the method of load balancing and DCI centralized controller device comprising:

[0006] S1,集中控制器与在每个地域的数据中心预先设置的DCI设备进行通信连接; [0006] S1, DCI centralized controller and each device in the data center local communication connection is set in advance;

[0007] S2,所述集中控制器在接收到云架构内部的客户端针对一云服务应用的至少一个访问请求后,确定所述客户端所处的地域,并根据预定的云服务应用与云服务器集群被部署的地域的关联关系,分析是否有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中; [0007] S2, the centralized controller after receiving the cloud infrastructure inside the at least one client request for access to a cloud service application, determining that the client area is located, and in accordance with a predetermined application service cloud and the cloud association local server cluster is deployed, the analysis of whether a cloud service application corresponding to the cloud server cluster deployment in the area in which the client;

[0008] S3,若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定部署在所述客户端所处的地域中的云服务器集群所在的数据中心,将所述客户端的各访问请求通过所述数据中心的DCI设备分配给部署在所述客户端所处的地域中的云服务器集群进行响应。 [0008] S3, if the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines the deployment of the cloud server cluster in an area in which the client where the data center, each of the access request from the client apparatus by allocating DCI deployment of the data center to the cloud server cluster in the area in which the client responds.

[0009] 优选地,所述步骤S3包括: [0009] Preferably, the step S3 comprises:

[0010] S31,若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定部署在所述客户端所处的地域中的云服务器集群是否处于可用的状态; [0010] S31, if the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines the deployment of the cloud server cluster in an area in which the client It is in the available state;

[0011] S32,若有云服务器集群处于可用的状态,则所述集中控制器确定处于可用状态的云服务器集群所在的数据中心,将该客户端的各访问请求通过所确定的数据中心的DCI设备分配给可用状态的云服务器集群进行响应。 [0011] S32, if the cloud server cluster is in a usable state, the centralized controller determines the available state of the cloud data center where the server cluster, each of the access request from the client device via the determined DCI data center assigned to the available state in response to a cloud server cluster.

[0012] 优选地,所述步骤S2之后还包括: [0012] Preferably, after the step S2 further comprising:

[0013] 若无该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定该云服务应用对应的所有云服务器集群所在的数据中心,将所述客户端的各访问请求通过所确定的各数据中心的DC I设备均勾的分发给所确定的服务器集群进行响应。 [0013] Without the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines that the application corresponding to all cloud service cloud server cluster where the data center, The each access of said client request through the data center in response to the determined DC I hook devices are distributed to the determined server cluster.

[0014] 优选地,所述将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应的步骤包括: Step [0014] Preferably, each of the access of the client responds to the request by uniformly determined in each data center equipment distributed DCI determined cloud server cluster comprising:

[0015] 获取所述访问请求的数量及DCI设备的数量,若所述访问请求的数量小于等于所述DCI设备的数量,则逐一将访问请求分配给不同的DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应; [0015] Get the number of DCI and the device access request, the access request if the number is smaller than or equal to the number of DCI apparatus, the access request will be individually assigned to different device DCI, DCI through the apparatus distribute the access request corresponding to the cloud service application server cluster in response to the cloud;

[0016] 若所述访问请求的数量大于所述DCI设备的数量,则对所述访问请求进行分组,所述访问请求的组数与所述DCI设备的数量相同,两两分组之间的访问请求的数量的差值不大于预设数量,将访问请求分配给不同的DCI设备,每组访问请求分配给一DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应。 [0016] If the access request number is greater than the number of DCI device, then the access request packet, the number of groups of the same number with the access request DCI device, access between each two packets the difference between the number of requests is not greater than a preset number, the access request will be assigned to a different DCI device, each access request is assigned to a DCI device through the cloud service application corresponding to the device the access request DCI distributed the cloud server cluster to respond.

[0017] 优选地,所述步骤S3之后还包括: [0017] Preferably, after the step S3 further comprising:

[0018] 所述集中控制器实时或定时侦测并接收所述DCI设备返回的云服务器集群对所述访问请求的响应数据,若在接收到所述访问请求后的预设时间内接收到所述响应数据,则将所述响应数据发送给客户端; [0018] The centralized controller and real time or regularly detecting apparatus receiving the DCI return cloud server cluster data in response to the access request, if received within a predetermined time after receiving the access request to the said response data, the response data will be sent to the client;

[0019] 若在接收到所述访问请求后的预设时间内未接收到所述响应数据,则通过该DCI 设备向对应的云服务器集群发送终止响应的指令。 [0019] When the response data is not received within a predetermined time period after receiving the access request is sent to the server cluster corresponding to a cloud through the device termination instruction in response to the DCI.

[0020] 为实现上述目的,本发明还提供一种基于集中控制器及DCI设备的负载均衡的装置,所述基于集中控制器及DCI设备的负载均衡的装置包括: [0020] To achieve the above object, the present invention also provides an apparatus based on a centralized controller and a load balancing apparatus DCI, based on the load balancing device and the centralized controller DCI apparatus comprising:

[0021] 连接模块,用于与在每个地域的数据中心预先设置的DCI设备进行通信连接; [0021] The connection module for connection to a communication device in each DCI local data center is set in advance;

[0022] 分析模块,用于在接收到云架构内部的客户端针对一云服务应用的至少一个访问请求后,确定所述客户端所处的地域,并根据预定的云服务应用与云服务器集群被部署的地域的关联关系,分析是否有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中; [0022] The analysis module for receiving after an internal cloud infrastructure client a request for access at least one application service cloud, which determines the local client, and in accordance with a predetermined application service cloud and the cloud server cluster local association is deployed, the analysis of whether a cloud service application corresponding to the cloud server cluster deployment in the area in which the client;

[0023] 第一分配模块,用于若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定部署在所述客户端所处的地域中的云服务器集群所在的数据中心,将所述客户端的各访问请求通过所述数据中心的DCI设备分配给部署在所述客户端所处的地域中的云服务器集群进行响应。 [0023] a first allocating module configured if the cloud service application corresponding to the cloud server cluster deployment in the area in which the client, the server cluster is determined to deploy a cloud in the region in which the client where the data center, each of the access request from the client apparatus by allocating DCI deployment of the data center to the cloud server cluster in the area in which the client responds.

[0024] 优选地,所述第一分配模块包括: [0024] Preferably, the first allocation module comprises:

[0025] 确定单元,用于若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定部署在所述客户端所处的地域中的云服务器集群是否处于可用的状态匕 [0025] determination unit, if the cloud to a cloud service corresponding to the application server cluster deployed in the area in which the client, the server cluster is determined to deploy a cloud in the region in which the client is in available state dagger

[0026] 分配单元,用于若有云服务器集群处于可用的状态,则确定处于可用状态的云服务器集群所在的数据中心,将该客户端的各访问请求通过所确定的数据中心的DCI设备分配给可用状态的云服务器集群进行响应。 [0026] The dispensing unit, for if the cloud server cluster is in a usable state, it is determined that the data center is in a usable state where the cloud server cluster, each of the access request from the client device DCI allocation determined by the data center to available state in response to a cloud server cluster.

[0027] 优选地,所述基于集中控制器及DCI设备的负载均衡的装置还包括: [0027] Preferably, the load balancing means and the centralized controller based on the DCI apparatus further comprises:

[0028] 第二分配模块,用于若无该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定该云服务应用对应的所有云服务器集群所在的数据中心,将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应。 [0028] The second distribution means for the absence of the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, it is determined that the cloud data center corresponding to all cloud service application server cluster is located, each access request of the client responds with a uniform data centers of the determined distribution to the determined device DCI cloud server cluster.

[0029] 优选地,所述第二分配模块具体用于获取所述访问请求的数量及DCI设备的数量, 若所述访问请求的数量小于等于所述DCI设备的数量,则逐一将访问请求分配给不同的DCI 设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应;若所述访问请求的数量大于所述DCI设备的数量,则对所述访问请求进行分组,所述访问请求的组数与所述DCI设备的数量相同,两两分组之间的访问请求的数量的差值不大于预设数量,将访问请求分配给不同的DCI设备,每组访问请求分配给一DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应。 Quantity [0029] Preferably, the second allocation module is configured to obtain the number of DCI and the device access request, if the access request is less than or equal to the number of DCI apparatus, the allocation of access requests one by one DCI to different devices, through the apparatus the access request DCI distributed cloud service application corresponding to the cloud server cluster response; if said number is greater than the number of access requests DCI device, then the access request packets, the number of groups of the same number with the access request DCI device, the difference between every two access request packet number is not greater than a preset number, the access request is assigned to a different DCI devices, each group is assigned to an access request DCI apparatus, through the apparatus DCI distribute the access request corresponding to the cloud service application in response to the cloud server cluster.

[0030] 优选地,所述基于集中控制器及DCI设备的负载均衡的装置还包括:响应模块,用于实时或定时侦测并接收所述DCI设备返回的云服务器集群对所述访问请求的响应数据, 若在接收到所述访问请求后的预设时间内接收到所述响应数据,则将所述响应数据发送给客户端;若在接收到所述访问请求后的预设时间内未接收到所述响应数据,则通过该DCI设备向对应的云服务器集群发送终止响应的指令。 [0030] Preferably, the load balancing apparatus based on a centralized controller and DCI apparatus further comprising: a response module for real-time or the timing to detect and receive the returned cloud DCI apparatus a request for the server cluster access response data, if received within a predetermined time after receiving the access request to the response data, the response data will be sent to the client; if within the preset time upon receiving the access request is not the receiving the response data, the response transmission termination instruction to the corresponding cluster by the DCI cloud server apparatus.

[0031]本发明的有益效果是:本发明通过集中控制器及在每个地域的数据中心的DCI设备形成一个DCI负载均衡逻辑,在云架构内部的客户端访问云服务应用时,确定客户端所处的地域及该云服务应用对应的云服务器集群所被部署的地域,如果云服务应用对应的云服务器集群部署在客户端所处的地域中,则集中控制器进一步确定该地域中的云服务器集群所在的数据中心,将客户端的访问请求通过该数据中心的DCI设备分配给云服务器进行响应,实现通过集中控制器及DCI设备将来自云架构内部的客户端的访问分散至不同地域的数据中心的云服务器集群进行响应,提高客户端访问的速度。 [0031] Advantageous effects of the present invention are: the present invention is formed by a DCI centralized load balancing logic controller and a device in each DCI local data center, when accessing the cloud service application at the client inside the cloud infrastructure to determine the client the geographical area in which the cloud and the cloud service corresponding to the application server cluster is deployed, if the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller further determines the area of ​​the cloud server cluster where the data center, the client's access request in response to the cloud server by allocating DCI device of the data center, to realize the access client from the internal cloud structure dispersed by the central controller and DCI devices of different geographical data center the cloud server cluster responds to speed the client access.

附图说明 BRIEF DESCRIPTION

[0032] 图1为现有技术中应用服务的云部署的示意图; [0032] FIG. 1 is a schematic diagram of the prior art cloud deployments applications and services;

[0033]图2为本发明基于集中控制器及DCI设备的负载均衡的方法一实施例的流程示意图; [0033] FIG. 2 is a schematic flow embodiment DCI centralized controller and method of load balancing apparatus based on an embodiment of the invention;

[0034]图3为基于图1所示的实施例的应用服务的云部署的示意图; [0034] FIG. 3 is a schematic view of the embodiment cloud deployment application services based on the embodiment shown in Figure 1;

[0035] 图4为图2所示步骤S3的细化流程示意图; [0035] Step 4 is a schematic flow diagram of FIG. 2 refinement of S3;

[0036]图5为本发明基于集中控制器及DCI设备的负载均衡的装置一实施例的结构示意图; L〇〇37J图6为图5所示第一分配模块的结构示意图。 [0036] FIG. 5 is a schematic configuration example of the apparatus based on a centralized controller and a load balancing apparatus DCI an embodiment of the present invention; FIG. 6 L〇〇37J a schematic configuration diagram of a first distribution module 5 is shown.

具体实施方式 Detailed ways

[0038]以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。 [0038] The following drawings in conjunction with the principles and features of this invention will be described, The examples are only for explaining the present invention and are not intended to limit the scope of the invention.

[0039] _如图2所示,图2为本发明基于集中控制器及DCI设备的负载均衡的方法一实施例的流程示意图,该基于集中控制器及DCI设备的负载均衡的方法包括以下步骤: [0039] _ 2, FIG. 2 is a schematic flow diagram of an embodiment of a centralized controller and DCI equipment load balancing based on the invention, and the integral controller based on the load balancing apparatus DCI method comprising the steps of :

[0040]步骤S1,集中控制器与在每个地域的数据中心预先设置的DCI设备进行通信连接; [0041]结合参阅图3,在图3中,CC为集中控制器(Centralized Controller),DCI tunnel 表不DCI (Data Centre Interconnection,数据中心之间的连接链路)设备,AZ表示可用区, VIP表不云服务器集群。 [0040] step S1, the centralized controller and each device geographical DCI data center connected to a communication set in advance; [0041] Referring to FIG 3, in FIG. 3, the CC is the centralized controller (Centralized Controller), DCI tunnel table does DCI (data Centre Interconnection, connection link between the data center) device, AZ represents the available area, VIP table does not cloud server cluster. 在图3中,一个云服务器可以部署在3个地域(地域A,地域B和地域C) 的6个可用区(AZ 1和AZ 2)中,其中,每个地域中有一个或者多个可用区,每个可用区对应一个云服务集群。 In Figure 3, a server cloud can be deployed in three areas (area A, area B and area C) in the six available regions (AZ 1 and AZ 2), wherein each region has one or more available zones, each zone corresponds to a cloud service available cluster.

[0042] 本实施例通过集中控制器与DCI设备形成一个DCI LB的逻辑,即云架构下的每个地域的数据中心对应一个DCI设备,各个数据中心的DCI设备与集中控制器通信连接。 [0042] In this embodiment, a centralized controller to form a device with DCI DCI an LB logic, i.e., each local data center architecture in a cloud corresponds to a DCI device, each data center DCI communication device connected to the centralized controller.

[0043]其中,DCI设备的作用是:在云计算环境中,将不同地域的数据中心通过DCI设备连接,通过DCI链路的带宽,将多地的数据中心连接成一个整体,解决云架构内部跨数据中心数据访问的问题。 [0043] wherein DCI effect device is: in a cloud computing environment, different regions of the DCI data center equipment is connected, via the link bandwidth of DCI, more connecting data center as a whole, to resolve internal cloud architecture the problem of data access across data centers.

[0044] 步骤S2,所述集中控制器在接收到云架构内部的客户端针对一云服务应用的至少一个访问请求后,确定所述客户端所处的地域,并根据预定的云服务应用与云服务器集群被部署的地域的关联关系,分析是否有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中; [0044] step S2, the centralized controller after receiving the cloud infrastructure inside the at least one client request for access to a cloud service application, determining that the client area is located, and in accordance with a predetermined application service cloud association local server cluster deployed cloud, the cloud analyze whether there is service application corresponding to the cloud server cluster deployment in the area in which the client;

[0045] 本实施例中,云架构内部的客户端可以针对一云服务应用向集中服务器发送一个或者多个访问请求,云服务应用例如可以是网络游戏等。 [0045] In this embodiment, the internal cloud infrastructure client may send one or more requests for access to a centralized server application cloud service, cloud service, for example, can be a network game applications and the like.

[0046] 本实施例中,集中控制器中预先存储有云服务应用与云服务器集群被部署的地域的关联关系,例如某一云服务器集群被部署的地域为地域A,某一网络游戏与该云服务器集群及其被部署的地域A关联对应。 [0046] In this embodiment, the centralized controller association relationship stored in advance local cloud and the cloud service application server cluster to be deployed, for example, a cloud server cluster deployed a geographical area A, a network game with the a server cluster region associated with the cloud and the corresponding deployed. 在确定客户端所处的地域后,可以进一步分析云服务应用对应的云服务器集群被部署的地域是否与客户端所处的地域相同。 After determining which of the client area, the same can be further analyzed whether the area corresponding to the application of cloud services cloud server cluster is deployed with the client to the geographical.

[0047] 步骤S3,若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定部署在所述客户端所处的地域中的云服务器集群所在的数据中心,将所述客户端的各访问请求通过所述数据中心的DCI设备分配给部署在所述客户端所处的地域中的云服务器集群进行响应。 [0047] Step S3, the cloud if the service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines the deployment of the client area is located in the cloud server clusters where the data center, each of the access request from the client apparatus by allocating DCI deployment of the data center to the cloud server cluster in the area in which the client responds.

[0048] 本实施例中,如果有该云服务应用对应的云服务器集群部署在客户端所处的地域中,例如客户端所处的地域为图3中的地域A,云服务应用对应的云服务器集群部署也部署在地域A中,则集中服务器进一步确定云服务器集群在该地域中的数据中心,例如确定云服务器集群在地域A中的数据中心,由于每个地域的数据中心设置有一DCI设备,且DCI设备与集中控制器连接,因此,可以将客户端的各访问请求通过数据中心的DCI设备分配给部署在客户端所处的地域中的云服务器集群进行响应,可以看出,集中控制器的作用是将云架构内部的客户端的访问通过此1设备分配给不同地域中的云服务器进行响应。 [0048] In this embodiment, if the cloud service application corresponding to the cloud server cluster deployment in an area in which the client, such as client to the geographical area in FIG. 3 A, corresponding to the application service cloud cloud server cluster deployment also deployed in the area a, the hub server further determines the cloud server cluster data centers in this region is, for example, determining the cloud server cluster data center in the region a, since each local data center is provided with a DCI equipment and DCI device connected to the centralized controller, therefore, access to each client may request by allocating DCI data center equipment to deploy the cloud server cluster in an area in which the client responds, it can be seen, the central controller the role of the internal architecture of client cloud responds to access different regions of the cloud server apparatus 1 through this distribution.

[0049] 与现有技术相比,本实施例通过集中控制器及在每个地域的数据中心的DCI设备形成一个DCI负载均衡逻辑,在云架构内部的客户端访问云服务应用时,确定客户端所处的地域及该云服务应用对应的云服务器集群所被部署的地域,如果云服务应用对应的云服务器集群部署在客户端所处的地域中,则集中控制器进一步确定该地域中的云服务器集群所在的数据中心,将客户端的访问请求通过该数据中心的DCI设备分配给云服务器进行响应, 实现通过集中控制器及DCI设备将来自云架构内部的客户端的访问分散至不同地域的数据中心的云服务器集群进行响应,提高客户端访问速度。 [0049] Compared with the prior art, the load balancing logic DCI formed by a centralized controller and a device in each local DCI data center embodiments, when accessing the cloud service application at the client inside the cloud infrastructure to determine the client end to the geographical service area and the cloud application server cluster corresponding to the cloud is deployed, if the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller further determines the area of cloud server cluster where the data center, the client's access request in response to the cloud server by allocating DCI device of the data center, to achieve the client's access from the internal cloud structure dispersed by the central controller and the DCI device data different regions of center cloud cluster server responds, improve client access speed.

[0050] 在一优选的实施例中,如图4所示,在上述图2的实施例的基础上,所述步骤S3包括: [0050] In a preferred embodiment, shown in Figure 4, on the basis of the above-described embodiment of FIG. 2, the step S3 comprises:

[0051] 步骤S31,若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定部署在所述客户端所处的地域中的云服务器集群是否处于可用的状态; [0051] step S31, the cloud if the service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines the deployment of the client area is located in the cloud server state whether the cluster is available;

[0052] 步骤S32,若有云服务器集群处于可用的状态,则所述集中控制器确定处于可用状态的云服务器集群所在的数据中心,将该客户端的各访问请求通过所确定的数据中心的DCI设备分配给可用状态的云服务器集群进行响应。 [0052] step S32, if the cloud server cluster is in a usable state, the centralized data center controller determines the available state of the cloud server cluster is located, each of the client's request to access the data determined by the center DCI device is assigned to the cluster available state cloud server responds.

[0053] 本实施例中,如果有该云服务应用对应的云服务器集群部署在客户端所处的地域中,则集中控制器确定在该地域的云服务器集群是否处于可用状态,集中控制器获知云服务器集群的状态的途径例如可以是:各个云服务器集群可以定时向集中控制器上报是否可用的状态位,以供集中控制器根据收到的状态位判断对应的云服务器集群是否可用。 [0053] In this embodiment, if the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines whether the available state of the local cloud server cluster, the centralized controller informed ways cloud state, for example, it may be a server cluster: each cloud server cluster can regularly report the status bits are available to the centralized controller, for the centralized controller determines whether the corresponding cluster is available according to the state of the cloud server received bits.

[0054]如果云服务器集群处于可用状态,则集中控制器进一步确定云服务器集群所在的数据中心,将该客户端对应的所有访问请求通过该数据中心的DCI设备,分配给部署在确定的地域的云服务器集群进行响应; [0054] If the cloud server cluster is available, the centralized controller further determines a cloud data center where the server cluster, all the access requests corresponding to the client device through the DCI data center, assigned to deploy the determined local cloud server cluster response;

[0055] 如果云服务器集群处于不可用状态,为了提高应用的灵活性,则集中控制器确定该云服务应用对应的除不可用的云服务器集群外的所有可用的云服务器集群所在的数据中心,将该客户端对应的所有访问请求通过可用的云服务器集群所在的数据中心的DCI设备均匀的分发给该云服务应用对应的所有可用云服务器集群。 [0055] If the cloud server cluster in an unusable state, in order to improve application flexibility, the centralized controller determines that the data corresponding to the center of the cloud service application server cluster in addition to the cloud unavailable all available cloud server cluster is located, All access to the client request corresponding to the uniformly distributed cloud service corresponding to the application server cluster is available through cloud DCI apparatus available cloud server cluster where the data center.

[0056] 在一优选的实施例中,在上述图2的实施例的基础上,所述步骤S2之后还包括:若无该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定该云服务应用对应的所有云服务器集群所在的数据中心,将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应。 [0056] In a preferred embodiment, the basis of the embodiment in FIG. 2, the S2 after the step further comprising: if no cloud service application corresponding to the cloud server cluster deployment at the client is located region, then the centralized controller determines that the cloud service data centers corresponding to all cloud application server cluster is located, access to each of the client requests a uniform data centers the determined DCI device determined by the distributed cloud server cluster to respond.

[0057]与图2的实施例不同的是,本实施例如果没有该云服务应用对应的云服务器集群部署在客户端所处的地域中,为了提高应用的灵活性,则集中控制器确定该云服务应用对应的所有云服务器集群所在的数据中心,将该客户端对应的所有访问请求通过所确定的各个数据中心的DCI设备均匀地分发给该云服务应用对应的所有云服务器集群进行响应;或者如果没有该云服务应用对应的云服务器集群部署在客户端所处的地域中,则集中控制器确定该云服务应用对应的所有可用的云服务器集群所在的数据中心,例如通过各个云服务器集群定时向集中控制器上报是否可用的状态位来确定对应的云服务器集群是否处于可用状态,然后将该客户端对应的所有访问请求通过所确定的各个数据中心的DCI设备均匀的分发给该云服务应用对应的所有云服务器集群进行响应。 [0057] Example 2 is different from the present embodiment, if the cloud does not correspond to a cloud service application server cluster deployed in an area in which the client in order to increase the flexibility of the application, the centralized controller determines that the cloud service corresponding to the application server cluster where all cloud data center, all the access requests corresponding to the client device determined by the DCI respective data centers uniformly distributed to all servers in the cluster in the cloud cloud service application corresponding to respond; without the cloud service or application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines that the application corresponding to the service cloud are available from the cloud data center where the server cluster, each of the cloud server cluster by e.g. regularly report status bit is available to the centralized controller determines whether the corresponding cloud server cluster is available, then all of the access request corresponding to the client by uniformly determined DCI respective data centers distributed in the cloud service apparatus corresponding to the application server cluster in response to all cloud.

[0058] 在一优选的实施例中,在上述的实施例的基础上,上述将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应的步骤包括: [0058] In a preferred embodiment, the basis of the embodiment described above, and each of the access to the client's request by uniformly respective data centers determined DCI apparatus distributed the determined cloud server cluster response comprises the step of:

[0059] 获取所述访问请求的数量及DCI设备的数量,若所述访问请求的数量小于等于所述DCI设备的数量,则逐一将访问请求分配给不同的DCI设备;若所述访问请求的数量大于所述DCI设备的数量,则对所述访问请求进行分组,所述访问请求的组数与所述DCI设备的数量相同,两两分组之间的访问请求的数量的差值不大于预设数量(例如1或者2),将访问请求分配给不同的DCI设备,每组访问请求分配给一DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应,例如DCI设备的数量为10,访问请求的数量为18,则可以将访问请求分10组,其中8组中每组的访问请求的数量为2,另外两组的访问请求的数量为1,两两分组之间的访问请求的数量的差值不大于1,然后每一DCI设备处理一个分组中的所有访问请求,这样能够最大程度地将访问请求均 [0059] Get the number of DCI and the device access request, if the number of access requests is smaller than or equal to the number of the DCI device, the access request will be individually assigned to different DCI devices; if the access request DCI is greater than the number of devices, then the access request packet, the number of groups of the same number with the access request DCI device, the difference between every two access request packet is not greater than a predetermined number set number (e.g. 1 or 2), the access request will be assigned to a different DCI device, each access request is assigned to a DCI apparatus, through the apparatus the access request DCI distributed cloud service application corresponding to the cloud server in response to the number of clusters, such as the number of DCI devices 10, 18 for the number of access requests, the access request may be set in 10, wherein the access requests in each group 8 group number is 2, two additional access requests 1, the difference between every two access request packet number not more than 1, then each DCI apparatus for processing a packet to all access requests, this can maximize the access requests are 匀地分配给DCI设备。 DCI uniformly allocated to the device.

[0060] 在一优选的实施例中,在上述图2的实施例的基础上,所述步骤S3之后还包括: [0061] 所述集中控制器实时或定时侦测并接收所述DCI设备返回的云服务器集群对所述访问请求的响应数据,若在接收到所述访问请求后的预设时间内接收到所述响应数据,则将所述响应数据发送给客户端;若在接收到所述访问请求后的预设时间内未接收到所述响应数据,则通过该DCI设备向对应的云服务器集群发送终止响应的指令。 [0060] In a preferred embodiment, the basis of the embodiment in FIG. 2, the step S3 after further comprising: [0061] The centralized controller and real time or regularly detects the receiving device returns DCI the cloud server cluster response data for the access request, if received within a predetermined time after receiving the access request to the response data, the response data will be sent to the client; if the receiving is not received within a predetermined time period after said data in response to the access request, sending termination instruction in response to a corresponding server cluster through the cloud DCI apparatus.

[0062] 本实施例中,集中控制器进一步对DCI设备返回的云服务器集群对访问请求的响应情况进行分析,例如在接收到所述访问请求后的10秒钟以内接收到DCI设备返回的云服务器集群对访问请求的响应数据,则集中控制器直接将响应数据发送给客户端,并可确定该能进行响应的云服务器集群处于可用状态;如果在接收到所述访问请求后的10秒钟以内未接收到DCI设备返回的云服务器集群对访问请求的响应数据,则集中控制器通过DCI设备向该DCI设备对应的与该云服务应用关联的云服务器集群发送终止响应的指令,并可确定该DCI设备对应的与该云服务应用关联的云服务器集群不可用,确定该云服务应用对应的除不可用的云服务器集群外的所有处于可用状态的云服务器集群所在的数据中心,并将通过该DCI设备分发的访问请求通过所确定的各个数据中心的DCI设备, [0062] In this embodiment, the centralized controller further DCI device returns a cloud server cluster analysis of the response of the access request, for example, the device receives the cloud DCI returned within 10 seconds after receiving the access request server cluster in response to a data access request, the centralized controller transmits response data directly to the client, and in response to determining that the cloud can be a cluster of servers in a usable state; if, after receiving the access request 10 seconds is not received within a cloud server cluster DCI device returns the response data access request, the centralized controller in response to the command corresponding to the cloud and the cloud service application server cluster associated transmission apparatus to the DCI stopped by DCI device may determine the DCI apparatus not corresponding to the cloud and the cloud service application associated with a server cluster, the center of the cloud service determines the data corresponding to all cloud application server cluster in an available state in addition to the cloud server cluster resides unavailable, and by the access request by the distribution apparatus DCI DCI determined for each device in the data center, 匀的分发给该云服务应用对应的所有可用的云服务器集群。 Evenly distributed to all the available cloud server cluster corresponding to the cloud service application.

[0063]如图5所示,图5为本发明基于集中控制器及DCI设备的负载均衡的装置一实施例的结构示意图,该基于集中控制器及DCI设备的负载均衡的装置包括: [0063] As shown in FIG. 5, FIG. 5 of the present invention and a schematic structural diagram of a centralized controller means DCI load balancing apparatus based on an embodiment of the device based on a centralized controller and a load balancing DCI apparatus comprising:

[0064] 连接模块101,用于与在每个地域的数据中心预先设置的DCI设备进行通信连接; [0064] The connection module 101 for performing communication connection with the device in each DCI local data center is set in advance;

[0065] 本实施例的基于集中控制器及DCI设备的负载均衡的装置可以以硬件或者软件的形式置于集中控制器,或者该基于集中控制器及DCI设备的负载均衡的装置即为集中控制器。 [0065] This embodiment may be placed in the form of a centralized controller based hardware or software means and a centralized controller DCI load balancing device, or the device controller and centralized load balancing apparatus based DCI is the centralized control device.

[0066] 结合参阅图3,在图3中,CC为集中控制器(Centralized Controller),DCI tunnel 表不DCI (Data Centre Interconnection,数据中心之间的连接链路)设备,AZ表示可用区, VIP表示云服务器集群。 [0066] Referring to FIG 3, in FIG. 3, the CC is the centralized controller (Centralized Controller), DCI tunnel table does DCI (Data Centre Interconnection, connection link between the data center) device, AZ represents the available area, the VIP It represents the cloud server cluster. 在图3中,一个云服务器可以部署在3个地域(地域A,地域B和地域c) 的6个可用区(AZ 1和AZ 2)中,其中,每个地域中有一个或者多个可用区,每个可用区对应一个云服务集群。 In Figure 3, a server cloud can be deployed in three areas (area A, area B, and area c) six available regions (AZ 1 and AZ 2), wherein each region has one or more available zones, each zone corresponds to a cloud service available cluster.

[0067] 本实施例通过集中控制器与DCI设备形成一个DCI LB的逻辑,即云架构下的每个地域的数据中心对应一个DCI设备,各个数据中心的DCI设备与集中控制器通信连接。 [0067] In this embodiment, a centralized controller to form a device with DCI DCI an LB logic, i.e., each local data center architecture in a cloud corresponds to a DCI device, each data center DCI communication device connected to the centralized controller.

[0068] 其中,DCI设备的作用是:在云计算环境中,将不同地域的数据中心通过DCI设备连接,通过DCI链路的带宽,将多地的数据中心连接成一个整体,解决云架构内部跨数据中心数据访问的问题。 [0068] wherein DCI effect device is: in a cloud computing environment, different regions of the DCI data center equipment is connected, via the link bandwidth of DCI, more connecting data center as a whole, to resolve internal cloud architecture the problem of data access across data centers.

[0069] 分析模块102,用于在接收到云架构内部的客户端针对一云服务应用的至少一个访问请求后,确定所述客户端所处的地域,并根据预定的云服务应用与云服务器集群被部署的地域的关联关系,分析是否有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中; [0069] The analysis module 102, after receiving a cloud infrastructure inside the at least one client a request for access to a cloud service application, determining that the client area is located, and in accordance with a predetermined application service cloud and the cloud server association local clusters are deployed to analyze whether a cloud service application corresponding to the cloud server cluster deployment in the area in which the client;

[0070] 本实施例中,云架构内部的客户端可以针对一云服务应用向集中服务器发送一个或者多个访问请求,云服务应用例如可以是网络游戏等。 [0070] In this embodiment, the internal cloud infrastructure client may send one or more requests for access to a centralized server application cloud service, cloud service, for example, can be a network game applications and the like.

[0071] 本实施例中,集中控制器中预先存储有云服务应用与云服务器集群被部署的地域的关联关系,例如某一云服务器集群被部署的地域为地域A,某一网络游戏与该云服务器集群及其被部署的地域A关联对应。 [0071] In this embodiment, the centralized controller association relationship stored in advance local cloud and the cloud service application server cluster to be deployed, for example, a cloud server cluster deployed a geographical area A, a network game with the a server cluster region associated with the cloud and the corresponding deployed. 在确定客户端所处的地域后,可以进一步分析云服务应用对应的云服务器集群被部署的地域是否与客户端所处的地域相同。 After determining which of the client area, the same can be further analyzed whether the area corresponding to the application of cloud services cloud server cluster is deployed with the client to the geographical.

[0072] 第一分配模块103,用于若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定部署在所述客户端所处的地域中的云服务器集群所在的数据中心,将所述客户端的各访问请求通过所述数据中心的DCI设备分配给部署在所述客户端所处的地域中的云服务器集群进行响应。 [0072] The first allocation module 103, if the cloud to a cloud service corresponding to the application server cluster deployed in the area located in the client, it is determined that the cloud server deployed in the region in which the client clusters where the data center, each of the access request from the client apparatus by allocating DCI deployment of the data center to the cloud server cluster in the area in which the client responds.

[0073] 本实施例中,如果有该云服务应用对应的云服务器集群部署在客户端所处的地域中,例如客户端所处的地域为图3中的地域A,云服务应用对应的云服务器集群部署也部署在地域A中,则集中服务器进一步确定云服务器集群在该地域中的数据中心,例如确定云服务器集群在地域A中的数据中心,由于每个地域的数据中心设置有一DCI设备,且DCI设备与集中控制器连接,因此,可以将客户端的各访问请求通过数据中心的DCI设备分配给部署在客户端所处的地域中的云服务器集群进行响应,可以看出,集中控制器的作用是将云架构内部的客户端的访问通过DCI设备分配给不同地域中的云服务器进行响应。 [0073] In this embodiment, if the cloud service application corresponding to the cloud server cluster deployment in an area in which the client, such as client to the geographical area in FIG. 3 A, corresponding to the application service cloud cloud server cluster deployment also deployed in the area a, the hub server further determines the cloud server cluster data centers in this region is, for example, determining the cloud server cluster data center in the region a, since each local data center is provided with a DCI equipment and DCI device connected to the centralized controller, therefore, access to each client may request by allocating DCI data center equipment to deploy the cloud server cluster in an area in which the client responds, it can be seen, the central controller the role of the client to access the interior of the cloud DCI architecture responds by allocating different regions of the device to a cloud server.

[0074] 在一优选的实施例中,如图6所示,在上述图5的实施例的基础上,上述第一分配模块103包括: [0074] In a preferred embodiment, shown in Figure 6, the basis of the embodiment of Figure 5, the first allocation module 103 comprises:

[0075] 确定单元1031,用于若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定部署在所述客户端所处的地域中的云服务器集群是否处于可用的状态; [0075] The determination unit 1031, if the cloud to a cloud service corresponding to the application server cluster deployed in the client area is located, it is determined to deploy the cloud server cluster in an area located in the client whether available state;

[0076] 分配单元1032,用于若有云服务器集群处于可用的状态,则确定处于可用状态的云服务器集群所在的数据中心,将该客户端的各访问请求通过所确定的数据中心的DCI设备分配给可用状态的云服务器集群进行响应。 [0076] The allocation unit 1032, a cloud server cluster is available if a state, it is determined that the data center is in a usable state where the cloud server cluster, each of the access request from the client device allocation DCI determined by the data center in response to the cloud server cluster available state.

[0077] 本实施例中,如果有该云服务应用对应的云服务器集群部署在客户端所处的地域中,则集中控制器确定在该地域的云服务器集群是否处于可用状态,集中控制器获知云服务器集群的状态的途径例如可以是:各个云服务器集群可以定时向集中控制器上报是否可用的状态位,以供集中控制器根据收到的状态位判断对应的云服务器集群是否可用。 [0077] In this embodiment, if the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines whether the available state of the local cloud server cluster, the centralized controller informed ways cloud state, for example, it may be a server cluster: each cloud server cluster can regularly report the status bits are available to the centralized controller, for the centralized controller determines whether the corresponding cluster is available according to the state of the cloud server received bits.

[0078] 如果云服务器集群处于可用状态,则集中控制器进一步确定云服务器集群所在的数据中心,将该客户端对应的所有访问请求通过该数据中心的DCI设备,分配给部署在确定的地域的云服务器集群进行响应; [0078] If the cloud server cluster is available, the centralized controller further determines a cloud data center where the server cluster, all the access requests corresponding to the client device through the DCI data center, assigned to deploy the determined local cloud server cluster response;

[0079] 如果云服务器集群处于不可用状态,为了提高应用的灵活性,则集中控制器确定该云服务应用对应的除不可用的云服务器集群外的所有可用的云服务器集群所在的数据中心,将该客户端对应的所有访问请求通过可用的云服务器集群所在的数据中心的DCI设备均匀的分发给该云服务应用对应的所有可用云服务器集群。 [0079] If the cloud server cluster in an unusable state, in order to improve application flexibility, the centralized controller determines that the data corresponding to the center of the cloud service application server cluster in addition to the cloud unavailable all available cloud server cluster is located, All access to the client request corresponding to the uniformly distributed cloud service corresponding to the application server cluster is available through cloud DCI apparatus available cloud server cluster where the data center.

[0080] 在一优选的实施例中,在上述图5的实施例的基础上,所述基于集中控制器及DCI 设备的负载均衡的装置还包括: [0080] In a preferred embodiment, the basis of the embodiment of Figure 5, the apparatus of the centralized controller based on load balancing and DCI apparatus further comprises:

[0081] 第二分配模块,用于若无该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定该云服务应用对应的所有云服务器集群所在的数据中心,将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应。 [0081] The second distribution means for the absence of the cloud service application corresponding to the cloud server cluster deployment in an area located in the client, it is determined that the cloud data center corresponding to all cloud service application server cluster is located, each access request of the client responds with a uniform data centers of the determined distribution to the determined device DCI cloud server cluster.

[0082] 与图5的实施例不同的是,本实施例如果没有该云服务应用对应的云服务器集群部署在客户端所处的地域中,为了提高应用的灵活性,则集中控制器确定该云服务应用对应的所有云服务器集群所在的数据中心,将该客户端对应的所有访问请求通过所确定的各个数据中心的DCI设备均匀地分发给该云服务应用对应的所有云服务器集群进行响应;或者如果没有该云服务应用对应的云服务器集群部署在客户端所处的地域中,则集中控制器确定该云服务应用对应的所有可用的云服务器集群所在的数据中心,例如通过各个云服务器集群定时向集中控制器上报是否可用的状态位来确定对应的云服务器集群是否处于可用状态,然后将该客户端对应的所有访问请求通过所确定的各个数据中心的DCI设备均匀的分发给该云服务应用对应的所有云服务器集群进行响应。 [0082] Example 5 is different from the present embodiment, if the cloud does not correspond to a cloud service application server cluster deployed in an area in which the client in order to increase the flexibility of the application, the centralized controller determines that the cloud service corresponding to the application server cluster where all cloud data center, all the access requests corresponding to the client device determined by the DCI respective data centers uniformly distributed to all servers in the cluster in the cloud cloud service application corresponding to respond; without the cloud service or application corresponding to the cloud server cluster deployment in an area located in the client, the centralized controller determines that the application corresponding to the service cloud are available from the cloud data center where the server cluster, each of the cloud server cluster by e.g. regularly report status bit is available to the centralized controller determines whether the corresponding cloud server cluster is available, then all of the access request corresponding to the client by uniformly determined DCI respective data centers distributed in the cloud service apparatus corresponding to the application server cluster in response to all cloud.

[0083] 在一优选的实施例中,在上述的实施例的基础上,上述第二分配模块具体用于获取所述访问请求的数量及DCI设备的数量,若所述访问请求的数量小于等于所述DCI设备的数量,则逐一将访问请求分配给不同的DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应;若所述访问请求的数量大于所述DCI设备的数量,则对所述访问请求进行分组,所述访问请求的组数与所述DCI设备的数量相同,两两分组之间的访问请求的数量的差值不大于预设数量(例如1或者2),将访问请求分配给不同的DCI设备,每组访问请求分配给一DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应,例如DCI设备的数量为10,访问请求的数量为18,则可以将访问请求分10组,其中8组中每组的访问请求的数量为2, [0083] In a preferred embodiment, the above-described embodiments based on the second allocation module is configured to obtain the number of DCI and the device access request, the access request if the number is less than or equal the number DCI device, the access request will be individually assigned to different devices DCI, DCI through the apparatus the access request circulated the cloud service corresponding to the application server cluster in response to the cloud; if the access request DCI is greater than the number of devices, then the access request packet, the number of groups of the same number with the access request DCI device, the difference between every two access request packet is not greater than a predetermined number set number (e.g. 1 or 2), the access request will be assigned to a different DCI device, each access request is assigned to a DCI apparatus, through the apparatus the access request DCI distributed cloud service application corresponding to the cloud server cluster response, such as the number of DCI devices 10, 18 for the number of access requests, the access request may be set in 10, wherein the access requests in each group 8 group number is 2, 外两组的访问请求的数量为1,两两分组之间的访问请求的数量的差值不大于1,然后每一DCI设备处理一个分组中的所有访问请求,这样能够最大程度地将访问请求均匀地分配给DCI设备。 Access the requested number of groups is 1, the difference between every two access request packet number is not greater than 1, then each device processing DCI all access requests in a packet, this can maximize the access request DCI uniformly allocated to the device.

[0084] 在一优选的实施例中,在上述图5的实施例的基础上,所述基于集中控制器及DCI 设备的负载均衡的装置还包括:响应模块,用于实时或定时侦测并接收所述DCI设备返回的云服务器集群对所述访问请求的响应数据,若在接收到所述访问请求后的预设时间内接收到所述响应数据,则将所述响应数据发送给客户端;若在接收到所述访问请求后的预设时间内未接收到所述响应数据,则通过该DCI设备向对应的云服务器集群发送终止响应的指令。 [0084] In a preferred embodiment, the basis of the embodiment of Figure 5, the central controller and the device load balancing based DCI apparatus further comprising: a response module for real-time or the timing to detect and the receiving device returns DCI cloud server cluster data in response to the access request, if received within a predetermined time after receiving the access request to the response data, the response data will be sent to the client ; If the response data is not received within a predetermined time period after receiving the access request is sent to the server cluster corresponding to a cloud through the device termination instruction in response to the DCI.

[0085] 本实施例中,集中控制器进一步对DCI设备返回的云服务器集群对访问请求的响应情况进行分析,例如在接收到所述访问请求后的10秒钟以内接收到DCI设备返回的云服务器集群对访问请求的响应数据,则集中控制器直接将响应数据发送给客户端,并可确定该能进行响应的云服务器集群处于可用状态;如果在接收到所述访问请求后的10秒钟以内未接收到DCI设备返回的云服务器集群对访问请求的响应数据,则集中控制器通过DCI设备向该DCI设备对应的与该云服务应用关联的云服务器集群发送终止响应的指令,并可确定该DCI设备对应的与该云服务应用关联的云服务器集群不可用,确定该云服务应用对应的除不可用的云服务器集群外的所有处于可用状态的云服务器集群所在的数据中心,并将通过该DCI设备分发的访问请求通过所确定的各个数据中心的DCI设备, [0085] In this embodiment, the centralized controller further DCI device returns a cloud server cluster analysis of the response of the access request, for example, the device receives the cloud DCI returned within 10 seconds after receiving the access request server cluster in response to a data access request, the centralized controller transmits response data directly to the client, and in response to determining that the cloud can be a cluster of servers in a usable state; if, after receiving the access request 10 seconds is not received within a cloud server cluster DCI device returns the response data access request, the centralized controller in response to the command corresponding to the cloud and the cloud service application server cluster associated transmission apparatus to the DCI stopped by DCI device may determine the DCI apparatus not corresponding to the cloud and the cloud service application associated with a server cluster, the center of the cloud service determines the data corresponding to all cloud application server cluster in an available state in addition to the cloud server cluster resides unavailable, and by the access request by the distribution apparatus DCI DCI determined for each device in the data center, 匀的分发给该云服务应用对应的所有可用的云服务器集群。 Evenly distributed to all the available cloud server cluster corresponding to the cloud service application.

[0086]以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0086] The foregoing is only preferred embodiments of the present invention, not intended to limit the present invention within the spirit and principle of the present invention, any modification, equivalent replacement, or improvement, it should be included in the present within the scope of the invention.

Claims (10)

1.一种基于集中控制器及DCI设备的负载均衡的方法,其特征在于,所述基于集中控制器及DCI设备的负载均衡的方法包括: S1,集中控制器与在每个地域的数据中心预先设置的DCI设备进行通信连接; 52, 所述集中控制器在接收到云架构内部的客户端针对一云服务应用的至少一个访问请求后,确定所述客户端所处的地域,并根据预定的云服务应用与云服务器集群被部署的地域的关联关系,分析是否有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中; 53, 若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定部署在所述客户端所处的地域中的云服务器集群所在的数据中心,将所述客户端的各访问请求通过所述数据中心的DCI设备分配给部署在所述客户端所处的地域中的云服务器集群进行响应。 A centralized control apparatus and a load balancing DCI based method, wherein the method of load balancing based on a centralized controller and DCI apparatus comprising: S1, the centralized controller and each local data center DCI apparatus connected to a communication set in advance; 52, the centralized controller after receiving the internal cloud infrastructure client a request for access at least one application service cloud, which determines the client area, and according to a predetermined cloud service association with the local cloud application server cluster is deployed, the analysis of whether a cloud service application corresponding to the cloud server cluster deployment in the area in which the client; 53, if the corresponding application service cloud the cloud server cluster deployment in an area located in the client, the centralized controller determines the deployment of a cloud data center server cluster in an area in which the client is located in each access request of the client by dispensing apparatus DCI deployment of the data center to the cloud server cluster in the area in which the client responds.
2. 根据权利要求1所述的基于集中控制器及DCI设备的负载均衡的方法,其特征在于, 所述步骤S3包括: S31,若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定部署在所述客户端所处的地域中的云服务器集群是否处于可用的状态; S32,若有云服务器集群处于可用的状态,则所述集中控制器确定处于可用状态的云服务器集群所在的数据中心,将该客户端的各访问请求通过所确定的数据中心的DCI设备分配给可用状态的云服务器集群进行响应。 2. The centralized controller according to claim DCI apparatus and method of load balancing based on 1 wherein said step S3 comprises: S31, if the cloud service application corresponding to the cloud server cluster deployment at the client end region is located, then the centralized controller determines whether to deploy the cloud server cluster in an area in which the client is in a usable state; S32, if the cloud server cluster is in a usable state, then the the centralized controller determines the available state of the cloud data center where the server cluster, each of the access request from the client in response to the state of the cloud server cluster available through the dispensing device DCI determined data center.
3. 根据权利要求1或2所述的基于集中控制器及DCI设备的负载均衡的方法,其特征在于,所述步骤S2之后还包括: 若无该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则所述集中控制器确定该云服务应用对应的所有云服务器集群所在的数据中心,将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应。 3. DCI centralized controller and device based load balancing, wherein the 1 or claim 2, further comprising the step S2 following: the absence of a cloud service corresponding to the application server cluster deployed in the cloud said region in which the client, the centralized controller determines the center of the cloud service data corresponding to all cloud application server cluster is located, each of the access request from the client apparatus DCI uniformly through the respective centers of the data determined distributed to the identified cloud server cluster to respond.
4. 根据权利要求3所述的的基于集中控制器及DCI设备的负载均衡的方法,其特征在于,所述将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应的步骤包括: 获取所述访问请求的数量及DCI设备的数量,若所述访问请求的数量小于等于所述DCI 设备的数量,则逐一将访问请求分配给不同的DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应; 若所述访问请求的数量大于所述DCI设备的数量,则对所述访问请求进行分组,所述访问请求的组数与所述DCI设备的数量相同,两两分组之间的访问请求的数量的差值不大于预设数量,将访问请求分配给不同的DCI设备,每组访问请求分配给一DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群 4. The centralized controller of claim 3 and DCI equipment based load balancing, wherein each of the access requests of the client's data centers by uniformly the determined distribution apparatus according to claim DCI the step of responding to the determined cloud server cluster comprising: obtaining DCI number of devices and the access request, the access request if the number is smaller than or equal to the number of DCI apparatus, the individually assigned to different access requests the DCI apparatus, through the apparatus the access request DCI distributed cloud service application corresponding to the cloud server cluster response; if the access request number is greater than the number of DCI apparatus, the request for access to the group, the number of groups and the number of access requests DCI same device, access the difference between every two packets requested quantity is not greater than a preset number, the access request is assigned to a different DCI devices, each DCI access requests to a device through the cloud server cluster distribute the access requests corresponding to the service application cloud DCI the apparatus 进行响应。 Responds.
5. 根据权利要求1或2所述的基于集中控制器及DCI设备的负载均衡的方法,其特征在于,所述步骤S3之后还包括: 所述集中控制器实时或定时侦测并接收所述DCI设备返回的云服务器集群对所述访问请求的响应数据,若在接收到所述访问请求后的预设时间内接收到所述响应数据,则将所述响应数据发送给客户端; 若在接收到所述访问请求后的预设时间内未接收到所述响应数据,则通过该DCI设备向对应的云服务器集群发送终止响应的指令。 Centralized controller according to claim DCI apparatus and a method based on load balancing, wherein 1 or claim 2, which further comprises after step S3: the centralized controller detects real time or regularly and receive the DCI cloud server cluster device returns a response to the data access request, if received within a predetermined time after receiving the access request to the response data, the response data will be sent to the client; if is not received within a predetermined time period after receiving the access request to the response data, sending termination instruction in response to a corresponding server cluster through the cloud DCI apparatus.
6.—种基于集中控制器及DCI设备的负载均衡的装置,其特征在于,所述基于集中控制器及DCI设备的负载均衡的装置包括: 连接模块,用于与在每个地域的数据中心预先设置的DCI设备进行通信连接; 分析模块,用于在接收到云架构内部的客户端针对一云服务应用的至少一个访问请求后,确定所述客户端所处的地域,并根据预定的云服务应用与云服务器集群被部署的地域的关联关系,分析是否有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中; 第一分配模块,用于若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定部署在所述客户端所处的地域中的云服务器集群所在的数据中心,将所述客户端的各访问请求通过所述数据中心的DCI设备分配给部署在所述客户端所处的地域中的云服务器集群进行响应。 6.- species based on a centralized controller and means DCI load balancing apparatus, wherein said load balancing unit based on a centralized controller and DCI device comprising: a connection module for communicating with each local data center DCI apparatus connected to a communication set in advance; analysis module for receiving after an internal cloud infrastructure client a request for access at least one application service cloud, which determines the client area, and according to a predetermined clouds geographical relationship with the cloud service application server cluster is deployed, the analysis of whether a cloud service application corresponding to the cloud server cluster deployment in the area in which the client; a first allocating module configured service if the cloud cloud corresponding to the application server cluster deployed in the client area is located, it is determined to deploy data center server cluster in an area where the cloud is located in the client, each of the access request by the client DCI distribution apparatus to said data center deployment of the cloud server cluster in an area located in the client responds.
7. 根据权利要求6所述的基于集中控制器及DCI设备的负载均衡的装置,其特征在于, 所述第一分配模块包括: 确定单元,用于若有该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定部署在所述客户端所处的地域中的云服务器集群是否处于可用的状态; 分配单元,用于若有云服务器集群处于可用的状态,则确定处于可用状态的云服务器集群所在的数据中心,将该客户端的各访问请求通过所确定的数据中心的DCI设备分配给可用状态的云服务器集群进行响应。 7. The apparatus based on a centralized controller and DCI load balancing apparatus, characterized in that said according to claim 6, the first allocation module comprises: a determining unit, if the cloud to a cloud service corresponding to the application server cluster deployed in the client area is located, it is determined whether the deployment of the cloud server cluster in an area in which the client is in a usable state; dispensing unit, for if the cloud server cluster is available state, it is determined that the data center is in a usable state where the cloud server cluster, each of the access request from the client device DCI allocating the determined data to the center server cluster cloud responds by available state.
8. 根据权利要求6或7所述的基于集中控制器及DCI设备的负载均衡的装置,其特征在于,所述基于集中控制器及DCI设备的负载均衡的装置还包括: 第二分配模块,用于若无该云服务应用对应的云服务器集群部署在所述客户端所处的地域中,则确定该云服务应用对应的所有云服务器集群所在的数据中心,将所述客户端的各访问请求通过所确定的各数据中心的DCI设备均匀的分发给所确定的云服务器集群进行响应。 8. The load balancing apparatus DCI centralized controller and device 6 or 7 based on claim, wherein said means for load balancing based on a centralized controller and DCI apparatus further comprising: a second allocation module, Without the cloud to a cloud service corresponding to the application server cluster deployed in an area located in the client, it is determined that the cloud data center corresponding to all cloud service application server cluster is located, each of the access request from the client It responds with a uniform data centers the determined distribution to the determined device DCI cloud server cluster.
9. 根据权利要求8所述的基于集中控制器及DCI设备的负载均衡的装置,其特征在于, 所述第二分配模块具体用于获取所述访问请求的数量及DCI设备的数量,若所述访问请求的数量小于等于所述DCI设备的数量,则逐一将访问请求分配给不同的DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应;若所述访问请求的数量大于所述DCI设备的数量,则对所述访问请求进行分组,所述访问请求的组数与所述DCI设备的数量相同,两两分组之间的访问请求的数量的差值不大于预设数量,将访问请求分配给不同的DCI设备,每组访问请求分配给一DCI设备,以通过所述DCI设备将所述访问请求分发给该云服务应用对应的云服务器集群进行响应。 9. DCI equipment and the centralized controller based on load balancing apparatus according to claim 8, wherein said second module is configured to obtain allocated number of DCI and the device access request, if the said access request number is smaller than or equal to the number of DCI apparatus, the access request will be individually assigned to different device DCI, DCI through the apparatus the access request circulated the cloud service corresponding to the application in response to the cloud server cluster ; if said number is greater than the number of access requests DCI device, then the access request packet, the number of groups of the same number with the access request DCI device, between every two packet access request the difference is not greater than the number of the preset number, the access request will be assigned to a different DCI device, each access request is assigned to a DCI device to a cloud through the apparatus the access request DCI distributed application service corresponding to the cloud server cluster to respond.
10. 根据权利要求6或7所述的基于集中控制器及DCI设备的负载均衡的装置,其特征在于,所述基于集中控制器及DCI设备的负载均衡的装置还包括:响应模块,用于实时或定时侦测并接收所述DCI设备返回的云服务器集群对所述访问请求的响应数据,若在接收到所述访问请求后的预设时间内接收到所述响应数据,则将所述响应数据发送给客户端;若在接收到所述访问请求后的预设时间内未接收到所述响应数据,则通过该DCI设备向对应的云服务器集群发送终止响应的指令。 10. The apparatus on claim 6 or 7 DCI centralized controller and load balancing apparatus as claimed in claim, characterized in that the centralized controller and the load balancing apparatus DCI-based apparatus further comprising: a response module for and real time or regularly detects the receiving apparatus DCI return cloud server cluster in response to said data access request, if the response is received within a predetermined time period after receiving the access request data, then the response data to the client; if the response data is not received within a predetermined time period after receiving the access request is sent in response to a corresponding instruction to terminate the cloud server cluster by the DCI apparatus.
CN201710147706.4A 2017-03-13 2017-03-13 Load balance method and device based on centralized controller and DCI (Data Centre Interconnection) equipment CN107770086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710147706.4A CN107770086A (en) 2017-03-13 2017-03-13 Load balance method and device based on centralized controller and DCI (Data Centre Interconnection) equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710147706.4A CN107770086A (en) 2017-03-13 2017-03-13 Load balance method and device based on centralized controller and DCI (Data Centre Interconnection) equipment
PCT/CN2017/091359 WO2018166111A1 (en) 2017-03-13 2017-06-30 Centralized controller and dci device-based load balancing method and system, electronic device, and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN107770086A true CN107770086A (en) 2018-03-06

Family

ID=61264945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710147706.4A CN107770086A (en) 2017-03-13 2017-03-13 Load balance method and device based on centralized controller and DCI (Data Centre Interconnection) equipment

Country Status (2)

Country Link
CN (1) CN107770086A (en)
WO (1) WO2018166111A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9960967B2 (en) * 2009-10-21 2018-05-01 A10 Networks, Inc. Determining an application delivery server based on geo-location information
US9276860B2 (en) * 2013-03-13 2016-03-01 Microsoft Technology Licensing, Llc Distributed data center technology
US20140351402A1 (en) * 2013-05-26 2014-11-27 Connectloud, Inc. Method and Apparatus to Choose a Best Match Cloud Provisioning Server
FR3011413A1 (en) * 2013-09-30 2015-04-03 Orange a user access to Method has at least one communication service provided by the assistance of an IT center of a computer system in the cloud
CN103716251B (en) * 2014-01-14 2017-06-27 三星电子(中国)研发中心 Load balancing methods and apparatus for content distribution networks

Also Published As

Publication number Publication date
WO2018166111A1 (en) 2018-09-20

Similar Documents

Publication Publication Date Title
Patel et al. Ananta: Cloud scale load balancing
Bestavros et al. Distributed packet rewriting and its application to scalable server architectures
Zhang Linux virtual server for scalable network services
US6922727B2 (en) Method and system for managing parallel data transfer through multiple sockets to provide scalability to a computer network
CN101207550B (en) Load balancing system and method for multi business to implement load balancing
US9614748B1 (en) Multitenant data center providing virtual computing services
US9462427B2 (en) System and method for elastic scaling using a container-based platform
US9600332B2 (en) Server load balancing based on virtual utilization, physical utilization, and feedback
US6779039B1 (en) System and method for routing message traffic using a cluster of routers sharing a single logical IP address distinct from unique IP addresses of the routers
US20140310418A1 (en) Distributed load balancer
US20080263209A1 (en) Active-active operation for a cluster of SSL virtual private network (VPN) devices with load distribution
Gandhi et al. Duet: Cloud scale load balancing with hardware and software
US6728748B1 (en) Method and apparatus for policy based class of service and adaptive service level management within the context of an internet and intranet
CN1826773B (en) Distributing and balancing traffic flow in a virtual gateway
US9503371B2 (en) High availability L3 gateways for logical networks
US10003534B2 (en) Multiple active L3 gateways for logical networks
JP4361270B2 (en) Clustering vpn devices using network flow switch
Aversa et al. Load balancing a cluster of web servers: using distributed packet rewriting
US10038626B2 (en) Multipath routing in a distributed load balancer
EP1368947B1 (en) Addressing method and system for using an anycast address
CN104579732B (en) Virtual network management functions of the network elements, devices and systems
US9037719B2 (en) Hypervisor level distributed load-balancing
US20070220302A1 (en) Session failover management in a high-availability server cluster environment
US9338097B2 (en) Method and system for load balancing at a data network
WO2014138483A1 (en) Application delivery controller and global server load balancer

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination