flavienbwk
08/06/2021, 8:32 AMresources
parameters to specify resource affinities (RAM, CPU cores, GPU environment) a Flow requires to be run ?
Ex (Kubernetes) :
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
Thanks !Kevin Kho
flow.run_config = KubernetesRun(cpu_request=2, memory_request="2Gi")
as seen here . If you need affinity, for example you need a flow to run on a specific node, you can use nodeAffinity in the job template. Does that answer you?flavienbwk
08/06/2021, 1:40 PMKubernetesRun
?Kevin Kho
flavienbwk
08/06/2021, 1:48 PMKevin Kho
flavienbwk
08/06/2021, 1:52 PMKevin Kho
flavienbwk
08/06/2021, 2:00 PM(cpu_request=2, memory_request="2Gi")
) to an agent with sufficient resources.Kevin Kho
flavienbwk
08/06/2021, 2:13 PMKevin Kho
flavienbwk
08/06/2021, 2:19 PMcuda
). And this is what I'll be using for the moment while I don't have Kubernetes.
BUT, for quantities-related characteristics (such as RAM amount or CPU count), it can't really be used.Zanie
flavienbwk
08/07/2021, 9:18 AMZanie
flavienbwk
08/09/2021, 2:58 PMZanie
flavienbwk
08/09/2021, 4:09 PM