local-path-provisioner: Capacity limit is ignored

Hi there!

On the README I read:

Cons
No support for the volume capacity limit currently.
The capacity limit will be ignored for now.

This means the Local path Provisioner does not respect the limits atm, right?

Are there any plans to implement this and if yes, when could we expect this? This would be a really needed feature. Otherwise one has no control - at least not within Kubernetes - for to avoid potential disk overflow.

best Martin

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 7
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Can this be re-opened? I think this would be a wonderful feature to add. It’s listed in the README as a drawback

is there any future plan to support capacity limit?

Hi @derekbit Rancher 2.6.8 Provider: RKE1 Kubernetes Version: v1.23.8 SSD NVME on each of our 3 Server in the Kubernetes Cluster Network: 1Gbps We are curently using lpp to create volumes directly on our SSD disks, which works perfect. Only thing is missing is the limit.

I see. In Longhorn, each volume has one or multiple replicas. The network is only 1Gbps which is a bit slow for Longhorn. However, in your use case, you use a volume with a local replica (set volume dataLocality to strict-local), ss the network is not an issue. You can try Longhorn v1.4.3 first and see if everything is ok. https://longhorn.io/docs/1.4.3/

Will Longhorn strict-local volume has exactly the same performance as local Volume (provisioned via local-path-provisioner)? Or there is some overhead that will make it slower?

No. There is extra performance overhead in Longhron v1 strict-local volume.

Hi @derekbit

Rancher 2.6.8 Provider: RKE1 Kubernetes Version: v1.23.8 SSD NVME on each of our 3 Server in the Kubernetes Cluster Network: 1Gbps

We are curently using lpp to create volumes directly on our SSD disks, which works perfect. Only thing is missing is the limit.

I see. In Longhorn, each volume has one or multiple replicas. The network is only 1Gbps which is a bit slow for Longhorn. However, in your use case, you use a volume with a local replica (set volume dataLocality to strict-local), ss the network is not an issue. You can try Longhorn v1.4.3 first and see if everything is ok. https://longhorn.io/docs/1.4.3/