Hi,

Any idea on setting up Drupal temporary file directory with Amazon S3 bucket? We use plupload module which would give error in file uploading process and we want to come up with an approach to resolve that.

If the Production servers has more than 2 nodes and we see the error "can not copy the temporary://file" as this does not exist, to resolve this issue we have to mention the gluster mount location and set the plupload_temporary_uri variable accordingly.

Thanks

Comments

imteyaz created an issue. See original summary.

deviantintegral’s picture

Status: Active » Postponed (maintainer needs more info)

I think you could use hook_stream_wrappers_alter() to swap out the implementation class.

Putting temporary:// on S3 sounds sketchy to me. First, temporary files are usually small transient files and most code assumes there's no performance issues with temp. Using S3, you'd be looking at *at least* a 200ms hit, possibly more by the time you add in stat calls to check to see if files and directories exist. The S3 module also currently uses temporary files to give acceptable image style performance - altering temporary to go to S3 would negate that, leading go 1-2s+ times for fresh image generation.

This sounds like a server configuration issue to me. If you have multiple web servers, you need to either share tmp over NFS or similar, or you need to configure your load balancers to use sticky sessions to keep authenticated users on the same web server.