Flyte 2 multi-cluster support
Add support for Flyte v2 multi-cluster
cc @pingsutw and @Sovietaced
Flyte supports multi-cluster deployments, allowing you to map each domain or project to its own Kubernetes cluster, which can reside in separate AWS accounts, Azure subscriptions, or GCP projects. Clusters are grouped into cluster pools, and work is routed to pools via queues; users submit to queues, not directly to clusters or pools. This enables isolation by domain or project and supports both single-cloud and multi-cloud setups, with each cluster pool having its own metadata bucket and resource configuration. For more, see Multi-cluster and multi-cloud and Multiple clusters.
Would you like more detail on configuration, routing, or operational aspects?
Sources:
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.
Mention @herald to ask follow-up questions. See runllm.com for more!
Hey! Can I get a feedback on this design?
A small router in runs/ sends each run’s enqueue, abort and signal to the actions service of one cluster, chosen by the run’s queue from a weighted queue-to-clusters map like v1’s labelClusterMap. Data-plane clusters run only actions and the executor from the flyte-core chart, report back to the control plane over OAuth2 client credentials, and enqueue child actions locally, so a run stays in one cluster. It assumes one bucket shared by all clusters and needs no IDL, SDK or schema changes. I have a working implementation tested on two clusters; would this fit upstream? If so, I’ll open a draft PR.
Hey! Can I get a feedback on this design?
I think multi-cluster support is now supported but perhaps not documented. We originally made this issue and then I created the flyte-core helm chart.
The intention with mutli-cluster was to store the TaskAction CRs in a dedicated cluster where etcD pressure wouldn't affect multi-tenant cluster. As such, the way we have it setup right now is with the executor in its own cluster where the TaskAction CRs live. I suppose you could put the actions service there too if you didn't want to use informers cross cluster.
Its mostly a matter of configuring some knobs and ensuring cross cluster service calls work correctly
Thanks a lot for your help on this @Sovietaced!
That matches what I found: flyte-core already supports one control plane with one execution cluster, and https://github.com/flyteorg/flyte/pull/8359 fixes cross-cluster service auth for identity providers like Entra ID.
What’s missing is spreading runs over several execution clusters (so users can't pick any cluster at runtime), since runs has a single actionsService. Would a small router in runs/ that picks a run’s cluster and actions service from its queue, like v1’s labelClusterMap, make sense?
Happy to create a PR.
What’s missing is spreading runs over several execution clusters (so users can't pick any cluster at runtime), since runs has a single
actionsService. Would a small router inruns/that picks a run’s cluster and actions service from its queue, like v1’slabelClusterMap, make sense?
I think you should open up a dedicated issue for multi-cluster execution support. I think that approach could make sense but I personally use a custom setup with Armada so I wouldn't be the best person to review how to run multi-cluster execution natively.
I think the approach in general makes sense. My only concern is what happens if a child task ends up running in a different cluster. The parent task would subscribe to the cluster local actions updates which wouldn't get an updates about child tasks that end up running in different clusters.