Unlock instant, AI-driven research and patent intelligence for your innovation.

Newly added load node shunting method and storage medium

A load node and newly added technology, which is applied in the field of new load node distribution, can solve the problems of unbalanced distribution of node requests, service unavailability, and lack of intelligence, so as to prevent excessive load pressure from collapsing, improve traffic throughput, The effect of improving usability

Active Publication Date: 2019-11-12
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using the polling method will cause the requests to be evenly distributed to each node, and the traffic borne by the newly added nodes is always lower than that of the old nodes, resulting in an unbalanced distribution of requests from each node; while the weight method, although it can be used in the short term Make the new nodes achieve balance, but the weight method needs to be modified frequently in the future, which is not very smart. At the same time, if the weight of the newly added nodes is set too large, it may directly cause the newly added nodes to be in a short period of time. Big and crashed, rendering the service unavailable

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
  • Newly added load node shunting method and storage medium
  • Newly added load node shunting method and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Please refer to figure 2 , this embodiment provides a distribution method for newly added load nodes for the situation of newly added nodes in the distributed system, so as to achieve relatively balanced load of each node in the system and improve cluster availability. This embodiment is applicable to software such as mongo or cassandra or other database storage, and when it is deployed in a cluster, multiple distributed nodes will be deployed.

[0043] This embodiment specifically includes the following steps:

[0044] S1: After the new node joins the cluster system, it will register with the central node of the cluster and provide its own relevant information, which includes its own server name, intranet IP, port and other configuration information. After registration, the new node will contact the central The node establishes an association, and the central node can send a request to the new node accordingly;

[0045] Particularly, in this embodiment, the informat...

Embodiment 2

[0060] This embodiment corresponds to Embodiment 1, and provides a computer-readable storage medium on which a computer-readable program is stored. When the program is executed by a processor, the newly added load described in Embodiment 1 above can be implemented. The steps included in the node splitting method, the specific steps are not repeated here, please refer to the description of the first embodiment for details.

[0061] To sum up, the method and storage medium for a newly added load node distribution provided by the present invention can not only overcome the problem of the collapse of the new node due to excessive short-term load pressure; The load is relatively balanced, thereby significantly improving the availability of the cluster; further, it also has the advantages of high practicability and low implementation difficulty.

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 provides a newly added load node shunting method and a storage medium. The method comprises the following steps that: each node attaches the disk utilization rate of a self server to a heartbeat packet periodically sent to a central node; slowly writing the data into the newly added node at a preset speed until the disk utilization rate corresponding to the newly added node reaches afirst preset value; and after the disk usage rate corresponding to the newly added node reaches a first preset value, calculating the flow allocated to the newly added node according to a formula 1 / total proportion part * maximum proportion. According to the method, the problem that the new node collapses due to overlarge short-term load pressure can be solved; and the load of each node of the system can be relatively balanced as soon as possible after the new node is added, so that the availability of the cluster is remarkably improved.

Description

technical field [0001] The invention relates to the field of distributed nodes, in particular to a method and a storage medium for shunting traffic of newly added load nodes. Background technique [0002] In many projects, because of the large amount of data, many systems or software now use distributed deployment methods for project deployment or system deployment. Among them, the software that needs to be deployed in a distributed manner is most often deployed in a cluster mode. Multiple service nodes are implemented inside the cluster, each service node provides the same function, and there is a unified traffic entrance externally. Traffic diversion can be realized in a strategic way. For example, if a request goes to node a this time, it will go to node b next time according to certain rules. [0003] In this case, if there are not enough service nodes, it is necessary to add new service nodes to provide more traffic throughput. Generally, each cluster has a central no...

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 Applications(China)
IPC IPC(8): H04L12/803G06F9/50
CPCH04L47/125G06F9/5083G06F2209/5022
Inventor 刘德建林伟郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD