Be sure to checkout the the gearman server's "--job-retries" parameter for poison jobs and a process manager like supervisord to help the PHP workers with their memleaks and fatal errors.