Amazon RDS 与带有 MySQL 的 EC2 的各自优势/限制是什么?

2023-06-24数据库问题
1

本文介绍了Amazon RDS 与带有 MySQL 的 EC2 的各自优势/限制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我意识到两者之间的一些基本差异,即

I realize a couple of basic differences between the two, i.e.

  1. EC2 会更便宜

  1. EC2 is going to be cheaper

RDS 我不需要维护

除了这两个之外,与充当 MySQL 服务器的单独 EC2 服务器相比,从 RDS 运行我的数据库是否有任何优势.假设实例大小相似,两者在处理负载方面是否会遇到相同的限制?

Other than those two, are there any advantages to running my database from RDS as opposed to a separate EC2 server acting as a MySQL server. Assuming similar instance sizes, are both going to run into the same limitations in terms of being able to handle a load?

为了给你更多关于我使用的信息,我有一个数据库,没有太大或任何东西(最大的表有 100 万行),只是高 SELECT 卷.

To give you a little bit more info about my use, I've got a database, nothing too big or anything (biggest table 1 million rows), just high SELECT volume.

推荐答案

这是一个很简单的问题,但答案却很复杂!

This is a simple question with a very complicated answer!

简而言之:如果您使用 RAID0 EBS,EC2 将提供最高性能.执行 RAID0 EBS 需要大量的维护开销,例如:

In short: EC2 will provide maximum performance if you go with a RAID0 EBS. Doing RAID0 EBS requires a pretty significant amount of maintenance overhead, for example:

http://alestic.com/2009/06/ec2-ebs-raid

http://alestic.com/2009/09/ec2-consistent-snapshot

没有 RAID0 EBS 的 EC2 将提供糟糕的 I/O 性能,因此它甚至不是一个真正的选择.

EC2 without RAID0 EBS will provide crappy I/O performance, thus it's not even really an option.

RDS 将提供非常好的(虽然不是最大的)开箱即用的性能.管理控制台很棒,升级实例很容易.只需点击一下即可实现高可用性和只读从站.真是太棒了.

RDS will provide very good (though not maximum) performance out of the box. The management console is fantastic and it's easy to upgrade instances. High availability and read only slaves are a click away. It's REALLY awesome.

简短回答:使用 RDS.还在篱笆上?和RDS一起去!!!如果您喜欢头疼的事,并且每时每刻都在调整以获得最佳性能,那么您可以考虑 EC2 + EBS RAID 0.Vanilla EC2 是 MySQL 托管的一个糟糕选择.

Short answer: Go with RDS. Still on the fence? Go with RDS!!! if you enjoy headaches and tuning every last little bit for maximum performance, then you can consider EC2 + EBS RAID 0. Vanilla EC2 is a terrible option for MySQL hosting.

这篇关于Amazon RDS 与带有 MySQL 的 EC2 的各自优势/限制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

Mysql目录里的ibtmp1文件过大造成磁盘占满的解决办法
ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致...
2025-01-02 数据库问题
151

SQL 子句“GROUP BY 1"是什么意思?意思是?
What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)...
2024-04-16 数据库问题
62

MySQL groupwise MAX() 返回意外结果
MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)...
2024-04-16 数据库问题
13

MySQL SELECT 按组最频繁
MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)...
2024-04-16 数据库问题
16

为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同
Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)...
2024-04-16 数据库问题
13

MySQL GROUP BY DateTime +/- 3 秒
MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)...
2024-04-16 数据库问题
14