Documentation
¶
Index ¶
- func SelectWorker(ctx context.Context, k8sClient client.Client, ...) (*tfv1.WorkerStatus, error)
- type WorkerGenerator
- func (wg *WorkerGenerator) AllocPort() int
- func (wg *WorkerGenerator) GenerateWorkerPod(gpus []*tfv1.GPU, generateName string, namespace string, port int, ...) (*corev1.Pod, string, error)
- func (wg *WorkerGenerator) PodTemplateHash(workloadSpec any) (string, error)
- func (wg *WorkerGenerator) WorkerPort(pod *corev1.Pod) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectWorker ¶
func SelectWorker( ctx context.Context, k8sClient client.Client, workload *tfv1.TensorFusionWorkload, maxSkew int32, ) (*tfv1.WorkerStatus, error)
Types ¶
type WorkerGenerator ¶
type WorkerGenerator struct { GpuInfos *[]config.GpuInfo WorkerConfig *tfv1.WorkerConfig }
func (*WorkerGenerator) AllocPort ¶
func (wg *WorkerGenerator) AllocPort() int
func (*WorkerGenerator) GenerateWorkerPod ¶
func (*WorkerGenerator) PodTemplateHash ¶ added in v1.23.0
func (wg *WorkerGenerator) PodTemplateHash(workloadSpec any) (string, error)
func (*WorkerGenerator) WorkerPort ¶
func (wg *WorkerGenerator) WorkerPort(pod *corev1.Pod) (int, error)
Click to show internal directories.
Click to hide internal directories.