BRK358 · Breakout

Get more Spark for less with Microsoft Fabric

  • Thursday 19 November
  • 36 min
  • Catalogue level: (300) Advanced
  • Our depth rating: 300
  • Worth watching: 1/3

Speakers: Ashit Gosalia, Santhosh Ravindran

Watch on Microsoft’s site from 08:44

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

Ashit Gosalia gives a highlights tour of running Spark on Microsoft Fabric in production, structured around setup, tuning, monitoring, and test and deploy. Setup covers autoscale serverless billing, high concurrency mode, network security, OneLake security and governance, including upcoming priority job submission and a Spark Python client for Livy. The main new content is Runtime 2.0 (Spark 4.1) with Native Execution Engine extensions (Z-order and liquid clustering, native CSV/JSON parsing, complex types, Python and Scala UDFs), with structured streaming and full ANSI support on the roadmap. Tuning advice covers data skew, shuffles, broadcast joins, AQE, remote shuffle (roadmap), and write settings per medallion layer. The session closes with Spark History Server monitoring, the early access release channel, and new auto-update resource profiles in Runtime 2.0.

Best for: Data engineers and platform owners running or migrating production Spark workloads (e.g. from Synapse) to Microsoft Fabric.

Session timeline by chapter

New material starts at 08:44. After the intro and setup/security guidance on existing capabilities, the reliability chapter at 08:44 brings the first roadmap item, priority job submission.

Where to skip: Skip to 08:44 for reliability and the roadmap; the core is the Runtime 2.0 and Native Execution Engine part at 13:16, then resource profiles at 31:20. Bottleneck tuning at 19:46 is useful if you are new to Spark tuning; 17:03-19:46 and the closing at 34:38 can be skipped.

Chapters (13)

  1. 00:00 Recap Depth 100 · Novelty 0/3

    Welcome, audience poll and agenda: setup, tuning, monitoring, test and deploy

    Ashit Gosalia, who runs the Spark runtime team, opens with a quick audience poll on prior Spark, Fabric and Synapse experience. He frames the talk as a highlights tour of what a successful production deployment of Spark on Microsoft Fabric looks like, beyond the instant-notebook demo experience. The agenda covers four areas: setup, tuning, monitoring, and test and deploy, with setup and monitoring stressed as just as critical as tuning.

  2. 01:52 Deep dive Depth 300 · Novelty 1/3

    Setup: sizing for the bottleneck, autoscale serverless billing and high concurrency mode

    The speaker advises sizing Spark for the real bottleneck: capacity admission, concurrency budget, core reservation, node size and slow source APIs. He contrasts the Fabric capacity billing model with the autoscale serverless billing model for Spark, which starts from an F0 capacity, mirrors the Synapse model and keeps spiky Spark workloads from consuming capacity needed by other workloads. Small orchestration tasks may run on Python notebooks instead of Spark. High concurrency mode lets multiple applications from the same user and environment share one Spark driver, with a default of 5 and up to 50 sessions, and is enabled for Livy, notebooks and lakehouse.

  3. 05:29 Deep dive Depth 300 · Novelty 1/3

    Security: outbound access protection, private links, OneLake security, CMK, private PyPI mirror

    For production security, Fabric Spark offers network isolation via outbound access protection, private links and managed private endpoints, plus customer-managed keys for compliance. Unlike Synapse's object-level model, lakehouse tables now support fine-grained row- and column-level security known as OneLake security. The speaker urges planning VNets, endpoints, cross-workspace medallion connectivity and per-workspace roles up front. Library management can be restricted from public PyPI/Conda channels to a private PyPI mirror hosted on a storage account reached through a managed private endpoint.

  4. 08:44 Deep dive Depth 300 · Novelty 2/3

    Reliability: priority job submission (coming), core reservation, starter and custom pools

    Workload governance in Fabric Spark is about CU limits, throttling and admitting the right jobs predictably. Based on user feedback, priority job submission at pool or notebook level is coming soon. Optional core reservation increases predictability at the cost of concurrency and is off by default; capacity-level controls can limit job bursting and disable starter pools. Because starter pools cannot run inside a customer VNet, custom pools can be provisioned to recreate fast session start in secure environments, with the customer's environments pre-applied.

  5. 11:04 Deep dive Depth 300 · Novelty 1/3

    Orchestration and connectivity: pipelines, Airflow, Livy API, Python client, JDBC/ODBC drivers

    Jobs can be submitted to Fabric Spark via scheduled Fabric pipelines, Airflow, the Livy API, the built-in Spark scheduler and event-based triggers (Reflex). A Spark Python client for Livy is being worked on. JDBC, ODBC and ADO.NET drivers connect through Livy, so existing on-premises apps built on Cloudera or Hortonworks endpoints can swap drivers without changing application code, although data and metadata still have to be migrated.

  6. 13:16 New Depth 300 · Novelty 2/3

    Runtime 2.0 (Spark 4.1) and Native Execution Engine: UDFs, parsers, streaming and ANSI coming

    Before tuning, the speaker urges upgrading to Runtime 2.0 (Spark 4.1) and enabling the Native Execution Engine, built on Gluten and Velox with Meta and IBM, which customers report gives 2-4x gains at no extra charge. The engine now supports Z-order and liquid clustering for reads and writes, native CSV and JSON parsing, complex types and Python and Scala UDFs without falling back to the JVM, helped by optimizer cost-model work. Structured streaming support and full ANSI support in the native engine are coming, and Runtime 2.0 also speeds up library management during cluster customization.

  7. 17:03 Deep dive Depth 200 · Novelty 0/3

    Tuning methodology: architecture review, SLA goals and repeatable experiments

    Before changing Spark configs or capacities, the speaker recommends reviewing the medallion architecture and setting a clear goal such as an SLA. Questions to answer include the data model (normalized versus star schema), data volume and ingestion pattern (append, merge, overwrite), noting that Spark lacks identity enforcement so merges behave differently than in SQL systems. Tuning experiments must be repeatable and change one variable at a time.

  8. 19:46 Deep dive Depth 300 · Novelty 1/3

    Common bottlenecks: data skew, spills, shuffles, broadcast joins, AQE and remote shuffle

    Data skew is the first thing the speaker checks in customer engagements: idle nodes, driver-bound work between jobs, long-tail tasks and resulting memory spills to disk. Because shuffle is a barrier, skew compounds; remedies include converting joins to broadcast joins and pushing filters below the shuffle, for example in merge queries. Adaptive Query Execution is on by default and should be re-enabled by customers who turned it off on older runtimes. Remote shuffle is being worked on so idle nodes can be released during autoscale-down.

  9. 23:59 Deep dive Depth 300 · Novelty 0/3

    Field example: broadcast join on huge shuffles, reading query plans, write settings per layer

    A real customer's jobs were dominated by repeated shuffles of hundreds of terabytes; converting one join to a broadcast join reduced the data and sped everything up. The speaker stresses learning to read query plans to find skew, missing filter pushdown, excessive shuffles and incorrect joins or aggregations. Write settings should differ by medallion layer: for gold data served to Power BI, optimized writes and V-order compact the data, while auto compaction keeps incrementally updated tables defragmented.

  10. 26:47 Deep dive Depth 300 · Novelty 0/3

    Monitoring with Spark History Server and how to file an effective support case

    The speaker walks through the Spark History Server, reached from Fabric monitoring pages, showing an executor timeline where two executors are busy while the rest are idle, and a job with about 30 GB spilled to disk. He encourages users to become familiar with this interface to detect skew and spills. For support cases, customers should provide the application ID, describe the job, attach logs and share them through approved channels rather than e-mail, to speed up resolution.

  11. 29:08 Deep dive Depth 300 · Novelty 2/3

    Test and deploy strategy with GitHub Actions and the Early Access release channel

    The speaker notes that many customers still lack a test and deploy strategy and recommends GitHub Actions to test every PR, nightly tests, and separate test, staging and production environments. Fabric Spark offers two release channels: default for production and early access, which receives changes before they reach default, similar to nightly builds. Enabling early access in test or staging environments catches issues early so customers can file a case before changes hit production.

  12. 31:20 New Depth 300 · Novelty 2/3

    Resource profiles, custom profiles and new auto-update profiles in Runtime 2.0

    Resource profiles apply a set of related Spark properties at once, for example read-heavy or write-heavy profiles that set around ten properties such as V-order for Power BI serving; custom profiles are also supported and combine with variable libraries and test environments. Because static profiles locked customers out of new performance improvements, Spark 4.1 and Runtime 2.0 introduce auto-update profiles that pick up new default tuning flags. The recommendation is static profiles in production and auto-update profiles in test and staging.

  13. 34:38 Closing Depth 100 · Novelty 0/3

    Wrap-up: production readiness takeaways and open Q&A

    The speaker summarises the goals: be production ready, measure bottlenecks before setting up the system, rehearse reliability and test with real identities. He opens about ten minutes for questions at the microphone; no questions are captured in the transcript and the session ends.

Announcements (13)

  • 09:13 roadmap Microsoft Fabric

    Priority job submission for Fabric Spark

    Lets users mark a priority at pool or notebook level so higher-priority Spark jobs are admitted first.

    Speaker’s quote (at 09:13)
    „we'll really do one priority job submission. And so that's coming soon. You'll be able to mark either at a workspace level“
  • 11:30 roadmap Microsoft Fabric

    Spark Python client for Livy

    A Python client for submitting Spark work through the Fabric Livy API from anywhere.

    Speaker’s quote (at 11:30)
    „We are also working on a Spark Python client, which we'll release for Livy. You can use that anywhere you want.“
  • 13:16 not stated Microsoft Fabric

    Fabric Runtime 2.0 (Spark 4.1)

    Fabric Spark runtime based on Spark 4.1 that brings added functionality and performance improvements.

    Speaker’s quote (at 13:16)
    „And one thing I really want to encourage you to do is upgrade to Runtime 2.0. Runtime 2.0 is Spark 4.1.“
  • 14:43 not stated Microsoft Fabric

    Z-order and liquid clustering in the Native Execution Engine

    The Native Execution Engine now handles Z-order and liquid clustering for both reads and writes.

    Speaker’s quote (at 14:43)
    „So we now support Z-order and liquid clustering for reads and writes.“
  • 15:09 not stated Microsoft Fabric

    Native CSV and JSON parsing

    CSV and JSON are parsed natively in the Native Execution Engine instead of on the JVM.

    Speaker’s quote (at 15:09)
    „We support CSV as a native parser, JSON as a native parser.“
  • 15:09 not stated Microsoft Fabric

    Complex types in the Native Execution Engine

    Arrays, structs and maps are processed natively by the engine.

    Speaker’s quote (at 15:09)
    „We support complex types in our native engine.“
  • 15:35 not stated Microsoft Fabric

    Native Python and Scala UDF support

    Plans containing Python or Scala UDFs stay in the native engine rather than falling back to the JVM for the rest of the plan.

    Speaker’s quote (at 15:35)
    „That's not what we do. We have native support. We reduce a lot of the complexity.“
  • 16:03 roadmap Microsoft Fabric

    Structured streaming support in the Native Execution Engine

    Spark structured streaming workloads will be able to run on the native engine.

    Speaker’s quote (at 16:03)
    „Typically, I don't want to use this session for announcements, but we are coming up with structured streaming support in the native engine“
  • 16:03 roadmap Microsoft Fabric

    Full ANSI support in the Native Execution Engine

    The native engine will fully support Spark ANSI SQL mode.

    Speaker’s quote (at 16:03)
    „we are coming up with structured streaming support in the native engine and then full ANSI support.“
  • 16:36 not stated Microsoft Fabric

    Faster library management in Runtime 2.0

    Customizing a cluster with libraries takes considerably less time in Runtime 2.0 than in Runtime 1.3.

    Speaker’s quote (at 16:36)
    „Even when you create a cluster, we need to customize it for you. It used to take a lot longer. It's much faster.“
  • 23:33 roadmap Microsoft Fabric

    Remote shuffle for Fabric Spark

    Moves shuffle data off idle nodes so they can be released and the cluster can scale down.

    Speaker’s quote (at 23:33)
    „And then another thing we're trying to work on is kind of remote shuffle.“
  • 30:25 not stated Microsoft Fabric

    Early access release channel for Fabric Spark

    An opt-in release channel that ships upcoming runtime changes before the default channel so they can be validated in test environments.

    Speaker’s quote (at 30:25)
    „we have this thing called a release channel. And we have kind of two release channels. One is the default and one is early access.“
  • 33:46 not stated Microsoft Fabric

    Auto-update resource profiles

    Resource profiles that automatically pick up new default tuning changes and flags, intended for test and staging environments.

    Speaker’s quote (at 33:46)
    „So in Spark 41 and Runtime 2, we introduced this thing called auto-update profiles.“

Demos (0)

No demos.

Watch on Microsoft’s site: BRK358