Files
nexus/sreweekly/markdown/138/03-colmmacc-on-twitter-shuffle-sharding.md
2026-09-12 17:23:01 +08:00

75 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# @colmmacc on Twitter: shuffle sharding
- **期号**: SRE Weekly Issue #138(2018-09-09)
- **作者**: Colm MacCárthaigh — AWS (thanks to Thread Reader for the thread rollup)
- **链接**: https://threadreaderapp.com/thread/1034492056968736768.html?utm_source=last_week_in_AWS&utm_medium=newsletter&utm_campaign=website&utm_source=Last%20Week%20in%20AWS&utm_medium=email
## 简介
Colm MacCárthaigh explains how shuffle sharding improves reliability by acting like some kind of magic lever made of math.
## 正文
![Profile picture](https://threadreaderapp.com/images/avatars/14340150.jpg)
[@colmmacc](https://twitter.com/colmmacc)
![Profile picture](https://threadreaderapp.com/images/Twitter_Logo_Blue.png)
![](https://pbs.twimg.com/media/DltAuMNUYAEJCIQ.jpg)
![](https://pbs.twimg.com/media/DltBh42U0AAMmPC.jpg)
![](https://pbs.twimg.com/media/DltDnteV4AAbU90.jpg)
![](https://pbs.twimg.com/media/DltD33yUwAEUW0r.jpg)
![](https://pbs.twimg.com/media/DltEIgdUcAAPYNR.jpg)
![](https://pbs.twimg.com/media/DltEYYJVsAA-skb.jpg)
![](https://pbs.twimg.com/media/DltExMVU4AAeuzQ.jpg)
![](https://pbs.twimg.com/media/DltFB1GU0AAOaOr.jpg)
![](https://pbs.twimg.com/media/DltFUTFU8AArQqH.jpg)
![](https://pbs.twimg.com/media/DltFfyOVAAAmLHD.jpg)
![](https://pbs.twimg.com/media/DltGd1YVsAAfiaS.jpg)
![](https://pbs.twimg.com/media/DltGkZNV4AA1B3v.jpg)
![](https://pbs.twimg.com/media/DltGzsTU0AE5ndd.jpg)
![](https://pbs.twimg.com/media/DltHNnpUcAAIA_A.jpg)
![](https://pbs.twimg.com/media/DltHvLsUYAA9qSO.jpg)
![](https://pbs.twimg.com/media/DltIKmiVAAAwN_u.jpg)
![](https://pbs.twimg.com/media/DltItHJUwAAPz86.jpg)
[gist.github.com/colmmacc/4a39a…](https://gist.github.com/colmmacc/4a39a6416d2a58b6c70bc73027bea4dc). Try it for Route 53's numbers. There are 2048 Route 53 virtual name servers, and each hosted zone is assigned to 4. So n = 2048, and m = 4.
[github.com/awslabs/route5…](https://github.com/awslabs/route53-infima)
![](https://pbs.twimg.com/media/DltKPTxVsAAQdbp.jpg)
![](https://pbs.twimg.com/media/DltK8nhVAAAVigC.jpg)
[en.wikipedia.org/wiki/Lottery_m…](https://en.wikipedia.org/wiki/Lottery_mathematics)has good background on how we then come to this equation ...
![](https://pbs.twimg.com/media/DltL6nmV4AAAdee.jpg)
![](https://pbs.twimg.com/media/DltMSIyUcAA6LqM.jpg)
![](https://pbs.twimg.com/media/DltMc-AU8AAcCWB.jpg)
![](https://pbs.twimg.com/media/DltMur_UwAAeJ0f.jpg)
![](https://pbs.twimg.com/media/DltNCQxUwAAc2xl.jpg)