Cross-Account Amazon EC2 Status Monitoring for HPC Clusters
Publication date: February 22, 2024 (Diagram history)
This reference architecture demonstrates how to build a mechanism to
monitor Amazon Elastic Compute Cloud
The following two use cases might use this architecture:
-
A customer organization has many separate divisions using separate AWS accounts deploying elastic Amazon EC2-based HPC clusters. A central IT admin group wants to monitor these resources in real time from a single centralized source to better manage workflows and to be aware of current resource use.
-
A third-party partner is managing HPC deployments in a customer account, but wants to help the customer meter usage, create budgets, send notifications, and improve overall visibility into their HPC use. The customers don’t want to share all logs and activities within an account with the partner, only the relevant HPC resources.
Cross-Account Amazon EC2 Status Monitoring for HPC Clusters diagram
-
In this diagram, there are two types of AWS accounts:
-
HPC cluster account(s) - These accounts are where the Amazon EC2 instance-based HPC compute clusters are deployed.
-
Centralized monitoring account - This is a centralized account where one or more HPC cluster accounts sends cluster notification statuses.
These are Amazon EC2 instances to be monitored. When the instance state changes (start, stop, terminate), it sends the status of related events to Amazon EventBridge
. -
-
EventBridge events are filtered by an Amazon EC2 tag, and only those matching the tag string are passed to the monitoring account in the form of a Amazon CloudWatch log. You need to have an Amazon EC2 tag attached (by default, the HPC tag) in order to be monitored. This limits the volume and type account activity being shared with the centralized monitoring account.
-
Once events are logged in Amazon CloudWatch Logs in the HPC cluster account, it shares these logs with the centralized monitoring account by enabling the cross-account observability
feature in Amazon CloudWatch. -
Monitor the latest cluster status in the CloudWatch dashboard. A dashboard is preconfigured and deployed into the centralized monitoring account as a part of the deployment.
Further reading
For additional information, refer to