Tom Klein
12/02/2021, 8:44 PMRun configuration (Local, Universal, Docker, Kubernetes)
• an Agent (e.g. Local, Kubernetes, Docker)
• and an Executor - (Local, LocalDask, and DaskExecutor)
If i understand correctly -
• our Agent is the entity (an always-running program, basically) which communicates with the Prefect server (and its scheduler, etc.) and brings jobs to execution phase. If it lives in Kubernetes then by default it executes flows as Kubernetes jobs , but - if we were to pick a "local" Run configuration - it would run it on the agent itself?
• the Run Configuration determines where the Agent runs the flow (e.g., if we picked a Docker run_configuration for our Docker agent - then it would run as a docker image inside the docker image? or alongside it - as a "sibling" docker instance?)
• the Executor determines how the flow should be executed, so for example if we had a LocalDask executor running in a Docker run_config with a Docker Agent - it would spin up a local Dask cluster inside the docker that's running the job? but if we picked a DaskExecutor then the flow would actually be executed outside the docker that's running the flow? (assuming our dask cluster runs alongside our Docker Daemon, e.g. on EC2)
did i get it right or am i missing something? 😄Zanie
Tom Klein
12/02/2021, 8:48 PMZanie
DaskExecutor with no arguments and it’d be inside the container. You could also set up a DaskExectutor that connects to an existing cluster outside your container or spins up a new cluster outside your container.Zanie
Tom Klein
12/02/2021, 8:51 PMKevin Kho
Zanie
Tom Klein
12/02/2021, 8:53 PMZanie
Zanie
Tom Klein
12/02/2021, 8:54 PMTom Klein
12/02/2021, 8:57 PMDocker task?
and if i have a Docker agent and a Docker run-config and a Docker task then supposedly all of them will live as 3 separate Dockers under the same Docker "family" (dunno the exact terminology for it)?Zanie
Zanie
Tom Klein
12/02/2021, 9:01 PMTom Klein
12/02/2021, 9:02 PMKubernetesRun and not a Docker task, in case the image already exists in ECR somewhere...
though i guess i can always Pull and then Run it...Tom Klein
12/02/2021, 9:04 PMsubflows in the docsKevin Kho
Zanie
Zanie
Tom Klein
12/02/2021, 9:16 PMTom Klein
12/02/2021, 9:16 PM