I am writing this as more of a knowledge quest vs. a "It doesn’t work" post. I have posted about this a little before and I am very grateful for the feedback/discussion.
I am using Rackspace as a host, MODx 2.0.6. The site is considered to be a "Cloud Site" to be technically correct.
9 out of 10 days, the site works great, there is no downtime and the site runs quickly. Then it seems it will randomly pick a time and take a huge performance hit. Sometimes to the level of getting time out warnings from the server.
I am forcing SSL via the .htaccess on the site, so I am dealing with 3 different "clusters"
1.) cloud site
2.) database
3.) ssl
I have been told by Rackspace that the database and/or ssl server(s) are not load balanced. I have also been told that the SSL server
is load balanced. Either way, the ceiling for max connections etc. has got to be quite high. At least I would think it would be.
When my site is struggling to stay alive, I am always told that I have slow SQL queries and/or I have connections that could not be getting closed. I am instructed to verify that all connections are getting closed and that my database tables are well optimized. I’ll be the first to admit - I have no clue where to look to even respond to that other than "Thanks, I’ll look into it."
I have talked to Rackspace in general to see if CMS sites are acceptable to run on their platform.
...most sites will work fine in Cloud Sites, especially CMS based sites like Wordpress, Joomla, and Drupal...
Even though our database servers are not load balanced, as long as your database itself is optimized properly and your queries are not having to scan thousands of rows within the database tables it should be just fine.
And finally...
...But because the database was optimized it handled it just fine. And believe it or not, their site is based on Wordpress...
The MODx development team has built an
outstanding product. I believe it is far superior to WP or any other CMS(framework) I have a very hard time believing that Rackspace and MODx can’t play nice together. Maybe it’s something that I have done. I’m willing to share about any aspect of the project to see if what I did or how I installed etc. that would cause a hit to performance.
Things like "Make sure the database is optimized" seems very...elementary. Based on the entire scope of the MODx project, I don’t want to say that a statement like that is insulting but if I had built something like this, I would probably scoff at that. "Of course it is..."
I apologize for the long post, but just wanted to get a better grasp of things, maybe understand things on a kindergarten level. If nothing else for peace of mind. Thank you to anyone who responds, I really do appreciate any feedback/comments.