Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] PV anti-affinity over all host paths #257

Open
ccll opened this issue Jul 4, 2022 · 2 comments
Open

[Question] PV anti-affinity over all host paths #257

ccll opened this issue Jul 4, 2022 · 2 comments
Labels
enhancement New feature or request Investigate

Comments

@ccll
Copy link

ccll commented Jul 4, 2022

The doc says:
image

Imaging I have 3 NVMEs and I'd like to deploy 3 database replicas on the node, where the data was replicated internally by the DBMS, naturally the 3 PVs should be provisioned on each NVME.

So are there any ways to do anti-affinity like this? Maybe a simple round-robin policy (instead of random policy) to choose the underlying path?

@ccll ccll changed the title [Question] Spread PVC over all host paths [Question] PV anti-affinity over all host paths Jul 4, 2022
@ccll
Copy link
Author

ccll commented Jul 4, 2022

Looks there were some discussions on this topic #151.

@derekbit derekbit added enhancement New feature or request Investigate labels Dec 17, 2022
@Clara12062
Copy link

Hello~ @derekbit Is there a plan to solve this issue?

I also have the same problem. Currently, multiple disks correspond to multiple mountpoints, which are added to the configmaps. However, the local-path-provisioner randomly selects a path. The storageclass can only choose one of the paths. It is not very convenient for the scenario of multiple disks and multiple paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Investigate
Projects
None yet
Development

No branches or pull requests

3 participants