From d15b2b627d8cd29b7b7412b6657dc7892f61c54f Mon Sep 17 00:00:00 2001 From: Hanwen Date: Wed, 14 Aug 2024 12:35:23 -0700 Subject: [PATCH] Upload cfn-hup log to CloudWatch cfn-hup log is useful when debugging cluster update failures. Since https://github.com/aws/aws-parallelcluster-cookbook/pull/2614, all nodes rely on cfn-hup, making have the log on CloudWatch important. Signed-off-by: Hanwen --- .../cloudwatch/cloudwatch_agent_config.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cookbooks/aws-parallelcluster-environment/files/cloudwatch/cloudwatch_agent_config.json b/cookbooks/aws-parallelcluster-environment/files/cloudwatch/cloudwatch_agent_config.json index 42cc9f37e..95ceb287a 100644 --- a/cookbooks/aws-parallelcluster-environment/files/cloudwatch/cloudwatch_agent_config.json +++ b/cookbooks/aws-parallelcluster-environment/files/cloudwatch/cloudwatch_agent_config.json @@ -64,6 +64,23 @@ ], "feature_conditions": [] }, + { + "timestamp_format_key": "default", + "file_path": "/var/log/cfn-hup.log", + "log_stream_name": "cfn-hup", + "schedulers": [ + "awsbatch", + "slurm" + ], + "platforms": {{ default_platforms | tojson}}, + "node_roles": [ + "HeadNode", + "ComputeFleet", + "LoginNode", + "ExternalSlurmDbd" + ], + "feature_conditions": [] + }, { "timestamp_format_key": "default", "file_path": "/var/log/chef-client.log",