Upstream timed out (110: Connection timed out) while SSL handshaking to upstream

Has anyone noticed this. I noticed if we host many websites and during website creation/deletion apache reloads (graceful), but nginx has issue connecting to apache and gives 502 error.

Probably related to open files settings being low.

Check this out: How to fix nginx "too many open files" error?