I get random 502 errors, and switching between files when reviewing
patches is extremely slow, and was slow earlier today.

Maybe we need a cron job to restart gerrit every few days?

Nir