local-path-provisioner
local-path-provisioner copied to clipboard
Multiple Path Round Robin
Hi,
Thank you for this great project. I'm currently trying to deploy multiple instances of the minio operator. Unfortunately their privisioner https://github.com/minio/direct-csi doesn't support multiple storage classes when deploying multiple instances of it like this project does.
I'm wondering is it possible for this provisioner to create the pvs in each path of a config using round robin instead of at random? Then I could use this for everything which would be great.
Hi,
Thank you for this great project. I'm currently trying to deploy multiple instances of the minio operator. Unfortunately their privisioner https://github.com/minio/direct-csi doesn't support multiple storage classes when deploying multiple instances of it like this project does.
I'm wondering is it possible for this provisioner to create the pvs in each path of a config using round robin instead of at random? Then I could use this for everything which would be great.
Thanks for the idea and technically it's doable by having an extra layer to keep the path usage info. I will add to the backlog and see if any plan to do in the future.
@innobead I'd like to contribute to this feature if it's not too complicated, and I'm glad to get some guidence.
The first intuition after glanced the code:
- Add a per-node ConfigMap option like
policyto choose betweenrandomandround-robin, etc. - Store the runtime per-node current round-robin index in some variable somewhere.
- Implement a
getRoundRobinPathOnNode(). - Call
getRandomPathOnNode()orgetRoundRobinPathOnNode()depending on thepolicyconfig of the node.
Any thoughts?