December 2009
9 posts
Damn you, DOS attacks
Oops. Should’ve had rate limiting to prevent DOS on from the start. From Mr. Jay:
iptables -I INPUT -p tcp —dport 80 -i eth0 -m state —state NEW -m recent —set; \
iptables -I INPUT -p tcp —dport 80 -i eth0 -m state —state NEW -m recent —update —seconds 1 —hitcount 30 -j DROP;
Also look into http://wiki.nginx.org/NginxHttpLimitReqModule
http://code.google.com/p/google-perftools/ →
http://www.cs.utah.edu/dept/old/texinfo/as/gprof.ht... →
I always forget the best way to kill a process...
fuser -k -n tcp XXXX
for bonus points, add -9
http://code.google.com/p/wireit/ →
http://ragona.com/blog/strip-www-django-domain/ →
User-object relationships in App Engine
This has come up a few times in the past few weeks, but is woefully underdocumented. If you have list in an App Engine datastore object, you can search for objects where one of the list items is the value you’re seeing. This is especially handy when you have users watching or participating in some kind of object (chat rooms, ski resorts, diagrams). The one other tricky part was finding the...
http://orion.heroku.com/past/2009/7/29/io_performan... →
Upgrading to from pymongo 1.1 to 1.1.2 may or may not have fixed a memory leak. #amateurtip