Which AWS service allows you to monitor the performance of your EC2 instances?
The Elastic Network Adapter (ENA) driver publishes network performance metrics from the instances where they are enabled. You can use these metrics to troubleshoot instance performance issues, choose the right instance size for a workload, plan scaling activities proactively, and benchmark applications to determine whether they maximize the performance available on an instance. Show
Amazon EC2 defines network maximums at the instance level to ensure a high-quality networking experience, including consistent network performance across instance sizes. AWS provides maximums for the following for each instance:
When the network traffic for an instance exceeds a maximum, AWS shapes the traffic that exceeds the maximum by queueing and then dropping network packets. You can monitor when traffic exceeds a maximum using the network performance metrics. These metrics inform you, in real time, of impact to network traffic and possible network performance issues. Contents
RequirementsThe following requirements apply to Linux instances.
Metrics for the ENA driverThe ENA driver delivers the following metrics to the instance in real time. They provide the cumulative number of packets queued or dropped on each network interface since the last driver reset. The following metrics are available on Linux instances, FreeBSD instances, and DPDK environments.
View the network performance metrics for your Linux instanceYou can publish metrics to your favorite tools to visualize the metric data. For example, you can publish the metrics to Amazon CloudWatch using the CloudWatch agent. The agent enables you to select individual metrics and control publication. You can also use the ethtool to retrieve the metrics for each network interface, such as eth0, as follows.
Metrics for ENA ExpressENA Express is powered by AWS Scalable Reliable Datagram (SRD) technology. SRD is a high performance network transport protocol that uses dynamic routing to increase throughput and minimize tail latency. You can use ENA Express metrics to help ensure that your instances take full advantage of the performance improvements that SRD technology provides, for example:
The following ENA Express metrics are available using the ethtool command for Linux based instances.
To see a list of metrics that are filtered for ENA Express, run the following ethtool command for your network interface (shown here as
Egress traffic (outgoing packets) To ensure that your egress traffic uses SRD as expected, compare the number of SRD eligible packets ( Significant differences between the number of eligible packets and the number of SRD packets sent are often caused by resource utilization issues. When the network card attached to the instance has used up its maximum resources, or if packets are over the MTU limit, eligible packets are not able to transmit via SRD, and must fall back to standard ENA transmission. Packets can also fall into this gap during live migrations or live droplet updates. Additional troubleshooting is required to determine the root cause. You can ignore occasional minor differences between the number of eligible packets and the number of SRD packets. This can happen when your instance establishes a connection to another instance for SRD traffic, for example. To find out what percentage of your total egress traffic over a given time period uses SRD, compare the number of SRD packets sent ( Ingress traffic (incoming packets) To find out what percentage of your ingress traffic uses SRD, compare the number of SRD packets received ( Resource utilization Resource utilization is based on the number of concurrent SRD connections a single instance can hold at a given time. The resource utilization metric ( When the network traffic for an instance exceeds a maximum, AWS shapes the traffic that exceeds the maximum by queueing and then dropping network packets. Persistence Egress and ingress metrics accrue while ENA Express is enabled for the instance. Metrics stop accruing if ENA Express is deactivated, but persist as long as the instance is still running. Metrics reset if the instance reboots or is terminated, or if the network interface is detached from the instance. Network performance metrics with the DPDK driver for ENAThe ENA driver version 2.2.0 and later supports network metrics reporting. DPDK 20.11 includes the ENA driver 2.2.0 and is the first DPDK version to support this feature. You can use an example application to view DPDK statistics. To start an interactive version of the example application, run the following command.
Within this interactive session, you can enter a command to retrieve extended statistics for a port. The following example command retrieves the statistics for port 0.
The following is an example of an interactive session with the DPDK example application.
For more information about the example application and using it to retrieve extended statistics. see Testpmd Application User Guide in the DPDK documentation. Metrics on instances running FreeBSDStarting with version 2.3.0, the ENA FreeBSD driver
supports collecting network performance metrics on instances running FreeBSD. To enable the collection of FreeBSD metrics, enter the following command and set
For example, the following command sets the driver to collect FreeBSD metrics on network interface 1 every 10 seconds:
To turn off the collection of FreeBSD metrics, you can run the preceding command and
specify Once you are collecting FreeBSD metrics, you can retrieve the latest set of collected metrics by running the following command.
Which AWS service collects performance metrics from EC2 instances?The unified CloudWatch agent enables you to do the following: Collect internal system-level metrics from Amazon EC2 instances across operating systems. The metrics can include in-guest metrics, in addition to the metrics for EC2 instances.
What is used to monitor performance of AWS services?CloudWatch is a monitoring service for AWS Cloud resources and the workloads that run on AWS. You can use CloudWatch to collect and track metrics, collect and monitor log files, and set alarms.
Which AWS service can be used to monitor your company's fleet of EC2 instances which can be used to identify performance?Amazon EC2 sends metrics to Amazon CloudWatch. You can use the AWS Management Console, the AWS CLI, or an API to list the metrics that Amazon EC2 sends to CloudWatch. By default, each data point covers the 5 minutes that follow the start time of activity for the instance.
Which AWS service may be used to monitor EC2 instances and provides near realAmazon CloudWatch can monitor AWS resources such as Amazon EC2 instances, Amazon DynamoDB tables, and Amazon RDS DB instances, as well as custom metrics generated by your applications and services, and any log files your applications generate.
|