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


How AWS opsworks manages user uploaded content

可能是一个新手问题,但无法在网络上获得明确的答案,所以请帮忙。场景是:我有两个 php 服务器实例(假设 A 和 B),一个负载均衡实例和一个 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应用于我的网站,这种混乱不允许我继续。任何链接都将有用。

我在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