Re: Bringing down a website

2010-12-13 Thread Shamail Tayyab
Hi, Yes, we are using S3 for data. Actually its more related to load testing.. We are firing requests from another machine at Amazon and trying to attain an image quality vs size graph. Our quality of service depends on this data. @paul yes, that sounds nice. On Dec 13, 8:43 pm, Paul Winkler

Re: Bringing down a website

2010-12-13 Thread creecode
Hello Shamail, If you're running mod-wsgi you could try a variation on this technique from the folks over at Caktus Consulting Group. On Dec 13, 7:20 am, Shamail Tayyab wrote: > I am planning to write a handler like /shutdown which will ask me a > password and once down, all the pages will just

Re: Bringing down a website

2010-12-13 Thread Paul Winkler
On Dec 13, 10:20 am, Shamail Tayyab wrote: > What could be the simplest way to do it without altering any of my > current views or anything? Write a view for /shutdown which sets some global flag eg. in the database, then write some middleware to do the rest: http://docs.djangoproject.com/en/dev/

Re: Bringing down a website

2010-12-13 Thread Venkatraman S
# For preserving the data, use S3? # Why not handle the 'bad' case in the test cases themselves? # Arent you running the test cases on the box itself? or is it a different entity? (I am not sure how this works on amazon though) -V- http://blizzardzblogs.blogspot.com/ --

Bringing down a website

2010-12-13 Thread Shamail Tayyab
Hi, I am running a website which is currently running in its test phase, it is a site which consumes too much bandwidth when running. We are running the site on Amazon EC2 and paying bandwidth cost. At times, I need to preserve over usage of data by bringing down the website while our test cas