-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Description
Enhance the worker configuration generation to automatically populate system resource details during initialization (init).
Use the sysinfo Rust crate to detect system-level information such as total memory, CPU count, disk, and kernel details.
In addition, use the pci-id-parser crate to detect and include GPU details from PCI devices.
If GPU or system details are unavailable, fall back to existing hardcoded defaults.
This ensures that the generated configuration reflects the actual system more closely, improving accuracy in worker scoring and resource offers.
Acceptance Criteria
Given the worker initialization process (init) runs
When system information is available via the sysinfo crate
Then the generated configuration includes CPU, memory, disk, and kernel details.
• Given the worker has PCI-detected GPUs
When the pci-id-parser successfully identifies them
Then the configuration includes GPU identifiers (and, where possible, GPU memory).
• Given system or GPU information cannot be retrieved
When sysinfo or pci-id-parser fail
Then default (hardcoded) configuration values are used instead.
• Proper logging is included for each step (success, fallback, or error).
• The resulting configuration file can be reviewed and manually adjusted by an operator before final use.