Service connection method and device in distributed system

A technology of distributed system and connection method, which is applied in the field of service connection method and device, can solve problems such as occupation, and achieve the effect of avoiding high CPU resource occupation rate

Active Publication Date: 2019-04-12
NEW H3C TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Repeatedly initiating connections will occupy a large amount of CPU (central processing unit) resources of the client

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
  • Service connection method and device in distributed system
  • Service connection method and device in distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In the prior art, if the process on the Client initiates a connection to access the service before the process on the Server starts the service, that is, the process on the Client has initiated a connection but the process on the Server has not yet started the service, then , the process on the Client will fail to connect to the process on the Server, and then the process on the Client will continuously initiate connections to the process on the Server until the process on the Server starts the service, and the process on the Client establishes a connection with the process on the Server Until it succeeds, repeatedly initiating connections will lead to high CPU resource usage of the Client.

[0027] The technical solutions of the following embodiments of the present application are applied to a distributed system including multiple nodes, for example, a frame device composed of multiple single boards, and in this case, each single board is a node. Each node in the distr...

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 application discloses a service connection method and device in a distributed system, wherein the method includes: when it is known that a process wants to access the service, judging whether there is port information corresponding to the service in the local database and where the service is located The entry of the location information of the node; if so, notify the process of the port information corresponding to the service in the entry and the location information of the node where the service is located so as to initiate a connection; otherwise, after receiving the corresponding port information carrying the service After the service opening message of the port information and the location information of the node where the service is located, an entry containing the carried port information and location information is added in the database, and the port information and the location information are notified to the process so as to initiate a connection. This application avoids the problem of high CPU resource usage of the client caused by repeatedly initiating connections.

Description

technical field [0001] The present application relates to the technical field of network communication, in particular to a service connection method and device in a distributed system. Background technique [0002] In a distributed system (for example, a frame device including multiple boards), the communication process generally involves two subjects, namely a client (Client) and a server (Server). When a service with a specific function is to be opened, the process on the Server will open the port of the service; when the process on the Client needs to access the service, it will use the location information of the Server where the service is located (specifically, the IP address of the Server) and the port number of the service to initiate a connection to the process on the Server; after the connection is successful, the process on the Server and the process on the Client can send and receive data to each other. Subsequently, when the service is to be closed, the process...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L67/51H04L67/52H04L67/01
Inventor 朱寅寅
Owner NEW H3C 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