Hi Team, I was going through the external resourc...
# pyflink
n
Hi Team, I was going through the external resources implementation in Flink. Our usecase is we have to to model inference over the data that we receive, which requires GPU. As per the doc we have tried implementing the same, by setting up the values for nvidia. What we have observed is that - when we setup the amount = 1, each task manager that we spawn will start taking the single GPU each. This inturn is causing a critical resource scaling issue - say if we want 10TM then we need 10GPU's which is pretty costly. Is there a way by which we can solve this case, any kind of resource sharing mechanisms, or do we need to go ahead with a model server architecture. Note - we are using Nvidia T4 GPU nodes where CPU=4 , memory=28GB #pyflink #troubleshooting
a
As far as I am aware there is not an efficient way to use Flink with GPUs and you would be better off having an external call to more efficiently use the hardware. That being said there have been a few conversations in the dev mailing list and FLIPs and given the flink agents work, I am sure this is being worked on.
b
It does depend a bit on your setup, and how you've set up resource isolation. Effectively every task slot is another program that competes for resources with the pod it's in. As @Alexander Matheson says there's nothing special, but also nothing limiting. Asumming you're in k8s it's mostly a k8s issue.