January 2010
18 posts
Kill a mdadm raid drive
sudo umount $mountpoint
sudo mdadm —stop /dev/md0
If you use Google Closure, you will probably want... →
The mysterious 3 second delay
I’ve been meaning for a while to write about the week I wasted trying to debug an issue where a request would suddenly take 3 seconds where previously it took well under a second. Since it happened again a bit today during Chartbeat’s iPad-inspired load (we were doing metrics for gdgt, gizmodo, appleweblog, twit.tv, kotaku, techland, and others), I decided it was time to get this done....
Oh, that's what NODELAY does →
Find large files in case, hypothetically, a large...
find / -size +2000 -exec ls -s {} \; | sort -nr | more
Everyblock has some cool stuff
http://nyc.everyblock.com/
is powered by
http://blog.everyblock.com/2008/feb/18/maps/
and
http://code.google.com/p/ebcode/
Awesome concise explanation of CSS positioning →
Good slides about Google Closure addressing lots... →
Curl infos →
ps | grepĀ | awk '{print $2}' | xargs kill -9
It's a bad sign I needed this. A very bad sign. →
http://stu.mp/2010/01/creating-nagios-plugins-using... →
Django, I wish I could quit you
Still trying to diagnose weird netstat spikes, SYN_RECVs between Django and nginx, and unesponsiveness. Thought it was load, but that theory isn’t quite borne out. Considering Apache and/or bigger servers and/or stabbing myself.
http://superjared.com/entry/quick-django-benching/
http://www.saltycrane.com/blog/2009/04/notes-using-nginx-mod_python-and-django/
...
Things I wish I knew a long time ago
sudo apt-get install htop
http://www.dabeaz.com/blog/2010/01/python-gil-visua... →
Nice explanation of load as displayed in top →
http://docs.fabfile.org/0.9.0/tutorial.html →
http://www.ibm.com/developerworks/edu/dw-esdd-webpe... →