Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5814,6 +5814,11 @@ int32
<td>
<p>HexWidth is the number of hex characters to use for the shard range start and end.
If not set or set to 0, it will be automatically computed based on the number of requested shards.</p>
<p>WARNING: DO NOT change the hex width in a partitioning after deploying.
That&rsquo;s effectively deleting the old partitioning and adding a new one,
which can lead to downtime or data loss. Instead, add an additional
partitioning with the desired hex width, perform a resharding
migration, and then remove the old partitioning.</p>
</td>
</tr>
<tr>
Expand Down
5 changes: 5 additions & 0 deletions docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5816,6 +5816,11 @@ <h3 id="planetscale.com/v2.VitessKeyspaceEqualPartitioning">VitessKeyspaceEqualP
<td>
<p>HexWidth is the number of hex characters to use for the shard range start and end.
If not set or set to 0, it will be automatically computed based on the number of requested shards.</p>
<p>WARNING: DO NOT change the hex width in a partitioning after deploying.
That&rsquo;s effectively deleting the old partitioning and adding a new one,
which can lead to downtime or data loss. Instead, add an additional
partitioning with the desired hex width, perform a resharding
migration, and then remove the old partitioning.</p>
</td>
</tr>
<tr>
Expand Down
7 changes: 7 additions & 0 deletions pkg/apis/planetscale/v2/vitesskeyspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ type VitessKeyspaceEqualPartitioning struct {

// HexWidth is the number of hex characters to use for the shard range start and end.
// If not set or set to 0, it will be automatically computed based on the number of requested shards.
//
// WARNING: DO NOT change the hex width in a partitioning after deploying.
// That's effectively deleting the old partitioning and adding a new one,
// which can lead to downtime or data loss. Instead, add an additional
// partitioning with the desired hex width, perform a resharding
// migration, and then remove the old partitioning.
//
// +kubebuilder:default=0
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=65536
Expand Down