Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 13, 2010 15:20:58

Shamail T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Bringing down a website


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 cases go bad.

I am planning to write a handler like /shutdown which will ask me a
password and once down, all the pages will just return an HTTP 503.

What could be the simplest way to do it without altering any of my
current views or anything?

Thanks and regards

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 13, 2010 15:26:50

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Bringing down a website


# 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://about.me/venkasub>http://blizzardzblogs.blogspot.com/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 13, 2010 15:43:50

Paul W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Bringing down a website


On Dec 13, 10:20 am, Shamail Tayyab <pleoma...@gmail.com> 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/topics/http/middleware/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Dec. 13, 2010 16:03:10

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Bringing down a website


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 <pleoma...@gmail.com> wrote:

> I am planning to write a handler like /shutdown which will ask me a
> password and once down, all the pages will just return an HTTP 503.
>
> What could be the simplest way to do it without altering any of my
> current views or anything?

Toodle-loooooooooo.........
creecode

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 Dec. 13, 2010 16:07:57

Shamail T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Bringing down a website


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 <sli...@gmail.com> wrote:
> On Dec 13, 10:20 am, Shamail Tayyab <pleoma...@gmail.com> 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/topics/http/middleware/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support