fn validate_compute_node_memory_config(
cn_total_memory_bytes: usize,
reserved_memory_bytes: usize,
storage_memory_bytes: usize,
) -> usize
Expand description
Check whether the compute node has enough memory to perform computing tasks. Apart from storage,
it is recommended to reserve at least MIN_COMPUTE_MEMORY_MB
for computing and
SYSTEM_RESERVED_MEMORY_PROPORTION
of total memory for other system usage. If the requirement
is not met, we will print out a warning and enforce the memory used for computing tasks as
MIN_COMPUTE_MEMORY_MB
.