Memory cluster storage balancing method and device

A balancing method and technology of a balancing device, applied in the database field, can solve problems such as bottlenecks, excessive concentration of partitioned data, overall performance, and failure to consider the impact of partitions, and achieve the effect of uniform distribution

Active Publication Date: 2020-03-20
CHINA TELECOM CLOUD TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen that the traditional consistent hash algorithm does not consider the impact of partitions, and directly processes data members on an equal basis. At the same time, the way of adding virtual nodes in recent years has exacerbated the uneven distribution of partitions. Therefore, it is necessary to solve the problem of excessive concentration of partition data on several services. Nodes cause overall performance bottlenecks

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
  • Memory cluster storage balancing method and device
  • Memory cluster storage balancing method and device
  • Memory cluster storage balancing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The following description of at least one exemplary embodiment is merely illustrative in nature and in no way taken as limiting the invention, its application or uses. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0020] Combine below figure 2 A memory cluster storage balancing method according to an embodiment of the present invention is described.

[0021] figure 2 It is a schematic flowchart showing an embodiment of the memory cluster storage balancing method of the present invention. Such as figure ...

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 memory cluster storage balancing method and device, and relates to the field of database. The method comprises the steps that a surface partition segment of an original first level key K1 is segmented to obtain patch numbers; according to the original level key K1, and the patch numbers, a balanced level key K1' is generated; the (K1', DO) data storage form is adopted to store the key value data; the original first level key K1 is the original logic key for the customized object DO, the original level key K1 comprises a database segment, a data table segment, and a table partition section, the balanced first level key K1' is a balanced logic key for the customized object DO. Thus the uniform distribution of the data in a memory cluster data node is achieved, and the memory capacity of the memory cluster storage is fully exploited.

Description

technical field [0001] The invention relates to the field of databases, in particular to a memory cluster storage balancing method and device. Background technique [0002] The proxy server performs a consistent hash on the keys in the cluster, ideally ensuring that the keys are evenly distributed on the cluster nodes. Because the data volume of partitions is usually different, the different data volumes of partitions will lead to unbalanced storage resource occupancy of cluster nodes. [0003] Such as figure 1 As shown, assume that the cluster has 4 nodes, and the storage of each node is 10. Store data in 8 partitions twice, store 4 partitions (4 keys) for the first time, and the data volume is 1, 2, 4, 8 respectively; store 4 partitions (4 keys) for the second time, the data volume Both are 2. If the partition data stored twice are evenly stored on 4 nodes, then the data volumes of the 4 nodes are 3, 4, 6, and 10 respectively. If you insert data into the cluster nodes...

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): G06F16/22
CPCG06F16/22G06F16/2255
Inventor 杨维
Owner CHINA TELECOM CLOUD 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