Concurrent request problem in Laravel Octane #1824
-
What happened?Had a chance to get hands-on experience with RR with fresh laravel octane app. It was working great until an I/O was involved in the app or the app faced high load. I just added a network request that sleeps for a second
and here's the benchmarker:
roadrunner.mp4As you can see in the above video, RR can only handle 3 or 4 requests at the same time (the first two second seems good but after that it slows down), The number of workers and task workers is set to 15. How can I increase the threads or whatever improves concurrent request handling? Also if you see the response time it's not 1000ms and looks increasing why ? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hey @foremtehan 👋 |
Beta Was this translation helpful? Give feedback.
-
The http server handle with octane itself, these are the options before we start the server: Which one? |
Beta Was this translation helpful? Give feedback.
-
BTW, according to your benchmark, you used |
Beta Was this translation helpful? Give feedback.
-
Ok let me add logger |
Beta Was this translation helpful? Give feedback.
-
looks it handles 3 up to 15 concurrent request, Also the response time is increasing (saw 2000ms) in the terminal |
Beta Was this translation helpful? Give feedback.
-
You have
|
Beta Was this translation helpful? Give feedback.
-
2000ms is quite a long response. But, all credits go to the Octane 😃 |
Beta Was this translation helpful? Give feedback.
You have
ab -c 10
, 10 requests at the time. According to your log, you have 10 responses at the time: