On Oct 24, 5:13 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi guys, > > A few weeks ago I had problems with my dedicated server, it was > stucking twice or more times a week. After some digging, I solve the > problem updating the mysqldb lib version. The server goes ok almost > all the time, but I still have server stuck when I had too much hits. > > My server had 1.8mi to 2.2mi of hits a day, I found that I must scale > my server. Before start the machine acquisition and money expending, I > wanted to get some experience from you. I donĀ“t want to kill a fly > with a cannon ball ;) > > I had django running over a mod_python/apache instance that are > serving my media files too. One of my bottlenecks was the home page, > yesterday I start to generate it through a script called by cron. I > follow this approach even using locmen cache backend. Is it a good > idea to use lighttpd on the same server to serve static files or > should I need to setup a different server to database and maybe > another to media files?
What percentage of requests are actually yielding static pages? People often too quickly run to lighttpd thinking it will somehow magically solve all their problems, but if the bulk of the requests are actually dynamic and served by Django, and it is Django and the database which are the bottleneck, it will make very little if any difference. Now to try and get to what the real issue may be, expand on what you mean by 'server stuck when I had too much hits'. What exactly is getting stuck, the connections through to the database, or Apache itself running out of processes and/or worker threads to keep up with the volume of requests? Or is the box starting to run out of physical memory and starting to swap excessively. Where the problem lies will guide what you may need to do. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---