upload scalability

vetri nginx-forum at nginx.us
Fri Apr 8 10:21:25 MSD 2011

hi all,

            i am using upload module to post file to the server. how can
i improve scalability of the server to upload files . one server is
running and receiving all uploded files . if i add three or four server
on the backend .will it improve scalability?
here is my configuration  there is no need for backend server but if i
add 3 or 4 backend server will it improve scalability?

i need good tuning to get more concurrency

  worker_processes 20;

error_log logs/error.log notice;

working_directory /usr/local/nginx;

events {
worker_connections 1024;

http {
include mime.types;
default_type application/octet-stream;

server {
listen 80;
client_max_body_size 100m;

# Upload form should be submitted to this location
location /upload {
# Pass altered request body to this location
upload_pass @test;

# Store files to this directory
# The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8 9 should
upload_store /tmp 1;

# Allow uploaded files to be read only by user
upload_store_access user:r;

# Set specified fields in request body
upload_set_form_field "${upload_field_name}_name" $upload_file_name;
upload_set_form_field "${upload_field_name}_content_type"
upload_set_form_field "${upload_field_name}_path" $upload_tmp_path;

# Inform backend about hash and size of a file
upload_aggregate_form_field "${upload_field_name}_md5"
upload_aggregate_form_field "${upload_field_name}_size"

upload_pass_form_field "^submit$|^description$";

# Pass altered request body to a backend
location @test {
proxy_pass http://localhost:8080;
listen 8080;

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,189350,189350#msg-189350

More information about the nginx mailing list