-
Notifications
You must be signed in to change notification settings - Fork 2k
[php] Laravel with RoadRunner #10041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@roxblnfk could you help to add the Server Header globally and any optimization ? It's working OK, but need the Server Header. |
Try to add this declaration with http:
headers:
response:
Server: "RoadRunner" Oh, I see it's here yet |
I think Octane just overrides RR config. We can use https://github.com/roadrunner-php/laravel-bridge that more predictable and respects rr.yaml |
Added the yaml file to Laravel Octane:
And It's loading the file. Why rr don't return a Server Header by default ?? PD: by default all servers add the Server Header, and they only add an option to disable it. |
Octane overrides middleware set there: Now need to understand how to set config
Security policy |
Also note there is Also it doesn't use pipes. |
Yes I need to change |
Have you reconsidered using roadrunner-php/laravel-bridge 😄? This bridge has a redesigned worker startup process, but under the hood, it uses Octane to reset state. |
Bypass ![]() @roxblnfk feel free to add or suggest any change in .rr.yaml |
the same recommendations as before. Additionally, depending on the nature of the load (CPU/IO), you could try adding gzip middleware: less load on IO, more on CPU. |
Debug level is now:
I don't know how to change the This bench requirements: gzip compression is not permitted. |
Added protobuf extension for faster performance. Thanks @roxblnfk .
Tried with
octane:start
but it was easier withrr serve
directly, to add the Server Header without a middleware.Update to Laravel 12 and PHP8.4.
Added
config/octane.php
to setmax-request=10000
for all platforms using Octane, that is better for a benchmark.#9408
PD: ready to be merged.
Laravel-s is fixed in #9950