#Mysql crash after high load using Laravel Sail
9 messages · Page 1 of 1 (latest)
It seems that the BLOCK I/O is getting high too fast
You are using redis and not mysql for your cache/queue, right?
Have you checked the logs for the mysql service?
Yes, I'm using REDIS as the queue driver
I checked the logs with docker logs mysql_container and I didn't found anything usefull. It says: -Starting XA crash recovery... -XA crash recovery finished. I do have to restart the containers to make them work again.
In my horizon.php configuration file I have one of the queues with a max of 45 processes (it was at the top). I lowered it to a more reasonable number (like 10) and the bug disappeared. But, I have this configuration in production and it works fine. Also, I used to test this in a local Linux laptop (without docker) and worked. Is it that docker cannot handle this high workloads? Or maybe is my MacBook Pro M2 extra expensive computer?
Have you tried using https://orbstack.dev/ in stead of the regular Docker Desktop? I don't know if it'll fix this issue, but in my experience OrbStack is a lot faster, especially in the I/O department.
I'll give it a try!! Thank you 😆