So when someone logs into my PHP based app, there are about 12 server actions which load user data.
In the Wappler v3.9.7 version of my app, these load in 1-2 elapsed seconds for my clients with a larger amount of data.
In the Wappler 6.8.0 version of my app, the server actions are all called, but half of them sit in a (pending) state for 30+ seconds.
They access the same AWS RDS database, and have the same size of EC2 server (vCPU/RAM)... but run different Linux/PHP and Wappler versions.
This could either be because of something in Wappler AC2, or some fine detail in my new server configuration.
Can anyone shine any light on why those server actions may be sitting around saying (Pending) for so long?
(They don't sit around when it is a new login which has little data to load.. and once you are logged in, the user interaction is quite normal and multiple server actions excute very rapidly).
Is there anything I can add to my code to see more of what is happening?
Thanks!
Antony.
The server actions saying "pending":
The server actions when fully loaded 30+ seconds later...
The timing screen for one of the server actions while it is pending:
The timing screen for the same server action once it has completed 30+ seconds later:
My EC2 instance logs don't show anything wrong... they just show all the server actions being called within a second of the login button being pressed.
This points towards a server/nginx configuration rather than a Wappler issue (though I'm not 100% sure). Unfortunately, I don't have a clear answer why this is happening, and troubleshooting this would require some back and forth which I lack the availability.
Basically I would check the nginx configuration and see if it could be enhanced, like increasing options like worker_limit, increasing ulimit and stuff like that. ChatGPT could probably give you a hand
That's assuming you haven't changed your Wappler steps to the point of potentially causing one of them to hang...
I call around 12 at login - well some are probably one after the other, and some concurrently... I've not worked that out.
The strange thing is that the calling of these 12 server actions finalises in 1-2 seconds in my Wappler 3.9.7 based app on an older AWS server config, but exhibits this " Initial connection" delay with the 6.8.0 based app and a new AWS server config.
Do you have an ideas why this could be?
It is something to do with the quantity of data being downloaded, as when I log in to an account that have little data, it all works okay...
Then check your redis settings, not at a computer now but i seem to recall they are in two places, project settings and workflow settings.
Turn both off.
I have seen this pending issue before when helping users and it was caused by having redis on but no redis server running. The pending was actually the unresponsive redis server response. May not be the cause but worth a try.