Understanding store size limits


I have a crdb cluster and one of the node is short on disk.

When this node is in the cluster, crdb has a tendendy of using all the available disk space up until there is no space disk left and then the node becomes dead.

I suppose this is because by default store size is 100% according to https://www.cockroachlabs.com/docs/stable/start-a-node.html

If I set size = 90%, does that mean

  • that cockroach will stop adding new replicas to this node when there is less than 10% disk space left
  • or that cockroach will consider that 90% of the total disk space should be available for it and not check on the disk space left

I am trying to see how I can set a sort “dynamic” size that would take into account how the disk is used by other applications.

I am ok if cockroach uses all the available disk space up until the available disk space left is for example 1GiB

Is there a way to do that ?

Hi @jerome. Unfortunately, I don’t think there’s a way to do what you’re
asking. If you set the size of a store to ‘90%’, then we use up to 90% of
the total space on your disk. Once that 90% is hit, we’ll attempt to
rebalance data to other nodes with available capacity. Then, when there’s
no capacity elsewhere, this limit will be exceeded.

However, if it’s important to you, please do feel free to file an issue
with your setup and some details & background on why this is needed. Thanks!

Thank you for you response.

I will try and use the current settings. If needed, I’ll create an issue as you said.