I have a PHP application that uses Zend Framework, jQuery's ajax, and Zend_Session. This application has been around for about 7 months and working the way it should. When the application initializes after the user logs in, about 10 ajax requests are fired off to load up relevant data to a dashboard type page. After those have requests have finished, ajax requests are mainly user-initiated from that point on. When the application was working properly, we didn't have a truly load balanced environment, we had 3 app servers that handles requests, but each one stored PHP session data locally. Recently we changed that so that each app server is connected to a central NFS share where PHP session data is stored. That is when the application broke.
Now what happens is the page initializes, I can see the ajax requests waiting, but half of them timeout. If I wait long enough (about 3-10 mins), then all user-initiated clicks respond fast. We have verified that the problem was caused by our change in session handling.
Anyone have an explanation of what might be going on, how to troubleshoot, and/or a solution?
I greatly appreciate any help you can give. I've been pulling my hair out over this one.