Skip to content

Task: Improve worker configuration generation to use system info and PCI ID data #230

@orlandohohmeier

Description

@orlandohohmeier

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.

Implementation Hints (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions