slurm_schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvSlurmctlPort is the environment variable name for the number of processes per node.
	EnvSlurmctlPort = "SLURMCTL_PORT"
	// EnvSlurmdPort is the environment variable name for the number of nodes.
	EnvSlurmdPort = "SLURMD_PORT"
	// EnvControllerAddress is the environment variable name for the rank of nodes.
	EnvControllerAddress = "SLURM_CONTROLLER_ADDRESS"
	EnvTotalNodes        = "SLURM_TOTAL_NODES"
	EnvSlurmConf         = "SLURM_CONF"
)
View Source
const (
	ClusterSchemaKind = "slurm"

	// SchemaReplicaTypeController is the type of Master of distributed Slurm Cluster
	SchemaReplicaTypeController kubeclusterorgv1alpha1.ReplicaType = "Controller"

	SlurmConfDir = "/etc/slurm"

	SlurmctlPortName = "slurmctl-port"
	SlurmdPortName   = "slurmd-port"

	SlurmCmdDir = SlurmConfDir
	MungeDir    = SlurmCmdDir + "/munge"

	EmptyVolume                         = "slurm-config-dir"
	EmptyVolumeMountPathInInitContainer = "/mnt/share"
	EmptyVolumeMountPathInMainContainer = SlurmConfDir

	EntrypointFilePath = "/tmp/entrypoint.sh"
)

Variables

This section is empty.

Functions

func GenRandomInt31n

func GenRandomInt31n(min, max int) int

Types

type EnvVarGenerator

type EnvVarGenerator interface {
	Generate(kcluster *kubeclusterorgv1alpha1.KubeCluster) ([]corev1.EnvVar, error)
}

EnvVarGenerator is the environment variable generator interface.

Jump to

Keyboard shortcuts

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