Simulate an imaginary cluster
See how a request moves from queue admission to containers on worker nodes.
ResourceManager → NodeManagers
What YARN allocated
Per-container resource requestsRoot queue hierarchy
Percentage capacities relative to rootQueue / user / AM calculations
Competing Spark applications
Give each application a user, queue, resource request and arrival time. Blank overrides inherit Spark settings on the left. Changes apply immediately.
| App | User | Queue | Executors | Heap GiB | Cores | Tasks | Submit at | Node label |
|---|
Driver and AM resources come from the common Spark template. Executor overrides are per application. Worker labels constrain placement only; real YARN node-label partitions also use independent queue capacities.
Step through scheduler events
Deterministic educational replayPreemption is demonstrated by repacking resources with a guarantee-first policy; this does not simulate container kills, cooldowns, or YARN monitoring intervals.
Spark application admission
| Application / user | Queue | State | AM node | Executors | Reason |
|---|
Scheduling event log
Configuration property map
Each property is mapped to its purpose. The simulator models the common resource limits, but it does not implement the full Hadoop scheduler. Values shown are illustrative, not your cluster's defaults.
| Property | Purpose | Scope |
|---|
Outside this simulator
Advanced real-cluster behaviour not simulated: per-node labels and partitions, reservations, preemption timing, queue ordering and priorities, locality, rack awareness, Spark retry/failure, resource profiles, custom GPUs, app-level fairness, precise YARN user-limit equations, application attempt lifecycle, and scheduler heartbeats.
The YARN Application Master budget is a scheduler limit, not a separate queue automatically named an “Application Master Pool”. If your installation has an actual AM-named queue, that is a cluster-specific queue configuration.
Spark 3.5 config: Configuration and Running on YARN. Hadoop: Capacity Scheduler.