By default in Resque the parent process forks and the children processes create a new connection to the database.
This can work, but if you have dozens of workers, MySQL can’t keep that many connections opened and starts throwing errors.
What would be the solution to have the children use the MySQL connection of their parent?
Unfortunately there isn’t a safe way to share the MySQL connection from the parent to the children. I think you have two options to consider: