Command Palette

Search for a command to run...

Назад к скиллам
скилл № 33897

data-distributed-compute

Use when the user asks about Spark vs Dask vs Ray, Spark executor sizing, shuffle and skew, YARN or Kubernetes resource management, data locality or…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить data-distributed-compute в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Data Distributed Compute

Purpose

Design and tune distributed compute systems for large-scale data processing. Select the right framework (Spark, Dask, Ray, MapReduce), configure YARN/K8s resource management, optimize shuffle and data locality, and tune executors for throughput.

Agent Protocol

Trigger

Exact user phrases: "Hadoop MapReduce", "Spark", "Dask", "Ray", "YARN", "cluster computing", "resource manager", "shuffle", "data locality", "executor", "worker", "task scheduling", "distributed compute", "cluster mode", "dynamic allocation", "speculative execution".

Input Context

Before activating, verify:

  • Compute framework preference (Spark, Dask, Ray, MapReduce)
  • Data size and shape (TB per run, row counts, join complexity)
  • Cluster size and resource per node (cores, memory, network)
  • Workload type (batch ETL, ML training, real-time inference, iterative algorithms)
  • Storage backend (HDFS, S3, local SSD)
  • Scheduling layer (YARN, K8s, standalone)

Output Artifact

Distributed compute architecture with framework selection, cluster configuration, and tuning parameters.

Response Format

Compute Framework: {Spark | Dask | Ray | MapReduce}
Cluster Mode: {YARN | K8s | Standalone | Slurm}
Execution Model: {driver-executor | scheduler-worker | GCS}
Resource: {N executors x M cores x G memory}
Shuffle: {sort-based | hash-based | external}
Locality: {PROCESS_LOCAL | NODE_LOCAL | RACK_LOCAL | ANY}
# spark-submit or Ray cluster config
# Tuning parameters

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • Framework selected with trade-off analysis
  • Cluster resource config calculated (executors, cores, memory, overhead)
  • Shuffle strategy defined with spill/tune settings
  • Data locality configuration set
  • Speculative execution policy defined
  • Dynamic allocation or static partitioning configured

Max Response Length

250 lines of config.

Workflow

Step 1: Framework Selection

Framework Comparison

Feature Apache Spark Dask Ray Hadoop MapReduce
Execution model Driver-executor Scheduler-worker GCS (Global Control Store) JobTracker-TaskTracker
Language Scala, Python, R, SQL Python Python, Java Java, streaming
In-memory Yes (RDD/DataFrame) Yes (dataframes) Yes (object store) No (disk-based)
Streaming Micro-batch Streaming dataframes Streaming actors N/A
ML MLlib Dask-ML, XGBoost Ray Tune, RLlib Apache Mahout
Best for Batch ETL, SQL, ML Pandas-scale, custom Python ML training, RL, serving Legacy batch
Maturity Very high High High Declining

Decision Tree

Primary workload?
├── Batch ETL, large-scale SQL, data warehouse processing
│   └── Apache Spark (most mature, best ecosystem)
├── Python-native dataframes, NumPy/Pandas-scale workloads
│   └── Dask (Python-native, familiar API)
├── ML training, reinforcement learning, hyperparameter tuning
│   └── Ray (Ray Train, Ray Tune, RLlib)
├── Real-time inference, serving, distributed actors
│   └── Ray Serve (low-latency model serving)
└── Legacy Hadoop infrastructure, no in-memory requirement
    └── MapReduce (maintenance mode, prefer Spark)

Step 2: Cluster Configuration

Spark Executor Sizing

spark_conf:
  # Formula: executor_memory = (node_memory - overhead) / executors_per_node
  # Overhead: OS (2-4GB) + yarn overhead (1-2GB) + spark overhead (10% of executor)
  
  # Example: 16-node cluster, 64GB RAM, 32 cores per node
  spark.executor.instances: 32
  spark.executor.cores: 4            # 4 cores per executor
  spark.executor.memory: 16g         # 16GB per executor
  spark.executor.memoryOverhead: 2g  # 2GB overhead
  # Calculation: 32 cores/node / 4 cores/executor = 8 executors/node
  # Memory: (64GB - 3GB OS - 2GB overhead) / 8 = ~7.4GB → round to 16GB with fewer executors
  
  # Alternative: fewer large executors (HDFS-heavy workloads)
  spark.executor.instances: 16
  spark.executor.cores: 8
  spark.executor.memory: 32g
  spark.executor.memoryOverhead: 4g
  # 8 cores/executor enables larger shuffle blocks, better for large joins

Dask Worker Sizing

dask_config:
  # Dask scheduler + workers
  scheduler:
    resources: { cpu: 2, memory: 4GB }
  workers:
    count: 32
    resources: { cpu: 4, memory: 16GB }
  
  # Threading: "processes" for CPU-bound, "threads" for I/O-bound
  worker_class: "distributed.Nanny"
  multiprocessing: true
  threads_per_worker: 1  # 1 thread per process for CPU workloads

Ray Cluster Config

ray_config:
  # Ray head + worker nodes
  head:
    resources: { CPU: 4, memory: 8GB }
  workers:
    min: 4
    max: 32
    resources: { CPU: 8, memory: 32GB }
    autoscaling:
      target_num_workers: 16
      idle_timeout_minutes: 5
      upscaling_speed: 1.0

Step 3: Shuff

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/distributed-compute-advanced.md
  • references/distributed-compute-fundamentals.md
  • references/distributed-compute-memory.md
  • references/distributed-compute-scheduling.md
  • references/distributed-frameworks.md
  • references/gpu-accelerated-compute.md
  • references/polars-dataframe.md
  • references/spark-execution.md

FAQ

Что делает скилл data-distributed-compute?

Use when the user asks about Spark vs Dask vs Ray, Spark executor sizing, shuffle and skew, YARN or Kubernetes resource management, data locality or speculative execution. Produces engine choice, cluster topology and tuning settings. Not for Hive/Spark SQL query tuning (use data-batch-processing) or GPU training (use distributed-training).

Как установить скилл data-distributed-compute?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-distributed-compute запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-distributed-compute с