Site loading slowly and 504 error

I’m noticing my website admin and front is turning slowly and getting 504 error