Replies: 1 comment 1 reply
-
Hey @jsshizhan! I converted this to a discussion since it seemed more like a question than a bug report. If you want to control the nodes that your flows run on, you can use Kubernetes node labels and selectors. When you use a Kubernetes worker, each flow run is executed in a separate Kubernetes job. You can control the configuration of that created job via the base job template of the work pool from which your worker is pulling work. For example, if you have your GPU nodes labeled a type GPU:
You could add the following to your work pool's base job template to only run on those nodes: {
...
"job_configuration":
...
"spec": {
...
"nodeSelector": {
"type": "gpu"
}
}
}
} If you want to make sure that only one flow runs on each node at a time, you can use pod labels to implement anti-affinity between pods. Once again, you can customize this via the base job template for your work pool. Let me know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
Bug summary
100 flow run,k8s cluster have 10 gpu device ,one gpu device run a flow run,how to manage the gpu device and flow run
Version info
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions