Implementation method for high availability of cluster microservices

An implementation method and technology of microservices, applied in the field of cloud computing, can solve the problems of increased capture and processing difficulty, inability to maintain context, complex business logic, etc., and achieve good scalability, high stability, and high efficiency.

Inactive Publication Date: 2018-10-26
INST OF INFORMATION ENG CAS
View PDF5 Cites 45 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although asynchronous calls improve the availability of microservice clusters to a certain extent, asynchronous calls make the bu

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
  • Implementation method for high availability of cluster microservices
  • Implementation method for high availability of cluster microservices
  • Implementation method for high availability of cluster microservices

Examples

Experimental program
Comparison scheme
Effect test

example I

[0092] Step 502: the control center writes "service entry IP: service port" and "instance IP: instance port" into ETCD through the APIServer;

[0093] Step 503: the node service agent queries ETCD through the APIServer and discovers new service releases;

[0094] Step 504: The service agent program establishes N IPTABLES forwarding rules locally, corresponding "service entry IP: service port" to N "instance IP: instance port" respectively;

[0095] Step 505: In order to load balance the backend N instances, set the weight of the i-th IPTABLES forwarding rule to 1 / i;

[0096] For ease of understanding, an example is given below. Assume that the control center releases a new service A, and there are 3 back-end service instances, represented by a1, a2, and a3 respectively, corresponding to "service entry IP: service port" as "10.10.1.128:8080", corresponding to the back-end The three "instance IP: instance port" are "192.168.10.100:80", "192.168.10.101:80", and "192.168.10.102:...

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 provides an implementation method for high availability of cluster microservices, comprising the following steps: deploying a service architecture to synchronously sense the newly-published microservices by all the nodes in the cluster; performing load balancing adjustment on the microservices by establishing an IPTABLES forwarding rule by the service agents of each node in the cluster; running the service load monitoring program on each node in the cluster, periodically collecting and integrating the load status of all microservices of each node, and accordingly performing the operation for dynamically increasing or deleting the backend instances of the microservices. So that, after the new service is released, all the nodes in the cluster may be perceived, and an adaptive load balancing policy is implemented on this basis, so as to dynamically adjust the local IPTABLES forwarding rule according to the adaptive load balancing policy when performing capacity expansion andshrinkage, thereby ensuring load balancing after the capacity expansion and shrinkage, that is, playing a role to realize the high availability of cluster microservices from different stages and perspectives.

Description

technical field [0001] The present invention relates to the field of cloud computing, in particular to a cluster microservice-oriented high-availability implementation method. Background technique [0002] Under the trend of the prosperity and development of the cloud computing industry, microservices are increasingly presented to people. Microservice is an architectural style. Each microservice in the system can be deployed independently, and each microservice is loosely coupled. Each microservice is only focused on doing one task and doing it well, and each task represents a small business capability. [0003] There are many advantages to adopting the Microservices architectural pattern over traditional monolithic applications. First of all, it solves the complexity problem for multiple service methods by decomposing a huge single application, and reduces the development and maintenance costs of the overall service through a modular solution; secondly, this architecture ...

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): H04L29/08
CPCH04L67/10H04L67/1004H04L67/1012H04L67/56H04L67/60
Inventor 汤学海刘财宏董扬琛韩冀中
Owner INST OF INFORMATION ENG CAS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products