See if this issue relates: https://github.com/laravel/nova-issues/issues/2117
Slow nova-api/scripts/* page loads
Hello all,
I've inherited an app that I am troubleshooting slow page loads for, I should point out that I am the platform engineer here, without any support from the app team :-)
The app is now running in an Azure AKS Kubernetes cluster that has no resource constraints and the container has got plenty of available resources.
It's running:
PHP 8.3.10
laravel 10.48.12
laravel/nova 4.34.2
It talks to an Azure MySQL database and Azure Redis cache, both of which don't have any resource issues. All backend connectivity is over a private endpoints
The front end is nginx which proxies the PHP requests to PHP-FPM
When I connect, in Chrome dev tools, I can see that anything that calls nova-api/scripts/* has a really slow ttfb, well over 4 seconds eg
https: // myhost.com/nova-api/scripts/nova-media-hub https: // myhost.com/nova-api/scripts/nova-permissions
When I look in telescope, I can see the API calls, which are reaching out mySQL & Redis, are completing in 400-500ms
We still have the original site up and running (in a 3rd party environment, so no access to it, running on a container also), and the same actions are sub 500ms
I was just hoping to get some general advice as to how I can figure out why the request might look OK in telescope, but translate to 5s+ in the browser, or if there were any PHP, laravel, nova, nginx or PHP-FPM configurations I could be looking at tp optimse performance
My apologies in advance for a very vague question!
Dave
Please or to participate in this conversation.