Ollie, in my experience random 503s are indeed a server issue. Most of the time, a 503 error occurs because the server is too busy or because there's maintenance being performed on it. so I suggest getting with your provider again.
https://documentation.cpanel.net/display/ALD/11.52+Change+Log
Hi Lee, thank you for your suggestion. I did check with Bluehost and they said the reason I'm having issues connecting to my database is due to my slow MySQL queries. They said that, "Every MySQL query opens a connection through the MySQL user. Normal times for MySQL queries are under 1 second." According to MySQL log, several queries took longer than 2 seconds, one or two took 5-7 seconds, and one took over 9 seconds! They said that MySQL user is allowed 15 connections at a time. According to Bluehost, this is enough, considering that those connections are only held open for less than a second. However, it becomes a problem "because the connection is not closed until the query is finished", causing all of my connections to be used up. When that occurs, I get an error stating it can't connect to my database. This means that it is making my site load slow, and giving me a 503 error. They further suggested that I optimize the problem queries. I looked at the log, but I have no idea how to read it. It sounds Greek to me. If I email you a copy, can you take a look and explain to me how to interpret the data? Besides optimizing these queries, I'm also planning on repairing and optimizing the database. Have you ever done that? Any insights on that would be greatly appreciated.
Oliver