Worker count does not increase when uploading large file.
3 posts
• Page 1 of 1
Worker count does not increase when uploading large file.
Hi,
Hi the problem i have is that a Django app becomes unresponsive (requests timeout) while uploading large file.
I tested with 80-200mb files and noticed that other users can't connect to the web site while the file is being uploaded. I have a default setup without any minInstances/maxInstances parameters added/modified.
I know that i can add a parameter minInstances="10" and then 10 users will be able to upload a file at the same time but what if there will be more users? Will i have manually update config each time i notice an increased load? Another problem is that each instance of python allocates about 30MB of RAM so having 10 instances will require 300MB of RAM which is a waste of resources IMO.
Did i miss something? Can/should workers be created automatically and serve the requests instead of time-outing them?
Hi the problem i have is that a Django app becomes unresponsive (requests timeout) while uploading large file.
I tested with 80-200mb files and noticed that other users can't connect to the web site while the file is being uploaded. I have a default setup without any minInstances/maxInstances parameters added/modified.
I know that i can add a parameter minInstances="10" and then 10 users will be able to upload a file at the same time but what if there will be more users? Will i have manually update config each time i notice an increased load? Another problem is that each instance of python allocates about 30MB of RAM so having 10 instances will require 300MB of RAM which is a waste of resources IMO.
Did i miss something? Can/should workers be created automatically and serve the requests instead of time-outing them?
Re: Worker count does not increase when uploading large file
Hello,
We want to suggest you an alternative way which in fact is a better one.
You don't need to have multiple instances, so revert it to 1.
In web.config for your site add the following env variable:
<environmentVariables>
<add name="POST_CACHE_DIR" value="%APPL_PHYSICAL_PATH%\POST_TEMP" />
...
where POST_TEMP is a folder you need to create under your site and give Write permissions.
This is a proper way to deal with slow posting which you are suffering from. Please try it.
We want to suggest you an alternative way which in fact is a better one.
You don't need to have multiple instances, so revert it to 1.
In web.config for your site add the following env variable:
<environmentVariables>
<add name="POST_CACHE_DIR" value="%APPL_PHYSICAL_PATH%\POST_TEMP" />
...
where POST_TEMP is a folder you need to create under your site and give Write permissions.
This is a proper way to deal with slow posting which you are suffering from. Please try it.
- suntattood
- Posts: 27
- Joined: 04 Dec 2012, 21:06
Re: Worker count does not increase when uploading large file
This is a great alternative. Thanks a lot.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests