502 and 504 happed lots times

i guess 502 means fast-cgi is busy

edit php-fpm.conf
max_children
may help