File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -5814,6 +5814,11 @@ int32
58145814<td >
58155815<p >HexWidth is the number of hex characters to use for the shard range start and end.
58165816If not set or set to 0, it will be automatically computed based on the number of requested shards.</p >
5817+ <p >WARNING: DO NOT change the hex width in a partitioning after deploying.
5818+ That&rsquo ; s effectively deleting the old partitioning and adding a new one,
5819+ which can lead to downtime or data loss. Instead, add an additional
5820+ partitioning with the desired hex width, perform a resharding
5821+ migration, and then remove the old partitioning.</p >
58175822</td >
58185823</tr >
58195824<tr >
Original file line number Diff line number Diff line change @@ -5816,6 +5816,11 @@ <h3 id="planetscale.com/v2.VitessKeyspaceEqualPartitioning">VitessKeyspaceEqualP
58165816< td >
58175817< p > HexWidth is the number of hex characters to use for the shard range start and end.
58185818If not set or set to 0, it will be automatically computed based on the number of requested shards.</ p >
5819+ < p > WARNING: DO NOT change the hex width in a partitioning after deploying.
5820+ That’s effectively deleting the old partitioning and adding a new one,
5821+ which can lead to downtime or data loss. Instead, add an additional
5822+ partitioning with the desired hex width, perform a resharding
5823+ migration, and then remove the old partitioning.</ p >
58195824</ td >
58205825</ tr >
58215826< tr >
Original file line number Diff line number Diff line change @@ -359,6 +359,13 @@ type VitessKeyspaceEqualPartitioning struct {
359359
360360 // HexWidth is the number of hex characters to use for the shard range start and end.
361361 // If not set or set to 0, it will be automatically computed based on the number of requested shards.
362+ //
363+ // WARNING: DO NOT change the hex width in a partitioning after deploying.
364+ // That's effectively deleting the old partitioning and adding a new one,
365+ // which can lead to downtime or data loss. Instead, add an additional
366+ // partitioning with the desired hex width, perform a resharding
367+ // migration, and then remove the old partitioning.
368+ //
362369 // +kubebuilder:default=0
363370 // +kubebuilder:validation:Minimum=0
364371 // +kubebuilder:validation:Maximum=65536
You can’t perform that action at this time.
0 commit comments