Supercharge Your Innovation With Domain-Expert AI Agents!

Container cloud service discovery and load balancing method based on OpenResty and K8S

A technology of load balancing and load balancing, which is applied in digital transmission systems, electrical components, transmission systems, etc. It can solve the problems of invalid data in monitoring data, old version Pod filtering, and high learning costs, so as to achieve availability guarantee and improve ease of use performance and reduce business impact

Pending Publication Date: 2022-01-18
SHANGHAI PUDONG DEVELOPMENT BANK
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 2. In the existing technical solution, the user creates an Ingress resource by writing the yaml file of the Ingress resource. The configuration of this solution is complex and the learning cost is high, requiring the user to write the yaml file proficiently to determine the externally accessible URL, load balancing strategy and virtual host and other configuration parameters
When an application instance is updated, scaled, or deleted, K8S deletes the old version of the Pod instance and creates a new Pod instance. The monitoring collection of the current technical solution does not filter the old version of the Pod, and pushes the monitoring data to Promethues, including the offline Pod information. , resulting in invalid data in the monitoring data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Container cloud service discovery and load balancing method based on OpenResty and K8S
  • Container cloud service discovery and load balancing method based on OpenResty and K8S
  • Container cloud service discovery and load balancing method based on OpenResty and K8S

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0047] OpenResty is a high-performance web platform based on Nginx and Lua, which integrates a large number of Lua libraries and third-party libraries. The invention realizes dynamic configuration refresh and advanced rule matching based on OpenResty, and realizes monitoring data collection through self-developed Lua module. Based on this, the present invention provides a container cloud service discovery and load balancing method based on OpenResty and K8S, the method specifically includes the following content:

[0048] The first stage: the user publishes the application on the container cloud platform, configures the internal routing and load balancing of the application, so that the internal services of the cluster are exposed to the outside of the cluster. In the process of creating load balancing, to expose the internal services of the cluster in the existing technical solutions, it is necessary to write yaml files to create Ingress resources, and configure load balancing...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a container cloud service discovery and load balancing method based on OpenResty and K8S, and the method comprises the steps: a user issuing an application on a container cloud platform, configuring the internal routing and load balancing of the application, carrying out the cluster information configuration through the self-defined resources of K8S in the process of creating load balancing, and enabling the internal service of a cluster to be exposed to the exterior of the cluster; after a user configures load balancing, a load balancer monitoring resource changes, periodically acquiring custom resource information of K8S, refreshing an Nginx configuration file according to the custom resource information and reloads the Nginx, so that the load balancing configured by the user takes effect; after a user request establishes a connection with OpenResty, performing advanced rule filtering on the request through an improved Lua module, calculating a service instance meeting a load balancing strategy, performing data storage, and then forwarding the user request to the service instance in a K8S cluster. Compared with the prior art, the method has the advantages of reducing the operation complexity, improving the service discovery speed and the like.

Description

technical field [0001] The invention relates to the technical field of container cloud platforms, in particular to a container cloud service discovery and load balancing method based on OpenResty and K8S. Background technique [0002] With the gradual implementation and vigorous development of concepts such as cloud computing, micro-services, and containers, there are more and more machines, more and more applications, more and more micro-services, and the basic environment for application operation is becoming more and more diverse. In the application of cloud business process, after the user publishes the application, K8S creates Pod resources with the same number of copies according to the application configuration, and assigns the access address PodIP to the service instance Pod. In the K8S network model, each Pod has an independent IP, and the service instance Pod has a life cycle, and a new access address PodIP will be generated when it is destroyed and rebuilt. Since...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L67/1001H04L67/1031H04L67/1042H04L67/025H04L9/40H04L47/125
CPCH04L67/1031H04L67/1044H04L67/025H04L63/0227H04L47/125
Inventor 李文权李霞李成成
Owner SHANGHAI PUDONG DEVELOPMENT BANK
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More