One API for all Spark. About 125,000 runs a day, from nearly 10,000 jobs, go through MeeUPP on any Spark provider.
Shared clusters. Jobs run on a shared cluster, grouped by their historical metrics and characteristics, increasing utilisation so the same runs need about 90% fewer clusters.
Warm clusters. Runs reuse clusters that are already up instead of starting their own, cutting Spark compute cost by about 40%.
It learns from every run. A continuous feedback loop routes jobs and refines configurations using past execution metrics and also detects input volume and data drift during runtime.
Spark gives you an engine, not a platform. Where a job runs, how big it is, what it costs and whether it meets its SLA are left to whoever submits it. At our scale, that gap quietly became a large share of the platform team's work. This is how we closed it with MeeUPP (Meesho Unified Processing Platform), the control plane behind Spark jobs at Meesho.
Spark sits behind many of the workflows that keep Meesho running, from search to logistics to experimentation.
Every Spark job in them starts with the same three questions.
Where should this run?
Which Spark provider, which cluster, which kind of machine?
How big should it be?
Cores, memory, disk, and how many executors.
Was it on time, and what did it cost?
Against its SLA, per job, per team.
For a long time, these decisions sat with each pipeline: the team that wrote it made the call, and the provider ran it. MeeUPP moves those decisions into one platform that answers them for every job, on any Spark provider we run.
Why running Spark at scale needs a control plane
Addressing these questions for a single job is straightforward. Doing so consistently, for every team's jobs, every day, across several Spark providers, is a platform problem. Tracing one job through a typical day shows why.
The life of one Spark job
Size it once.
CPU, memory and disk are set at onboarding and stay that way until a run fails.
Submit with a job name.
One API call returns a job ID, and the platform picks the pool size from the job's run history.
Boot a cluster.
Every run waits for nodes, image pulls, and dependency installs before the driver and executors start.
Placed on a warm cluster.
The job runs on compute that is already up.
Run alone.
Each run gets a cluster of its own, idle whenever the work is small.
Share a warm cluster.
Several homogeneous jobs run at once on one long-lived cluster, keeping their own job identity.
Debug per provider.
Logs and metrics sit in each provider's own console.
One view.
Metrics, status, logs, Spark UI and cost for every run, on any provider.
Find the cost.
Spend shows up per cluster, not per job, after a few days.
Cost per run.
Each run gets a cost estimate, split fairly across the jobs that shared its cluster.
Spark at this scale needs a control plane that owns the compute, not an orchestrator that only triggers it.
What we built: MeeUPP, the control plane
MeeUPP sits between the pipelines that submit Spark jobs and the clusters that run them, so a pipeline never needs to know which provider or cluster does the work. This architecture keeps compute infrastructure entirely decoupled from job submission.
The control plane has three service components and two shared layers.
- Client interface. Handles job submission, status tracking, logs, metrics, and management actions over a REST API. It creates the job record, routes to a cluster group and admits the job onto that pool's queue.
- System monitor. Sizes every pool and creates and retires its clusters through the provider adapters.
- Job state manager. Reads the state clusters publish and persists every job and cluster transition. When a job ends, it updates the job registry and fires alerts.
- Provider adapters. One adapter per Spark provider, so the platform creates, resizes and retires clusters the same way everywhere, which takes care of multiple operations such as auto-resize, SLA-based scheduling, job priorities, slot management, etc.
- Queue layer. A channel between the service layer and the compute layer with clusters across different providers.
Building blocks: grid, cluster group and tag
MeeUPP models the fleet with three objects and a learning registry. In Figure 1, each provider runs a cluster group, each cluster group runs warm clusters, and each cluster runs several jobs.
Grid
The tenant boundary, one per team or business unit. Its cluster groups, clusters, costs, and tracking all stay inside it.
Cluster group
A pool of warm clusters with the same configuration: Spark version and settings, image and dependencies, driver and executor sizing, jobs per cluster, min and max clusters, and retire rules.
Tag
Names the pool family a job needs: its runtime, libraries and provider. Each family comes in tier sizes, and the job's history picks among them. Tags are optional: a grid can define a default pool.
Job registry
One record per job: last pool, runtimes, last timeout, SLA and suggested configuration. The router reads it, and the tuner writes it.
How clusters and control plane stay in sync
Every exchange between the service and a running cluster goes through the queue layer, so the service never reaches into a provider to hand out work, and a cluster never needs to know which service pod it is talking to.
The queue layer holds four things.
Each pool has a job queue and a slot map that records how busy every cluster is. Each cluster has its own command queue, which the service uses to kill a job, disable the cluster or scale its executors. Callback queues carry everything back the other way.
A job gets a slot in one step.
When a job arrives, one atomic script checks that the pool has room and queues the job, so two submissions can't claim the same slot.
A cluster picks it up.
A cluster takes a job only when it has a free slot and the pool's balance rule picks it: the least-busy cluster (uniform) or the busiest one with room (packed). Taking a job is atomic, so only one cluster gets it.
Its status flows back.
The cluster publishes each state change to a callback queue, and the control plane saves it, retrying on failure. States only move forward.
The monitor catches silent failures.
On every pass, the system monitor compares each cluster with what its provider reports. It handles abrupt cluster terminations and manages its job states.
When a cluster retires.
A cluster retires when it reaches its age limit, sits idle too long, has run enough jobs, or runs low on driver memory; each limit is set per pool. A retiring cluster takes no new jobs and lets running ones finish.
Routing, capacity and dedicated runs
- Smart placement & scaling. Historical execution metrics assign each workload to an optimal size tier, with seamless fallback to secondary pools when capacity limits are hit. System monitors expand pool capacity as demand builds and retire clusters gracefully once idle. Warm compute nodes are provisioned ahead of predictable traffic spikes, while individual executors scale dynamically alongside task volume.
- Continuous feedback & telemetry. Telemetry streamed directly through custom Spark listeners feeds the job registry to fine-tune tier assignments, right-size driver and executor memory, attribute run-level costs, and notify teams instantly on SLA breaches or failures.
- Workload isolation. Standard jobs share long-lived warm clusters across structured tiers (L0–L2) categorised by shuffle read volumes and fetch delays. Conversely, intensive jobs facing heavy memory pressure, compute saturation, or data skew bypass shared pools for dedicated single-run clusters.
- Listener metrics track sudden surges in data size or skew caused by data drift; the platform then scales compute for that execution, or aborts it if limits are exceeded.
- When a job's query or pipeline logic changes, the platform builds a new baseline from the runs that follow.
- A workload that has not run within the configured lookback window starts fresh, and is treated as a new workload.
- Engineers can set manual overrides when they are aware of workload's resource requirements.
What this platform offers at a glance
Results: what changed
About 125,000 Spark runs a day, from nearly 10,000 distinct jobs
95% of runs land on a warm, shared cluster; the rest are dedicated runs
About 118,750 cluster boots skipped a day, saving roughly 4,700 hours of start-up time
99.99% of runs end with a definite outcome; the rest, lost when a cluster stops without reporting, are closed as failed and retried.
A cost figure for every run, job and team
Pipelines carry no cluster configs; the platform picks where each job runs
MeeUPP is now the managed control plane for Spark at Meesho, designed and scaled by an amazing team:
More from Meesho Tech: Kafka at Meesho: Managing Enterprise-Scale Queueing In-House · Kafka at Meesho: How Meesho-Queue Made Kafka Simple at Scale. If problems like these interest you, take a look at our careers page.

