Medic for Apache Spark: AI-Assisted Diagnosis of Failing Jobs

AI Engineer11m 21s
Drasko Profirovic in a blue shirt against black beside the blue-and-white headline FIXING SPARK JOBS.
0 comments · 0 votesOpen discussionClose discussion
Sign in to join the discussion

    Drasko Profirovic presents Medic, an AI-assisted system for investigating failed Apache Spark jobsRoot cause analysis investigates the underlying conditions that produce a recurring problem, aiming to distinguish its causes from its visible symptoms. at Pinterest. An initial design exposed diagnostic tools through MCP to a single ReAct agent, but large logs, long prompts and accumulating instructions made the investigation noisy and difficult to maintain.

    Drasko Profirovic describes tracingAn execution trace records the sequence of operations and results produced while a system carries out a task. with OpenTelemetry and Langfuse, replayable fixtures and offline evaluationsEvaluation is the systematic assessment of a system's behaviour or results against explicit criteria. as ways to understand and compare agent behaviour. Log clustering and fingerprints help surface relevant evidence; targeted retrievalRetrieval is the process of selecting relevant stored information and returning it to an AI system for the current task. reduces red herrings, while specialist analysis can examine time-series charts within a bounded context.

    Drasko Profirovic then outlines a LangGraph-based arrangement with triage, research, supervisory and healing responsibilitiesA multi-agent system contains multiple AI agents that interact, coordinate, divide work, or influence one another while pursuing tasks., informed by runbooks and previous fixes. The talk describes design choices and observed implementation problems, not a quantified guarantee that autonomous fixes will always be correct. Extending the approach to other query engines remains future work.

    Original YouTube thumbnailWatch on YouTube

    Video topic coverage

    • Agents & workflows100
    • Coding & tools75
    • Models & learning0
    • Infrastructure & compute100
    • Research & evaluation100
    • Safety & security0
    • Business & productivity25
    • Creative & media0
    • Robotics & perception0
    • Society & policy0

    Share this video

    Drasko Profirovic in a blue shirt against black beside the blue-and-white headline FIXING SPARK JOBS. With WWW.ARTIFICIAL-INTELLIGENCE.VIDEO, 20 July 2026 and duration 11m 21s.

    Pinterest's Medic combines targeted evidence retrieval, traces and evaluations with specialist agents to investigate Spark failures without overwhelming one model's context.