Class JobSchedulerDetector

Class Documentation

class JobSchedulerDetector

Static utility class for job scheduler detection and resource management.

The JobSchedulerDetector class provides a comprehensive interface for detecting job schedulers, extracting resource allocation information, and calculating safe resource usage limits in HPC environments. All methods are static as scheduler detection is inherently a system-level operation.

Criteria

The detector uses environment variable analysis to identify schedulers:

  1. Check for scheduler-specific environment variables

  2. Parse resource allocation information from environment

  3. Validate and normalize resource information

  4. Provide safe resource usage recommendations

Margins

All resource calculations follow conservative safety principles:

  • Never exceed allocated resources

  • Provide safety margins for system stability

  • Validate resource requests against limits

  • Gracefully handle missing or invalid information