Skip to content

Commit e635ad2

Browse files
committed
[zh] Update shuffle-sharding.md
Signed-off-by: xin.li <[email protected]>
1 parent 7e386e5 commit e635ad2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

content/zh/docs/reference/glossary/shuffle-sharding.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 混排切片(Shuffle Sharding)
3-
id: shuffle-sharding
3+
id: shuffle sharding
44
date: 2020-03-04
55
full_link:
66
short_description: >
@@ -40,8 +40,8 @@ We are often concerned with insulating different flows of requests
4040
from each other, so that a high-intensity flow does not crowd out low-intensity flows.
4141
A simple way to put requests into queues is to hash some
4242
characteristics of the request, modulo the number of queues, to get
43-
the index of the queue to use. The hash function uses as input
44-
characteristics of the request that align with flows. For example, in
43+
the index of the queue to use. The hash function uses as input
44+
characteristics of the request that align with flows. For example, in
4545
the Internet this is often the 5-tuple of source and destination
4646
address, protocol, and source and destination port.
4747
-->
@@ -57,21 +57,21 @@ address, protocol, and source and destination port.
5757
That simple hash-based scheme has the property that any high-intensity flow
5858
will crowd out all the low-intensity flows that hash to the same queue.
5959
Providing good insulation for a large number of flows requires a large
60-
number of queues, which is problematic. Shuffle sharding is a more
60+
number of queues, which is problematic. Shuffle sharding is a more
6161
nimble technique that can do a better job of insulating the low-intensity
62-
flows from the high-intensity flows. The terminology of shuffle sharding uses
62+
flows from the high-intensity flows. The terminology of shuffle sharding uses
6363
the metaphor of dealing a hand from a deck of cards; each queue is a
64-
metaphorical card. The shuffle sharding technique starts with hashing
64+
metaphorical card. The shuffle sharding technique starts with hashing
6565
the flow-identifying characteristics of the request, to produce a hash
66-
value with dozens or more of bits. Then the hash value is used as a
66+
value with dozens or more of bits. Then the hash value is used as a
6767
source of entropy to shuffle the deck and deal a hand of cards
68-
(queues). All the dealt queues are examined, and the request is put
69-
into one of the examined queues with the shortest length. With a
68+
(queues). All the dealt queues are examined, and the request is put
69+
into one of the examined queues with the shortest length. With a
7070
modest hand size, it does not cost much to examine all the dealt cards
7171
and a given low-intensity flow has a good chance to dodge the effects of a
72-
given high-intensity flow. With a large hand size it is expensive to examine
72+
given high-intensity flow. With a large hand size it is expensive to examine
7373
the dealt queues and more difficult for the low-intensity flows to dodge the
74-
collective effects of a set of high-intensity flows. Thus, the hand size
74+
collective effects of a set of high-intensity flows. Thus, the hand size
7575
should be chosen judiciously.
7676
-->
7777
这种简单的基于哈希的模式有一种特性,高密度的请求序列(流)会湮没那些被

0 commit comments

Comments
 (0)