file upload size limit?

12 views
Skip to first unread message

Sven Walter

unread,
Jan 18, 2012, 3:09:40 AM1/18/12
to WebROaR - Ruby Application Server
Hey Guys,

could someone tell me how i can setup the file upload size limit with
a webroar environment? it seems that the default limit is set to 2MB
but i need about 10MB.

Thank you!

Kind regards,
Sven Walter

Nikunj Limbaseeya

unread,
Jan 18, 2012, 9:37:31 AM1/18/12
to web...@googlegroups.com
Hi Sven,

There is no file upload size limit with a WebROaR environment. But yes there is a mechanism to identify the worker which hangs while processing a request. As per this logic if the worker is unable to process the request within 90 seconds, it sends 500 error response to end user.

Summarizing the scenario with default values.

   - Head waits for 60 seconds to get processed request back from the worker.
   - After 60 seconds it sends first PING signal and waits for 15 seconds to get a reply.
   - After 15 seconds it sends second PING signal and again waits for 15 seconds to get some reply.
   - If the worker is not responding during this time interval, the head assumes the worker is in an unstable state and unable to process further requests.

As per the scenario if the request of uploading large file takes longer time, it assume the worker is in an unstable state.

You can configure following values in 'conf/server_internal_config.example.yml' file to control the above mechanism.
  idle_time: 60 # If worker is unable to process request within this time, sends PING signal. Default value is 60. Set value to 0 to disable idle timer.
  ping_timeout: 15 # Number of seconds to wait for a response of PING signal. Default value is 15
  ping_trials: 2 # Number of PING signals to identify stuck worker. Default value is 2

you can also refer previous thread http://groups.google.com/group/webroar/browse_thread/thread/cc91fbdaf6f067c0

Thanks,
Nikunj
Reply all
Reply to author
Forward
0 new messages