简体   繁体   English

AWS EC2中的MySQL - 它如何扩展?

[英]MySQL in AWS EC2 - How does it scale?

When you move beyond using one instance for your database, what is the best practice when using EC2? 当您超越为数据库使用一个实例时,使用EC2时的最佳做法是什么? If the first instance is a master and you're spinning up slaves, they would need to scan the transaction log and bring themselves up to date before the slaves are useable correct? 如果第一个实例是主设备并且您正在启动从设备,那么他们需要扫描事务日志并在从设备可用之前使其自己更新吗? If the master had been running awhile and was busy, this could take a very long time, right? 如果主人已经跑了一段时间并且很忙,这可能需要很长时间,对吧? Is it smarter to use something besides master-slave on EC2? 在EC2上使用除主从之外的东西更聪明吗? I've seen MySQL Enterprise has support for EC2 but it wasn't clear (to me) on the MySQL site what features this adds. 我见过MySQL Enterprise支持EC2,但我不清楚(对我来说)MySQL网站增加了哪些功能。 Does it have some added functionality that makes spawning new instances fast and turnkey-like? 它是否具有一些附加功能,可以快速生成新实例并且像交钥匙一样?

Fundamentally, I'm trying to figure how you auto-scale the database. 从根本上说,我试图弄清楚如何自动扩展数据库。

You could also use the Amazon RDS (their version of MySQL in the cloud) and get out of the running a MySQL server business altogether (you'll pay slightly more per server instance but you can do database snapshots/etc.). 您还可以使用Amazon RDS (他们在云中的MySQL版本)并完全退出运行MySQL服务器业务(您将为每个服务器实例支付更多费用,但您可以执行数据库快照等等)。

Amazon RDS currently supports five DB Instance Classes, starting at 11 cents an hour going all the way to $3.10 an hour: Amazon RDS目前支持五个数据库实例类,从每小时11美分开始一直到每小时3.10美元:

* Small DB Instance: 1.7 GB memory, 1 ECU (1 virtual core with 1 ECU), 64-bit platform.
* Large DB Instance: 7.5 GB memory, 4 ECUs (2 virtual cores with 2 ECUs each), 64-bit platform
* Extra Large DB Instance: 15 GB of memory, 8 ECUs (4 virtual cores with 2 ECUs each), 64-bit platform
* Double Extra Large DB Instance: 34 GB of memory, 13 ECUs (4 virtual cores with 3,25 ECUs each), 64-bit platform
* Quadruple Extra Large DB Instance: 68 GB of memory, 26 ECUs (8 virtual cores with 3.25 ECUs each), 64-bit platform

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM