Logo: Spark Serverless Reliability And State Management

Spark Serverless Reliability And State Management

Communautéit
vaquarkhan
spark-serverless-reliability-and-state-management

Enforces timeout-aware rollbacks, resumable checkpoints, and orphan cleanup for serverless Spark workloads on AWS Lambda, Glue, and similar runtimes. Use when writing or reviewing Spark jobs in serverless environments, S3 checkpoint patterns, partial-failure recovery, or IceGuard-style state management.

Iwwersiicht

Editeurvaquarkhan
Repositorydata-engineering-agent-skills
Skill-Nummspark-serverless-reliability-and-state-management
Stären
60
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    vaquarkhan huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Spark Serverless Reliability And State Management an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/spark-serverless-reliability-and-state-management
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills.git /tmp/data-engineering-agent-skills
mkdir -p .claude/skills
cp -r /tmp/data-engineering-agent-skills/skills/spark-serverless-reliability-and-state-management .claude/skills/spark-serverless-reliability-and-state-management
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Spark Serverless Reliability And State Management an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Spark Serverless Reliability And State Management automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Spark Serverless Reliability And State Management net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Spark Serverless Reliability And State Management

Overview

Serverless Spark hides cluster failures behind short-lived runtimes and opaque retries. Silent partial writes, orphaned checkpoints, and timeout-induced corruption are common when agents treat serverless Spark like a long-running cluster job. This skill forces explicit state boundaries, resumable progress, and cleanup before any publish path opens.

When to Use

  • implementing or reviewing Spark on AWS Lambda, AWS Glue serverless, or comparable short-lived runtimes
  • designing S3-backed checkpoints, progress markers, or staged write paths
  • recovering from timeout, OOM, or mid-batch partial failure without double-counting
  • translating IceGuard-style checkpoint and rollback patterns into agent workflows
  • hardening batch Spark that must survive cold starts, memory limits, and hard execution ceilings

Do not use this for always-on EMR or Databricks clusters unless the job also runs in a serverless path with hard time limits.

Workflow

  1. Classify execution risk before coding. Document:

    • maximum runtime and memory ceiling
    • input cardinality and partition fan-out
    • whether output is append, merge, or overwrite
    • downstream consumers that would see partial data
    • whether the job is restartable from a known offset or partition set
  2. Design a resumable checkpoint contract. Require:

    • durable progress markers in object storage (for example s3://.../checkpoints/{run_id}/)
    • explicit run identifiers tied to orchestration metadata
    • idempotent write semantics at the target grain
    • a manifest or _SUCCESS-style gate before publish
    • separation between staging prefixes and publish prefixes

    Load references/spark-serverless-reliability-patterns.md for checkpoint layout and orphan-detection patterns.

  3. Implement timeout-aware rollback. Before any publish:

    • detect incomplete partitions or missing manifest files
    • roll back staged outputs when the runtime approaches its ceiling
    • persist last-good checkpoint state for resume
    • block downstream publish when rollback is incomplete
    • emit structured failure context (run id, partition range, bytes written)
  4. Plan orphan and zombie cleanup. Include:

    • TTL or lifecycle rules for abandoned staging prefixes
    • a reconciliation job or hook that lists orphaned checkpoints older than N hours
    • explicit ownership for cleanup automation
    • guardrails against deleting in-flight runs
  5. Pair with observability before production. Load mcp-data-observability-integration when live execution plans, stage metrics, or cluster signals are needed to diagnose OOM or skew before rollout.

  6. Prove recovery paths in a bounded slice. Validate:

    • forced timeout mid-batch resumes without duplicate publish
    • rerun from checkpoint produces identical contract-compliant output
    • orphan cleanup does not remove active runs

Common Rationalizations

RationalizationReality
"Lambda will just retry the whole function."Retries can duplicate writes, leave orphaned staging data, and publish partial partitions.
"We can write directly to the final table path."Serverless timeouts make direct writes dangerous without staging and manifest gates.
"Checkpointing is only for streaming."Any resumable batch with hard runtime limits needs durable progress markers.
"Glue handles cleanup automatically."Managed runtimes do not guarantee orphan cleanup or rollback of partial lake writes.

Red Flags

  • writes go directly to publish paths with no staging boundary
  • no run id or checkpoint manifest exists
  • timeout handling is undefined
  • partial S3 prefixes have no orphan detection or TTL policy
  • resume logic cannot distinguish completed versus in-flight partitions
  • agents scale partitions without checking memory ceiling per task

Verification

  • Runtime limits, write mode, and idempotency grain are documented
  • Checkpoint and staging layout support safe resume
  • Timeout rollback and publish gating are explicit
  • Orphan cleanup ownership and detection exist
  • Recovery was proven on a bounded partition slice before full rollout

Heefeg gestallte Froen

Wat mécht de KI-Skill Spark Serverless Reliability And State Management?

Enforces timeout-aware rollbacks, resumable checkpoints, and orphan cleanup for serverless Spark workloads on AWS Lambda, Glue, and similar runtimes. Use when writing or reviewing Spark jobs in serverless environments, S3 checkpoint patterns, partial-failure recovery, or IceGuard-style state management.

Firwat Spark Serverless Reliability And State Management op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Spark Serverless Reliability And State Management besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Spark Serverless Reliability And State Management an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/spark-serverless-reliability-and-state-management an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Spark Serverless Reliability And State Management benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Spark Serverless Reliability And State Management benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Spark Serverless Reliability And State Management domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Spark Serverless Reliability And State Management gratis?

Jo. vaquarkhan huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇