Some of the cost components depend on your configuration. In addition to CloudWatch metrics and Performance Insights that the bot mentioned as separately charged optional features, you might also set RDS to send logs to CloudWatch logs, where both the log vending and storage would incur some costs.
Since you're looking at costs and are running without commitments on on-demand capacity, you might also want to take the opportunity to grab some quick wins. db.m5.large is based on the Intel x86-64 processor architecture and fifth-generation EC2 instances launched in November 2017. db.m6i.large and db.m6i.xlarge are sixth-generation equivalents also based on Intel's processors.
AWS has their own Graviton line of processors optimised for cloud workloads and based on the Arm64 processor architecture. With RDS, switching to them is super easy. You can switch between Intel and Graviton processors just as you could between two Intel processors: simply change the "instance type" selection for your database instance. RDS runs exactly the same software on both platforms, so for your applications, there's no difference between the processor options. It's even possible to switch an RDS cluster from Intel to Graviton one node at a time; since the software is the same, one cluster node can seamlessly run on Intel while the other runs on Graviton.
AWS's general guidance is that the price-performance ratio can be up to 40% better over the comparable instance generation using Intel's processors, and given that your instance types are older ones, the improvement may even be greater. The m6g/c6g/r6g instance families use Graviton2 processors, and m7g/c7g/r7g use newer, more powerful Graviton3 processors. Graviton4 doesn't seem to be launched for RDS yet in us-east-2, but when it becomes available, it'll have the 8g suffix in the instance family identifier and again more power per dollar.
Without considering the possibility that with the more powerful processors, you might be able to switch down to smaller instance families/types (such as from m5 to t4g or from m6i.xlarge to r7g.large), simply mapping your current Intel instances to the correspondingly sized Graviton instance types, you'd get cost savings right away. Quoting list pricing at https://aws.amazon.com/rds/postgresql/pricing/:
db.m5.large and db.m6i.large (both at $0.356/h) would map to:
- db.m7g.large: $0.337/h (Graviton3)
- db.m6g.large: $0.318/h (Graviton2)
db.m6i.xlarge ($0.712/h) would map to:
- db.m7g.xlarge: $0.674/h (Graviton3)
- db.m6g.xlarge: $0.636/h (Graviton2)
Note that while the Graviton2 generation instances have cheaper price points, they are less powerful than Graviton3, so considering right-sizing, Graviton3 may easily outperform them cost-wise. Answer from Leo K on repost.aws
Concurrencylabs
concurrencylabs.com › blog › guide-to-rds-reserved
Part II: RDS - The Ultimate Guide to Saving Money with AWS Reserved "Anything" - Concurrency Labs
Choose according to your tolerance for 1-time large payments and the savings difference between All Upfront and No Upfront. RDS only offers Standard Offering Class and it supports Instance Size Flexibility, which makes things simpler compared to EC2. This means: Once you purchase RDS Reserved for a particular DB instance family (i.e. db.m5, db.r4, etc.), you cannot apply that reserved discount to a different instance family.
AWS
aws.amazon.com › database › amazon rds › amazon rds custom pricing
Amazon RDS Custom Pricing – Amazon Web Services
1 week ago - 1 db.m5.xlarge Single-AZ instance x $0.410/hour = $0.410 Hours in month: 730 Total: $0.410 * 730 = $299.30 · Database storage consists of one or more Amazon Elastic Block Store (Amazon EBS) volumes attached to your Amazon RDS Custom DB instance that store the data and log files.
Amazon EC2
instances.vantage.sh › rds
Amazon RDS Instance Comparison
A free and easy-to-use tool for comparing RDS Instance features and prices.
AWS
aws.amazon.com › amazon rds › amazon rds for mysql › amazon rds for mysql pricing
Amazon RDS for MySQL pricing
1 week ago - With Amazon RDS, you have three ... hourly price. Amazon RDS Reserved Instances provide size flexibility for the MySQL database engine. With size flexibility, your RI’s discounted rate will automatically apply to usage of any size in the same instance family (M5, T3, R5, etc.). Size flexibility can also be applied to the instance deployment option. For example, to buy a Reserved Instance for Multi-AZ DB Cluster, you can buy equivalent of one m6gd.large...
Top answer 1 of 2
1
Some of the cost components depend on your configuration. In addition to CloudWatch metrics and Performance Insights that the bot mentioned as separately charged optional features, you might also set RDS to send logs to CloudWatch logs, where both the log vending and storage would incur some costs.
Since you're looking at costs and are running without commitments on on-demand capacity, you might also want to take the opportunity to grab some quick wins. db.m5.large is based on the Intel x86-64 processor architecture and fifth-generation EC2 instances launched in November 2017. db.m6i.large and db.m6i.xlarge are sixth-generation equivalents also based on Intel's processors.
AWS has their own Graviton line of processors optimised for cloud workloads and based on the Arm64 processor architecture. With RDS, switching to them is super easy. You can switch between Intel and Graviton processors just as you could between two Intel processors: simply change the "instance type" selection for your database instance. RDS runs exactly the same software on both platforms, so for your applications, there's no difference between the processor options. It's even possible to switch an RDS cluster from Intel to Graviton one node at a time; since the software is the same, one cluster node can seamlessly run on Intel while the other runs on Graviton.
AWS's general guidance is that the price-performance ratio can be up to 40% better over the comparable instance generation using Intel's processors, and given that your instance types are older ones, the improvement may even be greater. The m6g/c6g/r6g instance families use Graviton2 processors, and m7g/c7g/r7g use newer, more powerful Graviton3 processors. Graviton4 doesn't seem to be launched for RDS yet in us-east-2, but when it becomes available, it'll have the 8g suffix in the instance family identifier and again more power per dollar.
Without considering the possibility that with the more powerful processors, you might be able to switch down to smaller instance families/types (such as from m5 to t4g or from m6i.xlarge to r7g.large), simply mapping your current Intel instances to the correspondingly sized Graviton instance types, you'd get cost savings right away. Quoting list pricing at https://aws.amazon.com/rds/postgresql/pricing/:
db.m5.large and db.m6i.large (both at $0.356/h) would map to:
- db.m7g.large: $0.337/h (Graviton3)
- db.m6g.large: $0.318/h (Graviton2)
db.m6i.xlarge ($0.712/h) would map to:
- db.m7g.xlarge: $0.674/h (Graviton3)
- db.m6g.xlarge: $0.636/h (Graviton2)
Note that while the Graviton2 generation instances have cheaper price points, they are less powerful than Graviton3, so considering right-sizing, Graviton3 may easily outperform them cost-wise.
2 of 2
0
You're on the right track with your understanding of RDS PostgreSQL costs, but there are a few additional factors to consider beyond the three items you've mentioned.
1. To answer your first question: Yes, there are additional potential costs associated with RDS instances beyond compute, storage, and backup snapshots. These may include:
- Data transfer costs: Inbound data transfer is typically free, but outbound data transfer may incur charges depending on the destination and volume.
- I/O operations: If you're using Provisioned IOPS (SSD) storage, you'll be charged for the number of I/O operations you provision.
- Enhanced Monitoring: If enabled, this feature incurs a small additional cost based on the amount of metrics data sent to CloudWatch.
- Performance Insights: This optional feature for monitoring database performance may have additional costs depending on your usage.
2. Regarding your second question about storage and backup snapshot costs:
Storage costs for RDS instances are determined by:
- The type of storage you choose (General Purpose SSD, Provisioned IOPS SSD, or Magnetic)
- The amount of storage provisioned in GB
- The region where your RDS instance is located
For backup snapshots:
- Amazon RDS provides backup storage up to 100% of your total database storage for each region at no additional charge.
- For backup storage beyond this amount, you're charged per GB-month.
- The cost of backup storage varies by region.
It's worth noting that with Multi-AZ deployments, you're effectively paying for two instances (primary and standby), which doubles your compute costs. However, you're not charged extra for data transfer between your primary and standby instances.
To optimize costs, consider using Reserved Instances for long-term workloads, monitoring and adjusting your provisioned storage as needed, and leveraging AWS Cost Explorer and AWS Compute Optimizer for cost analysis and recommendations.
**Sources**
Viewing RDS DB instance recommendations - AWS Compute Optimizer
Cost - Maintaining Personalized Experiences with Machine Learning
Amazon EC2 cost breakdown - How AWS Pricing Works
Analytics and storage - Cost Modeling Data Lakes for Beginners
Dbcost
dbcost.com › instance › db.m5d.large
DB Cost | db.m5d.large Pricing
The AWS db.m5d.large has 2 CPUs and 8 GB memory, and is available in 23 regions. On-demand hourly prices range from $0.21 to $0.319 for different regions. The on-demand annual price for full usage ranges from $1839.6 to $2794.44.
AWS
aws.amazon.com › amazon rds › amazon rds on outposts › amazon rds on outposts pricing
RDS on Outposts Pricing
1 week ago - On-Demand DB Instances Management price let you pay for managing by each hour when your DB instance runs with no long-term commitments.
Reddit
reddit.com › r/aws › the cheapest rds db instance i can find is $91 per month. but every post i see seems to suggest that is very high, how can i find the cheapest?
r/aws on Reddit: The cheapest RDS DB instance I can find is $91 per month. But every post I see seems to suggest that is very high, how can I find the cheapest?
April 8, 2024 -
I created a new DB, and set up for Standard, tried Aurora MySQL, and MySQL, etc. Somehow Aurora is cheaper than reg. MySQL.
When I do the drop down option for Instance size, t3.medium is the lowest. I've tried playing around with different settings and I'm very confused. Does anyone know a very cheap set up. I'm doing a project to become more familiar with RDS, etc.
Thank you
Top answer 1 of 17
105
Dont use Aurora. If you use MySQL or Postgresql there is a t4g.micro instance for around $12 a month
2 of 17
74
Choose MySQL Choose Dev/Test Choose Single DB instance Choose Burstable Classes Choose t4g.micro Change storage to 20GB Cost should be: $13.98 monthly + egress bandwidth
Economize
economize.cloud › resources › aws › pricing › rds › db.m5.2xlarge
db.m5.2xlarge pricing: 481.80 monthly - AWS RDS
1 week ago - The db.m5.2xlarge machine type has 8 vCPUs and 32 GB of memory. Pricing for this instance starts at $0.66 per hour and $481.80 monthly.
Aiven
aiven.io › tools › instances › db.m5.2xlarge-vs-db.m5.large
Compare db.m5.2xlarge with db.m5.large | Pricing, CPU, memory
The prices displayed are the current rates set by the selected cloud platform. Are you satisfied with the tool?Are you satisfied with the tool?Yes, I’m satisfied No, I’m not satisfied · Cloud provider · Amazon Web Services · Google Cloud Platform · Coming soon · Microsoft Azure · Coming soon · Region · Select region · Instance A · Select Instance A · db.m5.2xlarge instance details ·
AWS
aws.amazon.com › amazon rds › amazon rds for postgresql › pricing
Amazon RDS for PostgreSQL Pricing
1 week ago - Amazon RDS Reserved Instances (RIs) ... for the DB instance. Amazon RDS provides three RI payment options—No Upfront, Partial Upfront, All Upfront—which enable you to balance the amount you pay upfront with your effective hourly price. Amazon RDS Reserved Instances provide size flexibility for the PostgreSQL database engine. With size flexibility, your RIs discounted rate will automatically apply to usage of any size in the same instance family (M5, T3, R5, ...
CloudPrice
cloudprice.net › home › aws › rds instances
RDS Database Pricing - Compare All MySQL, PostgreSQL, Oracle Instances | CloudPrice
3 days ago - Compare Amazon RDS pricing for MySQL, PostgreSQL, Oracle, SQL Server, and MariaDB. Find the most cost-effective RDS instance for your database. Real-time pricing for on-demand and reserved instances across all AWS regions.
Cloudforecast
cloudforecast.io › home › aws pricing & cost optimization › aws rds pricing and cost optimization guide
AWS RDS Pricing and Cost Optimization Guide | CloudForecast
June 26, 2024 - If you need more space for backups, you pay per GiB at a slightly lower rate than regular storage costs. RDS automatically backs up each storage volume every day. These backups are stored according to the backup retention period. Automated backups will not occur if the DB’s state is not AVAILABLE (for example, if the state is STORAGE_FULL).
AWS
calculator.aws
AWS Pricing Calculator
AWS Pricing Calculator lets you explore AWS services, and create an estimate for the cost of your use cases on AWS.