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

发布于 2024-08-24 19:12:33 字数 271 浏览 6 评论 0原文

当您不再使用一个数据库实例时,使用 EC2 时的最佳实践是什么?如果第一个实例是主实例并且您正在启动从属实例,那么它们需要扫描事务日志并在从属实例可用之前使自己保持最新状态,对吗?如果主人跑了一段时间很忙,这可能会花很长时间,对吗?在 EC2 上使用除主从之外的其他东西是否更明智?我已经看到 MySQL Enterprise 支持 EC2,但(对我而言)在 MySQL 网站上并不清楚这增加了哪些功能。它是否具有一些附加功能,可以快速生成新实例并且像交钥匙一样?

从根本上来说,我试图弄清楚如何自动扩展数据库。

When you move beyond using one instance for your database, what is the best practice when using 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? I've seen MySQL Enterprise has support for EC2 but it wasn't clear (to me) on the MySQL site what features this adds. 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟沫凡尘 2024-08-31 19:12:33

您还可以使用 Amazon RDS(他们在云中的 MySQL 版本)并摆脱困境完全运行 MySQL 服务器业务(每个服务器实例的费用会稍高一些,但可以进行数据库快照等)。

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

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 currently supports five DB Instance Classes, starting at 11 cents an hour going all the way to $3.10 an hour:

* 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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文