CN118158222A - Load balancer deployment method, device, electronic device, storage medium and product - Google Patents
Load balancer deployment method, device, electronic device, storage medium and product Download PDFInfo
- Publication number
- CN118158222A CN118158222A CN202410581669.8A CN202410581669A CN118158222A CN 118158222 A CN118158222 A CN 118158222A CN 202410581669 A CN202410581669 A CN 202410581669A CN 118158222 A CN118158222 A CN 118158222A
- Authority
- CN
- China
- Prior art keywords
- cluster
- instance
- subnet
- target
- cloud platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000015654 memory Effects 0.000 claims description 28
- 230000036541 health Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 9
- 230000003862 health status Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 239000002699 waste material Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/10015—Access to distributed or replicated servers, e.g. using brokers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本公开提出了一种负载均衡器部署方法、装置、电子设备、存储介质及产品。所述的方法包括:获取目标云平台中每个集群的集群信息,所述集群信息至少包括对应的所述集群已经部署的负载均衡器LB实例、所述LB实例所属的子网及集群资源使用率;响应于创建属于第一子网的目标LB实例的请求,判断所述目标云平台的所述集群中是否存在属于所述第一子网的LB实例;若判断结果为否,则基于所述目标云平台中每个所述集群的集群信息,将所述目标LB实例部署在所述集群资源使用率最低的集群。
The present disclosure proposes a method, device, electronic device, storage medium and product for deploying a load balancer. The method comprises: obtaining cluster information of each cluster in the target cloud platform, wherein the cluster information at least includes the corresponding load balancer LB instance deployed in the cluster, the subnet to which the LB instance belongs and the cluster resource usage rate; in response to a request to create a target LB instance belonging to a first subnet, determining whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform; if the determination result is no, then deploying the target LB instance in the cluster with the lowest cluster resource usage rate based on the cluster information of each cluster in the target cloud platform.
Description
技术领域Technical Field
本公开涉及云计算技术领域,尤其涉及一种负载均衡器部署方法、装置、电子设备、存储介质及产品。The present disclosure relates to the field of cloud computing technology, and in particular to a load balancer deployment method, device, electronic device, storage medium and product.
背景技术Background technique
负载均衡是高可用网络基础架构的一个关键组成部分,云平台用户们通常可以部署多台应用服务器,不同应用服务器处理不同的业务,然后通过配置集群中的负载均衡(Load Balancer,LB)实例,利用集群中的LB实例将请求分发到集群中不同的服务器,从而提高网站、应用、数据库或其他服务的性能以及可靠性。Load balancing is a key component of high-availability network infrastructure. Cloud platform users can usually deploy multiple application servers, with different application servers handling different businesses. Then, by configuring the load balancing (LB) instance in the cluster, the LB instance in the cluster can be used to distribute requests to different servers in the cluster, thereby improving the performance and reliability of websites, applications, databases, or other services.
但是,相关技术中,每次创建LB实例需要发送多条消息队列(Message Queue,MQ)消息去查询每个集群上的资源使用情况,降低了集群的可用性,且若MQ服务存在问题将无法获取集群资源的使用情况,导致集群中的LB实例创建失败。However, in the related technology, each time a LB instance is created, multiple message queue (MQ) messages need to be sent to query the resource usage on each cluster, which reduces the availability of the cluster. If there is a problem with the MQ service, the usage of the cluster resources cannot be obtained, resulting in the failure of creating the LB instance in the cluster.
发明内容Summary of the invention
本公开提供一种负载均衡器部署方法、装置、电子设备、存储介质及产品,以解决相关技术中的问题。The present disclosure provides a load balancer deployment method, device, electronic device, storage medium and product to solve the problems in the related art.
本公开的第一方面实施例提出了一种负载均衡器部署方法,该方法包括:A first aspect of the present disclosure provides a load balancer deployment method, the method comprising:
获取目标云平台中每个集群的集群信息,集群信息至少包括对应的集群已经部署的负载均衡器LB实例、LB实例所属的子网及集群资源使用率;Obtain cluster information of each cluster in the target cloud platform. The cluster information includes at least the load balancer LB instance deployed in the corresponding cluster, the subnet to which the LB instance belongs, and the cluster resource usage rate.
响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;In response to a request to create a target LB instance belonging to the first subnet, determine whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform;
若判断结果为否,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。If the judgment result is no, the target LB instance is deployed in the cluster with the lowest cluster resource utilization based on the cluster information of each cluster in the target cloud platform.
在一实施例中,判断目标云平台的集群中是否存在属于第一子网的LB实例之后,本公开提供的方法还包括:In one embodiment, after determining whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform, the method provided by the present disclosure further includes:
若判断结果为是,则基于目标云平台中每个集群的集群信息,判断存在属于第一子网的LB实例的第一集群的集群资源使用率是否达到预设集群资源使用率阈值;If the judgment result is yes, based on the cluster information of each cluster in the target cloud platform, it is judged whether the cluster resource usage rate of the first cluster where the LB instance belonging to the first subnet exists reaches the preset cluster resource usage rate threshold;
若判断结果为是,则将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群;其中,剩余集群指目标云平台中,除第一集群之外的集群。If the judgment result is yes, the target LB instance is deployed in the second cluster with the lowest cluster resource utilization rate among the remaining clusters; wherein the remaining clusters refer to the clusters in the target cloud platform except the first cluster.
在一实施例中,将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群,包括:In one embodiment, deploying the target LB instance in the second cluster with the lowest cluster resource usage among the remaining clusters includes:
将目标LB实例的虚拟IP地址绑定在第二集群的端口port;端口指集群向目标云平台的软件定义网络SDN控制器申请分配子网时创建的端口port。Bind the virtual IP address of the target LB instance to the port of the second cluster; the port refers to the port created when the cluster applies to the software-defined network SDN controller of the target cloud platform for subnet allocation.
在一实施例中,判断存在属于第一子网的LB实例的第一集群的集群资源使用率是否达到预设集群资源使用率阈值之后,本公开提供的方法还包括:In one embodiment, after determining whether the cluster resource usage rate of the first cluster having the LB instance belonging to the first subnet reaches a preset cluster resource usage rate threshold, the method provided by the present disclosure further includes:
若判断结果为否,则将目标LB实例部署在第一集群。If the judgment result is no, the target LB instance is deployed in the first cluster.
在一实施例中,本公开提供的方法还包括:In one embodiment, the method provided by the present disclosure further includes:
响应于目标云平台中存在发生故障的第三集群,基于目标云平台中每个集群的集群信息,获取第三集群上部署的至少一个第一LB实例、每个第一LB实例所属的子网;In response to a third cluster having a fault in the target cloud platform, obtaining at least one first LB instance deployed on the third cluster and a subnet to which each first LB instance belongs based on cluster information of each cluster in the target cloud platform;
基于目标云平台中每个集群的集群信息,判断健康集群中是否存在与第一LB实例所属的子网相同的LB实例;健康集群指目标云平台中未发生故障的集群;Based on the cluster information of each cluster in the target cloud platform, determine whether there is an LB instance in the healthy cluster that has the same subnet as the first LB instance; a healthy cluster refers to a cluster in the target cloud platform that has not experienced any failure;
若判断结果为是,则将对应的第一LB实例部署在第一健康集群中;第一健康集群指存在与第一LB实例所属的子网相同的LB实例的健康集群。If the judgment result is yes, the corresponding first LB instance is deployed in the first healthy cluster; the first healthy cluster refers to a healthy cluster in which there is an LB instance in the same subnet as the first LB instance.
在一实施例中,判断健康集群中是否存在与第一LB实例所属的子网相同的LB实例之后,本公开提供的方法还包括:In one embodiment, after determining whether there is an LB instance in the healthy cluster that is the same as the subnet to which the first LB instance belongs, the method provided by the present disclosure further includes:
若判断结果为否,则将对应的第一LB实例部署在第二健康集群中;第二健康集群指不存在与第一LB实例所属的子网相同的LB实例的健康集群中,集群资源使用率最低的集群。If the judgment result is no, the corresponding first LB instance is deployed in the second healthy cluster; the second healthy cluster refers to the cluster with the lowest cluster resource utilization rate among the healthy clusters in which there is no LB instance in the same subnet as the first LB instance.
本公开的第二方面实施例提出了一种负载均衡器部署装置,该装置包括:A second aspect of the present disclosure provides a load balancer deployment device, the device comprising:
获取单元,用于获取目标云平台中每个集群的集群信息,集群信息至少包括对应的集群已经部署的负载均衡器LB实例、LB实例所属的子网及集群资源使用率;An acquisition unit is used to acquire cluster information of each cluster in the target cloud platform, where the cluster information at least includes a load balancer LB instance deployed in the corresponding cluster, a subnet to which the LB instance belongs, and a cluster resource usage rate;
判断单元,用于响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;A determination unit, configured to determine, in response to a request to create a target LB instance belonging to the first subnet, whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform;
部署单元,用于若判断结果为否,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。The deployment unit is used to deploy the target LB instance in the cluster with the lowest cluster resource usage based on the cluster information of each cluster in the target cloud platform if the judgment result is no.
本公开的第三方面实施例提出了一种电子设备,包括:A third aspect of the present disclosure provides an electronic device, including:
至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行本公开第一方面实施例中描述的方法。At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the embodiment of the first aspect of the present disclosure.
本公开的第四方面实施例提出了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,计算机指令用于使计算机执行本公开第一方面实施例中描述的方法。The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect embodiment of the present disclosure.
本公开的第五方面实施例提出了一种计算机程序产品,包括计算机程序,计算机程序在被处理器执行时实现本公开第一方面实施例中描述的方法。The fifth aspect embodiment of the present disclosure proposes a computer program product, including a computer program, which implements the method described in the first aspect embodiment of the present disclosure when executed by a processor.
综上,本公开提出了一种负载均衡器部署方法,该方法包括:获取目标云平台中每个集群的集群信息,集群信息至少包括对应的集群已经部署的负载均衡器LB实例、LB实例所属的子网及集群资源使用率;响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;若判断结果为否,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。In summary, the present disclosure proposes a load balancer deployment method, which includes: obtaining cluster information of each cluster in the target cloud platform, the cluster information at least including the load balancer LB instance that has been deployed in the corresponding cluster, the subnet to which the LB instance belongs, and the cluster resource utilization rate; in response to a request to create a target LB instance belonging to the first subnet, determining whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform; if the determination result is no, deploying the target LB instance in the cluster with the lowest cluster resource utilization rate based on the cluster information of each cluster in the target cloud platform.
通过本公开提供的方案,通过负载均衡即服务代理(Load Balancer-as-a-Service Agent,lbaas-agent)管控节点查找每个集群的健康状态及根据集群索引确定集群中属于第一子网下的LB实例,可以高效地定位和管理每个集群中的LB实例,提高了集群的可用性。若目标云平台的集群中不存在属于同一子网的LB实例,通过将第一子网的目标LB实例部署在资源使用率最低的集群,提升了集群的负载均衡性能,有助于集群资源的利用,避免资源浪费。Through the solution provided by the present disclosure, the health status of each cluster can be found through the Load Balancer-as-a-Service Agent (lbaas-agent) control node, and the LB instance belonging to the first subnet in the cluster can be determined according to the cluster index, so that the LB instance in each cluster can be efficiently located and managed, thereby improving the availability of the cluster. If there is no LB instance belonging to the same subnet in the cluster of the target cloud platform, by deploying the target LB instance of the first subnet in the cluster with the lowest resource utilization, the load balancing performance of the cluster is improved, which helps to utilize cluster resources and avoid resource waste.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
图1为本公开实施例提供的软负载均衡部署架构的原理框图;FIG1 is a principle block diagram of a soft load balancing deployment architecture provided by an embodiment of the present disclosure;
图2为本公开应用示例提供的负载均衡器部署方法的流程示意图;FIG2 is a flow chart of a load balancer deployment method provided by an application example of the present disclosure;
图3为本公开实施例提供的将目标LB实例部署在第二集群的流程示意图;FIG3 is a schematic diagram of a process of deploying a target LB instance in a second cluster according to an embodiment of the present disclosure;
图4为本公开应用示例提供的负载均衡器部署架构的原理框图;FIG4 is a block diagram of a load balancer deployment architecture provided by an application example of the present disclosure;
图5为本公开应用示例提供的LB实例跨集群部署的过程示意图;FIG5 is a schematic diagram of a process of cross-cluster deployment of LB instances provided by an application example of the present disclosure;
图6为本公开应用示例提供的负载均衡器部署方法的流程示意图;FIG6 is a flow chart of a load balancer deployment method provided by an application example of the present disclosure;
图7为本公开实施例提供的将第一LB实例部署在第一健康集群的流程示意图;FIG7 is a schematic diagram of a process of deploying a first LB instance in a first healthy cluster according to an embodiment of the present disclosure;
图8为本公开应用示例提供的又一种负载均衡器部署方法的流程示意图;FIG8 is a flow chart of another load balancer deployment method provided by an application example of the present disclosure;
图9为本公开实施例提供的负载均衡器部署装置的结构示意图;FIG9 is a schematic diagram of the structure of a load balancer deployment device provided in an embodiment of the present disclosure;
图10为本公开实施例提供的电子设备的硬件组成结构示意图。FIG. 10 is a schematic diagram of the hardware composition structure of an electronic device provided in an embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
相关技术中,同一子网下的LB通常分布在同一个集群中,导致同一子网下的集群资源使用不均,且当同一子网下的LB所在的集群资源已满时,无法在该子网下继续创建LB,需要切换子网来创建新实例,从而降低了同一子网下的集群利用率。In the related technology, LBs under the same subnet are usually distributed in the same cluster, resulting in uneven use of cluster resources under the same subnet. When the cluster resources where the LB under the same subnet is located are full, it is impossible to continue to create LB under the subnet, and it is necessary to switch subnets to create new instances, thereby reducing the cluster utilization under the same subnet.
相关技术中,常见的负载均衡器部署方案如下:In related technologies, common load balancer deployment solutions are as follows:
(1)如图1所示,采用多集群方式部署,集群支持扩缩容;(1) As shown in Figure 1, multiple clusters are deployed, and clusters support expansion and contraction;
(2)每个集群包含主备两台服务器,支持主备高可用;(2) Each cluster contains two servers, active and standby, supporting active and standby high availability;
(3)一个LB实例包含一对主备Linux虚拟服务器(Linux Virtual Server,LVS),LVS集群之间通过Keepalived实现高可用机制配置管理LVS,实现四层流量转发;LVS后端分布式部署Nginx,以实现七层流量转发。当用户从云平台中下发创建LB实例、监听器等信息时,会自动在每台服务器中虚出不同的LVS+NGINX命名空间(NAMESPCE),满足租户隔离场景;(3) A LB instance contains a pair of active and standby Linux Virtual Servers (LVS). Keepalived is used to implement high availability mechanism configuration and management between LVS clusters to achieve layer 4 traffic forwarding. Nginx is deployed in a distributed manner on the backend of LVS to achieve layer 7 traffic forwarding. When users send down information such as creating LB instances and listeners from the cloud platform, different LVS+NGINX namespaces (NAMESPCE) will be automatically created in each server to meet tenant isolation scenarios.
(4)当用户第一次使用子网1(subnet)创建负载均衡器LB1时,lbaas-agent检测到所有集群中不存在该子网下的LB实例,需要向软件定义网络(Software Defined Network,SDN)控制器申请分配虚拟局域网(Virtual Local Area Network,VLAN)(不同集群规划分配的VLAN范围不同)、创建port等资源,并进行层次化绑定操作,当用户访问LB时,SDN 虚拟隧道端点(Virtual Tunnel Endpoint,VTEP)设备进行虚拟可扩展局域网(VirtualExtensible LAN,VXLAN)的封装与解封装,实现该子网下的创建的LB实例资源与同子网下后端server流量互通,再将LB1的配置下发到其中一个集群中,如集群1。后续再使用子网1创建LB实例时,使用已分配的VLAN,及port等资源,将LB2虚拟互联网协议(VirtualInternet Protocol,VIP)地址、LVS和NGINX 互联网协议(Internet Protocol,IP)地址绑定到port上,并将LB2的配置下发到集群1中,实现流量互通。每个VLAN对应一个子网,所以同一子网下的LB分布在同一个集群中的两台服务器上。当集群1中NAMESPCE或其他资源占满时,无法使用子网1继续创建LB实例。(4) When the user uses subnet 1 (subnet) to create a load balancer LB1 for the first time, lbaas-agent detects that there is no LB instance under this subnet in all clusters. It needs to apply to the Software Defined Network (SDN) controller to allocate a virtual local area network (VLAN) (different clusters have different VLAN ranges), create ports and other resources, and perform hierarchical binding operations. When the user accesses the LB, the SDN virtual tunnel endpoint (VTEP) device performs virtual extensible LAN (VXLAN) encapsulation and decapsulation to enable the created LB instance resources under this subnet to communicate with the backend server traffic under the same subnet, and then send the LB1 configuration to one of the clusters, such as cluster 1. When you use subnet 1 to create an LB instance later, use the allocated VLAN, port and other resources to bind the LB2 virtual Internet Protocol (VIP) address, LVS and NGINX Internet Protocol (IP) address to the port, and send the LB2 configuration to cluster 1 to achieve traffic interoperability. Each VLAN corresponds to a subnet, so the LBs under the same subnet are distributed on two servers in the same cluster. When NAMESPCE or other resources in cluster 1 are full, you cannot use subnet 1 to continue creating LB instances.
上述方案中存在以下缺陷:The above solution has the following defects:
使同一子网下的LB分布在同一个集群中容易造成集群资源使用不均,某些集群资源占用率达到100%,而部分集群使用率极低,且当同一子网下的LB所在的集群资源已满时,无法在该子网下继续创建LB,需要切换子网2来创建新实例,落在空闲的集群上,这对云平台用户来说是无法接受的。另外,若集群1资源使用率已满时,当集群1出现故障时,所有已经配置在集群中的LB实例受限于同一子网的LB实例无法创建至新集群中,导致无法将故障集群中的LB实例迁移至正常集群中。Distributing LBs under the same subnet in the same cluster can easily cause uneven use of cluster resources. Some clusters have 100% resource utilization, while others have very low utilization. When the cluster resources of the LB under the same subnet are full, it is impossible to create LBs under the subnet. It is necessary to switch to subnet 2 to create new instances, which fall on idle clusters. This is unacceptable to cloud platform users. In addition, if the resource utilization of cluster 1 is full, when cluster 1 fails, all LB instances that have been configured in the cluster cannot be created in the new cluster due to the restrictions of the LB instances in the same subnet, resulting in the inability to migrate the LB instances in the failed cluster to the normal cluster.
为了解决相关技术中的至少一个缺陷,本公开提供了一种负载均衡器部署方法,通过lbaas-agent管控节点查找每个集群的健康状态及根据集群索引确定集群中属于第一子网下的LB实例,可以高效地定位和管理每个集群中的LB实例,提高了集群的可用性。若目标云平台的集群中不存在属于同一子网的LB实例,通过将第一子网的目标LB实例部署在资源使用率最低的集群,提升了集群的负载均衡性能,有助于集群资源的利用,避免资源浪费。In order to solve at least one defect in the related art, the present disclosure provides a load balancer deployment method, which can efficiently locate and manage the LB instances in each cluster by searching the health status of each cluster through the lbaas-agent control node and determining the LB instances belonging to the first subnet in the cluster according to the cluster index, thereby improving the availability of the cluster. If there is no LB instance belonging to the same subnet in the cluster of the target cloud platform, by deploying the target LB instance of the first subnet in the cluster with the lowest resource utilization, the load balancing performance of the cluster is improved, which helps to utilize cluster resources and avoid resource waste.
下面结合附图及具体实施例对本公开作进一步详细的说明。The present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments.
如图2所示,本公开实施例提供的一种负载均衡器部署方法,包括以下步骤:As shown in FIG2 , a load balancer deployment method provided in an embodiment of the present disclosure includes the following steps:
步骤201,获取目标云平台中每个集群的集群信息。Step 201, obtaining cluster information of each cluster in the target cloud platform.
在一实施例中,可以通过lbaas-agent管控节点获取每个集群的集群信息。In one embodiment, the cluster information of each cluster can be obtained through the lbaas-agent management and control node.
在一实施例中,集群信息至少包括对应的集群已经部署的LB实例、LB实例所属的子网及集群资源使用率。In one embodiment, the cluster information includes at least the LB instance that has been deployed in the corresponding cluster, the subnet to which the LB instance belongs, and the cluster resource usage rate.
在一实施例中,lbaas-agent管控节点可以通过监测agent心跳来定时探测不同集群的健康状态,并将集群健康状态存储到数据库中。In one embodiment, the lbaas-agent management and control node can periodically detect the health status of different clusters by monitoring the agent heartbeat, and store the cluster health status in a database.
在一实施例中,lbaas-agent管控节点也可用于监测LB实例分布情况。In one embodiment, the lbaas-agent control node can also be used to monitor the distribution of LB instances.
在一实施例中,存储集群健康状态的数据库可以是MySQL、PostgreSQL、Neutron三种数据库中的任一种,本公开对此不予限定。In one embodiment, the database storing the health status of the cluster may be any one of the three databases: MySQL, PostgreSQL, and Neutron, which is not limited in the present disclosure.
在一实施例中,通过获取目标云平台中每个集群的集群信息,可以高效地定位和管理每个集群中的LB实例,提高了集群的可用性。In one embodiment, by acquiring cluster information of each cluster in the target cloud platform, the LB instance in each cluster can be efficiently located and managed, thereby improving the availability of the cluster.
步骤202,响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;Step 202, in response to a request to create a target LB instance belonging to the first subnet, determining whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform;
在一实施例中,目标LB实例指响应于创建属于第一子网的目标LB实例的请求创建的LB实例。In one embodiment, the target LB instance refers to a LB instance created in response to a request to create a target LB instance belonging to the first subnet.
在一实施例中,第一子网可以是在局域网或广域网中划分的一个逻辑子网。In one embodiment, the first subnet may be a logical subnet divided in a local area network or a wide area network.
在一实施例中,第一子网的LB实例可以是一个或多个,本公开对此不予限定。In one embodiment, the LB instance of the first subnet may be one or more, which is not limited in the present disclosure.
在一实施例中,lbaas-agent管控节点接收到创建属于第一子网的目标LB实例的请求时,可以通过lbaas-agent管控节点查询数据库,数据库中包含多个LB实例ID以及对应子网ID,可以根据数据库中第一子网ID及对应的LB实例ID查找第一子网下的LB实例。In one embodiment, when the lbaas-agent control node receives a request to create a target LB instance belonging to the first subnet, the lbaas-agent control node can query the database, which contains multiple LB instance IDs and corresponding subnet IDs. The LB instance under the first subnet can be searched based on the first subnet ID and the corresponding LB instance ID in the database.
步骤203,若判断结果为否,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。Step 203, if the judgment result is no, then based on the cluster information of each cluster in the target cloud platform, the target LB instance is deployed in the cluster with the lowest cluster resource utilization.
在一实施例中,通过lbaas-agent管控节点查询数据库,若不能根据第一子网ID及对应的LB实例ID找到第一子网下的LB实例,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。In one embodiment, the database is queried through the lbaas-agent management and control node. If the LB instance under the first subnet cannot be found according to the first subnet ID and the corresponding LB instance ID, the target LB instance is deployed in the cluster with the lowest cluster resource utilization based on the cluster information of each cluster in the target cloud platform.
在一实施例中,若不能根据第一子网ID及对应的LB实例ID找到第一子网下的LB实例,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群步骤包括:In one embodiment, if the LB instance under the first subnet cannot be found according to the first subnet ID and the corresponding LB instance ID, the steps of deploying the target LB instance in the cluster with the lowest cluster resource usage based on the cluster information of each cluster in the target cloud platform include:
通过lbaas-agent管控节点,获取目标云平台中每个集群的集群信息,确定集群资源使用率最低的集群;Through the lbaas-agent control node, obtain the cluster information of each cluster in the target cloud platform and determine the cluster with the lowest cluster resource utilization;
在所选的集群资源使用率最低的集群上,使用目标云平台提供的部署工具,如Docker、Kubernetes、Ansible、Chef、Puppet等工具,将目标LB实例部署到集群资源使用率最低的集群上。On the selected cluster with the lowest cluster resource usage, use the deployment tools provided by the target cloud platform, such as Docker, Kubernetes, Ansible, Chef, Puppet, and other tools, to deploy the target LB instance to the cluster with the lowest cluster resource usage.
在一实施例中,通过将目标LB实例部署在集群资源使用率最低的集群,提升了集群的负载均衡性能,有助于集群资源的利用,避免资源浪费。In one embodiment, by deploying the target LB instance in the cluster with the lowest cluster resource utilization, the load balancing performance of the cluster is improved, which helps to utilize cluster resources and avoid resource waste.
综上,本公开提出了一种负载均衡器部署方法,该方法包括:获取目标云平台中每个集群的集群信息,集群信息至少包括对应的集群已经部署的负载均衡器LB实例、LB实例所属的子网及集群资源使用率;响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;若判断结果为否,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。In summary, the present disclosure proposes a load balancer deployment method, which includes: obtaining cluster information of each cluster in the target cloud platform, the cluster information at least including the load balancer LB instance that has been deployed in the corresponding cluster, the subnet to which the LB instance belongs, and the cluster resource utilization rate; in response to a request to create a target LB instance belonging to the first subnet, determining whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform; if the determination result is no, deploying the target LB instance in the cluster with the lowest cluster resource utilization rate based on the cluster information of each cluster in the target cloud platform.
通过本公开提供的方案,通过lbaas-agent管控节点查找每个集群的健康状态及根据集群索引确定集群中属于第一子网下的LB实例,可以高效地定位和管理每个集群中的LB实例,提高了集群的可用性。若目标云平台的集群中不存在属于同一子网的LB实例,通过将第一子网的目标LB实例部署在资源使用率最低的集群,提升了集群的负载均衡性能,有助于集群资源的利用,避免资源浪费。Through the solution provided by the present disclosure, the health status of each cluster is searched through the lbaas-agent control node and the LB instance belonging to the first subnet in the cluster is determined according to the cluster index, so that the LB instance in each cluster can be efficiently located and managed, thereby improving the availability of the cluster. If there is no LB instance belonging to the same subnet in the cluster of the target cloud platform, the target LB instance of the first subnet is deployed in the cluster with the lowest resource utilization, which improves the load balancing performance of the cluster, helps to utilize cluster resources, and avoids resource waste.
在一实施例中,如图3所示,步骤202之后,本公开提供的方法包括以下步骤:In one embodiment, as shown in FIG3 , after step 202, the method provided by the present disclosure includes the following steps:
步骤301,若判断结果为是,则基于目标云平台中每个集群的集群信息,判断存在属于第一子网的LB实例的第一集群的集群资源使用率是否达到预设集群资源使用率阈值;Step 301: If the judgment result is yes, then based on the cluster information of each cluster in the target cloud platform, it is determined whether the cluster resource usage rate of the first cluster where the LB instance belonging to the first subnet exists reaches a preset cluster resource usage rate threshold;
在一实施例中,第一集群指第一子网下的集群。In one embodiment, the first cluster refers to a cluster under the first subnet.
在一实施例中,预设集群资源使用率阈值指集群资源使用率满的临界值。In one embodiment, the preset cluster resource usage rate threshold refers to a critical value of the cluster resource usage rate.
在一实施例中,预设集群资源使用率阈值可以用来衡量第一集群的LB实例是否可以在第一子网下创建。In one embodiment, the preset cluster resource usage threshold may be used to measure whether the LB instance of the first cluster can be created under the first subnet.
在一实施例中,因第一子网的LB实例通常分布在同一个集群中,导致第一子网中的每个集群资源使用不均,降低了第一子网的集群利用率。所以利用第一子网的LB实例的第一集群的集群资源使用率是否达到预设集群资源使用率阈值,作为衡量第一集群的LB实例是否可以在第一子网下创建的判断标准,提高了第一子网下集群的利用率。In one embodiment, since the LB instances of the first subnet are usually distributed in the same cluster, the resources of each cluster in the first subnet are unevenly used, which reduces the cluster utilization of the first subnet. Therefore, whether the cluster resource utilization of the first cluster using the LB instances of the first subnet reaches a preset cluster resource utilization threshold is used as a criterion for determining whether the LB instances of the first cluster can be created under the first subnet, thereby improving the utilization of the cluster under the first subnet.
步骤302,若判断结果为是,则将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群。Step 302: If the judgment result is yes, the target LB instance is deployed in the second cluster with the lowest cluster resource utilization rate among the remaining clusters.
在一实施例中,第二集群指第一子网下除第一集群之外的另一集群。In one embodiment, the second cluster refers to another cluster other than the first cluster under the first subnet.
在一实施例中,剩余集群指目标云平台中,除第一集群之外的集群。In one embodiment, the remaining clusters refer to clusters in the target cloud platform except the first cluster.
在一实施例中,将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群包括:In one embodiment, deploying the target LB instance in the second cluster with the lowest cluster resource usage among the remaining clusters includes:
为第二集群分配虚拟局域网(VLAN),创建端口(self_port),根据self_port和VLAN创建网关端口(gateway_port);Assign a virtual local area network (VLAN) to the second cluster, create a port (self_port), and create a gateway port (gateway_port) based on self_port and VLAN;
将目标LB实例虚拟IP地址绑定于第二集群端口;Bind the target LB instance virtual IP address to the second cluster port;
创建LVS、NGINX的port,并将LVS、NGINX的地址绑定至第二集群self_port中,同时创建keepalived、nginx的配置文件,当访问LB实例VIP(虚拟IP地址)时流量转发到第二集群。Create LVS and NGINX ports, bind the addresses of LVS and NGINX to the self_port of the second cluster, and create configuration files for keepalived and nginx. When accessing the LB instance VIP (virtual IP address), forward the traffic to the second cluster.
在一实施例中,由于目标云平台的集群中存在属于第一子网的LB实例,且属于第一子网的LB实例的第一集群的集群资源使用率达到预设集群资源使用率阈值。因此,通过将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群,提高了第一子网中集群利用率。In one embodiment, since there is an LB instance belonging to the first subnet in the cluster of the target cloud platform, and the cluster resource usage of the first cluster of LB instances belonging to the first subnet reaches a preset cluster resource usage threshold, the cluster utilization in the first subnet is improved by deploying the target LB instance in the second cluster with the lowest cluster resource usage among the remaining clusters.
在一实施例中,步骤302,包括:In one embodiment, step 302 includes:
将目标LB实例的虚拟IP地址绑定在第二集群的端口port。Bind the virtual IP address of the target LB instance to the port of the second cluster.
在一实施例中,端口指集群向目标云平台的SDN控制器申请分配子网时创建的端口port。In one embodiment, the port refers to the port created when the cluster applies to the SDN controller of the target cloud platform for allocation of a subnet.
在一实施例中,将目标LB实例的虚拟IP地址绑定在第二集群的端口port步骤包括:In one embodiment, the step of binding the virtual IP address of the target LB instance to the port port of the second cluster includes:
确定第二集群的网络拓扑:第二集群的网络结构包括网络设备、子网、IP地址范围等;Determine the network topology of the second cluster: The network structure of the second cluster includes network devices, subnets, IP address ranges, etc.;
配置虚拟IP地址:配置目标LB实例的虚拟IP地址,可以通过目标云平台的管理控制台、命令行界面完成;Configure virtual IP address: Configure the virtual IP address of the target LB instance, which can be done through the management console or command line interface of the target cloud platform;
配置端口转发规则:配置端口转发规则将流量从虚拟IP地址转发到第二集群的端口;Configure port forwarding rules: Configure port forwarding rules to forward traffic from the virtual IP address to the port of the second cluster;
配置第二集群的网络设备:确保第二集群中的网络设备可以接受来自虚拟IP地址的流量;Configure the network devices of the second cluster: Make sure that the network devices in the second cluster can accept traffic from the virtual IP address;
测试和验证:完成上述配置后,进行测试和验证以确保虚拟IP地址绑定在第二集群的端口上。可以通过发送流量和检查第二集群中的端口是否正确接收流量来进行验证;Test and verify: After completing the above configuration, test and verify to ensure that the virtual IP address is bound to the port of the second cluster. This can be verified by sending traffic and checking whether the port in the second cluster receives the traffic correctly;
在一实施例中,将目标LB实例的虚拟IP地址绑定在第二集群的端口port可以实现第二集群的高可用性,若集群中某个节点发生故障不可用,目标LB实例可以自动将流量转发到健康的节点上,保证业务的正常运行。In one embodiment, binding the virtual IP address of the target LB instance to the port of the second cluster can achieve high availability of the second cluster. If a node in the cluster fails and is unavailable, the target LB instance can automatically forward traffic to a healthy node to ensure normal operation of the business.
在一实施例中,步骤301之后,本公开提供的方法还包括:In one embodiment, after step 301, the method provided by the present disclosure further includes:
若判断结果为否,则将目标LB实例部署在第一集群。If the judgment result is no, the target LB instance is deployed in the first cluster.
在一实施例中,若根据数据库中第一子网ID及对应的LB实例ID能够查找到第一子网下的LB实例,并且第一集群的集群使用率未达到预设集群资源使用率阈值时,则将目标LB实例部署在第一集群。In one embodiment, if the LB instance under the first subnet can be found according to the first subnet ID and the corresponding LB instance ID in the database, and the cluster utilization rate of the first cluster does not reach the preset cluster resource utilization rate threshold, the target LB instance is deployed in the first cluster.
在一实施例中,若根据数据库中第一子网ID及对应的LB实例ID能够查找到第一子网下的LB实例,则将目标LB实例部署在第一集群时,目标LB实例无需向SDN控制器申请分配VLAN和创建端口,只需将目标LB实例的虚拟IP地址绑定在第一集群的端口port,从而提高了目标LB实例的配置效率。In one embodiment, if the LB instance under the first subnet can be found based on the first subnet ID and the corresponding LB instance ID in the database, when the target LB instance is deployed in the first cluster, the target LB instance does not need to apply to the SDN controller for VLAN allocation and port creation, but only needs to bind the virtual IP address of the target LB instance to the port port of the first cluster, thereby improving the configuration efficiency of the target LB instance.
如图4和图5所示:图4为本公开应用示例提供的负载均衡器部署架构的原理框图,图5为本公开应用示例提供的LB实例跨集群部署的过程示意图。以目标云平台的第一集群中存在属于第一子网的LB实例,且第一集群的集群使用率达到预设集群资源使用率阈值,在第一子网下继续创建LB实例为例,包括:As shown in Figures 4 and 5: Figure 4 is a principle block diagram of the load balancer deployment architecture provided by the application example of the present disclosure, and Figure 5 is a schematic diagram of the process of cross-cluster deployment of LB instances provided by the application example of the present disclosure. Taking the case that there is an LB instance belonging to the first subnet in the first cluster of the target cloud platform, and the cluster utilization rate of the first cluster reaches the preset cluster resource utilization rate threshold, and continuing to create an LB instance under the first subnet as an example, it includes:
lbaas-agent管控节点接收到LB实例创建的请求后,查询数据库,选择健康状态health_status为active的集群;After receiving the request to create an LB instance, the lbaas-agent control node queries the database and selects a cluster whose health status is active.
第一集群上已存在第一子网下的LB实例且资源使用率(usage_rate)为1,其他集群上第一子网下的LB实例数为0,则此时除第一集群外,其他集群同时并发的向SDN控制器申请分配虚拟局域网(VLAN)及创建端口(self_port)及网关端口(gateway_port);The first cluster already has an LB instance under the first subnet and the resource usage rate (usage_rate) is 1. The number of LB instances under the first subnet in other clusters is 0. At this time, except for the first cluster, other clusters simultaneously apply to the SDN controller for allocation of a virtual local area network (VLAN) and creation of a port (self_port) and a gateway port (gateway_port);
第二集群分配VLAN200,创建第二集群self_port,根据第二集群self_port和VLAN200创建gateway_port,第三集群分配VLAN300,创建第三集群self_port,根据第三集群self_port和VLAN300创建gateway_port,剩余其他集群同步创建相应资源;当LB实例配置到某个集群时,仅需要将LB实例VIP地址绑定到self_port上,同时创建keepalived及nginx的配置文件,保证流量可以正常转发到集群中;The second cluster is assigned VLAN 200, and the second cluster self_port is created. A gateway_port is created based on the second cluster self_port and VLAN 200. The third cluster is assigned VLAN 300, and the third cluster self_port is created. A gateway_port is created based on the third cluster self_port and VLAN 300. The remaining clusters simultaneously create corresponding resources. When the LB instance is configured to a cluster, it is only necessary to bind the LB instance VIP address to the self_port, and create the keepalived and nginx configuration files to ensure that the traffic can be forwarded to the cluster normally.
查询数据库选择集群资源使用率最少的集群,此时确认LB实例配置的集群,如第二集群,将LB实例VIP地址绑定至第二集群创建的self_port中,创建LVS、NGINX的port,并将LVS、NGINX的地址绑定至第二集群self_port中,同时创建keepalived、nginx的配置文件,当访问LB实例VIP时流量转发到第二集群;Query the database to select the cluster with the least cluster resource usage. At this time, confirm the cluster configured for the LB instance, such as the second cluster, bind the LB instance VIP address to the self_port created in the second cluster, create LVS and NGINX ports, and bind the addresses of LVS and NGINX to the self_port of the second cluster. At the same time, create configuration files for keepalived and nginx. When accessing the LB instance VIP, the traffic is forwarded to the second cluster.
lbaas-agent管控节点周期性探测所有集群上已创建的LB实例个数,CPU使用率,内存使用率,磁盘使用率,网卡出入流量信息,计算并更新数据库中各集群的资源使用率,子网ID、集群ID、LB实例数信息。The lbaas-agent control node periodically detects the number of LB instances created on all clusters, CPU usage, memory usage, disk usage, and network card inbound and outbound traffic information, and calculates and updates the resource usage, subnet ID, cluster ID, and LB instance number information of each cluster in the database.
如图6所示,图6为本公开应用示例提供的负载均衡器部署方法的流程示意图,包括以下步骤:As shown in FIG. 6 , FIG. 6 is a flow chart of a load balancer deployment method provided by an application example of the present disclosure, comprising the following steps:
步骤601,获取目标云平台中每个集群的集群信息;Step 601, obtaining cluster information of each cluster in the target cloud platform;
步骤602,响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;Step 602, in response to a request to create a target LB instance belonging to the first subnet, determining whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform;
若是,则进入步骤603;If yes, proceed to step 603;
若否,则进入步骤604;If not, proceed to step 604;
步骤603,基于目标云平台中每个集群的集群信息,判断存在属于第一子网的LB实例的第一集群的集群资源使用率是否达到预设集群资源使用率阈值;Step 603: Based on the cluster information of each cluster in the target cloud platform, determine whether the cluster resource usage rate of the first cluster where the LB instance belonging to the first subnet exists reaches a preset cluster resource usage rate threshold;
若是,则进入步骤604;If yes, proceed to step 604;
若否,则进入步骤605;If not, proceed to step 605;
步骤604,将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群;Step 604: deploy the target LB instance in the second cluster with the lowest cluster resource utilization rate among the remaining clusters;
步骤605,将目标LB实例部署在第一集群。Step 605: deploy the target LB instance in the first cluster.
在一实施例中,如图7所示,本公开提供的方法还包括以下步骤:In one embodiment, as shown in FIG7 , the method provided by the present disclosure further includes the following steps:
步骤701,响应于目标云平台中存在发生故障的第三集群,基于目标云平台中每个集群的集群信息,获取第三集群上部署的至少一个第一LB实例、每个第一LB实例所属的子网;Step 701, in response to a third cluster having a fault in the target cloud platform, obtaining at least one first LB instance deployed on the third cluster and a subnet to which each first LB instance belongs based on cluster information of each cluster in the target cloud platform;
在一实施例中,通过lbaas-agent管控节点查找数据库中第三集群ID,根据数据库中第三集群ID查找第三集群下至少一个第一LB实例ID对应的子网ID,根据第一LB实例ID对应的子网ID找到第一LB实例。In one embodiment, the third cluster ID in the database is searched through the lbaas-agent management node, the subnet ID corresponding to at least one first LB instance ID under the third cluster is searched according to the third cluster ID in the database, and the first LB instance is found according to the subnet ID corresponding to the first LB instance ID.
在一实施例中,根据第一LB实例ID找到listener、pool、health monitor等配置信息。其中,listener负责接收客户端请求并将请求转发到集群中的节点,当listener接收到请求时,pool用来处理请求,确保集群的高可用和负载均衡,health monitor用于监测集群中节点的健康状态,若监测到某个节点故障,则LB实例停止转发流量到该节点。In one embodiment, the configuration information of listener, pool, health monitor, etc. is found according to the first LB instance ID. Among them, the listener is responsible for receiving client requests and forwarding the requests to the nodes in the cluster. When the listener receives the request, the pool is used to process the request to ensure the high availability and load balancing of the cluster. The health monitor is used to monitor the health status of the nodes in the cluster. If a node failure is detected, the LB instance stops forwarding traffic to the node.
在一实施例中,通过获取第三集群上部署的至少一个第一LB实例、每个第一LB实例所属的子网,从而了解不同LB实例之间的网络隔离情况及LB实例配置信息,优化将LB实例从故障集群迁移到健康集群的迁移处理时长。In one embodiment, by obtaining at least one first LB instance deployed on the third cluster and the subnet to which each first LB instance belongs, the network isolation between different LB instances and the LB instance configuration information are understood, and the migration processing time of migrating the LB instance from the faulty cluster to the healthy cluster is optimized.
步骤702,基于目标云平台中每个集群的集群信息,判断健康集群中是否存在与第一LB实例所属的子网相同的LB实例。Step 702: Based on the cluster information of each cluster in the target cloud platform, determine whether there is a LB instance in the healthy cluster that has the same subnet as the first LB instance.
在一实施例中,健康集群指目标云平台中未发生故障的集群。In one embodiment, a healthy cluster refers to a cluster in the target cloud platform that has not experienced any failure.
步骤703,若判断结果为是,则将对应的第一LB实例部署在第一健康集群中。Step 703: If the judgment result is yes, the corresponding first LB instance is deployed in the first healthy cluster.
在一实施例中,第一健康集群指存在与第一LB实例所属的子网相同的LB实例的健康集群。In one embodiment, the first healthy cluster refers to a healthy cluster having a LB instance in the same subnet as that to which the first LB instance belongs.
在一实施例中,若健康集群中存在与第一LB实例所属的子网相同的LB实例,只需将第一LB实例的VIP地址更新至第一健康集群的端口,同时将LB实例的配置信息部署在第一集群,无需重新向SDN控制器申请VLAN及创建端口资源,优化了故障处理时长。In one embodiment, if there is an LB instance in the healthy cluster that is in the same subnet as the first LB instance, it is only necessary to update the VIP address of the first LB instance to the port of the first healthy cluster, and deploy the configuration information of the LB instance in the first cluster. There is no need to re-apply for VLAN and create port resources from the SDN controller, thereby optimizing the fault handling time.
在一实施例中,LB实例的配置信息包括listener、pool、health monitor等配置信息。In one embodiment, the configuration information of the LB instance includes configuration information such as listener, pool, and health monitor.
在一实施例中,步骤702之后,本公开提供的方法还包括:In one embodiment, after step 702, the method provided by the present disclosure further includes:
若判断结果为否,则将对应的第一LB实例部署在第二健康集群中。If the judgment result is no, the corresponding first LB instance is deployed in the second healthy cluster.
在一实施例中,第二健康集群指不存在与第一LB实例所属的子网相同的LB实例的健康集群中,集群资源使用率最低的集群。In one embodiment, the second healthy cluster refers to a cluster with the lowest cluster resource usage among the healthy clusters that do not have an LB instance in the same subnet as that to which the first LB instance belongs.
在一实施例中,若健康集群中不存在与第一LB实例所属的子网相同的LB实例,则按照故障集群中不同子网的LB实例个数从高到低,分别部署至集群资源使用率从低到高的集群中,并更新集群端口信息及重新部署LB实例配置信息。In one embodiment, if there is no LB instance in the healthy cluster that is the same as the subnet to which the first LB instance belongs, the LB instances in different subnets in the faulty cluster are deployed in clusters with cluster resource utilization from low to high according to the number of LB instances in different subnets in the faulty cluster from high to low, and the cluster port information is updated and the LB instance configuration information is redeployed.
在一实施例中,将对应的第一LB实例部署在第二健康集群中,提升了集群的负载均衡性能,有助于集群资源的利用,避免资源浪费。In one embodiment, the corresponding first LB instance is deployed in the second healthy cluster, which improves the load balancing performance of the cluster, helps to utilize cluster resources, and avoids resource waste.
如图8所示,图8为本公开应用示例提供的负载均衡器部署方法的流程示意图,包括以下步骤:As shown in FIG8 , FIG8 is a flow chart of a load balancer deployment method provided by an application example of the present disclosure, comprising the following steps:
步骤801,响应于目标云平台中存在发生故障的第三集群,基于目标云平台中每个集群的集群信息,获取第三集群上部署的至少一个第一LB实例、每个第一LB实例所属的子网;Step 801, in response to a third cluster having a fault in the target cloud platform, obtaining at least one first LB instance deployed on the third cluster and a subnet to which each first LB instance belongs based on cluster information of each cluster in the target cloud platform;
步骤802,基于目标云平台中每个集群的集群信息,判断健康集群中是否存在与第一LB实例所属的子网相同的LB实例;Step 802: Based on the cluster information of each cluster in the target cloud platform, determine whether there is an LB instance in the healthy cluster that has the same subnet as the first LB instance;
若是,则进入步骤803;If yes, proceed to step 803;
若否,则进入步骤804;If not, proceed to step 804;
步骤803,将对应的第一LB实例部署在第一健康集群中;Step 803, deploying the corresponding first LB instance in the first healthy cluster;
步骤804,将对应的第一LB实例部署在第二健康集群中。Step 804: deploy the corresponding first LB instance in the second healthy cluster.
为了实现本公开实施例提供的负载均衡器部署方法,本公开实施例还提供一种负载均衡器部署装置,如图9所示。图9为本公开实施例提供的负载均衡器部署装置的结构示意图,负载均衡器部署装置900,包括:In order to implement the load balancer deployment method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides a load balancer deployment device, as shown in Figure 9. Figure 9 is a structural diagram of the load balancer deployment device provided by the embodiment of the present disclosure, and the load balancer deployment device 900 includes:
获取单元901,用于获取目标云平台中每个集群的集群信息,集群信息至少包括对应的集群已经部署的负载均衡器LB实例、LB实例所属的子网及集群资源使用率;The acquisition unit 901 is used to acquire cluster information of each cluster in the target cloud platform, where the cluster information at least includes the load balancer LB instance deployed in the corresponding cluster, the subnet to which the LB instance belongs, and the cluster resource usage rate;
判断单元902,用于响应于创建属于第一子网的目标LB实例的请求,判断目标云平台的集群中是否存在属于第一子网的LB实例;A determination unit 902 is configured to determine, in response to a request to create a target LB instance belonging to the first subnet, whether there is an LB instance belonging to the first subnet in the cluster of the target cloud platform;
部署单元903,用于若判断结果为否,则基于目标云平台中每个集群的集群信息,将目标LB实例部署在集群资源使用率最低的集群。The deployment unit 903 is used to deploy the target LB instance in the cluster with the lowest cluster resource usage based on the cluster information of each cluster in the target cloud platform if the judgment result is no.
在一实施例中,部署单元903,具体用于:In one embodiment, the deployment unit 903 is specifically configured to:
若判断结果为是,则基于目标云平台中每个集群的集群信息,判断存在属于第一子网的LB实例的第一集群的集群资源使用率是否达到预设集群资源使用率阈值;If the judgment result is yes, based on the cluster information of each cluster in the target cloud platform, it is judged whether the cluster resource usage rate of the first cluster where the LB instance belonging to the first subnet exists reaches the preset cluster resource usage rate threshold;
若判断结果为是,则将目标LB实例部署在剩余集群中集群资源使用率最低的第二集群;其中,剩余集群指目标云平台中,除第一集群之外的集群。If the judgment result is yes, the target LB instance is deployed in the second cluster with the lowest cluster resource utilization rate among the remaining clusters; wherein the remaining clusters refer to the clusters in the target cloud platform except the first cluster.
在一实施例中,负载均衡器部署装置900还包括绑定单元,绑定单元用于:In one embodiment, the load balancer deployment device 900 further includes a binding unit, and the binding unit is used to:
将目标LB实例的虚拟IP地址绑定在第二集群的端口port;端口指集群向目标云平台的软件定义网络SDN控制器申请分配子网时创建的端口port。Bind the virtual IP address of the target LB instance to the port of the second cluster; the port refers to the port created when the cluster applies to the software-defined network SDN controller of the target cloud platform for subnet allocation.
在一实施例中,部署单元903,具体用于:In one embodiment, the deployment unit 903 is specifically configured to:
若判断结果为否,则将目标LB实例部署在第一集群。If the judgment result is no, the target LB instance is deployed in the first cluster.
在一实施例中,负载均衡器部署装置900还包括部署第一LB实例单元,部署第一LB实例单元用于:In one embodiment, the load balancer deployment device 900 further includes deploying a first LB instance unit, where the first LB instance unit is deployed to:
响应于目标云平台中存在发生故障的第三集群,基于目标云平台中每个集群的集群信息,获取第三集群上部署的至少一个第一LB实例、每个第一LB实例所属的子网;In response to a third cluster having a fault in the target cloud platform, obtaining at least one first LB instance deployed on the third cluster and a subnet to which each first LB instance belongs based on cluster information of each cluster in the target cloud platform;
基于目标云平台中每个集群的集群信息,判断健康集群中是否存在与第一LB实例所属的子网相同的LB实例;健康集群指目标云平台中未发生故障的集群;Based on the cluster information of each cluster in the target cloud platform, determine whether there is an LB instance in the healthy cluster that has the same subnet as the first LB instance; a healthy cluster refers to a cluster in the target cloud platform that has not experienced any failure;
若判断结果为是,则将对应的第一LB实例部署在第一健康集群中;第一健康集群指存在与第一LB实例所属的子网相同的LB实例的健康集群。If the judgment result is yes, the corresponding first LB instance is deployed in the first healthy cluster; the first healthy cluster refers to a healthy cluster in which there is an LB instance in the same subnet as the first LB instance.
在一实施例中,部署第一LB实例单元,具体用于:In one embodiment, a first LB instance unit is deployed, specifically for:
若判断结果为否,则将对应的第一LB实例部署在第二健康集群中;第二健康集群指不存在与第一LB实例所属的子网相同的LB实例的健康集群中,集群资源使用率最低的集群。If the judgment result is no, the corresponding first LB instance is deployed in the second healthy cluster; the second healthy cluster refers to the cluster with the lowest cluster resource utilization rate among the healthy clusters in which there is no LB instance in the same subnet as the first LB instance.
需要说明的是:上述实施例提供的负载均衡器部署装置在进行负载均衡器部署时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将负载均衡器部署装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的负载均衡器部署装置与本公开实施例提供负载均衡器部署方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the load balancer deployment device provided in the above embodiment only uses the division of the above program modules as an example when performing load balancer deployment. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the load balancer deployment device is divided into different program modules to complete all or part of the processing described above. In addition, the load balancer deployment device provided in the above embodiment and the load balancer deployment method embodiment provided in the embodiment of the present disclosure belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
图10为本公开实施例提供的电子设备的硬件组成结构示意图,如图10所示,电子设备1000包括至少一个处理器1002;以及与至少一个处理器1002通信连接的存储器1001;其中,存储器1001存储有可被至少一个处理器1002执行的指令,指令被至少一个处理器1002执行,以实现本公开实施例的负载均衡器部署方法的步骤。Figure 10 is a schematic diagram of the hardware composition structure of an electronic device provided in an embodiment of the present disclosure. As shown in Figure 10, the electronic device 1000 includes at least one processor 1002; and a memory 1001 that is communicatively connected to the at least one processor 1002; wherein the memory 1001 stores instructions that can be executed by the at least one processor 1002, and the instructions are executed by the at least one processor 1002 to implement the steps of the load balancer deployment method in the embodiment of the present disclosure.
可选地,该电子设备具体可为本申请实施例的负载均衡器部署装置,并且该电子设备可以实现本申请实施例的各个方法中由负载均衡器部署装置实现的相应流程,为了简洁,在此不再赘述。Optionally, the electronic device may specifically be a load balancer deployment device in an embodiment of the present application, and the electronic device may implement the corresponding processes implemented by the load balancer deployment device in each method in the embodiment of the present application, which will not be described in detail here for the sake of brevity.
可理解,电子设备中还包括通信接口1003。电子设备中的各个组件通过总线系统1004耦合在一起。可理解,总线系统1004用于实现这些组件之间的连接通信。总线系统1004除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统1004。It is understood that the electronic device also includes a communication interface 1003. The various components in the electronic device are coupled together through a bus system 1004. It is understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1004 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus system 1004 in FIG. 10.
可以理解,存储器1001可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read OnlyMemory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器1001旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1001 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory 1001 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
上述本公开实施例揭示的方法可以应用于处理器1002中,或者由处理器1002实现。处理器1002可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1002中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1002可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器1002可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器1001,处理器1002读取存储器1001中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the above embodiment of the present disclosure can be applied to the processor 1002, or implemented by the processor 1002. The processor 1002 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 1002 or the instruction in the form of software. The above processor 1002 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1002 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 1001. The processor 1002 reads the information in the memory 1001 and completes the steps of the above method in combination with its hardware.
在示例性实施例中,电子设备可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,ProgrammableLogic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned method.
本公开实施例还提供了一种存储有计算机指令的非瞬时计算机可读存储介质,计算机指令用于使计算机执行时实现本发明实施例的负载均衡器部署方法的步骤。The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to implement the steps of the load balancer deployment method of the embodiment of the present invention when executed.
可选的,该计算机可读存储介质可应用于本申请实施例中的负载均衡器部署装置,并且该计算机指令使得计算机执行本申请实施例的各个方法中由负载均衡器部署装置实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer-readable storage medium can be applied to the load balancer deployment device in the embodiments of the present application, and the computer instructions enable the computer to execute the corresponding processes implemented by the load balancer deployment device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
本公开实施例还提供了一种计算机程序产品,包括计算机程序,计算机程序在被处理器执行时实现本发明实施例提供的负载均衡器部署方法的步骤。The embodiment of the present disclosure also provides a computer program product, including a computer program, which implements the steps of the load balancer deployment method provided by the embodiment of the present invention when executed by a processor.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410581669.8A CN118158222B (en) | 2024-05-11 | 2024-05-11 | Load balancer deployment method, device, electronic equipment, storage medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410581669.8A CN118158222B (en) | 2024-05-11 | 2024-05-11 | Load balancer deployment method, device, electronic equipment, storage medium and product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118158222A true CN118158222A (en) | 2024-06-07 |
CN118158222B CN118158222B (en) | 2024-08-09 |
Family
ID=91289051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410581669.8A Active CN118158222B (en) | 2024-05-11 | 2024-05-11 | Load balancer deployment method, device, electronic equipment, storage medium and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118158222B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101447939A (en) * | 2008-12-16 | 2009-06-03 | 中国移动通信集团北京有限公司 | Functional distribution method and load balancer |
CN107733991A (en) * | 2017-09-19 | 2018-02-23 | 大唐网络有限公司 | One kind provides load balancing service implementation method based on OpenStack frameworks |
CN111666131A (en) * | 2020-07-03 | 2020-09-15 | 腾讯科技(深圳)有限公司 | Load balancing distribution method and device, computer equipment and storage medium |
CN115604272A (en) * | 2022-11-30 | 2023-01-13 | 苏州浪潮智能科技有限公司(Cn) | Load balancing method, device, system and system creation method, equipment and medium |
CN115729671A (en) * | 2022-11-16 | 2023-03-03 | 浙江大华技术股份有限公司 | Resource scheduling method and related device |
CN116846900A (en) * | 2022-11-30 | 2023-10-03 | 天翼数字生活科技有限公司 | Load balancing intelligent scheduling method, device and equipment |
CN117221326A (en) * | 2023-08-28 | 2023-12-12 | 中国移动(浙江)创新研究院有限公司 | Software load balancing scheduling method, system, electronic equipment and storage medium |
-
2024
- 2024-05-11 CN CN202410581669.8A patent/CN118158222B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101447939A (en) * | 2008-12-16 | 2009-06-03 | 中国移动通信集团北京有限公司 | Functional distribution method and load balancer |
CN107733991A (en) * | 2017-09-19 | 2018-02-23 | 大唐网络有限公司 | One kind provides load balancing service implementation method based on OpenStack frameworks |
CN111666131A (en) * | 2020-07-03 | 2020-09-15 | 腾讯科技(深圳)有限公司 | Load balancing distribution method and device, computer equipment and storage medium |
CN115729671A (en) * | 2022-11-16 | 2023-03-03 | 浙江大华技术股份有限公司 | Resource scheduling method and related device |
CN115604272A (en) * | 2022-11-30 | 2023-01-13 | 苏州浪潮智能科技有限公司(Cn) | Load balancing method, device, system and system creation method, equipment and medium |
CN116846900A (en) * | 2022-11-30 | 2023-10-03 | 天翼数字生活科技有限公司 | Load balancing intelligent scheduling method, device and equipment |
CN117221326A (en) * | 2023-08-28 | 2023-12-12 | 中国移动(浙江)创新研究院有限公司 | Software load balancing scheduling method, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN118158222B (en) | 2024-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1554055B (en) | High availability cluster virtual server system | |
US11669360B2 (en) | Seamless virtual standard switch to virtual distributed switch migration for hyper-converged infrastructure | |
US20110239216A1 (en) | Service providing system, a virtual machine server, a service providing method, and a program thereof | |
CN106657330B (en) | User data migration method and user data backup method, device and system | |
CN110096220B (en) | Distributed storage system, data processing method and storage node | |
US12316702B2 (en) | Efficient virtual IP address management for service clusters | |
CN110855488B (en) | Virtual machine access method and device | |
CN110324248B (en) | A method, device, electronic device and medium for routing update of bare metal server | |
CN113810230A (en) | Method, device and system for carrying out network configuration on containers in container cluster | |
US11153173B1 (en) | Dynamically updating compute node location information in a distributed computing environment | |
CN114500450A (en) | Domain name resolution method, device and computer readable storage medium | |
CN106452836A (en) | Method and apparatus for setting host node | |
CN112306380A (en) | Storage management method and device and computer storage medium | |
WO2025123783A1 (en) | Cloud disk management and control method, cloud disk management and control system, and electronic device and storage medium | |
CN118158222B (en) | Load balancer deployment method, device, electronic equipment, storage medium and product | |
JP6669807B2 (en) | Computer system and computer | |
US11886307B2 (en) | Site locality support for file services in a stretched cluster environment | |
CN115687250A (en) | A storage method, device, system and computer storage medium | |
CN114579338B (en) | Dual-machine distributed arbitration system and arbitration method thereof | |
WO2023273483A1 (en) | Data processing system and method, and switch | |
US20250119468A1 (en) | Data Processing System, Data Processing Method and Apparatus, and Related Device | |
CN115941493B (en) | Multi-activity distribution method and device for cloud scene NAT gateway cluster based on multicast | |
CN113472558B (en) | Network deployment method and device | |
US20240305566A1 (en) | Host authentication using a non-addressable domain controller | |
CN119094389A (en) | DPU-based service endpoint detection method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |