Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.
Konfigurationseinstellungen zur Definition von Aktionen und Argumenten
Die folgenden Konfigurationseinstellungen werden verwendet, um HeadNode/CustomActions/OnNodeStart& OnNodeConfigured& OnNodeUpdatedund Scheduling/CustomActions/OnNodeStart& OnNodeConfiguredAktionen und Argumente zu definieren.
HeadNode: [...] CustomActions: OnNodeStart: # Script URL. This is run before any of the bootstrap scripts are run Script: s3://
amzn-s3-demo-bucket
/on-node-start.sh
Args: - arg1 OnNodeConfigured: # Script URL. This is run after all the bootstrap scripts are run Script: s3://amzn-s3-demo-bucket
/on-node-configured.sh
Args: - arg1 OnNodeUpdated: # Script URL. This is run after the head node update is completed. Script: s3://amzn-s3-demo-bucket
/on-node-updated.sh
Args: - arg1 # Bucket permissions Iam: S3Access: - BucketName:bucket_name
EnableWriteAccess: false Scheduling: Scheduler: slurm [...] SlurmQueues: - Name: queue1 [...] CustomActions: OnNodeStart: Script: s3://amzn-s3-demo-bucket
/on-node-start.sh
Args: - arg1 OnNodeConfigured: Script: s3://amzn-s3-demo-bucket
/on-node-configured.sh
Args: - arg1 Iam: S3Access: - BucketName:bucket_name
EnableWriteAccess: false
Verwenden der Sequence
Einstellung (in AWS ParallelCluster Version 3.6.0 hinzugefügt):
HeadNode: [...] CustomActions: OnNodeStart: # Script URLs. The scripts are run in the same order as listed in the configuration, before any of the bootstrap scripts are run. Sequence: - Script: s3://
amzn-s3-demo-bucket
/on-node-start1.sh
Args: - arg1 - Script: s3://amzn-s3-demo-bucket
/on-node-start2.sh
Args: - arg1 [...] OnNodeConfigured: # Script URLs. The scripts are run in the same order as listed in the configuration, after all the bootstrap scripts are run. Sequence: - Script: s3://amzn-s3-demo-bucket
/on-node-configured1.sh
Args: - arg1 - Script: s3://amzn-s3-demo-bucket
/on-node-configured2.sh
Args: - arg1 [...] OnNodeUpdated: # Script URLs. The scripts are run in the same order as listed in the configuration, after the head node update is completed. Sequence: - Script: s3://amzn-s3-demo-bucket
/on-node-updated1.sh
Args: - arg1 - Script: s3://amzn-s3-demo-bucket
/on-node-updated2.sh
Args: - arg1 [...] # Bucket permissions Iam: S3Access: - BucketName:bucket_name
EnableWriteAccess: false Scheduling: Scheduler: slurm [...] SlurmQueues: - Name: queue1 [...] CustomActions: OnNodeStart: # Script URLs. The scripts are run in the same order as listed in the configuration, before any of the bootstrap scripts are run Sequence: - Script: s3://amzn-s3-demo-bucket
/on-node-start1.sh
Args: - arg1 - Script: s3://amzn-s3-demo-bucket
/on-node-start2.sh
Args: - arg1 [...] OnNodeConfigured: # Script URLs. The scripts are run in the same order as listed in the configuration, after all the bootstrap scripts are run Sequence: - Script: s3://amzn-s3-demo-bucket
/on-node-configured1.sh
Args: - arg1 - Script: s3://amzn-s3-demo-bucket
/on-node-configured2.sh
Args: - arg1 [...] Iam: S3Access: - BucketName:bucket_name
EnableWriteAccess: false
Die Sequence
Einstellung wird ab AWS ParallelCluster Version 3.6.0 hinzugefügt. Wenn Sie angebenSequence
, können Sie mehrere Skripts für eine benutzerdefinierte Aktion auflisten. AWS ParallelCluster unterstützt weiterhin die Konfiguration einer benutzerdefinierten Aktion mit einem einzigen Skript, ohne dies einzuschließenSequence
.
AWS ParallelCluster unterstützt nicht, sowohl ein einzelnes Skript als auch Sequence
dieselbe benutzerdefinierte Aktion einzubeziehen. Schlägt beispielsweise AWS ParallelCluster fehl, wenn Sie die folgende Konfiguration angeben.
[...] CustomActions: OnNodeStart: # Script URL. This is run before any of the bootstrap scripts are run Script: s3://
amzn-s3-demo-bucket
/on-node-start.sh
Args: - arg1 # Script URLs. The scripts are run in the same order as listed in the configuration, before any of the bootstrap scripts are run. Sequence: - Script: s3://amzn-s3-demo-bucket
/on-node-start1.sh
Args: - arg1 - Script: s3://amzn-s3-demo-bucket
/on-node-start2.sh
Args: - arg1 [...]