-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[PHP, Spiral/RoadRunner]: update Dockerfile
to address RR v2024.x.x
requirements
#9021
Conversation
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Help me with laravel and symfony with roadrunner. Thank you !! |
Hey @joanhey 👋 Have you tried this: https://github.com/php-runtime/roadrunner-symfony-nyholm ? |
Symfony with Roadrunner Files: @rustatian Perhaps it's easy for you fix it !! |
Ah, got u (I'm not a PHP dev btw, but I'll try to help you). You need to install the latest versions of the |
The php-runtime only use For now working using RoadRunner v2023.3. #9024 Thank you @rustatian |
You're welcome @joanhey 😃 |
This PR was merged without the tests and fail. |
Thanks @joanhey 👍 , feel free to ping me if you need any help with RR. I already asked our PHP team to send a PR to the symfony runtime, let's see how it goes 😃 |
Ping me when the symfony runtime is updated. |
I'll enable JIT also. |
Now build the grpc but still fail the tests. |
I've double checked, grpc ext can be excluded. Only protobuf is really required. |
I can push a PR to exclude it |
I'm changing more things in #9032 |
Without |
Still fail the update test. It was failing for a lot of time also. |
This is strange... You mean, that after adding the protobuf extension, tests start to fail? |
NO. And the excessive db calls also exist before: EDIT: both problems are from the ORM. |
Ok, this is some problem in Spiral Framework, right? EDIT: ORM, ok, got u. Will send these results to our PHP team. |
The problems are from the ORM. |
Your PHP team can contact me, if they need it. |
Today I send a private message in Slack to Dunglas for the very bad results of FrankenPHP with laravel. |
Oh, 200req/s is a very bad result. Hope he'll find the reason. |
But after very reloads, still show: |
If you open a new PHP-CLI each time for each child. |
OPCache will be used per CLI process, since it is an SHM region related to a current PHP process. In FPM for example, in a fork (not TSRM) mode, they share single SHM region for all workers (since FPM fork the ptr to it). Thus they can benefit from that. |
Actually it isn't using the opcache, only generate the opcodes but are never reused. |
I'll try later with only 1 worker. EDIT: tested with 1 worker, always |
You need to enable opcache cli option. |
You may try to use |
Or you may add |
I understand persistent php, and still benefit a lot of the OPCache.
I'll try to add in the |
Starting from the RR
v2024.1.0
it requiresprotobuf
andgrpc
extension installed. They used to improve the performance of parsing proto-requests.