common

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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

func GetAccessKeyOrSecretFromPath

func GetAccessKeyOrSecretFromPath(filePath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL