Heartbeat protocol method and device based on lease

A lease and protocol technology, applied in the computer field, can solve problems such as lost locks, unreasonable heartbeat requests, and heavy impact pressure on network nodes and servers by retry logic, so as to improve the probability of success and reduce impact pressure.

Active Publication Date: 2017-09-01
ALIBABA GRP HLDG LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of this application is to provide a lease-based heartbeat protocol method and device to solve the unreasonableness of sending heartbeat requests caused by using the heartbeat protocol of a reliable coordination system in a distributed system to maintain the

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
  • Heartbeat protocol method and device based on lease
  • Heartbeat protocol method and device based on lease
  • Heartbeat protocol method and device based on lease

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0031] The application will be further described in detail below in conjunction with the drawings.

[0032] figure 1 A schematic flowchart of a lease-based heartbeat protocol method according to an aspect of the present application is shown. The method includes step S11 and step S12.

[0033] Wherein, the step S11 includes: sending a heartbeat request to the service device during the lease period, and receiving a heartbeat request response from the service device; the step S12 includes: when the heartbeat request response is abnormal, determining based on a reverse index backoff algorithm Retry sending interval time, and sending a retry heartbeat request to the service device again after the retry sending interval time until the lease expires or the corresponding heartbeat request response is normal.

[0034] It should be noted that in the embodiments of this application, the heartbeat between the client device and the service device is a periodic process. Under normal circumstances...

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 aims to provide a heartbeat protocol method and a device based on lease. The method comprises the following steps: sending a heartbeat request to a server in the lease period, and receiving a heartbeat request response from the server; and if the heartbeat request response is abnormal, determining the retry sending interval based on an inverse exponential back-off algorithm, and sending a retry heartbeat request to the server after the retry sending interval until the lease expires or the corresponding heartbeat request response is normal. In the early stage of retry heartbeat requests, two adjacent retry heartbeat requests can be sent at a large sending interval, which reduces the impact pressure of heartbeat requests on network nodes and the server. In the late stage of retry heartbeat requests, the sending interval of retry heartbeat requests is shortened, which enables retry heartbeat requests to be sent at higher frequency. Therefore, the success probability of recovery from network failure is increased, the stability of the network is guaranteed, and the network pressure is reduced.

Description

technical field [0001] The present application relates to the computer field, and in particular to a lease-based heartbeat protocol technology. Background technique [0002] In the distributed lock service system, a coarse-grained mutual exclusion mechanism can ensure that only one client can hold the lock at the same time. Among them, the realization of the lock depends on the session maintenance mechanism based on the lease. After the session times out, the client perceives it before the server. Generally, after the client perceives the timeout, it will notify the application layer that the distributed lock is lost. After the server perceives the timeout, it will release the original lock for other clients to preempt. [0003] The maintenance of the above sessions mainly depends on the heartbeat between the client and the server. When designing the heartbeat protocol, the primary goal is to ensure that in the case of network isolation or server downtime that cannot be qu...

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): H04L12/26H04L12/24
CPCH04L41/0654H04L41/0681H04L43/10H04L43/103H04L67/145H04L51/23H04L67/01
Inventor 唐治洋卢毅军陶云峰朱云锋
Owner ALIBABA GRP HLDG 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