Method and device for updating routing information
An information update and routing technology, applied in the Internet field, can solve the problem of increasing the burden of the distributed KV storage system, and achieve the effect of load distribution balance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] suppose as Figure 2a There are currently 12 virtual nodes n in the distributed KV storage system shown 1 ~n 12 , 2 storage server PN 1 、PN 2 . For ease of description, this state is referred to as state 1 below.
[0069] At this time, if a linear table is used to save the mapping relationship between virtual nodes and storage servers, it will be shown in Table 1 below:
[0070] Table 1:
[0071] 1
2
3
4
5
6
7
8
9
10
11
12
PN 1
PN 2
PN 1
PN 2
PN 1
PN 2
PN 1
PN 2
PN 1
PN 2
PN 1
PN 2
[0072] Numbers in the first row in Table 1 represent virtual nodes n 1 ~n 12 (the number of the virtual node can also be understood as the digital identification of the virtual node) and the number in the second line represents the number of the storage server corresponding to the virtual node (the number of the storage server can also be understood as the digit...
Embodiment 2
[0095] Embodiment 2 provides a solution for determining the number of virtual nodes corresponding to a storage server. When there are N virtual nodes {n 1 ,n 2 ,n 3 ,n 4 …n N} is mapped to M storage servers {m 1 ,m 2 ,...m M}, assuming that the xth storage server m x The corresponding virtual node is {n x1 ,n x2 ,...n xy}(where, y≤Y x , Y x for the storage server m x The number of corresponding virtual nodes Y x ), then Y x The calculation formula of is shown in formula [1] mentioned above:
[0096] Y x = [ N - Σ d = 0 x - 1 Y d M + 1 - x ...
Embodiment 3
[0124] Embodiment 3 uses the same technical means as Embodiment 2 to determine the number of virtual nodes corresponding to the storage server, that is, the number is determined according to the above formula [1]. However, the difference from implementation 2 is that when a storage server is added to the distributed KV storage system, the virtual node is selected according to the virtual node selection rule different from formula [2] in embodiment 3.
[0125] For example, when the distributed KV storage system contains 12 virtual nodes and a storage server PN 1 When, PN 1 The mapping relationship with virtual nodes is shown in Table 10 below, that is, PN 1 with all virtual nodes n 1 ~n 12 Corresponding.
[0126] Table 10:
[0127] PN 1
n 1
n 2
n 3
n 4
n 5
n 6
n 7
n 8
n 9
n 10
n 11
n 12
[0128] When a storage server PN is added to the distributed KV storage system 2 After that, as shown in the formula [3]...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 