将 Zend 应用程序部署到云端

发布于 2024-11-30 01:29:32 字数 259 浏览 0 评论 0原文

想知道是否有人有将 Zend 社区应用程序部署到云(例如 AWS 或类似)的经验?

我是云托管的新手,过去一直很幸运能够为拥有专用服务器的人工作,我主要关心的(非 zend 特定的)是如何在数据库级别管理弹性?例如,在传统设置中,我将有 2 个机器以主/从模式运行数据库(Mysql),其中主服务器复制到从服务器。假设主服务器出现任何 HD 故障,我可以将数据库连接从主服务器交换到从服务器,并在稍后重建主服务器吗?这在云中的做法是否有所不同?

非常感谢任何帮助/指示吗?

Was wondering if anyone out there has any experience in deploying a Zend community app to the cloud (e.g. AWS or similar)?

I'm new to cloud hosting having always been fortunate enough in the past to work for folks who have dedicated servers, my main concern (non-zend specific) is how you manage resilience at the database level? FOr example I would in a traditional setup have 2 boxes running the DB (Mysql) in Master/Slave mode with the master replicating to the slave. Assuming any HD failure of the Master I could swap the DB connection over from the Master to the slave and rebuild master at a later point? is this done differently in the cloud?

Any help/pointers greatly appreciated?

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

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

发布评论

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

评论(1

递刀给你 2024-12-07 01:29:32

这取决于您使用的云服务类型。如果您使用AWS来获得自己的虚拟机(Amazon EC2),那么它基本上与拥有专用服务器相同,您可以保留主从设置并以大致相同的方式工作。

但是,如果您计划使用亚马逊的云数据库服务(Amazon Simple DB),那么您不必担心主数据库和从数据库,因为亚马逊会为您做这件事并确保您始终可以访问您的数据。唯一的事情是它还处于测试阶段。

云的要点之一是让您不再关注硬件。亚马逊对此感到担忧。

您可能仍然希望拥有两个虚拟机,以防亚马逊正在进行维护,这可能会导致您的虚拟机不可用,但是,亚马逊强调,只要您付费,它就会具有高可用性,并且永远不会真正宕机。

It depends on the type of cloud service that you use. If you're using AWS to get your own virtual machine ( Amazon EC2 ) then it's basically the same as having a dedicated server and you can keep a master slave setup and work them much the same way.

However, if you plan on using Amazon's cloud database service ( Amazon Simple DB ) then you don't have to worry about masters and slaves since Amazon does this for you and makes sure that you always have access to your data. The only thing is that it's in beta.

One of the points of the cloud is to take your mind off the hardware. Amazon worries about that.

You might still want to have two virtual machines in case amazon is doing maintenance that might cause your vm to become unavailable, however, Amazon stresses that it would be highly available and never go down really, so long as you pay.

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