Open abowloflrf opened 2 years ago
Hi, @abowloflrf . First of all, much thanks for reporting this issue. From my perspective, it's the stale document on the website that provides you with misleading information. Apology for that.
The document you followed is written with Fluid version before v0.6.0, which may have different behaviors when using Fluid v0.7.0. Would you mind trying the document on our Github repo here? It's latest document fit for Fluid v0.7.0.
Besides, if you'd like to schedule workload pod to be co-locate with the data cache in Fluid v0.7.0+, please follow the "Pod调度优化“ docuement.
Again, thanks for reporting this issue. We'll fix the website soon.
Hi, @abowloflrf . First of all, much thanks for reporting this issue. From my perspective, it's the stale document on the website that provides you with misleading information. Apology for that.
The document you followed is written with Fluid version before v0.6.0, which may have different behaviors when using Fluid v0.7.0. Would you mind trying the document on our Github repo here? It's latest document fit for Fluid v0.7.0.
Besides, if you'd like to schedule workload pod to be co-locate with the data cache in Fluid v0.7.0+, please follow the "Pod调度优化“ docuement.
Again, thanks for reporting this issue. We'll fix the website soon.
@TrafalgarZZZ That resolves my confusion. Thanks for replying!
I'll keep this issue open until the website is updated.
[BUG] Workload Pod scheduling does not satisfy the affinity of Dataset
What is your environment(Kubernetes version, Fluid version, etc.)
Fluid Version: fluid-dataset-controller:v0.7.0-3d66068 Kubernetes Version: v1.20.8
Describe the bug
I'm following the case on the official documents to test the dataset affinity feature.
Nodes with labels:
After creating the dataset with affinity, the Alluxio Worker Pods are created with the same affinity settings and scheduled as expected.
But then I created a Deployment to mount the generated PVC, the workload Pod was scheduled not as the Dataset affinity setting (nodeSelector
test=lrf
)What you expect to happen:
The workload Pod
lrf-nginx-7f4cbcb4db-s8q9q
should not be scheduled.How to reproduce it
Additional Information
The PV created by Fluid is offered below, is this because the PV created by Fluid was not set the affinity correctly?
https://github.com/fluid-cloudnative/fluid/blob/c89748dc79a828f6bffbe26a63f7ae6b59c93e83/pkg/utils/dataset/volume/create.go#L34-L95