F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Latency Issues with Flyte Workflow

Summary

The user is new to Flyte and is facing latency issues with a simple workflow involving a ContainerTask and a Python task. While the Python task runs quickly locally, it takes over 2 minutes when executed in the Flyte sandbox. They are questioning if this delay is typical and if there is a configurable timeout. They also note that the flyte-copilot-sidecar container seems idle after the task container completes, indicating that the delay may be due to waiting for the sidecar to exit. Suggestions include configuring timeouts, considering the time it takes to spin up pods, and using Union for better performance by reusing containers. The user is advised to run the task repeatedly, as it may take a few seconds initially due to container downloads. Performance considerations include balancing overhead, runtime, reproducibility, and ephemerality, especially for non-latency sensitive applications.

Status
open
Tags
    Source
    #ask-the-community
      k

      kumare

      10/10/2024

      and multiple folks can run different version concurrently with low resources

      k

      kumare

      10/10/2024

      But the way to think about performance is overhead vs runtime and reproducibility and ephemerality. For example for non latency sensitive applications this is ok - especially it tears down the entire cluster when no one is using it

      k

      kumare

      10/10/2024

      once the container has been downloaded

      k

      kumare

      10/10/2024

      also can you try running it repeatedly, it might take a few seconds still

      k

      kumare

      10/10/2024

      if you want performance, then I recommend to use Union - it has ways to reuse containers and hence can run things in under a second

      k

      kumare

      10/10/2024

      it can take time depending on if it is spinning up pods

      k

      kumare

      10/10/2024

      you can always configure timeouts

      p

      perrygeo

      10/10/2024

      Looking at the k3s pods while it's running and I see the flyte-copilot-sidecar container which appears to be idle. The actual task container itself is completed, it looks like the extra time is waiting for the sidecar to exit?

      p

      perrygeo

      10/9/2024

      Hi everyone :wave: just getting started with Flyte and I have a question about task latency. I have a basic workflow consisting of one ContainerTask and one regular python task. Running it with pyflyte run locally finishes in under a second. But running with the flyte sandbox as a remote pyflyte run --remote it takes over 2 minutes according to the UI. Is this expected? It does eventually finish, Is there a timeout or something that can be configured? Details -> https://gist.github.com/perrygeo/05b438430ab776786bdc85185360c327