且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

连接到MySQL在AWS弹性魔豆

更新时间:2022-12-06 13:55:51

哇。耽误。在你做别的,停止并旋转起来青苗之外你的mysql的机器,或使用亚马逊RDS 。魔豆被设计为自动缩放应用程序的Web层,而不是持有你的数据库。目前它扩展你的应用,这台新机器不会有你的数据。它扩展背下来的那一刻,它可能会删除你的数据库的机器。如果这种实例结束了对退休或已损坏的硬件,青苗将予以更换。

Whoa. Hold up. Before you do anything else, stop and spin up your mysql machine outside of beanstalk, or use Amazon RDS. Beanstalk is designed to autoscale the web tier of your application, not hold your database. The moment it scales your application up, that new machine won't have your data. The moment it scales back down, it might remove your database machine. If that instance ends up on retired or corrupt hardware, beanstalk will replace it.

Give魔豆架构概述一读。注意图中。你的数据库层存在魔豆环境之外,没有在里面。

Give the Beanstalk architectural overview a read. Note the diagram. Your database layer exists outside the beanstalk environment, not in it.

连接到MySQL在AWS弹性魔豆