Are you getting the most out of your AWS investment? Get your free AWS Well-Architected Assessment.

2021 Fillmore Street #1128

}

24/7 solutions

Amazon RDS - AllCode

AWS Well Architected Framework for RDS Metrics – AllCode

These are the metrics that you want to monitor in order to assure that you RDS is in running according to the standards for the Well Architected Framework.

Metrics Monitoring on AWS and Ensuring Optimization

While Amazon’s services can afford to withstand higher activity and can adjust to meet increased throughput, it’s still advisable to watch activity carefully.  Optimization of any applications built on this platform will lead to a lower monthly bill in the long term.  Using AWS’ Relational Database Service (RDS) does come with its own set of metrics monitoring options to show users what resources they are proactively using.

This includes:

    • CPU Utilization
    • Queries
    • Deadlocks
    • Database Connections
    • DML Throughput
    • DDL Latency
    • Available RAM
    • Row Lock Time
    • Network Throughput
    • Active Transactions

CPU Utilization

As it’s plainly stated, this is the percentage of how much the CPU’s capacity is occupied by certain resources.  Metrics are found here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: High CPU Utilization threshold reached
    • Criteria: Cpu utilization is >=25% in the last 5 mins

Queries

This metric counts the number of queries made per second.  Metrics are found here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: High number of Queries threshold reached
    • Criteria: Number of queries >=10 in the last 5 mins

Deadlocks

Deadlock occurs when there are multiple database connections running queries on the same set of data. The first thread locks row X, then the second thread locks row Y, then the first thread tries to lock row Y and waits, then the second thread tries to lock row X and waits.  Monitoring for such incidents is found here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Deadlocks threshold reached
    • Criteria: Deadlocks >=2 in the last 5 mins

Database Connections

The number of connections to a Database instance.  All connections are logged here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Max connections alarm threshold reached
    • Criteria: Max number of db connections is >=2 in the last 5 mins

DML Throughput

This type of throughput covers the average number of times data is inserted, updated, and deleted per second.  The average data interaction is logged here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Low DML Throughput Threshold reached
    • Criteria: Avg number of DML <=0.5 in the last 5 mins

DDL Latency

Similar to DML Throughput, DDL Latency covers the average duration a data insert, update, or deletion constitutes.  The average data interaction duration is logged here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: High DDL Latency threshold reached
    • Criteria: Avg DDL Latency >=25 in the last 5 mins

Freeable Memory

The amount of available random access memory. For MariaDB, MySQL, Oracle, and PostgreSQL DB instances, this metric reports the value of the MemAvailable field of /proc/meminfo.  Available RAM is tracked here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Low Freeable Memory threshold reached
    • Criteria: Freeable Memory <=500MB in the last 5 mins

Row Lock Time

{unable to find content on this category} Metrics are logged here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Row Locks threshold reached
    • Criteria: Row Locks >=5 in the last 5 mins

Network Throughput

The amount of outgoing and inbound traffic to a specific database instance.  This includes both customer database traffic and traffic associated with monitoring and replication.  Traffic is monitored from here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Low Network Throuput threshold reached
    • Criteria: Network Throughput is <=5 in the last 5 mins

Active Transactions

Counts the total active transactions.  Everything is logged here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Active Transactions threshold reached
    • Criteria: Active Transactions >=10 in the last 5 mins

Select Throughput

The average number of queries made per second.  This metric is monitored from here.

    • Environment: Dev
    • Cluster Identifier: oneriver-investor-portal-db-dev
    • Alarm: Select Throughput threshold reached
    • Criteria: Select Throughput <=10 in the last 5 mins

Dolan Cleary

Dolan Cleary

I am a recent graduate from the University of Wisconsin - Stout and am now working with AllCode as a web technician. Currently working within the marketing department.

Related Articles

Models of Migration on AWS

Models of Migration on AWS

Cloud computing does offer many benefits to users who are just starting to put together applications and solutions. Having an existing solution will not preclude an organization from being able to take advantage of the cloud. Migrating those solutions to a cloud environment can prove to be tricky for users who haven’t planned in advance.

What is DevOps and How Developers Benefit

What is DevOps and How Developers Benefit

DevOps is a composition of best practices, principles, and company cultural concepts that are tailored to improve coordination in either development or IT teams in an organization. These standards help to streamline and automate the delivery cycle and allow teams to deploy applications sooner. In the case of arising issues, teams can respond faster and develop fixes sooner.

AWS Migration Acceleration Program

AWS Migration Acceleration Program

The AWS Migration Acceleration Program is offered to help organizations migrate existing applications and workloads to the Amazon Cloud more efficiently. This includes tools, resources, and guidance about the best practices for migration and how to facilitate changes properly without disrupting business operations.