LoginNodes section
Note
Support for LoginNodes is added in Amazon ParallelCluster version 3.7.0.
(Optional) Specifies the configuration for the login nodes pool.
LoginNodes: Pools: - Name:stringCount:integerInstanceType:stringGracetimePeriod:integerImage: CustomAmi:stringSsh: KeyName:stringAllowedIps:stringNetworking: SubnetIds: -stringSecurityGroups: -stringAdditionalSecurityGroups: -stringDcv: Enabled:booleanPort:integerAllowedIps:stringCustomActions: OnNodeStart: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringOnNodeConfigured: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringOnNodeUpdated: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringIam: InstanceRole:stringInstanceProfile:stringAdditionalIamPolicies: - Policy:string
LoginNodes properties
Pools properties
Defines groups of login nodes that have the same resource configuration. Starting with Amazon ParallelCluster 3.11.0 up to 10 pools can be specified.
Pools: - Name:stringCount:integerInstanceType:stringGracetimePeriod:integerImage: CustomAmi:stringSsh: KeyName:stringAllowedIps:stringNetworking: SubnetIds: -stringSecurityGroups: -stringAdditionalSecurityGroups: -stringDcv: Enabled:booleanPort:integerAllowedIps:stringCustomActions: OnNodeStart: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringOnNodeConfigured: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringOnNodeUpdated: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringIam: InstanceRole:stringInstanceProfile:stringAdditionalIamPolicies: - Policy:string
Name(RequiredString)-
Specifies the name of the
LoginNodespool. This is used to tag theLoginNodesresources.Update policy: If this setting is changed, the update is not allowed.
Note
Starting with Amazon ParallelCluster version 3.11.0, the update policy is: The login nodes in the pool must be stopped for this setting to be changed for an update.
Count(RequiredInteger)-
Specifies the number of login nodes to keep active.
Update policy: This setting can be changed during an update.
InstanceType(RequiredString)-
Specifies the Amazon EC2 instance type that's used for the login node. The architecture of the instance type must be the same as the architecture used for Slurm
InstanceTypesetting.Update policy: This setting can be changed if the login nodes pool is stopped.
Note
Starting with Amazon ParallelCluster version 3.11.0, the update policy is: The login nodes in the pool must be stopped for this setting to be changed for an update.
GracetimePeriod(OptionalInteger)-
Specifies the minimum amount of time in minutes that elapse between the notification to the logged in user that a login node is to be decommissioned and the actual stop event. Valid values for
GracetimePeriodare from 3 up to 120 minutes. The default is 10 minutes.Note
The triggering event involves interactions between multiple Amazon services. Sometimes, network latency and propagation of the information might take some time so the grace time period may take longer than expected due to internal delays in Amazon services.
Update policy: This setting can be changed during an update.
Image(Optional)-
Defines the image configuration for the login nodes.
Image: CustomAmi:StringCustomAmi(OptionalString)-
Specifies the custom AMI used to provision the login nodes. If not specified, the value defaults to the one specified in the HeadNode section.
Update policy: If this setting is changed, the update is not allowed.
Ssh(Optional)-
Defines the
sshconfiguration for the login nodes.Ssh: KeyName:stringAllowedIps:stringNote
Starting with Amazon ParallelCluster version 3.11.0, the update policy is: The login nodes in the pool must be stopped for this setting to be changed for an update.
KeyName(OptionalString)-
Specifies the
sshkey used to log in into the login nodes. If not specified, the value defaults to the one specified in the HeadNode section.Important
Deprecated – The configuration parameter
LoginNodes/Pools/Ssh/KeyNamehas been deprecated, and it will be removed in future releases. The CLI now returns a warning message when it is used in the cluster configuration. See https://github.com/aws/aws-parallelcluster/issues/6811for details. AllowedIps(OptionalString)-
Specifies the CIDR-formatted IP range or a prefix list id for SSH connections to login nodes in the pool. The default is the AllowedIps defined in the head node configuration, or
0.0.0.0/0if not specified.HeadNode section.Note
Support for AllowedIps for login nodes is added in Amazon ParallelCluster version 3.11.0.
Networking(Required)-
Networking: SubnetIds: -stringSecurityGroups: -stringAdditionalSecurityGroups: -stringNote
Starting with Amazon ParallelCluster version 3.11.0, the update policy is: The login nodes in the pool must be stopped for this setting to be changed for an update.
SubnetIds(Required[String])-
The ID of existing subnet that you provision the login nodes pool in. You can only define one subnet.
Update policy: If this setting is changed, the update is not allowed.
SecurityGroups(Optional[String])-
A list of security groups to use for the login nodes pool. If no security groups are specified, Amazon ParallelCluster creates security groups for you.
Update policy: If this setting is changed, the update is not allowed.
AdditionalSecurityGroups(Optional[String])-
A list of additional security groups to use for the login nodes pool.
Update policy: If this setting is changed, the update is not allowed.
Dcv(Optional)-
Defines configuration settings for the NICE DCV server that runs on the login nodes. For more information, see Connect to the head and login nodes through Amazon DCV
Dcv: Enabled:booleanPort:integerAllowedIps:stringImportant
By default, the NICE DCV port setup by Amazon ParallelCluster is open to all IPv4 addresses. You can connect to a NICE DCV port only if you have the URL for the NICE DCV session and connect to the NICE DCV session within 30 seconds of when the URL is returned from pcluster dcv-connect. Use the
AllowedIpssetting to further restrict access to the NICE DCV port with a CIDR-formatted IP range and use the Port setting to set a nonstandard port.Update policy: If this setting is changed, the update is not allowed.
Note
Support for DCV on login nodes is added in Amazon ParallelCluster version 3.11.0.
Enabled(RequiredBoolean)-
Specifies whether NICE DCV is enabled on the login nodes in the pool. The default value is
false.Update policy: If this setting is changed, the update is not allowed.
Note
NICE DCV automatically generates a self-signed certificate that's used to secure traffic between the NICE DCV client and NICE DCV server that runs on the login node. To configure your own certificate, see Amazon DCV HTTPS certificate.
Port(OptionalInteger)-
Specifies the port for NICE DCV. The default value is
8443.Update policy: If this setting is changed, the update is not allowed.
AllowedIps(OptionalString)-
Specifies the CIDR-formatted IP range for connections to NICE DCV. This setting is used only when Amazon ParallelCluster creates the security group. The default value is
0.0.0.0/0, which allows access from any Internet address.Update policy: If this setting is changed, the update is not allowed.
CustomActions(Optional)-
Specifies the custom scripts to run on the login nodes.
CustomActions: OnNodeStart: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringOnNodeConfigured: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringOnNodeUpdated: Sequence: - Script:stringArgs: -stringScript:stringArgs: -stringNote
Support for custom actions on login nodes is added in Amazon ParallelCluster version 3.11.0.
OnNodeStart(Optional)-
Specifies single script or a sequence of scripts to run on the login nodes before any node deployment bootstrap action is started. For more information, see Custom bootstrap actions.
Sequence(Optional)-
List of scripts to run. Amazon ParallelCluster runs the scripts in the same order as they are listed in the configuration file, starting with the first.
Script(RequiredString)-
Specifies the file to use. The file path can start with
https://ors3://. Args(Optional[String])-
List of arguments to pass to the script.
Update policy: If this setting is changed, the update is not allowed.
Script(RequiredString)-
Specifies the file to use for a single script. The file path can start with
https://ors3://. Args(Optional[String])-
List of arguments to pass to the single script.
OnNodeConfigured(Optional)-
Specifies single script or a sequence of scripts to run on the login nodes after the node bootstrap processes are complete. For more information, see Custom bootstrap actions.
Sequence(Optional)-
List of scripts to run. Amazon ParallelCluster runs the scripts in the same order as they are listed in the configuration file, starting with the first.
Script(RequiredString)-
Specifies the file to use. The file path can start with
https://ors3://. Args(Optional[String])-
List of arguments to pass to the script.
Update policy: If this setting is changed, the update is not allowed.
Script(RequiredString)-
Specifies the file to use for a single script. The file path can start with
https://ors3://. Args(Optional[String])-
List of arguments to pass to the single script.
Update policy: If this setting is changed, the update is not allowed.
OnNodeUpdated(Optional)-
Specifies single script or a sequence of scripts to run after the head node update is completed and the scheduler and shared storage are aligned with the latest cluster configuration changes. For more information, see Custom bootstrap actions.
Sequence(Optional)-
List of scripts to run. Amazon ParallelCluster runs the scripts in the same order as they are listed in the configuration file, starting with the first.
Script(RequiredString)-
Specifies the file to use. The file path can start with
https://ors3://. Args(Optional[String])-
List of arguments to pass to the script.
Script(RequiredString)-
Specifies the file to use for a single script. The file path can start with
https://ors3://. Args(Optional[String])-
List of arguments to pass to the single script.
Update policy: If this setting is changed, the update is not allowed.
Note
Amazon ParallelCluster doesn't support including both a single script and
Sequencefor the same custom action.
Iam(Optional)-
Specifies either an instance role or an instance profile to use on the login nodes to override the default instance role or instance profile for the cluster.
Iam: InstanceRole:stringInstanceProfile:stringAdditionalIamPolicies: - Policy:stringNote
Starting with Amazon ParallelCluster version 3.11.0, the update policy is: The login nodes in the pool must be stopped for this setting to be changed for an update.
InstanceProfile(OptionalString)-
Specifies an instance profile to override the default login node instance profile. You can't specify both
InstanceProfileandInstanceRole. The format isarn:Partition:iam::Account:instance-profile/. If this is specified, theInstanceProfileNameInstanceRoleandAdditionalIamPoliciessettings can't be specified.Update policy: If this setting is changed, the update is not allowed.
InstanceRole(OptionalString)-
Specifies an instance role to override the default login node instance role. You can't specify both
InstanceProfileandInstanceRole. The format isarn:Partition:iam::Account:role/RoleName. If this is specified, theInstanceProfileandAdditionalIamPoliciessettings can't be specified.Update policy: If this setting is changed, the update is not allowed.
AdditionalIamPolicies(Optional)-
AdditionalIamPolicies: - Policy:stringAn IAM policy Amazon Resource Name (ARN).
Specifies a list of Amazon Resource Names (ARNs) of IAM policies for Amazon EC2. This list is attached to the root role used for the login node in addition to the permissions that are required by Amazon ParallelCluster.
An IAM policy name and its ARN are different. Names can't be used.
If this is specified, the
InstanceProfileandInstanceRolesettings can't be specified. We recommend that you useAdditionalIamPoliciesbecauseAdditionalIamPoliciesare added to the permissions that Amazon ParallelCluster requires, and theInstanceRolemust include all required permissions. The required permissions often change from release to release as features are added.There's no default value.
Update policy: If this setting is changed, the update is not allowed.
Policy(Required[String])-
Update policy: If this setting is changed, the update is not allowed.