AWS EC2 中的 MySQL - 它如何扩展?
当您不再使用一个数据库实例时,使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还可以使用 Amazon RDS(他们在云中的 MySQL 版本)并摆脱困境完全运行 MySQL 服务器业务(每个服务器实例的费用会稍高一些,但可以进行数据库快照等)。
Amazon RDS 目前支持五种数据库实例类,价格从每小时 11 美分一直到每小时 3.10 美元:
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: