32 lines
852 B
Python
32 lines
852 B
Python
from dataclasses import dataclass, field
|
|
|
|
|
|
@dataclass
|
|
class NodeRole:
|
|
name: str
|
|
|
|
# ----------------------------
|
|
# cache behavior
|
|
# ----------------------------
|
|
cache_writer: bool = True # can store artifacts
|
|
cache_reader: bool = True # can fetch artifacts
|
|
cache_priority: int = 50 # higher = preferred cache source
|
|
|
|
# ----------------------------
|
|
# compute behavior
|
|
# ----------------------------
|
|
compile_weight: float = 1.0 # scheduler weight multiplier
|
|
distcc_enabled: bool = True
|
|
|
|
# ----------------------------
|
|
# thermal safety
|
|
# ----------------------------
|
|
max_thermal_state: float = 0.85
|
|
|
|
# ----------------------------
|
|
# storage capabilities
|
|
# ----------------------------
|
|
tmpfs_ok: bool = True
|
|
btrfs_ok: bool = False
|
|
qcow2_ok: bool = False
|