AWS opsworks如何管理用户上传的内容

时间:2015-01-27 10:26:29

标签: php amazon-web-services aws-opsworks

可能是一个菜鸟问题,但无法在网上得到明确答案,所以请帮忙。 场景是:我有两个php服务器实例(让我们说A和B),一个loadbalance实例和一个mysql实例。堆栈几乎准备就绪,但我脑海中的一个混乱是用户上传的照片会发生什么。

Suppose user comes to sever 'A' through load balancer and uploads the image which gets stored on my "webroot" folder on server 'A'. Now after few days user visits the website again and this time hits server 'B'. He won't be able to see his image as it is residing on server 'A'. I want to know how AWS opswork handles this problem?? Will it sync the data automatically or some extra chef receipe needs to be created from my side.

请指导我。我正在将opswork应用到我的网站,这种混淆不让我继续。任何链接都很有用。

1 个答案:

答案 0 :(得分:0)

我在serverfault上发布了同样的内容并得到了答案。

It will not sync the data. We need to apply mannual approach for the same either through storing the data on Amazon S3 or using NFS as intermediate layer

链接: https://serverfault.com/questions/662706/how-aws-opsworks-manages-user-uploaded-content