Skip to content

Accept human-readable sizes for keyspace --max-storage and --storage - #1463

Open
inelpandzic wants to merge 3 commits into
mainfrom
inel/vitess-storage-settings
Open

inelpandzic wants to merge 3 commits into
mainfrom
inel/vitess-storage-settings

Conversation

@inelpandzic

@inelpandzic inelpandzic commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

pscale keyspace update-settings --max-storage and --storage now accept sizes with a unit, such as 200GiB or 1.5TiB, in addition to a plain byte count.

pscale keyspace update-settings commerce main commerce --org myorg  --disk-scaling-strategy grow--max-storage 1TiB
pscale keyspace update-settings commerce main commerce --org myorg --disk-scaling-strategy shrink --storage 200GiB

Plain integers are still parsed exactly, so existing scripts that pass bytes are unaffected. Values that are zero or negative, not a valid size, or too large to fit in an int64 are rejected before any API call, and --storage must still be a multiple of 1 GiB. The --max-storage help text also documents the server-side limits.

Fixes https://github.com/planetscale/issues/issues/2020

@inelpandzic
inelpandzic requested a review from a team as a code owner October 5, 2026 15:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants