benoitc/gunicorn — pull request #862 by alienth (2014-08-22 23:41:20+00:00)
Title: Add max_requests_jitter configuration option.

The issue we saw was when using max_requests, almost all of our workers would restart at the same time due to even balancing of requests to the workers. This would result in a resource spike during the restart and a bunch of queuing due to fresh workers getting slammed. This jitter splits up the restart of the workers, which will help prevent the above issue.

This is something we've been using at reddit for a while now. Not sure it is suitable for the main project, but I figured I'd pass it along. I'd be happy to alter the name of the option or any of the documentation to meet any standards or requirements of the project.