CN116781701A - Message processing method, device, electronic equipment and storage medium - Google Patents
Message processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116781701A CN116781701A CN202211100421.2A CN202211100421A CN116781701A CN 116781701 A CN116781701 A CN 116781701A CN 202211100421 A CN202211100421 A CN 202211100421A CN 116781701 A CN116781701 A CN 116781701A
- Authority
- CN
- China
- Prior art keywords
- request
- address
- container
- load balancing
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 25
- 230000004044 response Effects 0.000 claims abstract description 94
- 238000000034 method Methods 0.000 claims abstract description 54
- 238000012545 processing Methods 0.000 claims description 33
- 238000012544 monitoring process Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012986 modification Methods 0.000 abstract description 6
- 230000004048 modification Effects 0.000 abstract description 6
- 230000007246 mechanism Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram 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
- 238000001914 filtration Methods 0.000 description 3
- 241000322338 Loeseliastrum Species 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本公开实施例提供的消息处理方法,由负载均衡节点执行,所述方法包括:接收客户端发送的第一请求;根据负载均衡规则,确定分配第一请求的目标容器实例;根据所述目标容器实例的互联网协议IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;向所述目标容器实例所在的容器节点发送所述第二请求。这里,根据负载均衡规则确定分配第一请求的目标容器实例,在负载均衡时直接确定目标容器实例的IP地址和端口号,并根据确定的IP地址和端口号写入第一请求就得到了第二请求消息,直接将第二请求消息发送出去,就会自动路由到目标容器实例,无需二次负载均衡和请求消息中的地址修改,可以提高请求的发送速度,进而提升请求的响应速率。
The message processing method provided by the embodiment of the present disclosure is executed by a load balancing node. The method includes: receiving the first request sent by the client; determining the target container instance to allocate the first request according to the load balancing rules; according to the target container The Internet Protocol IP address of the instance and the port number of the service port, modify the target address of the first request and obtain the second request; and send the second request to the container node where the target container instance is located. Here, the target container instance to which the first request is allocated is determined according to the load balancing rules, the IP address and port number of the target container instance are directly determined during load balancing, and the first request is written according to the determined IP address and port number to obtain the first request. Second request message, directly send the second request message, and it will be automatically routed to the target container instance. There is no need for secondary load balancing and address modification in the request message, which can improve the sending speed of the request and thereby improve the response rate of the request.
Description
技术领域Technical field
本公开涉及但不限于云计算技术领域,尤其涉及一种消息处理方法、装置、电子设备及存储介质。The present disclosure relates to, but is not limited to, the technical field of cloud computing, and in particular, to a message processing method, device, electronic device, and storage medium.
背景技术Background technique
随着云计算技术的快速发展,越来越多的服务与应用是通过将软件应用容器化的容器集群提供的,通过容器集群编排系统可以对容器集群进行编排,实现对容器集群的持续交付、快速部署和智能运维等。With the rapid development of cloud computing technology, more and more services and applications are provided through container clusters that containerize software applications. Container clusters can be orchestrated through the container cluster orchestration system to achieve continuous delivery of container clusters. Rapid deployment and intelligent operation and maintenance, etc.
在现有容器编排系统中,对外提供服务的方式往往依托容器编排系统节点进行转发负载,无法应对大规模的生成需求。当客户端发送的外部请求比较多时,存在外部请求处理时间长和访问效率低等问题。In existing container orchestration systems, the way of providing external services often relies on container orchestration system nodes to forward loads, which cannot cope with large-scale generation needs. When the client sends a lot of external requests, there are problems such as long external request processing time and low access efficiency.
发明内容Contents of the invention
有鉴于此,本公开实施例公开了一种消息处理方法、装置、电子设备及存储介质。In view of this, embodiments of the present disclosure disclose a message processing method, device, electronic device, and storage medium.
根据本公开实施例的第一方面,提供一种消息处理方法,由负载均衡节点执行,所述方法包括:接收客户端发送的第一请求;根据负载均衡规则,确定分配所述第一请求的目标容器实例;根据所述目标容器实例的互联网协议IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;向所述目标容器实例所在的容器节点发送所述第二请求。According to a first aspect of an embodiment of the present disclosure, a message processing method is provided, which is executed by a load balancing node. The method includes: receiving a first request sent by a client; and determining, according to a load balancing rule, the number of times a message is allocated to the first request. Target container instance; modify the target address of the first request and obtain the second request according to the Internet Protocol IP address of the target container instance and the port number of the service port; send the target container node to the container node where the target container instance is located. Second request.
在一个实施例中,所述方法还包括:接收所述第二请求的第一响应;其中,所述第一响应的源地址为所述目标容器实例的IP地址,且所述第一响应的目标地址为所述负载均衡节点的IP地址;将所述第一响应的源地址修改为所述负载均衡节点的IP地址,并将所述第一响应的目标地址修改为所述客户端的IP地址,得到第二响应;向所述客户端发送所述第二响应。In one embodiment, the method further includes: receiving a first response to the second request; wherein the source address of the first response is the IP address of the target container instance, and the The target address is the IP address of the load balancing node; modify the source address of the first response to the IP address of the load balancing node, and modify the target address of the first response to the IP address of the client , obtain a second response; send the second response to the client.
在一个实施例中,所述方法还包括:获取容器集群内一个或多个容器节点内备选容器实例的部署信息,其中,所述部署信息包括:所述容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号。In one embodiment, the method further includes: obtaining deployment information of alternative container instances in one or more container nodes in the container cluster, wherein the deployment information includes: one or more alternative container instances deployed by the container node. Select the IP address of the container instance and the port number of the service port.
在一个实施例中,所述获取容器集群内一个或多个容器节点内备选容器实例的部署信息包括:接收容器集群内一个或多个容器节点广播的所述部署信息;或者,接收负载均衡节点的控制器从所述容器集群的服务器获取的所述部署信息。In one embodiment, obtaining the deployment information of alternative container instances in one or more container nodes in the container cluster includes: receiving the deployment information broadcast by one or more container nodes in the container cluster; or, receiving load balancing The controller of the node obtains the deployment information from the server of the container cluster.
第二方面,本公开实施例提供一种消息处理方法,由容器节点执行,所述方法包括:接收负载均衡节点发送的第二请求;其中,所述第二请求包括:目标容器实例的互联网协议IP地址和服务端口的端口号;所述第二请求是所述负载均衡节点基于客户端提供的第一请求生成并提供的;所述第一请求的目标地址指向所述负载均衡节点;根据所述目标容器实例的IP地址和服务端口的端口号,确定所述目标容器实例的网络命名空间;将所述第二请求发送至所述目标容器实例的网络命名空间。In a second aspect, embodiments of the present disclosure provide a message processing method, which is executed by a container node. The method includes: receiving a second request sent by a load balancing node; wherein the second request includes: the Internet protocol of the target container instance. The IP address and the port number of the service port; the second request is generated and provided by the load balancing node based on the first request provided by the client; the target address of the first request points to the load balancing node; according to the The IP address of the target container instance and the port number of the service port are used to determine the network namespace of the target container instance; and the second request is sent to the network namespace of the target container instance.
在一个实施例中,所述方法还包括:接收所述目标容器实例基于所述第二请求发送第一响应;其中,所述第一响应的目标地址为所述负载均衡节点的IP地址,且源地址为所述目标容器实例的IP地址和服务端口的端口号;将所述第一响应发送给所述负载均衡节点,其中,所述第一响应,用于供所述负载均衡节点向所述客户端提供第二响应;其中,所述第二响应的目标地址为所述客户端的IP地址且源地址为所述负载均衡节点的IP地址。In one embodiment, the method further includes: receiving the target container instance to send a first response based on the second request; wherein the target address of the first response is the IP address of the load balancing node, and The source address is the IP address of the target container instance and the port number of the service port; the first response is sent to the load balancing node, where the first response is used by the load balancing node to The client provides a second response; wherein the target address of the second response is the IP address of the client and the source address is the IP address of the load balancing node.
第三方面,本公开实施例提供一种消息处理方法,由负载均衡节点的控制器执行,所述方法包括:监听部署信息,其中,所述部署信息至少包括:容器集群内一个或多个容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号;将所述部署信息发送至负载均衡节点,其中,所述部署信息,用于供所述负载均衡节点修改从客户端接收第一请求的目标地址得到直接路由给目标容器实例的第二请求。In a third aspect, embodiments of the present disclosure provide a message processing method, which is executed by a controller of a load balancing node. The method includes: monitoring deployment information, where the deployment information at least includes: one or more containers in a container cluster. The IP address and service port number of one or more alternative container instances deployed by the node; send the deployment information to the load balancing node, where the deployment information is used for the load balancing node to modify the client The endpoint receiving the target address of the first request gets the second request routed directly to the target container instance.
第四方面,本公开实施例提供一种消息处理装置,所述装置包括:接收模块,用于接收客户端发送的第一请求;确定模块,用于:根据负载均衡规则,确定分配所述第一请求的目标容器实例;修改模块,用于:根据所述目标容器实例的互联网协议IP地址目标容器实例和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;发送模块,用于向所述目标容器实例所在的容器节点发送所述第二请求。In a fourth aspect, embodiments of the present disclosure provide a message processing device. The device includes: a receiving module, configured to receive the first request sent by the client; and a determining module, configured to: determine to allocate the first request according to load balancing rules. A requested target container instance; a modification module configured to: modify the target address of the first request and obtain a second request according to the Internet Protocol IP address of the target container instance, the target container instance and the port number of the service port; send Module configured to send the second request to the container node where the target container instance is located.
第五方面,本公开实施例提供一种消息处理装置,所述装置包括:接收模块,用于:接收负载均衡节点发送的第二请求;其中,所述第二请求包括:目标容器实例的互联网协议IP地址和服务端口的端口号;所述第二请求是所述负载均衡节点基于客户端提供的第一请求生成并提供的;所述第一请求的目标地址指向所述负载均衡节点;确定模块,用于:根据所述目标容器实例的IP地址和服务端口的端口号,确定所述目标容器实例的网络命名空间;发送模块,用于将所述第二请求发送至所述目标容器实例的网络命名空间。In a fifth aspect, embodiments of the present disclosure provide a message processing device. The device includes: a receiving module, configured to: receive a second request sent by a load balancing node; wherein the second request includes: the Internet address of the target container instance. The protocol IP address and the port number of the service port; the second request is generated and provided by the load balancing node based on the first request provided by the client; the target address of the first request points to the load balancing node; determine A module configured to: determine the network namespace of the target container instance according to the IP address of the target container instance and the port number of the service port; a sending module configured to send the second request to the target container instance network namespace.
第六方面,本公开实施例提供一种消息处理装置,所述装置包括:监听模块,用于:监听部署信息,其中,所述部署信息至少包括:容器集群内一个或多个容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号;发送模块,用于:将所述部署信息发送至负载均衡节点,其中,所述部署信息,用于供所述负载均衡节点修改从客户端接收第一请求的目标地址得到直接路由给目标容器实例的第二请求。In a sixth aspect, embodiments of the present disclosure provide a message processing device. The device includes: a monitoring module configured to: monitor deployment information, wherein the deployment information at least includes: deployment of one or more container nodes in the container cluster. The IP address and service port number of one or more alternative container instances; a sending module, used to: send the deployment information to the load balancing node, where the deployment information is used for the load balancing node Modify the target address of the first request received from the client to route the second request directly to the target container instance.
第七方面,本公开实施例提供一种电子设备,所述电子设备包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器;其中,所述处理器运行所述计算机程序时,执行前述一个或多个技术方案所述方法的步骤。In a seventh aspect, an embodiment of the present disclosure provides an electronic device. The electronic device includes: a processor and a memory for storing a computer program capable of running on the processor; wherein when the processor runs the computer program , perform the steps of the method described in one or more of the foregoing technical solutions.
第八方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令;计算机可执行指令被处理器执行后,能够实现前述一个或多个技术方案所述方法。In an eighth aspect, embodiments of the present disclosure provide a computer-readable storage medium that stores computer-executable instructions; after the computer-executable instructions are executed by a processor, one or more of the foregoing technical solutions can be implemented described method.
本公开实施例提供的消息处理方法,负载均衡节点根据负载均衡规则确定分配第一请求的目标容器实例,在负载均衡时直接确定目标容器实例的IP地址和端口号,并根据确定的IP地址和端口号写入第一请求就得到了第二请求消息,直接将第二请求消息发送出去,就会自动路由到目标容器实例,无需二次负载均衡和请求消息中的地址修改,可以提高请求的发送速度,进而提升请求的响应速率。In the message processing method provided by the embodiment of the present disclosure, the load balancing node determines the target container instance to which the first request is allocated according to the load balancing rules, directly determines the IP address and port number of the target container instance during load balancing, and determines the target container instance based on the determined IP address and port number. Write the port number into the first request and get the second request message. Send the second request message directly and it will be automatically routed to the target container instance. There is no need for secondary load balancing and address modification in the request message, which can improve the efficiency of the request. Sending speed, thereby improving the response rate of requests.
附图说明Description of drawings
图1为本公开实施例提供的一种消息处理方法的流程示意图。Figure 1 is a schematic flowchart of a message processing method provided by an embodiment of the present disclosure.
图2为本公开实施例提供的一种消息处理方法的流程示意图。Figure 2 is a schematic flowchart of a message processing method provided by an embodiment of the present disclosure.
图3为本公开实施例提供的一种消息处理方法的流程示意图。Figure 3 is a schematic flowchart of a message processing method provided by an embodiment of the present disclosure.
图4为本公开实施例提供的一种消息处理方法的流程示意图。Figure 4 is a schematic flowchart of a message processing method provided by an embodiment of the present disclosure.
图5为本公开实施例提供的一种消息处理方法的流程示意图。Figure 5 is a schematic flowchart of a message processing method provided by an embodiment of the present disclosure.
图6为本公开实施例提供的一种容器集群的消息处理方法的流程示意图。Figure 6 is a schematic flowchart of a message processing method for a container cluster provided by an embodiment of the present disclosure.
图7为本公开实施例提供的一种消息处理系统的示意图。Figure 7 is a schematic diagram of a message processing system provided by an embodiment of the present disclosure.
图8为本公开实施例提供的一种请求处理方法的流程示意图。Figure 8 is a schematic flowchart of a request processing method provided by an embodiment of the present disclosure.
图9为本公开实施例提供的一种请求处理方法的流程示意图。Figure 9 is a schematic flowchart of a request processing method provided by an embodiment of the present disclosure.
图10为本公开实施例提供的一种消息处理装置的示意图。Figure 10 is a schematic diagram of a message processing device provided by an embodiment of the present disclosure.
图11为本公开实施例提供的一种消息处理装置的示意图。Figure 11 is a schematic diagram of a message processing device provided by an embodiment of the present disclosure.
图12为本公开实施例提供的一种消息处理装置的示意图。Figure 12 is a schematic diagram of a message processing device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开作进一步地详细描述,所描述的实施例不应视为对本公开的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present disclosure. Those of ordinary skill in the art will not make any All other embodiments obtained under the premise of creative work belong to the scope of protection of this disclosure.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.
在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本公开实施例能够以除了在这里图示或描述的以外的顺序实施。In the following description, the terms "first\second\third" are only used to distinguish similar objects and do not represent a specific ordering of objects. It is understandable that "first\second\third" is used in Where permitted, the specific order or sequence may be interchanged so that the disclosed embodiments described herein can be practiced in other sequences than illustrated or described herein.
除非另有定义,本文所使用的所有的技术和科学术语与属于本公开的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本公开实施例的目的,不是旨在限制本公开。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing embodiments of the disclosure only and is not intended to limit the disclosure.
为了更好的理解本公开实施例,以下通过一些场景实施例进行说明:In order to better understand the embodiments of the present disclosure, some scenario examples are described below:
在一个实施例中,如图6所示,容器集群消息处理的方法可以包括:主机端口(HostPort)机制、节点端口(NodePort)机制和负载均衡服务(Load Balance Service)机制。In one embodiment, as shown in Figure 6, the container cluster message processing method may include: a host port (HostPort) mechanism, a node port (NodePort) mechanism, and a load balancing service (Load Balance Service) mechanism.
所述主机端口机制将容器实例的端口与所在容器节点端口映射,根据容器节点IP地址和容器节点端口接收客户端发送的请求。The host port mechanism maps the port of the container instance to the port of the container node, and receives the request sent by the client according to the container node IP address and the container node port.
所述节点端口机制根据容器节点接收的客户端发送的请求;根据容器节点的内核模块进行负载均衡,将所述请求转发到目标容器实例中。The node port mechanism performs load balancing according to the request sent by the client received by the container node; performs load balancing according to the kernel module of the container node, and forwards the request to the target container instance.
所述负载均衡服务机制根据在容器集群外添加负载均衡器,根据负载均衡器通过等价多路由协议进行第一层负载均衡,接收客户端发送的请求并将请求转发到容器节点的内核转发模块;根据内核转发模块进行第二层负载均衡,将所述请求转发到目标容器实例中。其中,所述负载均衡器可以包括第三方负载均衡器或容器集群网络插件,所述网络插件可以包括:印花布网络插件(Calico)、金属负载均衡器(MetalLB)等。所述第二层负载均衡可以包括群集互联网协议(ClusterIP)机制或节点端口(NodePort)机制。The load balancing service mechanism is based on adding a load balancer outside the container cluster, performing first-layer load balancing through the equal-cost multi-routing protocol based on the load balancer, receiving requests sent by the client and forwarding the requests to the kernel forwarding module of the container node. ; Perform second-layer load balancing based on the kernel forwarding module and forward the request to the target container instance. The load balancer may include a third-party load balancer or a container cluster network plug-in, and the network plug-in may include Calico network plug-in (Calico), Metal Load Balancer (MetalLB), etc. The second layer load balancing may include a cluster Internet protocol (ClusterIP) mechanism or a node port (NodePort) mechanism.
这里,通过容器节点的内核进行负载均衡无法应对大规模的请求,通过负载均衡服务(Load Balance Service)机制进行两层负载均衡,容器出现负载不均匀和网络性能损耗大的问题。Here, load balancing through the kernel of the container node cannot cope with large-scale requests. Two-layer load balancing is performed through the Load Balance Service mechanism. The container has problems of uneven load and large network performance loss.
如图1所示,本公开实施例提供一种消息处理方法,由负载均衡节点执行,所述方法包括:As shown in Figure 1, an embodiment of the present disclosure provides a message processing method, which is executed by a load balancing node. The method includes:
步骤S101:接收客户端发送的第一请求;Step S101: Receive the first request sent by the client;
步骤S102:根据负载均衡规则,确定分配所述第一请求的目标容器实例;Step S102: Determine the target container instance to which the first request is allocated according to the load balancing rules;
步骤S103:根据所述目标容器实例的互联网协议IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;Step S103: Modify the target address of the first request and obtain a second request according to the Internet Protocol IP address of the target container instance and the port number of the service port;
步骤S104:向所述目标容器实例所在的容器节点发送所述第二请求。Step S104: Send the second request to the container node where the target container instance is located.
在一个实施例中,所述负载均衡节点可以在负载均衡集群(SLB,Server LoadBalance)中,所述负载均衡集群可以将外部客户端的请求根据负载均衡规则均匀的分发到后端多台服务器中执行处理。In one embodiment, the load balancing node can be in a load balancing cluster (SLB, Server LoadBalance), and the load balancing cluster can evenly distribute requests from external clients to multiple back-end servers for execution according to load balancing rules. deal with.
示例性地,所述SLB可以根据轮询策略和/或随机策略等负载均衡策略,选择响应所述第一请求的目标容器实例,具体如何实现负载均衡可以采用相关技术的任意方法,此处就不做具体限定。Illustratively, the SLB can select the target container instance that responds to the first request according to a load balancing strategy such as a polling strategy and/or a random strategy. Specifically, any method of related technologies can be used to implement load balancing. Herein, No specific restrictions are made.
所述目标容器实例可以在容器集群中,容器集群可以由容器编排系统进行自动部署、扩展和管理,其中,所述容器编排系统可以包括Kubernetes集群。Kubernetes集群通过将容器实例放入节点上运行来执行工作负载,Kubernetes集群包括至少一个节点,节点可以为一个虚拟机或物理机,节点内包括至少一个容器实例。The target container instance may be in a container cluster, and the container cluster may be automatically deployed, expanded, and managed by a container orchestration system, where the container orchestration system may include a Kubernetes cluster. A Kubernetes cluster executes workloads by placing container instances on nodes. A Kubernetes cluster includes at least one node. The node can be a virtual machine or a physical machine. The node includes at least one container instance.
在一个实施例中,所述步骤S101可以包括:根据所有容器集群设置一个或多个虚拟负载均衡节点互联网协议(IP,Internet Protocol)地址作为外部客户端访问地址;接收客户端发送至所述负载均衡节点IP地址的第一请求,其中,所述第一请求的源IP地址为客户端IP地址,所述第一请求的目的地址为负载均衡节点IP地址。In one embodiment, the step S101 may include: setting one or more virtual load balancing node Internet Protocol (IP, Internet Protocol) addresses as external client access addresses according to all container clusters; receiving the client sent to the load The first request for the IP address of the balancing node, wherein the source IP address of the first request is the client IP address, and the destination address of the first request is the IP address of the load balancing node.
在一个实施例中,所述第一请求可以包括:客户端对根据容器集群提供的应用或服务进行操作或访问的请求。In one embodiment, the first request may include: a request from the client to operate or access an application or service provided according to the container cluster.
在一个实施例中,所述步骤S102中负载均衡规则可以包括但不限于以下至少之一:In one embodiment, the load balancing rules in step S102 may include but are not limited to at least one of the following:
轮询规则,每个请求按时间顺序逐一分配到不同的目标容器实例;Polling rules, each request is assigned to different target container instances one by one in chronological order;
权重规则,为每个容器节点和/或容器实例设置权重,根据权重确定分配请求的目标容器实例,权重越高的容器节点和/或容器实例分配的请求越多;Weight rules, set a weight for each container node and/or container instance, and determine the target container instance for allocation requests based on the weight. The higher the weight, the more requests allocated to the container node and/or container instance;
随机规则,将请求随机分配到目标容器实例中;Random rules to randomly distribute requests to target container instances;
最小加权连接数规则,实时统计容器节点与容器实例活动状态的连接数,按权重比例将新增请求分配给活动连接数少的目标容器实例;The minimum weighted connection number rule counts the number of active connections between container nodes and container instances in real time, and allocates new requests to target container instances with fewer active connections in proportion to the weight;
最快响应时间规则,根据容器实例的响应时间进行分配,优先分配请求至响应时间快的容器实例等。The fastest response time rule is allocated based on the response time of the container instance, and requests are allocated first to the container instance with the fastest response time, etc.
在一个实施例中,所述步骤S103可以包括:将所述第一请求的目标地址中目标IP地址修改为目标容器实例的IP地址,将所述第一请求的目标地址中目标端口修改为目标容器实例的服务端口的端口号,修改第一请求目标地址得到第二请求。In one embodiment, step S103 may include: modifying the target IP address in the first requested target address to the IP address of the target container instance, and modifying the target port in the first requested target address to the target The port number of the service port of the container instance. Modify the first request target address to obtain the second request.
在一个实施例中,所述步骤S104可以包括:根据动态路由协议获得从负载均衡节点到所述目标容器实例所在的容器节点之间的最佳路由路径,根据所述最佳路由路径向所述目标容器实例所在的容器节点发送所述第二请求。In one embodiment, step S104 may include: obtaining the best routing path from the load balancing node to the container node where the target container instance is located according to a dynamic routing protocol, and sending the best routing path to the container node according to the best routing path. The container node where the target container instance is located sends the second request.
这样,负载均衡节点通过动态路由协议获得的最佳路由路径发送所述第二请求,相较于根据固定静态路由路径进行发送,可以由最佳路由路径发送第二请求,提高第二请求发送的速度和准确性。In this way, the load balancing node sends the second request through the best routing path obtained by the dynamic routing protocol. Compared with sending according to the fixed static routing path, the second request can be sent through the best routing path, which improves the efficiency of sending the second request. Speed and accuracy.
在一些实施例中,所述方法还包括:根据所述负载均衡节点的IP地址修改所述第一请求的源地址,得到源地址为所述负载均衡节点的IP地址的所述第二请求。In some embodiments, the method further includes: modifying the source address of the first request according to the IP address of the load balancing node to obtain the second request whose source address is the IP address of the load balancing node.
在一个实施例中,所述第一请求的源地址为客户端IP地址,将所述第一请求的源地址修改为负载均衡节点的IP地址,获得所述第二请求。In one embodiment, the source address of the first request is the client IP address, and the second request is obtained by modifying the source address of the first request to the IP address of the load balancing node.
在一个实施例中,一个负载均衡集群中可以包括一个或多个所述负载均衡节点,所述负载均衡节点的IP地址可以为处理当前第一请求和第二请求的负载均衡节点的IP地址。这样,第二请求的源地址为负载均衡节点的IP地址,可以便于第二请求的响应根据第二请求的源地址返回到同样的负载均衡节点进行处理。In one embodiment, a load balancing cluster may include one or more load balancing nodes, and the IP address of the load balancing node may be the IP address of the load balancing node that processes the current first request and the second request. In this way, the source address of the second request is the IP address of the load balancing node, which can facilitate the response of the second request to be returned to the same load balancing node for processing according to the source address of the second request.
当具有多个负载均衡节点时,可以根据第一请求的业务类型确定处理所述第一请求的负载均衡节点,将第一请求的源地址修改为负载均衡节点的IP地址得到第二请求,可以便于同一负载均衡节点处理第二请求与第二请求的响应,这样,相较于负载均衡集群随机确定第一请求的负载均衡节点,可以将同一业务类型的请求通过固定的负载均衡节点处理,可以实现负载均衡集群在业务上的并发处理,提高了负载均衡的效率。When there are multiple load balancing nodes, the load balancing node that handles the first request can be determined according to the service type of the first request, and the source address of the first request is modified to the IP address of the load balancing node to obtain the second request. It is convenient for the same load balancing node to process the second request and the response to the second request. In this way, compared with the load balancing cluster randomly determining the load balancing node for the first request, requests of the same business type can be processed through the fixed load balancing node. Realize the concurrent processing of load balancing clusters in business and improve the efficiency of load balancing.
如图2所示,在一些实施例中,所述方法还包括:As shown in Figure 2, in some embodiments, the method further includes:
步骤S201:接收所述第二请求的第一响应;其中,所述第一响应的源地址为所述目标容器实例的IP地址,且所述第一响应的目标地址为所述负载均衡节点的IP地址;Step S201: Receive the first response of the second request; wherein the source address of the first response is the IP address of the target container instance, and the target address of the first response is the load balancing node. IP address;
步骤S202:将所述第一响应的源地址修改为所述负载均衡节点的IP地址,并将所述第一响应的目标地址修改为所述客户端的IP地址,得到第二响应;Step S202: Modify the source address of the first response to the IP address of the load balancing node, and modify the target address of the first response to the IP address of the client to obtain a second response;
步骤S203:向所述客户端发送所述第二响应。Step S203: Send the second response to the client.
在一个实施例中,所述方法还包括:在根据所述负载均衡节点的IP地址修改所述第一请求的源地址,得到所述第二请求之后,记录所述第一请求的源地址的客户端的IP地址;In one embodiment, the method further includes: after modifying the source address of the first request according to the IP address of the load balancing node and obtaining the second request, recording the source address of the first request. The client’s IP address;
接收所述第二请求的第一响应;receiving a first response to the second request;
将所述第一响应的源地址修改为所述负载均衡节点的IP地址,并将所述第一响应的目标地址修改为所述客户端的IP地址,得到第二响应;Modify the source address of the first response to the IP address of the load balancing node, and modify the target address of the first response to the IP address of the client to obtain a second response;
根据所述第二响应的目标地址向所述客户端发送所述第二响应。这样,完成了一次对客户端发送的请求消息的处理。The second response is sent to the client according to the target address of the second response. In this way, the processing of the request message sent by the client is completed.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
获取容器集群内一个或多个容器节点内备选容器实例的部署信息,所述部署信息包括:所述容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号。Obtain deployment information of alternative container instances in one or more container nodes in the container cluster, where the deployment information includes: the IP address and the port number of the service port of the one or more alternative container instances deployed by the container node.
在一个实施例中,负载均衡节点可以实时获取容器集群内一个或多个容器节点内备选容器实例的部署信息;实时根据所述备选容器实例的部署信息通过负载均衡规则,确定分配所述请求的目标容器实例;根据备选容器实例的部署信息中所述目标容器实例的互联网协议IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求。In one embodiment, the load balancing node can obtain the deployment information of alternative container instances in one or more container nodes in the container cluster in real time; and determine the allocation of the alternative container instances according to the load balancing rules in real time. The target container instance of the request; according to the Internet protocol IP address and the port number of the service port of the target container instance in the deployment information of the alternative container instance, modify the target address of the first request and obtain the second request.
在一个实施例中,根据kubernetes集群可以在容器集群内设置弹性伸缩操作,所述弹性伸缩操作可以包括根据容器节点的中央处理器(CPU,central processing unit)使用率与预定CPU使用率阈值进行比对,确定增加或减少容器实例的数量。In one embodiment, an elastic scaling operation can be set within the container cluster according to the kubernetes cluster. The elastic scaling operation can include comparing the central processing unit (CPU, central processing unit) usage of the container node with a predetermined CPU usage threshold. Yes, determine whether to increase or decrease the number of container instances.
在容器集群进行弹性伸缩操作时,通过负载均衡节点实时获取容器集群内一个或多个容器节点内备选容器实例的部署信息,可以及时更新获取容器集群内容器节点内新增或减少的备选容器实例的部署信息,并使负载均衡节点根据新增或减少的备选容器实例,确定分配请求的目标容器实例,提高了负载均衡节点与容器集群的配合,提高了负载均衡集群与容器集群处理请求的效率。When the container cluster performs elastic scaling operations, the deployment information of alternative container instances in one or more container nodes in the container cluster can be obtained in real time through the load balancing node, and the new or reduced alternatives in the container nodes in the container cluster can be updated in a timely manner. Deployment information of container instances, and enable the load balancing node to determine the target container instance of the allocation request based on the newly added or reduced alternative container instances, which improves the cooperation between the load balancing node and the container cluster, and improves the processing of the load balancing cluster and the container cluster. Request efficiency.
在一些实施例中,所述获取容器集群内一个或多个容器节点内备选容器实例的部署信息包括:In some embodiments, obtaining the deployment information of alternative container instances in one or more container nodes in the container cluster includes:
接收容器集群内一个或多个容器节点广播的所述部署信息;Receive the deployment information broadcast by one or more container nodes in the container cluster;
或者,or,
接收负载均衡节点的控制器从所述容器集群的服务器获取的所述部署信息。Receive the deployment information obtained by the controller of the load balancing node from the server of the container cluster.
在一个实施例中,所述接收容器集群内一个或多个容器节点广播的所述部署信息可以包括:动态路由器通过动态路由协议将所述容器集群内一个或多个容器节点的部署信息广播到负载均衡节点,所述负载均衡节点接收所述容器节点广播的部署信息。In one embodiment, receiving the deployment information broadcast by one or more container nodes in the container cluster may include: a dynamic router broadcasts the deployment information of one or more container nodes in the container cluster to A load balancing node receives the deployment information broadcast by the container node.
在一个实施例中,所述动态路由协议可以生成并维护转发所需的路由表,在网络拓扑结构改变时自动更新路由表,并负责决定数据传输的最佳路由路径。在一个或多个容器节点新增、修改或删除一个或多个备选容器实例时,负载均衡节点可以通过动态路由协议接收到所述部署信息。In one embodiment, the dynamic routing protocol can generate and maintain routing tables required for forwarding, automatically update the routing tables when the network topology changes, and be responsible for determining the best routing path for data transmission. When one or more container nodes add, modify, or delete one or more candidate container instances, the load balancing node may receive the deployment information through a dynamic routing protocol.
如图3所示,本公开实施例提供一种消息处理方法,由容器节点执行,所述方法包括:As shown in Figure 3, an embodiment of the present disclosure provides a message processing method, which is executed by a container node. The method includes:
步骤S301:接收负载均衡节点发送的第二请求;其中,所述第二请求包括:目标容器实例的互联网协议IP地址和服务端口的端口号;所述第二请求是所述负载均衡节点基于客户端提供的第一请求生成并提供的;所述第一请求的目标地址指向所述负载均衡节点;Step S301: Receive a second request sent by the load balancing node; wherein the second request includes: the Internet Protocol IP address of the target container instance and the port number of the service port; the second request is the load balancing node based on the client Generated and provided by the first request provided by the client; the target address of the first request points to the load balancing node;
步骤S302:根据目标容器实例的所述IP地址和服务端口的端口号,确定所述目标容器实例的网络命名空间;Step S302: Determine the network namespace of the target container instance according to the IP address of the target container instance and the port number of the service port;
步骤S303:将所述第二请求发送至所述目标容器实例的网络命名空间。Step S303: Send the second request to the network namespace of the target container instance.
在一个实施例中,根据云计算技术,根据物理机虚拟化可以获得多个云虚拟机,所述物理机或云虚拟机可以为容器节点,根据所述一个或多个容器节点可以组成容器集群。In one embodiment, according to cloud computing technology, multiple cloud virtual machines can be obtained based on physical machine virtualization. The physical machines or cloud virtual machines can be container nodes, and a container cluster can be formed based on the one or more container nodes. .
示例性地,所述容器节点可以预先存储有各个备选容器的IP地址以及端口号,和对应备选容器的网络命名空间的标识之间的映射关系。如此。在步骤S302可根据所述IP地址和所述服务端口的端口号查询所述映射关系,确定所述目标容器实例的网络命名空间。For example, the container node may pre-store a mapping relationship between the IP address and port number of each candidate container and the identifier of the network namespace corresponding to the candidate container. in this way. In step S302, the mapping relationship may be queried according to the IP address and the port number of the service port, and the network namespace of the target container instance may be determined.
所述网络命名空间的标识可包括但不限于网络命名空间的名称。The identification of the network namespace may include but is not limited to the name of the network namespace.
容器节点内可以部署一个或多个容器实例,一个容器节点内的容器实例共享所在容器节点的操作系统内核。容器可以将应用和运行环境打包在一起并将所述应用和运行环境隔离,可以用于开发、交付和部署软件或服务。One or more container instances can be deployed in a container node, and the container instances in a container node share the operating system kernel of the container node where it is located. Containers can package and isolate applications and running environments, and can be used to develop, deliver and deploy software or services.
容器节点内的多个容器实例可以根据命名空间相互隔离,网络命名空间可以使容器实例拥有独立的网络环境,如网卡、路由表和/或防火墙等。Multiple container instances within a container node can be isolated from each other based on namespaces. Network namespaces can enable container instances to have independent network environments, such as network cards, routing tables, and/or firewalls.
在一个实施例中,可以由容器节点统一接收容器节点内一个或多个容器实例的请求,其中,所述请求可以包括负载均衡节点发送的第二请求。In one embodiment, the container node may uniformly receive requests from one or more container instances within the container node, where the request may include a second request sent by the load balancing node.
在一个实施例中,容器节点内可以包括扩展伯克利包过滤(eBPF,extendedBerkeley Packet Filter)程序,所述eBPF程序可以对容器节点内的数据包进行处理,具有可编译性和安全性,所述步骤S302和步骤S303可以根据所述eBPF程序操作。In one embodiment, the container node can include an extended Berkeley Packet Filter (eBPF, extendedBerkeley Packet Filter) program. The eBPF program can process data packets in the container node and has compilability and security. The steps S302 and step S303 may be operated according to the eBPF program.
同时,所述eBPF程序在数据包进入内核网络协议栈之前对数据包进行处理,所述eBPF程序可以工作在网卡驱动层或网络接口控制器(NIC,network interfacecontroller),不经过节点的内核网络协议栈处理数据包,减少了内核的工作负载,减少了容器访问的延迟,提高了容器节点数据处理的效率。At the same time, the eBPF program processes the data packets before they enter the kernel network protocol stack. The eBPF program can work at the network card driver layer or network interface controller (NIC, network interface controller) without going through the node's kernel network protocol. The stack processes data packets, reducing the workload of the kernel, reducing the delay of container access, and improving the efficiency of container node data processing.
在一个实施例中,所述方法可以包括:获取容器节点内备选容器实例的部署信息,其中,所述部署信息可以包括:备选容器实例的IP地址、服务端口的端口号以及所述备选容器实例的网络命名空间的标识;根据第二请求的目标容器实例的IP地址和服务端口的端口号,从获取的备选容器实例的部署信息中确定目标容器实例的网络命名空间;将所述第二请求发送至目标容器实例的网络命名空间。In one embodiment, the method may include: obtaining deployment information of an alternative container instance in a container node, where the deployment information may include: an IP address of an alternative container instance, a port number of a service port, and the backup information. The identification of the network namespace of the selected container instance; according to the IP address and service port number of the target container instance of the second request, determine the network namespace of the target container instance from the obtained deployment information of the alternative container instance; The second request is sent to the network namespace of the target container instance.
在一个实施例中,所述eBPF程序可以从扩展伯克利包过滤规则(eBPF MAP)中获取容器节点内备选容器实例的备选容器实例的IP地址、服务端口的端口号以及所述备选容器实例的网络命名空间的标识;其中,所述网络命名空间的标识可以包括网络命名空间的名称和网络命名空间路径;其中,可以由扩展伯克利包过滤代理(eBPF Agent)获得所述部署信息并将所述部署信息添加到eBPF MAP中。In one embodiment, the eBPF program can obtain the IP address of the alternative container instance, the port number of the service port and the alternative container of the alternative container instance in the container node from the Extended Berkeley Packet Filtering Rules (eBPF MAP) The identifier of the network namespace of the instance; wherein the identifier of the network namespace may include the name of the network namespace and the path of the network namespace; wherein the deployment information may be obtained by the Extended Berkeley Packet Filtering Agent (eBPF Agent) and The deployment information is added to the eBPF MAP.
在一个实施例中,所述eBPF程序根据所述IP地址和所述服务端口的端口号,确定所述目标容器实例的网络命名空间。In one embodiment, the eBPF program determines the network namespace of the target container instance based on the IP address and the port number of the service port.
所述eBPF程序确定目标容器实例的网络命名空间中的网卡是否与eBPF程序所在的容器节点主机网卡相同。若目标容器实例的网络命名空间的网卡与容器节点主机网卡相同,直接根据目标容器实例的IP地址和服务端口号转发所述第二请求。若目标容器实例的网络命名空间的网卡与容器节点主机网卡不相同,根据网络命名空间路径将第二请求重定向到目标容器实例的网络命名空间的网卡中。The eBPF program determines whether the network card in the network namespace of the target container instance is the same as the network card of the container node host where the eBPF program is located. If the network card of the network namespace of the target container instance is the same as the network card of the container node host, the second request is forwarded directly according to the IP address and service port number of the target container instance. If the network card of the network namespace of the target container instance is different from the network card of the container node host, redirect the second request to the network card of the network namespace of the target container instance according to the network namespace path.
在一个实施例中,所述方法还包括:所述eBPF程序根据eBPF MAP中的预定的控制规则与所述第二请求的IP地址与服务端口的端口号确定是否丢弃第二请求。In one embodiment, the method further includes: the eBPF program determines whether to discard the second request based on predetermined control rules in the eBPF MAP and the IP address of the second request and the port number of the service port.
在一个实施例中,所述控制规则可以包括但不限于以下至少之一:In one embodiment, the control rules may include but are not limited to at least one of the following:
当第二请求的IP地址不在当前容器节点的备选容器实例的IP地址中,丢弃所述第二请求;When the IP address of the second request is not among the IP addresses of the alternative container instances of the current container node, discard the second request;
根据第二请求的通信协议和目标容器实例的服务端口的端口号进行匹配,确定是否丢弃第二请求。Match the communication protocol of the second request with the port number of the service port of the target container instance to determine whether to discard the second request.
示例性的,当存在域名系统(DNS,Domain Name System)攻击时,可以设置MAP中的控制规则为将通信协议为用户数据报协议(UDP,User Datagram Protocol)和目标端口号为53的请求丢弃。For example, when there is a Domain Name System (DNS) attack, the control rules in the MAP can be set to discard requests whose communication protocol is User Datagram Protocol (UDP) and whose target port number is 53. .
这里,根据控制规则确定是否丢弃第二请求可以对第二请求进行过滤,相较于直接转发请求,可以在安全攻击或容器节点内没有第二请求的目标容器实例时及时丢弃请求,提高容器节点处理请求的效率,提高容器节点和容器实例的安全性。Here, the second request can be filtered by determining whether to discard the second request according to the control rules. Compared with forwarding the request directly, the request can be discarded in time when there is a security attack or there is no target container instance of the second request in the container node, improving the container node Improve the efficiency of processing requests and improve the security of container nodes and container instances.
如图4所示,在一些实施例中,所述方法还包括:As shown in Figure 4, in some embodiments, the method further includes:
步骤S401:接收所述目标容器实例基于所述第二请求发送第一响应;其中,所述第一响应的目标地址为所述负载均衡节点的IP地址,且源地址为所述目标容器实例的IP地址和服务端口的端口号;Step S401: Receive the target container instance and send a first response based on the second request; wherein the target address of the first response is the IP address of the load balancing node, and the source address is the IP address of the target container instance. IP address and service port number;
步骤S402:将所述第一响应发送给所述负载均衡节点,其中,所述第一响应,用于供所述负载均衡节点向所述客户端提供第二响应;其中,所述第二响应的目标地址为所述客户端的IP地址且源地址为所述负载均衡节点的IP地址。Step S402: Send the first response to the load balancing node, where the first response is used for the load balancing node to provide a second response to the client; where the second response The destination address is the IP address of the client and the source address is the IP address of the load balancing node.
在一个实施例中,所述目标容器实例处理所述第二请求并生成第二请求的第一响应,发送所述第一响应;eBPF程序接收所述目标容器实例基于所述第二请求发送第一响应并将所述第一响应发送给所述负载均衡节点。In one embodiment, the target container instance processes the second request and generates a first response to the second request, and sends the first response; the eBPF program receives the target container instance and sends the first response based on the second request. A response is sent to the load balancing node.
在一个实施例中,所述方法还包括:将所述第二请求发送至目标容器实例的网络命名空间之后,记录所述第二请求的连接状态。In one embodiment, the method further includes: after sending the second request to the network namespace of the target container instance, recording the connection status of the second request.
所述连接状态可以包括:第二请求的源IP地址、源服务端口、通信协议、目标容器实例的IP地址和目标容器实例的服务端口的端口号等。The connection status may include: the source IP address of the second request, the source service port, the communication protocol, the IP address of the target container instance, the port number of the service port of the target container instance, etc.
根据所述第二请求的连接状态将第二请求的第一响应发送至负载均衡节点。其中,所述连接状态可以根据eBPF程序记录到eBPF MAP中,eBPF程序通过从eBPF MAP中获得的所述连接状态发送所述第一响应。Send the first response to the second request to the load balancing node according to the connection status of the second request. Wherein, the connection status may be recorded into the eBPF MAP according to the eBPF program, and the eBPF program sends the first response through the connection status obtained from the eBPF MAP.
这样,eBPF程序可以根据第二请求的连接状态中源IP地址确定第一响应的目标IP地址,即负载均衡节点的IP地址,在第一响应发送到容器节点网络命名空间之前,直接根据负载均衡节点的IP地址转发所述第一响应,无需经过容器节点网络命名空间转发,也无需再分析查看第一响应中的目标IP地址,提高了第一响应的处理效率。In this way, the eBPF program can determine the target IP address of the first response based on the source IP address in the connection status of the second request, that is, the IP address of the load balancing node. Before the first response is sent to the container node network namespace, it can be directly determined based on the load balancing The IP address of the node forwards the first response without forwarding it through the container node network namespace, and there is no need to analyze and check the target IP address in the first response, which improves the processing efficiency of the first response.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
当所述容器节点有备选容器实例创建或者地址更新时,广播部署信息;其中,所述部署信息至少包括:所述备选容器实例的IP地址和服务端口的端口号。When an alternative container instance is created or the address of the container node is updated, deployment information is broadcast; wherein the deployment information at least includes: the IP address of the alternative container instance and the port number of the service port.
在一个实施例中,当所述容器节点有备选容器实例创建或者地址更新时,根据动态路由器通过动态路由协议将部署信息广播至负载均衡节点和在容器节点与负载均衡节点之间网络连接的网络设备中。In one embodiment, when an alternative container instance is created or the address of the container node is updated, the dynamic router broadcasts the deployment information to the load balancing node through the dynamic routing protocol and the network connection between the container node and the load balancing node. in network equipment.
其中,所述动态路由器可以包括动态软件路由器,所述动态软件路由器可以部署在每一个容器节点中,容器节点的动态软件路由器的路由信息可以包括:容器节点内的备选容器实例的IP地址的下一路由节点为容器节点的IP地址。Wherein, the dynamic router may include a dynamic software router, and the dynamic software router may be deployed in each container node. The routing information of the dynamic software router of the container node may include: the IP address of the alternative container instance within the container node. The next routing node is the IP address of the container node.
这样,相较于不广播部署信息,可以便于负载均衡节点和在容器节点与负载均衡节点之间网络连接的网络设备及时获得变化的部署信息,从而使负载均衡节点根据所述变化的部署信息及时调整负载均衡规则,使所述网络设备及时更新路由表,更快速地传输请求与响应数据,提高了对请求和响应数据处理的效率。In this way, compared with not broadcasting deployment information, it is easier for the load balancing node and the network device connected between the container node and the load balancing node to obtain the changed deployment information in a timely manner, so that the load balancing node can timely obtain the changed deployment information according to the changed deployment information. Adjust the load balancing rules so that the network device updates the routing table in a timely manner, transmits request and response data more quickly, and improves the efficiency of processing request and response data.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
本地存储所述备选容器实例的IP地址、所述服务端口的端口号以及所述备选容器实例的网络命名空间的标识。Locally store the IP address of the alternative container instance, the port number of the service port, and the identification of the network namespace of the alternative container instance.
在一个实施例中,所述方法可以包括:根据eBPF Agent将所述备选容器实例的IP地址、所述服务端口的端口号、所述备选容器实例的网络命名空间的名称和网络命名空间路径存储到eBPF MAP中。In one embodiment, the method may include: combining the IP address of the alternative container instance, the port number of the service port, the name of the network namespace of the alternative container instance and the network namespace according to the eBPF Agent. The path is stored into the eBPF MAP.
在一个实施例中,所述eBPF程序可以在内核空间中执行特定事件,所述eBPF MAP可以将eBPF MAP中的信息存储在用户空间中,在用户空间中还可以编译eBPF程序或修改eBPF MAP中的过滤规则,这样,通过eBPF组件可以在用户空间内存储或编译,减少内核空间的负载,提高容器节点的消息处理效率。In one embodiment, the eBPF program can execute specific events in the kernel space, and the eBPF MAP can store the information in the eBPF MAP in the user space. In the user space, the eBPF program can also be compiled or the eBPF MAP can be modified. The filtering rules can be stored or compiled in the user space through the eBPF component, reducing the load on the kernel space and improving the message processing efficiency of the container node.
如图5所示,本公开实施例提供一种消息处理方法,由负载均衡节点的控制器执行,所述方法包括:As shown in Figure 5, the embodiment of the present disclosure provides a message processing method, which is executed by the controller of the load balancing node. The method includes:
步骤S501:监听部署信息,其中,所述部署信息至少包括:容器集群内一个或多个容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号;Step S501: Monitor deployment information, where the deployment information at least includes: the IP address and the port number of the service port of one or more alternative container instances deployed by one or more container nodes in the container cluster;
步骤S502:将所述部署信息发送至负载均衡节点,其中,所述部署信息,用于供所述负载均衡节点修改从客户端接收第一请求的目标地址得到直接路由给目标容器实例的第二请求。Step S502: Send the deployment information to the load balancing node, where the deployment information is used for the load balancing node to modify the target address of the first request received from the client to obtain a second direct route to the target container instance. ask.
在一个实施例中,所述负载均衡节点的控制器可以包括负载均衡节点服务控制器(SLB-SVC,Server Load Balance-Service)。In one embodiment, the controller of the load balancing node may include a load balancing node service controller (SLB-SVC, Server Load Balance-Service).
在一个实施例中,所述方法可以包括:监听容器集群中一个或多个容器节点中一个或多个备选容器实例的部署信息,将所述部署信息发送至负载均衡节点。这样,可以使负载均衡集群及时获取最新的部署信息,应对容器集群的变化,并根据最新的部署信息调整负载均衡,提高了负载均衡的效率。In one embodiment, the method may include: monitoring deployment information of one or more alternative container instances in one or more container nodes in the container cluster, and sending the deployment information to the load balancing node. In this way, the load balancing cluster can obtain the latest deployment information in a timely manner, respond to changes in the container cluster, and adjust load balancing based on the latest deployment information, thereby improving the efficiency of load balancing.
在一个实施例中,所述方法还可以包括:监听容器集群中提供同一服务功能的一个或多个容器节点中一个或多个容器实例的部署信息,其中,提供同一服务功能的容器实例可以包括根据在容器集群中不同容器节点中的不同容器实例组成。In one embodiment, the method may further include: monitoring the deployment information of one or more container instances in one or more container nodes that provide the same service function in the container cluster, where the container instances that provide the same service function may include It is composed of different container instances in different container nodes in the container cluster.
在一个实施例中,所述负载均衡节点可以将提供同一服务功能的一个或多个容器节点中一个或多个容器实例的部署信息发送至负载均衡集群。所述负载均衡集群可以为提供同一服务功能的一个或多个容器实例分配一个外部服务访问的地址,所述外部访问的地址可以包括负载均衡节点IP地址和负载均衡节点服务端口号。In one embodiment, the load balancing node may send the deployment information of one or more container instances in one or more container nodes that provide the same service function to the load balancing cluster. The load balancing cluster may allocate an address for external service access to one or more container instances that provide the same service function. The address for external access may include the IP address of the load balancing node and the service port number of the load balancing node.
在一个实施例中,所述负载均衡节点的控制器还可以将在预定时间范围内清除负载均衡集群的配置信息中无效部署信息。In one embodiment, the controller of the load balancing node may also clear invalid deployment information in the configuration information of the load balancing cluster within a predetermined time range.
这样,根据负载均衡节点的控制器通过监听容器集群中的部署信息和清除负载均衡集群中配置信息中的无效部署信息,相较于没有负载均衡节点的控制器的负载均衡集群,可以在容器集群经常变化时,使负载均衡集群可以及时获取容器集群的部署信息,并及时清除负载均衡集群中无效部署信息,可以实现容器部署信息和负载均衡配置信息的双向同步,提高了负载均衡的处理消息的准确性。In this way, the controller based on the load balancing node listens to the deployment information in the container cluster and clears the invalid deployment information in the configuration information in the load balancing cluster. Compared with the load balancing cluster without the controller of the load balancing node, it can be configured in the container cluster. When there are frequent changes, the load balancing cluster can obtain the deployment information of the container cluster in time, and clear the invalid deployment information in the load balancing cluster in time. This can realize the two-way synchronization of the container deployment information and the load balancing configuration information, and improve the processing efficiency of the load balancing message. accuracy.
在一些实施例中,所述监听部署信息,包括:In some embodiments, the monitoring deployment information includes:
从容器集群的服务器接收所述部署信息;Receive the deployment information from the server of the container cluster;
和/或,监听所述容器集群内容器节点广播的所述部署信息。And/or, monitor the deployment information broadcast by container nodes in the container cluster.
在一个实施例中,所述负载均衡节点的控制器可以监听容器集群中的容器节点的服务器,当容器节点无效时,删除容器节点内对应的容器实例的部署信息。In one embodiment, the controller of the load balancing node can monitor the server of the container node in the container cluster, and when the container node is invalid, delete the deployment information of the corresponding container instance in the container node.
在一个实施例中,一种消息处理的系统可以如图7所示。其中,所述消息处理系统包括:负载均衡SLB集群、负载均衡节点控制器SLB-SVC、kubernetes集群、容器集群。其中,所述kubernetes集群中可以包括Kube-APIServer组件,所述容器集群中可以包括一个或多个容器节点,所述容器集群中可以包括动态软件路由器,所述动态软件路由器可以部署在容器节点所在的虚拟机中,所述容器节点中还可以包括:eBPF程序、eBPF Agent、eBPF MAP、容器实例和节点内核协议栈。In one embodiment, a message processing system can be shown in Figure 7 . Wherein, the message processing system includes: load balancing SLB cluster, load balancing node controller SLB-SVC, kubernetes cluster, and container cluster. The kubernetes cluster may include a Kube-APIServer component, the container cluster may include one or more container nodes, the container cluster may include a dynamic software router, and the dynamic software router may be deployed where the container node is. In the virtual machine, the container node may also include: eBPF program, eBPF Agent, eBPF MAP, container instance and node kernel protocol stack.
在一个实施例中,根据所述消息处理系统进行消息处理的方法可以包括:In one embodiment, a method for message processing according to the message processing system may include:
根据SLB集群接收客户端发送的第一请求;Receive the first request sent by the client according to the SLB cluster;
SLB集群根据负载均衡规则,确定分配所述第一请求的目标容器实例;The SLB cluster determines the target container instance to which the first request is allocated based on the load balancing rules;
SLB集群根据所述目标容器实例的IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;The SLB cluster modifies the target address of the first request and obtains the second request based on the IP address of the target container instance and the port number of the service port;
SLB集群根据动态路由协议向所述目标容器实例所在的容器节点发送所述第二请求;The SLB cluster sends the second request to the container node where the target container instance is located according to the dynamic routing protocol;
容器节点接收负载均衡节点发送的第二请求;The container node receives the second request sent by the load balancing node;
根据容器节点内的eBPF程序根据eBPF MAP中存储的容器节点内备选容器实例的IP地址、所述服务端口的端口号和网络命名空间标识与第二请求包括的目标容器实例的IP地址和所述服务端口的端口号,确定所述目标容器实例的网络命名空间;According to the eBPF program in the container node, the IP address of the alternative container instance in the container node, the port number of the service port and the network namespace identifier stored in the eBPF MAP are combined with the IP address and the IP address of the target container instance included in the second request. The port number of the service port is used to determine the network namespace of the target container instance;
根据容器节点内的eBPF程序将所述第二请求发送至目标容器实例的网络命名空间。The second request is sent to the network namespace of the target container instance according to the eBPF program in the container node.
在一个实施例中,所述负载均衡节点控制器SLB-SVC和所述eBPF Agent可以通过kubernetes集群中的Kube-APIServer组件获取容器集群内容器节点内备选容器实例的部署信息。In one embodiment, the load balancing node controller SLB-SVC and the eBPF Agent can obtain the deployment information of alternative container instances in the container nodes in the container cluster through the Kube-APIServer component in the kubernetes cluster.
在一个实施例中,一种请求处理的流程可以如图8所示,所述步骤可以包括:In one embodiment, a request processing flow can be shown in Figure 8, and the steps can include:
步骤a1、负载均衡节点接收客户端发送的第一请求;Step a1: The load balancing node receives the first request sent by the client;
步骤a2、负载均衡节点根据负载均衡规则,确定分配所述第一请求的目标容器实例;Step a2: The load balancing node determines the target container instance to which the first request is allocated according to the load balancing rules;
步骤a3、负载均衡节点根据所述目标容器实例的互联网协议IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;Step a3: The load balancing node modifies the target address of the first request and obtains the second request according to the Internet Protocol IP address of the target container instance and the port number of the service port;
步骤a4、负载均衡节点向所述目标容器实例所在的容器节点发送所述第二请求;Step a4: The load balancing node sends the second request to the container node where the target container instance is located;
步骤a5、容器节点接收负载均衡节点发送的第二请求;其中,所述第二请求包括:目标容器实例的互联网协议IP地址和服务端口的端口号;所述第二请求是所述负载均衡节点基于客户端提供的第一请求生成并提供的;所述第一请求的目标地址指向所述负载均衡节点;Step a5: The container node receives the second request sent by the load balancing node; wherein the second request includes: the Internet Protocol IP address of the target container instance and the port number of the service port; the second request is the load balancing node Generated and provided based on the first request provided by the client; the target address of the first request points to the load balancing node;
步骤a6、容器节点根据所述目标容器实例的IP地址和服务端口的端口号,确定所述目标容器实例的网络命名空间;Step a6: The container node determines the network namespace of the target container instance based on the IP address of the target container instance and the port number of the service port;
步骤a7、容器节点将所述第二请求发送至所述目标容器实例的网络命名空间;Step a7: The container node sends the second request to the network namespace of the target container instance;
步骤a8、目标容器实例接收并处理所述第二请求。Step a8: The target container instance receives and processes the second request.
在一个实施例中,一种请求的响应的处理的流程可以如图9所示,所述步骤可以包括:In one embodiment, the flow of processing a request response may be as shown in Figure 9, and the steps may include:
步骤b1、目标容器实例根据所述第二请求生成第一响应并发送;Step b1: The target container instance generates a first response according to the second request and sends it;
步骤b2、容器节点接收所述目标容器实例基于所述第二请求发送第一响应;其中,所述第一响应的目标地址为所述负载均衡节点的IP地址,且源地址为所述目标容器实例的IP地址和服务端口的端口号;Step b2: The container node receives the target container instance and sends a first response based on the second request; wherein the target address of the first response is the IP address of the load balancing node, and the source address is the target container. The IP address of the instance and the port number of the service port;
步骤b3、容器节点将所述第一响应发送给所述负载均衡节点,其中,所述第一响应,用于供所述负载均衡节点向所述客户端提供第二响应;其中,所述第二响应的目标地址为所述客户端的IP地址且源地址为所述负载均衡节点的IP地址;Step b3: The container node sends the first response to the load balancing node, where the first response is used for the load balancing node to provide a second response to the client; where the first response The target address of the second response is the IP address of the client and the source address is the IP address of the load balancing node;
步骤b4、负载均衡节点接收所述第二请求的第一响应;其中,所述第一响应的源地址为所述目标容器实例的IP地址,且所述第一响应的目标地址为所述负载均衡节点的IP地址;Step b4: The load balancing node receives the first response of the second request; wherein the source address of the first response is the IP address of the target container instance, and the target address of the first response is the load The IP address of the balancing node;
步骤b5、负载均衡节点将所述第一响应的源地址修改为所述负载均衡节点的IP地址,并将所述第一响应的目标地址修改为所述客户端的IP地址,得到第二响应;Step b5: The load balancing node modifies the source address of the first response to the IP address of the load balancing node, and modifies the target address of the first response to the IP address of the client to obtain a second response;
步骤b6、负载均衡节点向所述客户端发送所述第二响应。Step b6: The load balancing node sends the second response to the client.
如图10所示,本公开实施例提供一种消息处理装置,所述装置包括:As shown in Figure 10, an embodiment of the present disclosure provides a message processing device, which includes:
接收模块10,用于用于接收客户端发送的第一请求;The receiving module 10 is used to receive the first request sent by the client;
确定模块20,用于:根据负载均衡规则,确定分配所述第一请求的目标容器实例;Determining module 20, configured to: determine the target container instance to which the first request is allocated according to the load balancing rules;
修改模块30,用于:根据所述目标容器实例的互联网协议IP地址和服务端口的端口号,修改所述第一请求的目标地址并得到第二请求;Modification module 30, configured to: modify the target address of the first request and obtain the second request according to the Internet Protocol IP address of the target container instance and the port number of the service port;
发送模块40,用于向所述目标容器实例所在的容器节点发送所述第二请求。The sending module 40 is configured to send the second request to the container node where the target container instance is located.
在一个实施例中,所述修改模块30,还用于:根据所述负载均衡节点的IP地址修改所述第一请求的源地址,得到源地址为所述负载均衡节点的IP地址的所述第二请求。In one embodiment, the modification module 30 is further configured to modify the source address of the first request according to the IP address of the load balancing node to obtain the source address of the load balancing node. Second request.
在一个实施中,所述接收模块10,还用于:接收所述第二请求的第一响应;其中,所述第一响应的源地址为所述目标容器实例的IP地址,且所述第一响应的目标地址为所述负载均衡节点的IP地址;所述修改模块30,还用于:将所述第一响应的源地址修改为所述负载均衡节点的IP地址,并将所述第一响应的目标地址修改为所述客户端的IP地址,得到第二响应;所述发送模块40,还用于:向所述客户端发送所述第二响应。In one implementation, the receiving module 10 is further configured to: receive a first response to the second request; wherein the source address of the first response is the IP address of the target container instance, and the third The target address of a response is the IP address of the load balancing node; the modification module 30 is also configured to: modify the source address of the first response to the IP address of the load balancing node, and modify the first response to the IP address of the load balancing node. The target address of a response is modified to the IP address of the client to obtain a second response; the sending module 40 is also used to: send the second response to the client.
在一个实施例中,所述装置还包括:获取模块50;所述获取模块50,用于:获取容器集群内一个或多个容器节点内备选容器实例的部署信息,其中,所述部署信息包括:所述容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号。In one embodiment, the device further includes: an acquisition module 50; the acquisition module 50 is configured to: acquire deployment information of alternative container instances in one or more container nodes in the container cluster, where the deployment information Including: the IP address and the port number of the service port of one or more alternative container instances deployed by the container node.
在一个实施例中,所述接收模块10,还用于接收容器集群内一个或多个容器节点广播的所述部署信息;或者,接收负载均衡节点的控制器从所述容器集群的服务器获取的所述部署信息。In one embodiment, the receiving module 10 is also configured to receive the deployment information broadcast by one or more container nodes in the container cluster; or, receive the deployment information obtained by the controller of the load balancing node from the server of the container cluster. The deployment information.
如图11所示,本公开实施例提供一种消息处理装置,所述装置包括:As shown in Figure 11, an embodiment of the present disclosure provides a message processing device, which includes:
接收模块110,用于:接收负载均衡节点发送的第二请求;其中,所述第二请求包括:目标容器实例的互联网协议IP地址和服务端口的端口号;所述第二请求是所述负载均衡节点基于客户端提供的第一请求生成并提供的;所述第一请求的目标地址指向所述负载均衡节点;The receiving module 110 is configured to: receive a second request sent by the load balancing node; wherein the second request includes: the Internet Protocol IP address of the target container instance and the port number of the service port; the second request is the load The balancing node is generated and provided based on the first request provided by the client; the target address of the first request points to the load balancing node;
确定模块120,用于:根据所述目标容器实例的IP地址和服务端口的端口号,确定所述目标容器实例的网络命名空间;Determining module 120, configured to: determine the network namespace of the target container instance according to the IP address of the target container instance and the port number of the service port;
发送模块130,用于将所述第二请求发送至所述目标容器实例的网络命名空间。The sending module 130 is configured to send the second request to the network namespace of the target container instance.
在一个实施例中,所述接收模块110,还用于:接收所述目标容器实例基于所述第二请求发送第一响应;其中,所述第一响应的目标地址为所述负载均衡节点的IP地址,且源地址为所述目标容器实例的IP地址和服务端口的端口号;所述发送模块130,还用于:将所述第一响应发送给所述负载均衡节点,其中,所述第一响应,用于供所述负载均衡节点向所述客户端提供第二响应;其中,所述第二响应的目标地址为所述客户端的IP地址且源地址为所述负载均衡节点的IP地址。In one embodiment, the receiving module 110 is further configured to: receive a first response sent by the target container instance based on the second request; wherein the target address of the first response is that of the load balancing node. IP address, and the source address is the IP address of the target container instance and the port number of the service port; the sending module 130 is also used to: send the first response to the load balancing node, wherein, The first response is used by the load balancing node to provide a second response to the client; wherein the target address of the second response is the IP address of the client and the source address is the IP of the load balancing node. address.
如图12所示,本公开实施例提供一种消息处理装置,所述装置包括:As shown in Figure 12, an embodiment of the present disclosure provides a message processing device, which includes:
监听模块310,用于:监听部署信息,其中,所述部署信息至少包括:容器集群内一个或多个容器节点部署的一个或多个备选容器实例的IP地址和服务端口的端口号;The monitoring module 310 is configured to: monitor deployment information, where the deployment information at least includes: the IP address and the port number of the service port of one or more alternative container instances deployed by one or more container nodes in the container cluster;
发送模块320,用于:将所述部署信息发送至负载均衡节点,其中,所述部署信息,用于供所述负载均衡节点修改从客户端接收第一请求的目标地址得到直接路由给目标容器实例的第二请求。The sending module 320 is configured to send the deployment information to the load balancing node, where the deployment information is used for the load balancing node to modify the target address of the first request received from the client to obtain a direct route to the target container. Second request for instance.
在一个实施例中,所述监听模块310还包括:接收模块311,用于从容器集群的服务器接收所述部署信息;和/或,所述监听模块310,还用于监听所述容器集群内容器节点广播的所述部署信息。In one embodiment, the monitoring module 310 further includes: a receiving module 311, configured to receive the deployment information from the server of the container cluster; and/or the monitoring module 310 is also configured to monitor the content of the container cluster. The deployment information broadcast by the server node.
需要说明的是,本领域内技术人员可以理解,本公开实施例提供的方法,可以被单独执行,也可以与本公开实施例中一些方法或相关技术中的一些方法一起被执行。It should be noted that those skilled in the art can understand that the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in related technologies.
本公开实施例还提供一种电子设备,所述电子设备包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,处理器运行所述计算机程序时,执行前述一个或多个技术方案所述方法的步骤。An embodiment of the present disclosure also provides an electronic device. The electronic device includes: a processor and a memory for storing a computer program that can be run on the processor. When the processor runs the computer program, it executes one or more of the foregoing The steps of the method described in the technical solution.
本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,计算机可执行指令被处理器执行后,能够实现前述一个或多个技术方案所述方法。Embodiments of the present disclosure also provide a computer-readable storage medium that stores computer-executable instructions. After the computer-executable instructions are executed by the processor, the method described in one or more of the foregoing technical solutions can be implemented. .
本实施例提供的计算机存储介质可为非瞬间存储介质。在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。The computer storage medium provided in this embodiment may be a non-transient storage medium. In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components may be combined, or can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be electrical, mechanical, or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure can be all integrated into one processing module, or each unit can be separately used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
在一些情况下,上述任一两个技术特征不冲突的情况下,可以组合成新的方法技术方案。In some cases, if any two of the above technical features do not conflict, they can be combined into a new method and technical solution.
在一些情况下,上述任一两个技术特征不冲突的情况下,可以组合成新的设备技术方案。In some cases, if any two of the above technical features do not conflict, they can be combined into a new equipment technical solution.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, It includes the steps of the above method embodiment; and the aforementioned storage media includes: mobile storage devices, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks, etc. A medium on which program code can be stored.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure. should be covered by the protection scope of this disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211100421.2A CN116781701A (en) | 2022-09-08 | 2022-09-08 | Message processing method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211100421.2A CN116781701A (en) | 2022-09-08 | 2022-09-08 | Message processing method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116781701A true CN116781701A (en) | 2023-09-19 |
Family
ID=88006924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211100421.2A Pending CN116781701A (en) | 2022-09-08 | 2022-09-08 | Message processing method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116781701A (en) |
-
2022
- 2022-09-08 CN CN202211100421.2A patent/CN116781701A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10171567B2 (en) | Load balancing computer device, system, and method | |
US20240223612A1 (en) | Method and system for virtual machine aware policy management | |
CN111464592B (en) | Load balancing method, device, equipment and storage medium based on micro-service | |
CN107026890B (en) | A packet generation method and load balancer based on server cluster | |
EP3490203B1 (en) | Method and system for implementing a vxlan control plane | |
CN109937401B (en) | Live migration of load-balancing virtual machines via traffic bypass | |
US8099615B2 (en) | Method and system for power management in a virtual machine environment without disrupting network connectivity | |
EP3547134A1 (en) | Container cluster management | |
US8321862B2 (en) | System for migrating a virtual machine and resource usage data to a chosen target host based on a migration policy | |
US7826359B2 (en) | Method and system for load balancing using queued packet information | |
WO2019204023A1 (en) | Cross-regional virtual network peering | |
CN109981493B (en) | Method and device for configuring virtual machine network | |
US9112812B2 (en) | Distributed virtual appliance | |
CN105554065A (en) | Method, conversion unit and application unit for message processing | |
CN102315968B (en) | Network configuration method in virtual machine environment | |
CN113014611B (en) | Load balancing method and related equipment | |
CN111787079B (en) | Communication method, device, server, system and medium based on communication group | |
CN110830574B (en) | Method for realizing intranet load balance based on docker container | |
CN106161283B (en) | message transmission method and device | |
CN105704042A (en) | Message processing method, BNG and BNG cluster system | |
CN104158675B (en) | Calculate node dispositions method, processing node, controller and system | |
CN106169994A (en) | The method of controlling security communicated between container and device | |
CN105897758A (en) | Container access control method and device | |
CN114024971B (en) | Service data processing method, kubernetes cluster and medium | |
CN116781701A (en) | Message processing method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |