I'm hoping this is the correct area to post this... I'm running into a problem were the pages will not serve up and I get a page from my hosting company (Rackspace) that there are "No Suitable Nodes to serve up request", I opened a ticket up with them and below is what I got back.
I replyed back but have not received an answer yet. So, I'm asking to see if someone knows why I may be getting this, it started to happen more with the latest release of MojoPortal ( 2.3.5.8b MySQL). Here's the location of the latest log file: http://test.dsatallahassee.org/logs/mojoportal-log-20110125193841.txt
I have a great deal of sites that I switch over to MojoPortal and the latest code and they are all having this problem. Please help if you can.
Below is the Reply:
Hello Mark,
"No suitable nodes" is an error that occurs as a result of a script exceeding the maximum timeout value. If a client connection does not receive a response from the server after approximately 30 to 60 seconds the load balancer will close the connection and the client will immediately receive the error message.
In most cases, the script will continue to execute until it reaches completion, throws an error, or times out on the server, but the client will not see the page load as expected and will instead receive this error.
For longer running scripts in PHP you can use the 'exec' function to run scripts in the background and have the script write its status to a database or a file. Then you could use AJAX to display a loading bar and check the script's status.
Once it's completed you can then remove the loading bar and proceed to a completion page. This is just an example, but the concept is good for anything. Another option is to run the script as a cron job using PHP or Perl instead of HTTP, which circumvents the load balancer's timeout.
If you can tell us when the error is occurring we can do our best to evaluate whether there was a problem on our end that caused the error. If you're seeing timeouts intermittently I would recommend auditing your code, because that likely means it could use optimization or needs to be broken down into smaller pieces. For instance, if you were inserting several records into a database, try inserting a few at a time and then sending back a response to the client's browser.
The bottom line when it comes to code causing this error is that data must be sent back to the client's browser to keep the connection alive So regardless of what sort of processing a page is doing it must return data frequently or the load balancer will assume the connection has been dropped and will forcefully terminate it.
Another common cause is that your site is trying to load files that don't exist (404 errors). This dramatically slows a site down and in rare cases can cause a timeout. More commonly a site that is loading data from an external location can see load issues causing a timeout.
For instance, if your site relies on Google Analytics, Authorize.net, or PayPal and for some reason these corresponding services go down or begin responding slowly, your site will see a performance hit that in some cases can cause the page not to load or to load intermittently. Keep in mind that all sorts of plugins for content management systems like Wordpress and Joomla use third-party services behind the scenes, such as bit.ly and Twitter.
It's also a possibility that the script simply uses a heavy amount of resources. If this is a PHP site you may need to try increasing the memory limit--which defaults to 32M--to something more appropriate for your site, such as 64M or even 128M in extreme cases.
There is a knowledge base article on that here:
http://cloudsites.rackspacecloud.com/index.php/.htaccess_Frequently_Asked_Questions#How_do_I_change_the_PHP_memory_limit_value.3F
If you're not familiar with using an .htaccess file--as the article above requires--you may take a look at these articles:
http://cloudsites.rackspacecloud.com/index.php/.htaccess_Frequently_Asked_Questions#What_is_a_.htaccess_file.3F
http://cloudsites.rackspacecloud.com/index.php/.htaccess_Frequently_Asked_Questions#How_do_I_use_a_.htaccess_file.3F
In extremely rare cases you can see this message due to an invalid cookie being stored by your browser, which will cause you to see the error message on pages that initiate a session on your site (such as login or member pages--or sometimes even your homepage). All though rare, it's a good idea to clear your browser cache and try the page again to verify that this is not the case.
Please let us know if there's anything else we can assist you with!
Regards,
Matt Wheeler
Technical Support
The Rackspace Hosting Cloud