DISQUS

Brett Hoerner's blog: Configs for nginx and Apache with mod_wsgi | Brett Hoerner's blog

  • jdunck · 1 year ago
    Why "worker_processes 4;"? I mean, I get memory constraint, but why not 1 since nginx is event-based?
  • Brett Hoerner · 1 year ago
    nginx does blocking I/O, so the only way to mitigate that is to use more worker processes (I happen to run on a Dual CPU Dual Core, so I just use 4).

    I don't totally understand how nginx works, though. The idea that it uses blocking I/O and yet each worker can be serving X many requests is confusing as hell to me. That's the extent of the English docs, though.
  • jdunck · 1 year ago
    If only you had a Russian friend...
  • davedash · 8 months ago
    So I was rebuilding my environment on Mosso, and used this as a template (it worked rather well and was close enough to what I had before.

    But I think you forgot an important step... installing Django :)

    You can easily use /a/DOMAIN/bin/easy_install for that.

    Thanks