Quote:
Originally posted by Pozeidon
Thanks God for the proxy. The 522 comes out of nowhere 
|
522 does not come out of nowhere it comes from the server. CloudFlare is pulling and the server is not responding fast enough. Errors that start with a 5 are server based errors. My guess is it's due to database calls and plugins on the server. They should have a monitor up to profile the activity across each server plugin.
CF is a great CDN but it's only as good as the server it is pulling from. If the server is in a shared environment it will likely have issues.
Is this web server on it's own private box and the database on it's own private box or is the web server and database for this site on the same box?
Is their a mixed mode going on where the Web server is a private box but the database is in a shared host somewhere?
Are the IP's for CloudFlare white-listed and not being throttled? If you are in a shared environment but have somehow have a level of management you need to make sure the CF IP's are not being throttled.
Personally I think AWS would be a good solution for this site, they do elastic hosting and CDN services with CloudFront. I find their pricing a reasonable, I think they will get better in the future as more services like Azure start taking off.
In some cases ad-blockers have been known also to cause this error with CloudFlare.
One other thing that can be done to relieve some stress from the web server is to toss all the sites images and scripts on to a CDN like Amazon S3 and let them serve them up.