System and method for self-registration service discovery facing micro-service

A technology for registering services and micro-services, applied in the field of self-registration service discovery, can solve cumbersome problems and achieve the effects of improving availability, high stability and high efficiency

Inactive Publication Date: 2018-11-16
INST OF INFORMATION ENG CAS
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for microservices, each service backend may have multiple instances running, and each service may be shut down, restarted, or replaced at any time. It is undou

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
  • System and method for self-registration service discovery facing micro-service
  • System and method for self-registration service discovery facing micro-service
  • System and method for self-registration service discovery facing micro-service

Examples

Experimental program
Comparison scheme
Effect test

example I

[0072] Step 404: The service agent program establishes N IPTABLES forwarding rules locally, and corresponds "service entry IP: service port" to N "instance IP: instance port" respectively;

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

[0074] 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:80". After the service is released, the service agent on each node of the cluster queries ETCD through the APIServer to obtain the information of the new service, and then establishes the IPTABLES forwarding rules from A to a1, a2, and a3 locally, accordin...

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 present invention provides a method for self-registration service discovery facing micro-service. The method comprises the following steps of: allowing all the nodes in a cluster to synchronouslyperceive newly published micro-service through a system mentioned above; allowing the service agent program of each node in the cluster to establish an IPTABLES forwarding rule to perform load balanceregulation of the micro-service; after the new service is published, allowing all the nodes in the cluster to perceive to set uniform access inlet for service, and on this basis, equally sharing a load balance task to each node of the cluster so as to effectively avoid that a load balance becomes performance bottlenecks on the basis of ensuring of the service rear-end example load balance. The present invention further provides a system for implementing the method.

Description

technical field [0001] The invention relates to the field of cloud computing, in particular to a microservice-oriented self-registration service discovery system and 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 al...

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/08H04L29/12
CPCH04L61/4541H04L67/1001H04L67/51
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