SlurmConfigurationProperty Struct
Additional options related to the Slurm scheduler.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const slurmConfigurationProperty: pcs.CfnComputeNodeGroup.SlurmConfigurationProperty = {
gresCustomSettings: [{
gresCustomSettingsKey: 'gresCustomSettings',
}],
scaleDownIdleTimeInSeconds: 123,
slurmCustomSettings: [{
parameterName: 'parameterName',
parameterValue: 'parameterValue',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pcs as pcs
slurm_configuration_property = pcs.CfnComputeNodeGroup.SlurmConfigurationProperty(
gres_custom_settings=[{
"gres_custom_settings_key": "gresCustomSettings"
}],
scale_down_idle_time_in_seconds=123,
slurm_custom_settings=[pcs.CfnComputeNodeGroup.SlurmCustomSettingProperty(
parameter_name="parameterName",
parameter_value="parameterValue"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pcs.*;
SlurmConfigurationProperty slurmConfigurationProperty = SlurmConfigurationProperty.builder()
.gresCustomSettings(List.of(Map.of(
"gresCustomSettingsKey", "gresCustomSettings")))
.scaleDownIdleTimeInSeconds(123)
.slurmCustomSettings(List.of(SlurmCustomSettingProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PCS;
var slurmConfigurationProperty = new SlurmConfigurationProperty {
GresCustomSettings = new [] { new Dictionary<string, string> {
{ "gresCustomSettingsKey", "gresCustomSettings" }
} },
ScaleDownIdleTimeInSeconds = 123,
SlurmCustomSettings = new [] { new SlurmCustomSettingProperty {
ParameterName = "parameterName",
ParameterValue = "parameterValue"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
slurmConfigurationProperty := &SlurmConfigurationProperty{
GresCustomSettings: []interface{}{
map[string]*string{
"gresCustomSettingsKey": jsii.String("gresCustomSettings"),
},
},
ScaleDownIdleTimeInSeconds: jsii.Number(123),
SlurmCustomSettings: []interface{}{
&SlurmCustomSettingProperty{
ParameterName: jsii.String("parameterName"),
ParameterValue: jsii.String("parameterValue"),
},
},
}
Properties
gresCustomSettingsoptionalIResolvable | IResolvable | { [key: string]: string }[]gres_custom_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, typing.Mapping[str, str]]]]gresCustomSettingsoptionalIResolvableGresCustomSettingsoptionalIResolvableGresCustomSettingsoptionalinterface{} #Additional Slurm gres.conf records for the compute node group. Each item is a map of gres.conf attribute names to values describing one gres.conf record (for example a GPU topology, MIG, MPS, or custom GRES entry). AWS PCS adds the NodeName= prefix and merges these records with the GPU record it derives from the instance type.
scaleDownIdleTimeInSecondsoptionalnumberscale_down_idle_time_in_secondsoptionalint | floatscaleDownIdleTimeInSecondsoptionalNumberScaleDownIdleTimeInSecondsoptionaldoubleScaleDownIdleTimeInSecondsoptional*float64 #The time before an idle node is scaled down.
slurmCustomSettingsoptionalIResolvable | IResolvable | CfnComputeNodeGroup.slurm_custom_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SlurmCustomSettingProperty]]]slurmCustomSettingsoptionalIResolvableSlurmCustomSettingsoptionalIResolvableSlurmCustomSettingsoptionalinterface{} #Additional Slurm-specific configuration that directly maps to Slurm settings.