简体   繁体   English

AWS EC2 或 RDS 上的 mySql 服务器放置

[英]mySql Server Placement on AWS EC2 or RDS

We are currently setting up AWS hosting for our Web Application.我们目前正在为我们的 Web 应用程序设置 AWS 托管。 This Laravel Web Application will have a Schema per company that registers, meaning it will have a large sized mySql server.此 Laravel Web 应用程序将为每个注册的公司提供一个架构,这意味着它将拥有一个大型 mySql 服务器。

I have gone through the motions of setting up a VPC with EC2 instances and and RDS for this mySql server.我已经完成了为此 mySql 服务器设置具有 EC2 实例和 RDS 的 VPC 的动作。 However we are currently looking at using Laravel Forge as a tool to host.但是,我们目前正在考虑使用 Laravel Forge 作为托管工具。 What Forge does differently is that it includes the mySql Server on the EC2 instance not on an RDS. Forge 的不同之处在于它在 EC2 实例而不是 RDS 上包含 mySql 服务器。

The question I have come to ask here is, what are the implications if any of having the mySql server on the EC2 instance rather then an RDS.我来这里要问的问题是,如果在 EC2 实例上而不是 RDS 上拥有 mySql 服务器,这意味着什么。

Would there be performance issues?会不会有性能问题? Is it better practice to have an RDS?拥有 RDS 是更好的做法吗? Or is Forges out the box way of packaging this all together on an EC2 server fine?或者 Forges 是否可以在 EC2 服务器上打包这些东西?

By running this on an EC2 instance you will taking more of the responsibility of managing the database, not just installation but also patching, backups, recovery.通过在 EC2 实例上运行它,您将承担更多管理数据库的责任,不仅仅是安装,还包括修补、备份和恢复。 Harder to maintain functionality such as replication and HA will also be on you to implement and monitor.更难维护的功能(例如复制和 HA)也将由您实施和监控。

By running on RDS AWS is going to take the heavy lifting of this and implement a best practice version of MySQL which offers the flexibility of allowing you to run a MySQL stack in the cloud without having to really think about the implementation details under the hood other than deciding do you want it to be HA and how many replicas do you want.通过在 RDS 上运行,AWS 将承担这一重任,并实施 MySQL 的最佳实践版本,它提供了允许您在云中运行 MySQL 堆栈的灵活性,而无需真正考虑其他实现细节而不是决定您是否希望它成为 HA 以及您想要多少副本。

In saying this by using RDS you're also giving up the ability to run it however you want, you are limited to the versions of the database that RDS supports (although this is now quite soon after release).通过使用 RDS 这么说,您也放弃了随心所欲地运行它的能力,您仅限于 RDS 支持的数据库版本(尽管现在是在发布后不久)。 In addition not all plugins or extensions will be active so check this functionality before deciding.此外,并非所有插件或扩展都将处于活动状态,因此请在决定之前检查此功能。

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

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