简体   繁体   English

将 Zend 应用程序部署到云端

[英]Deploy Zend Application to the cloud

Was wondering if anyone out there has any experience in deploying a Zend community app to the cloud (eg AWS or similar)?想知道是否有人在将 Zend 社区应用程序部署到云(例如 AWS 或类似)方面有任何经验?

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?我是云托管的新手,过去一直有幸为拥有专用服务器的人工作,我主要关心的(非 zend 特定的)是您如何在数据库级别管理弹性? 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.例如,在传统设置中,我将有 2 个盒子以主/从模式运行数据库(Mysql),主服务器复制到从服务器。 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?假设主服务器出现任何 HD 故障,我可以将数据库连接从主服务器切换到从服务器,并在稍后重建主服务器? is this done differently in the cloud?这是在云中以不同方式完成的吗?

Any help/pointers greatly appreciated?任何帮助/指针非常感谢?

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.如果您使用 AWS 来获取自己的虚拟机 (Amazon EC2),那么它基本上与拥有一台专用服务器相同,您可以保持主从设置并以几乎相同的方式工作。

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.但是,如果您计划使用 Amazon 的云数据库服务 (Amazon Simple DB),那么您不必担心主服务器和从服务器,因为 Amazon 会为您执行此操作并确保您始终可以访问您的数据。 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.您可能仍然希望拥有两台虚拟机,以防亚马逊正在进行维护,这可能会导致您的虚拟机不可用,但是,亚马逊强调它将是高度可用的,并且永远不会真正关闭 go,只要您付费。

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

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