I resolved my intermittent 503s with HAProxy by adding option http-server-close
to backend. Looks like uWSGI (which is upstream) is not doing well with keep-alive. Not sure what's really behind the problem, but after adding this option, haven't seen single 503 since.