Documentation
¶
Index ¶
Constants ¶
View Source
const MAX_NODES_PER_RECONCILE_LOOP = 100
Avoid creating too many nodes at once
Variables ¶
This section is empty.
Functions ¶
func CalculateLeastCostGPUNodes ¶
func CalculateLeastCostGPUNodes(ctx context.Context, provider types.GPUNodeProvider, cluster *tfv1.TensorFusionCluster, pool *tfv1.GPUPool, nodeClass *tfv1.GPUNodeClass, tflopsGap int64, vramGap int64) ([]types.NodeCreationParam, error)
Pool config contains node requirements, nodeClass indicates some base template info for creating VM nodes, this func should output the list of VM to be created to meet TFlops and VRAM gap Simple algorithm, try to find the instance type that best meets the gap TODO: implement a more advanced algorithm to combine multiple instance types
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.