Client Heartbeat Renewal and Expiration Detection Method, Device, and Computer-Readable Medium

A heartbeat detection and detection method technology, applied in the computer field, can solve the problems of not considering distributed application scenarios, affecting other services of the server, and unable to expand the number of clients, so as to improve real-time performance, ensure load balance, and improve stand-alone performance Effect

Active Publication Date: 2021-04-09
G NET INTEGRATED SERVICE
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] One is that distributed application scenarios are not considered. When the number of clients increases significantly, the load balancing of read and write pressure cannot be well achieved, resulting in the inability to well expand the number of clients;
[0007] Second, the server regularly deletes the expired heartbeat operation is a batch of long transactions, which can easily lead to synchronous blocking and affect other services on the server

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
  • Client Heartbeat Renewal and Expiration Detection Method, Device, and Computer-Readable Medium
  • Client Heartbeat Renewal and Expiration Detection Method, Device, and Computer-Readable Medium
  • Client Heartbeat Renewal and Expiration Detection Method, Device, and Computer-Readable Medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods.

[0065] Wherein, the accompanying drawings are only for illustrative purposes, showing only schematic diagrams, rather than physical drawings, and should not be construed as limitations on this patent; in order to better illustrate the embodiments of the present invention, some parts of the accompanying drawings will be omitted, Enlargement or reduction does not represent the size of the actual product; for those skilled in the art, it is understandable that certain known structures and their descriptions in the drawings may be omitted.

[0066] In the drawings of the embodiments of the present invention, the same or similar symbols correspond to the same or similar components; , "inner", "outer" and other indicated orientations or positional relationships are based on the orientations or positional ...

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 discloses a client heartbeat renewal and expiration detection method, device and computer-readable medium, wherein the method comprises: setting a time slot width and a task scheduling period of a time wheel, and dividing a preset number of time slots; Update the heartbeat records generated by each client's renewal and store them in the storage node corresponding to the time slot to keep the client alive; calculate the time slot corresponding to the current heartbeat detection time, and perform an update of Expired heartbeats are detected in the heartbeat record, and expired heartbeats are read; the client corresponding to the read expired heartbeats is offline and the expired heartbeats are cleared. The invention performs heartbeat keep-alive and expired detection on the client through the time round algorithm. When the number of clients increases greatly, the load balance of read and write pressure can be ensured, and at the same time, the conventional heartbeat scheme can avoid batch deletion of long transactions with expired heartbeats. Issues affecting other services on the server side.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a client heartbeat renewal and expiration detection method, device and computer-readable medium. Background technique [0002] When the client is online, the server needs to reserve certain resources for the client and record some status, such as session (session control), websocket connection, client login status, etc. When the client is no longer active due to inactive logout due to network reasons or other reasons, it is necessary to detect the status expiration of the client and log off the client with the expired status in time to release the pre-allocated resources. [0003] At present, the heartbeat solution is often used to detect the client's keep-alive and expiration. The conventional heartbeat solution includes heartbeat renewal and expiration detection. Heartbeat renewal means that the client sends out heartbeats at intervals to indicate that it is still a...

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): G06F3/06G06F11/34
CPCG06F3/061G06F3/0631G06F11/3476
Inventor 庄汇嘉
Owner G NET INTEGRATED SERVICE
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