Consul-based service discovery method and apparatus, and electronic device

A technology for service discovery and service discovery request, which is applied in the fields of Consul-based service discovery methods, devices and electronic equipment, and can solve the problem of insufficient attribute information of downstream servers.

Inactive Publication Date: 2018-08-03
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the embodiments of the present invention is to provide a Consul-based service discovery method, device, and electronic equipment to solve the problem

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
  • Consul-based service discovery method and apparatus, and electronic device
  • Consul-based service discovery method and apparatus, and electronic device
  • Consul-based service discovery method and apparatus, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0073] figure 1 A schematic flowchart of a Consul-based service discovery method provided by an embodiment of the present invention, including:

[0074] Step 101, sending a service discovery request to the Consul server.

[0075] The upstream server sends a service discovery request to the Consul server to obtain a service list that contains information about the attributes of the currently available downstream servers.

[0076] Step 102, receiving the service list returned by the Consul server. The service list includes the network address information and performance weight of each currently available downstream server. The performance weight represents the business processing capability of the downstream server.

[0077] After sending a service discovery request to the Con...

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 embodiment of the invention provides a Consul-based service discovery method and apparatus, and an electronic device. The method comprises the following steps: sending a service discovery requestto a Consul server; receiving a service list returned by the Consul server, wherein the service list comprises network address information and performance weight information of currently available downstream servers, and the performance weight information characterizes the service processing capability of the downstream servers. By implementation of the scheme of the embodiment of the invention, an upstream server can obtain richer attribute information of the available downstream servers.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a Consul-based service discovery method, device and electronic equipment. Background technique [0002] Consul is a service discovery software that supports distributed high availability in multiple data centers. The entire system is easy to operate and easy to apply. [0003] The main function of the existing Consul software is to receive the service registration request sent by the downstream server, generate a service list including the network address information of each downstream server, and send the above service list to the upstream server. [0004] The inventor found in the process of realizing the present invention that there are at least the following problems in the prior art: [0005] Since the service list generated by the existing Consul software only contains the network address information of each available downstream server, after the upstream se...

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/1008H04L67/51H04L67/63
Inventor 吴成成
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
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