Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Impostazioni di configurazione per definire azioni e argomenti
Le seguenti impostazioni di configurazione vengono utilizzate per definire OnNodeConfiguredazioni OnNodeUpdatede argomenti HeadNodeCustomActionsSchedulingCustomActions/OnNodeStartOnNodeConfigured& OnNodeStart& e//&.
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
Utilizzando l'Sequence
impostazione (aggiunta nella AWS ParallelCluster versione 3.6.0):
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
L'Sequence
impostazione viene aggiunta a partire dalla AWS ParallelCluster versione 3.6.0. Quando si specificaSequence
, è possibile elencare più script per un'azione personalizzata. AWS ParallelCluster continua a supportare la configurazione di un'azione personalizzata con un singolo script, senza includere. Sequence
AWS ParallelCluster non supporta l'inclusione sia di un singolo script che della stessa azione personalizzata. Sequence
Ad esempio, AWS ParallelCluster fallisce se si specifica la seguente configurazione.
[...] 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 [...]