mix snakepit.profile_inspector (Snakepit v0.6.10)

View Source

Inspect Snakepit pool profiles and worker statistics.

This task provides detailed information about pool configurations, worker profiles (process vs thread), capacity utilization, memory usage, and performance recommendations. It also surfaces how many times pools recycled BEAM gRPC workers because memory_threshold_mb was exceeded (the Memory Recycles field in the output), so operators know when BEAM-side memory pressure is triggering restarts.

Usage

# Inspect all pools
mix snakepit.profile_inspector

# Inspect a specific pool
mix snakepit.profile_inspector --pool default

# Show detailed per-worker information
mix snakepit.profile_inspector --detailed

# Export to JSON format
mix snakepit.profile_inspector --format json

Options

  • --pool - Specific pool to inspect (default: all pools)
  • --detailed - Show detailed per-worker statistics
  • --format - Output format: text (default) or json
  • --recommendations - Show optimization recommendations

Examples

# Basic inspection
mix snakepit.profile_inspector

# Detailed inspection of HPC pool
mix snakepit.profile_inspector --pool hpc --detailed

# Get recommendations
mix snakepit.profile_inspector --recommendations