Really slow http template workflow execution #13844
-
Hi, I would like to talk about the behavior of the http template agent. First, this agent container is stopped after workflow execution, it would be great to keep it running in order to avoid start time at workflow submit time. Additionally, I don't understand why, for only 2 http call in my workflow, it took 50 seconds to run ...
Here is the agent logs where we can see long delay between steps and I would like to know if it is possible to optimize all this sleep phases ... ? time="2024-10-31T10:17:42.500Z" level=info msg="Starting Workflow Executor" version=v3.5.11 50 seconds execution time for a workflow of 2 HTTP calls looks to be a bit disproportionate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Only one agent runs per workflow. See also #7891, but a global agent would still be started on-demand if none had been recently created ("cold start", basically). And the k8s security model means the SA and NS matter too, per the issue comments.
This sounds partly like queue time, see also #11275. |
Beta Was this translation helpful? Give feedback.
It depends on the rest of your k8s environment, so it's honestly hard for anyone to say without having detailed knowledge of your cluster. In #11275 (reply in thread) I linked to a section of the Scaling docs that describes this. Ultimately, k8s is a centralized architecture, so if one tool like Argo puts too much pressure on it, it can cause problems elsewhere.
Also it may be unnecessary to requeue more frequently if you have many slower workflows, whereas it can be helpful for fas…