Re: minimum system requirements

2010-11-01 Thread Peter Herndon

On Oct 31, 2010, at 9:50 PM, Javier Guerra Giraldez wrote:

> On Sun, Oct 31, 2010 at 12:10 PM, Peter Herndon  wrote:
>> but I would not expect that single VPS to be able to handle more than a very 
>> small number of visitors at once.
> 
> only if you consider several dozens  "a very small number"
> 
That rather depends on what your app does, don't you think?  If your app has 
dynamic elements for each and every visitor, and runs large calculations on 
each page hit, it's possible to max out a small VPS with one client.  On the 
other hand, if you set up e.g. Varnish with full-page caching, and have a site 
that changes only once every few days, yes indeed you can support several 
dozens of concurrent users.  But either way, a single small server still won't 
be able to handle a full-on slashdotting.  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: minimum system requirements

2010-10-31 Thread Javier Guerra Giraldez
On Sun, Oct 31, 2010 at 12:10 PM, Peter Herndon  wrote:
> but I would not expect that single VPS to be able to handle more than a very 
> small number of visitors at once.

only if you consider several dozens  "a very small number"

-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: minimum system requirements

2010-10-31 Thread Peter Herndon

On Oct 31, 2010, at 7:19 AM, ozgur yilmaz wrote:

> Hi,
> 
> I'm developing a project by django 1.2.3. Now it's time to bring the
> project to production. I'm looking for dedicated servers but i dont
> know the minimum hardware requirements. There are dedicated options
> with P4 cpus. Is there any information about requirements?

Hi Ozgur,

Minimum hardware requirements are relative to the amount of traffic you will be 
receiving.  It is certainly possible to host a Django web site on a single 
256MB VPS from e.g. Rackspace, but I would not expect that single VPS to be 
able to handle more than a very small number of visitors at once.  On the other 
hand, 2 load-balanced 512MB instances serving the Django app plus a larger 
instance running the database should suffice to handle a much larger number of 
concurrent users -- depending on how you architected the site.  If you have 
particular views that run lots of database queries and perform a large number 
of calculations, and those views turn out to be popular destinations for your 
visitors, you can very rapidly run out of resources.  On the other hand, if you 
have a good caching strategy in place and minimal required computation for your 
site, small servers can potentially handle a much larger load.

You will need determine for yourself how much computing hardware will suffice 
to handle your particular requirements.  You should approach this task by 
load-testing your application, using such tools as httpperf 
(http://code.google.com/p/httperf/) and Tsung 
(http://tsung.erlang-projects.org/) to simulate usage of your app.  You will 
want to test all your views, and also simulate what you think will be the 
normal use pattern.  With the knowledge of how each view responds to load, you 
can then tune those views individually for better performance.  With the 
knowledge of how your app responds to the normal use pattern, you can gauge how 
much hardware will be required to handle your estimated number of visitors.  In 
short, profile your app, and make decisions based on that knowledge.

As with many questions regarding deployment, the answer is "It depends".

---Peter Herndon

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



minimum system requirements

2010-10-31 Thread ozgur yilmaz
Hi,

I'm developing a project by django 1.2.3. Now it's time to bring the
project to production. I'm looking for dedicated servers but i dont
know the minimum hardware requirements. There are dedicated options
with P4 cpus. Is there any information about requirements?

Thanks all,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.