Handle multiple large image upload with Passenger

20 views
Skip to first unread message

Pandurengaraj Balraj

unread,
May 8, 2013, 9:05:32 AM5/8/13
to phusion-...@googlegroups.com
Hi,

I want to deploy an app where there will be multiple images upload will be handled. Each image would be of size 3-4Mb in size.

I am new to Phusion passenger deployment. How should I need to configure the RAM, Process. how to handle the PassengerMaxPoolSize for handling this.

Please help me. Thanks in Advance

Tinco Andringa

unread,
May 10, 2013, 5:05:12 AM5/10/13
to phusion-...@googlegroups.com
Hi,

This really depends on what kind of way the images will be accessed. Having enough ram to cache many images could never hurt, but if there's thousands of images that are randomly accessed then this could be a waste.

If the images are in your public/ folder (or any other folder that nginx can see) then nginx will host them directly without passenger and you get some extra performance, but passenger processes (especially Phusion Passenger 4).

Configuring PassengerMaxPoolSize depends on your machine, I would advice yuo experiment. Have it at ~your amount of cores first, and then experiment with making it higher and see what it does to your throughput/latency.

Kind regards,
Tinco Andringa



--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages