In my production Environment I'm observing a sporadic issue where pages are taking a long time to load. In the error logs we are seeing:
PHP Fatal error: Maximum execution time of 30 seconds exceeded
The affected line is where a session is being created for the user.
The directories are physical. There are +3.5 million files in the directory. The trash collection is set for 31 days for sessions in PHP.
Could you advise on what issues we might be running into and how to resolve them?
Possible solutions I thought of:
Increase provisioned IOPS on the drive
Clear session data every X days
Change scaling policy so if number of sessions on any server goes above X number we spin up a
new server
Change instance type of our production servers
Move session data elsewhere
store session data in DB
AWS API GateWay
elastic caching
Could anyone advise on what issues?
0 Answers