DevOps-Nirvana / Kubernetes-Volume-Autoscaler

Autoscaling volumes for Kubernetes (with the help of Prometheus)
Apache License 2.0
274 stars 33 forks source link

Trigger on inodes count #18

Closed piec closed 1 year ago

piec commented 1 year ago

Hi,

Sometimes a volume is full because there is no free inode left, while the capacity usage is still low. This happens when you have lots of small files for example. The feature request would be to add a new resize condition based on the inodes free/count ratio (based on kubelet_volume_stats_inodes* metrics for example)

Cheers, Pierre

AndrewFarley commented 1 year ago

I've just implemented this, will test it shortly and then release it.

AndrewFarley commented 1 year ago

Released feature in 1.0.8

piec commented 1 year ago

Awesome :smiley:! I will also test it

piec commented 1 year ago

I tested it and it works for me :+1: , thanks

AndrewFarley commented 1 year ago

@piec Thanks for the awesome feature request! I've never had to scale on tons of little files myself in recent history, but I've definitely had this problem in the past so it's good to be able to handle it for those rare use-cases and systems which needs lots of small files. It was an easy add as well, so no worries! Cheers!