Merge pull request #2470 from tinyspeck/update-shard-key-docs

update docs to reflect that shard keyranges can be > 1 byte
This commit is contained in:
Michael Berlin 2017-01-26 14:00:50 -08:00 коммит произвёл GitHub
Родитель 13a50ec532 03a47527b3
Коммит 4d2d2fe6af
3 изменённых файлов: 30 добавлений и 10 удалений

Просмотреть файл

@ -96,6 +96,7 @@ Start=[], End=[]: Full Key Range
Start=[], End=[0x80]: Lower half of the Key Range. Start=[], End=[0x80]: Lower half of the Key Range.
Start=[0x80], End=[]: Upper half of the Key Range. Start=[0x80], End=[]: Upper half of the Key Range.
Start=[0x40], End=[0x80]: Second quarter of the Key Range. Start=[0x40], End=[0x80]: Second quarter of the Key Range.
Start=[0xFF00], End=[0xFF80]: Second to last 1/512th of the Key Range.
``` ```
Two key ranges are consecutive if the end value of one range equals the Two key ranges are consecutive if the end value of one range equals the
@ -117,6 +118,14 @@ full partition:
* 80-c0 * 80-c0
* c0- * c0-
Shards do not need to handle the same size portion of the key space. For example, the following five shards would also be a valid full partition, albeit with a highly uneven distribution of keys.
* -80
* 80-c0
* c0-dc00
* dc00-dc80
* dc80-
## Resharding ## Resharding
In Vitess, resharding describes the process of updating the sharding In Vitess, resharding describes the process of updating the sharding

Просмотреть файл

@ -21,20 +21,11 @@
<url> <url>
<loc>http://vitess.io/user-guide/horizontal-sharding.html</loc> <loc>http://vitess.io/user-guide/horizontal-sharding.html</loc>
</url> </url>
<url>
<loc>http://vitess.io/search/</loc>
</url>
<url>
<loc>http://vitess.io/about/</loc>
</url>
<url> <url>
<loc>http://vitess.io/overview/</loc> <loc>http://vitess.io/overview/</loc>
</url> </url>
<url> <url>
<loc>http://vitess.io/contributing/</loc> <loc>http://vitess.io/about/</loc>
</url>
<url>
<loc>http://vitess.io/getting-started/</loc>
</url> </url>
<url> <url>
<loc>http://vitess.io/terms/</loc> <loc>http://vitess.io/terms/</loc>
@ -42,6 +33,15 @@
<url> <url>
<loc>http://vitess.io/</loc> <loc>http://vitess.io/</loc>
</url> </url>
<url>
<loc>http://vitess.io/search/</loc>
</url>
<url>
<loc>http://vitess.io/getting-started/</loc>
</url>
<url>
<loc>http://vitess.io/contributing/</loc>
</url>
<url> <url>
<loc>http://vitess.io/user-guide/introduction.html</loc> <loc>http://vitess.io/user-guide/introduction.html</loc>
</url> </url>

Просмотреть файл

@ -388,6 +388,7 @@ value equal to or higher than 0x80 are assigned to the other shard.</p>
<span class="nv">Start</span><span class="o">=[]</span>, <span class="nv">End</span><span class="o">=[</span>0x80<span class="o">]</span>: Lower half of the Key Range. <span class="nv">Start</span><span class="o">=[]</span>, <span class="nv">End</span><span class="o">=[</span>0x80<span class="o">]</span>: Lower half of the Key Range.
<span class="nv">Start</span><span class="o">=[</span>0x80<span class="o">]</span>, <span class="nv">End</span><span class="o">=[]</span>: Upper half of the Key Range. <span class="nv">Start</span><span class="o">=[</span>0x80<span class="o">]</span>, <span class="nv">End</span><span class="o">=[]</span>: Upper half of the Key Range.
<span class="nv">Start</span><span class="o">=[</span>0x40<span class="o">]</span>, <span class="nv">End</span><span class="o">=[</span>0x80<span class="o">]</span>: Second quarter of the Key Range. <span class="nv">Start</span><span class="o">=[</span>0x40<span class="o">]</span>, <span class="nv">End</span><span class="o">=[</span>0x80<span class="o">]</span>: Second quarter of the Key Range.
<span class="nv">Start</span><span class="o">=[</span>0xFF00<span class="o">]</span>, <span class="nv">End</span><span class="o">=[</span>0xFF80<span class="o">]</span>: Second to last 1/512th of the Key Range.
</code></pre></div> </code></pre></div>
<p>Two key ranges are consecutive if the end value of one range equals the <p>Two key ranges are consecutive if the end value of one range equals the
start value of the other range.</p> start value of the other range.</p>
@ -410,6 +411,16 @@ full partition:</p>
<li>c0-</li> <li>c0-</li>
</ul> </ul>
<p>Shards do not need to handle the same size portion of the key space. For example, the following five shards would also be a valid full partition, albeit with a highly uneven distribution of keys.</p>
<ul>
<li>-80</li>
<li>80-c0</li>
<li>c0-dc00</li>
<li>dc00-dc80</li>
<li>dc80-</li>
</ul>
<h2 id="resharding">Resharding</h2> <h2 id="resharding">Resharding</h2>
<p>In Vitess, resharding describes the process of updating the sharding <p>In Vitess, resharding describes the process of updating the sharding