Notes and anecdotes

Techstuff rambling

Running Django with nginx (on webfaction)

Case: You’re using virtualenv and have used apache with a config somewhat like this. Problem: Apache ‘goes to sleep’ Apache caches your wsgi application, and if it’s not used within a certain amount of time, it has to reload. And this takes like.. 10-15 seconds. Solution: Use nginx instead: Set up a custom application, and install nginx + uwsgi to point to…

Continue Reading

fork: retry: Resource temporarily unavailable

I got this error on webfaction. Seems it was do to too many open files (file descriptors). Edit: Which is not really my fault, since I’m on a shared server… which is mostly because I’m cheap. So it IS kind of my fault. Anyhow.. How do I check max allow amounts of file descriptors? ulimit -Hn…

Continue Reading