TL;DR
125,000runs a day

One API for all Spark. About 125,000 runs a day, from nearly 10,000 jobs, go through MeeUPP on any Spark provider.

~90%fewer clusters

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.

40%lower compute cost

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.

01

Where should this run?

Which Spark provider, which cluster, which kind of machine?

02

How big should it be?

Cores, memory, disk, and how many executors.

03

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.

1Why

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

01

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.

02

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.

03

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.

04

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.

05

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.

Net effectEvery run pays for boot, and every pipeline carries its own settings.The pipeline asks for a result. Placement, sizing, observability and cost are the platform's work.
Spark at this scale needs a control plane that owns the compute, not an orchestrator that only triggers it.
2Architecture

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.

Figure 1 · MeeUPP at a glance: control plane, queue layer and warm clusters

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.

Creating a pool. A pool is defined once in the portal from tested presets for runtime, machines, scaling, libraries and tuning, and stored as one configuration. The system monitor then brings its clusters up: each one installs its libraries, starts the launcher, registers its job slots and begins pulling from the pool's queue. A configuration change rolls the pool: old clusters stop taking jobs and finish the ones running, and new clusters start on the new configuration.

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.

Figure 2 · How a job moves from admission to a warm cluster and back
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Code arrives with the cluster. Jobs in a pool are homogeneous, so by the time a cluster pulls a job, its code and dependencies are already installed. The job starts on a ready cluster with nothing left to set up.

Routing, capacity and dedicated runs

Figure 3 · Routing and pool sizing
  • 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.
Dedicated runs: A cluster for one job. Jobs that need strict isolation, a custom image or their own dependencies get a cluster built for that run, from the pool's configuration plus the caller's overrides, and shut down after execution while retaining standard submission, metrics tracking, and cost attribution.
Caveats:
  1. 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.
  2. When a job's query or pipeline logic changes, the platform builds a new baseline from the runs that follow.
  3. A workload that has not run within the configured lookback window starts fresh, and is treated as a new workload.
  4. Engineers can set manual overrides when they are aware of workload's resource requirements.
3Capabilities

What this platform offers at a glance

Core platform
Serverless Spark
Tag routing and warm launcher clusters
Auto-config tuner
Job registry and listener metrics
Cross-platform unity
Spark provider adapters
Unified observability
Spark listener and metrics lakehouse
MeeUPP
The control plane behind Spark jobs
Reliability and operations
SLA tracking
Job registry and job state manager
Cost attribution
Listener metrics and the metrics lakehouse
Resilience engine
System monitor, queue layer and job state manager
Ops automation
Cluster group configuration and command queues
4Impact

Results: what changed

Scale125,000

About 125,000 Spark runs a day, from nearly 10,000 distinct jobs

Cluster reuse95%

95% of runs land on a warm, shared cluster; the rest are dedicated runs

Start time~4,700 h

About 118,750 cluster boots skipped a day, saving roughly 4,700 hours of start-up time

Stability99.99%

99.99% of runs end with a definite outcome; the rest, lost when a cluster stops without reporting, are closed as failed and retried.

Cost visibilityEvery run

A cost figure for every run, job and team

ProductivityPlatform picks

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:

Jagdish DadVaibhav AgarwalSubramaniam SethurathinamShashank ShauryaDhairya GuptaSparsh SoniDhruv MalhotraRupali UpadhyayPhanindra AnnamTushar JaiswalRamiz Mehran

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.