https://prefect.io logo
Title
j

jaehoon

06/27/2022, 12:30 PM
Hello everyone! I'm running flows using 1 prefect agent. However, as the number of flowruns increases, we want to increase the number of agents to more than two. But there is a problem. When two agents are set to the same label, if the concurrency of the label is 6, I would like to take 3 flowruns per agent. However, contrary to my expectation, the situation where 1 agent takes 5 and the remaining agent takes 1 continues. How do we address this imbalance? please help me!!!
k

Kevin Kho

06/27/2022, 3:17 PM
Prefect 1 does not have this sort of load balancing so it’s whichever picks up the flow first. You would need to be more explicit about labels so balance the flows across the two agents
j

jaehoon

06/28/2022, 2:29 AM
Okay, I'm sorry...
I searched and found how to set limits for each agent.
I said --flow-limit <int> , but I couldn't find it in the official documentation. is this real?
k

Kevin Kho

06/28/2022, 7:38 AM
That is prefect 2.0, which does not use labels