An optimization method and terminal for health detection

A health detection and optimization method technology, applied in the field of distributed systems, can solve problems such as resource occupation, application rigidity, slow response, etc., and achieve the effect of increasing load capacity, avoiding request congestion, and high pertinence

Active Publication Date: 2022-07-26
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the increase of applications, the reverse proxy server will also need to perform health checks on the increased expansion applications. In the prior art, the implementation of health checks on applications requires the reverse proxy server to regularly send heartbeat packets to the applications it accesses. , when the number of applications to be detected reaches a certain number, it will have some adverse effects on the performance of the reverse proxy server; moreover, health detection will take up a lot of resources
At the same time, the general reverse proxy server only performs general availability checks on the accessed applications. If there are some applications that are dead, slow in response, or other non-unusable problems (that is, the applications can be used normally, but the efficiency is low) then no effective control

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
  • An optimization method and terminal for health detection
  • An optimization method and terminal for health detection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Please refer to figure 1 , the first embodiment of the present invention is:

[0077] An optimization method for health detection, including steps:

[0078] S1. Set up a health detection cluster, where the health detection cluster includes more than one health detection node;

[0079] In S1, each of the health detection nodes corresponds to more than one application node;

[0080] Each of the health detection nodes includes a master node and a backup node;

[0081] In an optional implementation manner, the application nodes all access the reverse proxy server;

[0082] S2. Receive a health degree rule, where the health degree rule includes a health degree detection attribute and a health degree threshold corresponding to each application node;

[0083] The health detection node saves the health degree rules in memory;

[0084] In an optional embodiment, the health detection node may store the health degree rules of its corresponding application nodes in the memory,...

Embodiment 2

[0090] An optimization method for health detection, which is different from Embodiment 1 in that:

[0091] In S2, the health degree detection attribute includes the interface address corresponding to the application node, the request parameter, the upper limit of the interface response time and the list of key interfaces, and the list of key interfaces includes the address of the key interface, the request parameter of the key interface and the upper limit of the response time of the key interface;

[0092] S3 is specifically:

[0093] Send a heartbeat detection packet to the application node through the health detection node every preset period, if no response message from the application node is received for three consecutive periods, output the abnormality message of the application node availability, otherwise, execute S31;

[0094] S31. Perform health degree detection on the application node to be detected according to the interface address and the request parameter, and ...

Embodiment 3

[0107] Apply the above-mentioned optimization method of health detection to the actual scene:

[0108] Suppose there is an Nginx cluster, a Redis cluster, and a health detection cluster (there are 4 instances in this cluster, that is, 4 health detection nodes check1 to check4), and 10 business instances corresponding to 10 application nodes (busi1 to busi10) ); the application node includes a login interface (A interface), an interface for obtaining user information (B interface) and a token verification interface (C interface), and they are all key interfaces. Under normal circumstances, the response time of the A interface is 1 seconds, the response time of interface B is 0.5 seconds, and the response time of interface C is 0.1 seconds;

[0109] A1. Set the corresponding relationship between the health detection node and the application node: check1 corresponds to busi1 to busi5, check3 corresponds to busi6 to busi10; and configure check1 as the master node, check2 as the st...

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 an optimization method and terminal for health detection. A health detection cluster is set up, and the health detection cluster includes more than one health detection node; degree threshold; according to the health degree detection attribute, the node health degree is obtained by performing health detection on the application node to be detected by the health detection node, and judges whether the node health degree is greater than the health degree threshold corresponding to the application node to be detected, if not, disconnect The external service of the application node to be detected; the invention realizes the personalized configuration of each application node according to the health degree detection attribute and the health degree threshold value customized for each application node, and has high pertinence, and improves the health detection data through the health detection cluster. It can receive and process a larger amount of application node health data, so as to realize comprehensive health detection of applications.

Description

technical field [0001] The invention relates to the field of distributed systems, and in particular, to an optimization method and terminal for health detection. Background technique [0002] Many server systems are now deployed in a distributed manner. When the client initiates a request to the server, and the request reaches the server, it usually first reaches a reverse proxy server such as Nginx, and then Nginx forwards the request traffic to any application on the backend through a certain policy allocation. The application handles the request and returns data to the client. Such an architecture can dynamically expand the number of applications horizontally, which can greatly increase the throughput of the server processing requests. However, with the increase of applications, the reverse proxy server will also need to perform health detection on the increased capacity expansion applications. In the prior art, to realize the health detection of applications, the rever...

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 & AuthorityPatents(China)
IPC IPC(8): G06F11/30G06F11/34
CPCG06F11/3006G06F11/3037G06F11/3041G06F11/3409
Inventor刘德建林伟陈宏
OwnerFUJIAN TIANQUAN EDUCATION TECH LTD