Anyone using multiple workers in single cluster? I...
# prefect-kubernetes
k
Anyone using multiple workers in single cluster? I inherited a cloud deployment with 5 agents. After upgrading to Worker model (5 workers), I am seeing each of them attempt to submit a flow, with a Job error. Does this smell like unnecessary duplicate infra?
k
I'm not sure why you'd need more than one worker since its job is just to talk to the k8s api
upvote 1
k
My thoughts as well. What if multiple jobs get kicked off at the same time? Do you know if the worker would sequentially kick off those k8s jobs and have delay
probably insignificant delay if any
k
it creates new threads for job submission, so while code execution is technically still sequential, it's mostly i/o waiting so the delay between anything that happens on the worker is just the time it takes to move between making requests
in other words it's pretty fast
it's fine to have multiple workers in a single work pool if you wanted to separate deployments across multiple queues and each worker is responsible for its own set of queues. but otherwise I wouldn't have more than one
k
gratitude thank you
Reduced to 1 and seeing some random improvements, less Job scheduling errors
Maybe worth including in docs "Upgrading Agents to Workers" 🤷