Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

amitosh avatar image
amitosh asked ·

purpose of storage_weight and min_free_space in /etc/dse/dse.yaml file

While Enabling DSEFS for dse 5.1.16 in dsefs_options

What is the purpose of storage_weight and min_free_space in /etc/dse/dse.yaml file

dsefs
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

alex.ott avatar image
alex.ott answered ·

For storage_weight DataStax documentation says: "The weighting factor for this location specifies how much data to place in this directory, relative to other directories in the cluster. This soft constraint determines how DSEFS distributes the data. For example, a directory with a value of 3.0 receives about three times more data than a directory with a value of 1.0." This parameter could be used to influence the data placement algorithm, for example, if you have multiple disks, and some disks are bigger than other, and you want them to receive more data (by default algorithm is trying to spread load between all locations equally).

min_free_space defines how much disk space won't be used for storing data blocks - if the available disk space will go below this value, this location won't be used to store DSEFS data.

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.