RDS – How to Find Out the Amount of SWAP on AWS RDS Instance

rds

How to find out the amount of SWAP an AWS RDS instance has?
In EC2 one can SSH and find out the amount of SWAP an instance has but how does one find out is RDS?
The purpose is to configure SWAP usage monitoring for RDS in AWS Cloudwatch

Best Answer

It depends on the RDS database you use. The bad news is if you're using Aurora with MySQL compatibility it doesn't have a swap metric. For the other RDS Linux types, you can find Swap Usage in the Monitoring-> CloudWatch section.

RDS Monitoring

According to the Troubleshooting guide linked below:

To monitor swap memory, enable Enhanced Monitoring to review metrics in intervals with a granularity of as little as one second. Enhanced Monitoring collects statistics at the host level, and CloudWatch collects data from the hypervisor level every 60 seconds. You can use Enhanced Monitoring to identify increases or decreases that occur for only one second and to see the CPU and memory that are used by individual processes.

References

Aurora Monitoring
RDS Monitoring
Troubleshoot RDS Swap Memory