ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upload module + direct_io


  • To: nginx-ru <nginx-ru@xxxxxxxxx>
  • Subject: Re: Upload module + direct_io
  • From: dimkalinux <dimkalinux@xxxxxxxxx>
  • Date: Wed, 21 Apr 2010 20:56:32 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type:content-transfer-encoding; bh=wp52KRow6v5OUlyd7i8DdcLDg0HukcCuHCVF1NCQ9hE=; b=f8lQckUAtb3Thsz/uA8ZJBwlxPUXFkAt/PpP8r8oUXQ4Vr+eGSy/r6/VvcFSbyNl52 2t9UVeXWeYdiDRv6f3IOzUzc8J71UcLVYuo6aOhxEwyPX6MbuvNzkDh8tg428KmwtTDc bfwKSOkTSKm0yetUKP8Ie2v3OiyG1ruFmP5jo=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=NrTn5Bzc4Hsdm2fNFhPMgdv+/1uPvy9nya/X69MbFPqCG+SJRDrkYHnWJf5m6ThS0g uN3u8F7Nr0HPyOo2QQvqGFCxH/PoiGwsDaf4hDNrA7iHssmzzv6pK0uzC7y3v2dbhtZQ rntW82gx1jFffC457YhHe/rxW+XCxekORUZSA=

Нельзя включить DIRECT IO и для аплоада в вашем модуле? Или модуль
использует только возможности nginx?

client_body_buffer_size и upload_buffer_size уже используем.
Какие настройки рекомендуются для аплоада 500 мб - 2 гигабайтных файлов?

Текущий конфиг.

location /upload_1
{
        gzip              off;
        upload_buffer_size 16m;
        client_body_buffer_size 5m;

        upload_limit_rate 7m;

        # Pass altered request body to this location
        upload_pass   /realyupload;

        # Store files to this location
        upload_store /var/upload/1/tmp_up;

        # 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_content_type";
        upload_set_form_field $upload_field_name.path "$upload_tmp_path";
        upload_set_form_field $upload_field_name.ip "$remote_addr";
        upload_set_form_field $upload_field_name.storage_name "upload_1";

        upload_aggregate_form_field "$upload_field_name.size" 
"$upload_file_size";

        # Pass matching fields from client to backend
        upload_pass_form_field "submit";
        upload_pass_form_field "progress_id";
        upload_pass_form_field "uploadHidden";
        upload_pass_form_field "uploadPassword";
        upload_pass_form_field "uploadDesc";

        upload_cleanup 400 403 404 499 500-505;
        track_uploads proxied 30s;

        # access
        if ($geo = world) {
            return 403;
        }
}


-- 
dimka-linux,
Jabber: dimkalinux@xxxxxxxxx
Public key: 8B5EDD83
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.