Aws-parallelcluster: Config vs Template

Created on 14 Feb 2019  路  2Comments  路  Source: aws/aws-parallelcluster

Its more of a distinction question here as the tool help not fully explanatory here.

-c config file uses a configuration file that have the settings for the cloudformation template used to spin the stack,

but how that is different from the template_url , cluster_template as those parameter does not specify , does it mean that I can pcluster create test > then I can grab the CFN template , customize it and reference it in s3 bucket and use it again to do : pcluster -t customizedstack -u s3://customizedstacktmp

Appreciated.

cli question

All 2 comments

Hi @dayyehm ,

--config

The --config parameter is useful when you want to use a configuration file that is not in the defaut path (~/.parallelcluster/config) or if you want to save different configuration files in your desktop in different location.

$ tree ~/.parallelcluster/
.
+--- config
+--- config_custom_1
+--- config_custom_2

You can use this parameter to reference the appropriate file at cluster creation time.

$ pcluster create --config ~/.parallelcluster/config_custom_1 ...

--cluster-template

The --cluster-template specifies the [config ...] section to use in your configuration file. You can define different _cluster_ sections with specific configuration parameters and select the one to use at cluster creation time.

[global]
cluster_template = default
...
[cluster default]
scheduler = sge
vpc_settings = public
...
[cluster batch]
scheduler = awsbatch
vpc_settings = custom-for-batch
...

$ pcluster create --cluster-template batch ...



md5-20a1a51d0bdeea3cc25cdcc69010d710



$ pcluster create --template-url https://s3.amazonaws.com/your-bucket/aws-parallelcluster-custom.cfn.json ...



md5-e754312a9d504da7423cbd9c100a2713



[global]
cluster_template = test
...
[cluster test]
template_url =  https://s3.amazonaws.com/your-bucket/aws-parallelcluster-custom.cfn.json
...

Thank you very much

Was this page helpful?
0 / 5 - 0 ratings