Skip to content

queue-prefork 1.0.4

Choose a tag to compare

@tevkert tevkert released this 29 Oct 10:47
· 26 commits to main since this release

Laravel Cloud works without extra descriptor settings, and the doctor reads containers correctly.

  • gRPC with fork support: with grpc.enable_fork_support=1 on, a template no longer refuses the epoll set and eventfd that gRPC's poller opens at PHP startup. gRPC rebuilds them in each fork, as it already does its threads. On hosts that load ext-grpc, such as Laravel Cloud, QUEUE_PREFORK_ALLOW_DESCRIPTORS is no longer needed.
  • queue-prefork:doctor:
    • The queue:work line runs the template's extension checks. On hosts with New Relic or with gRPC without fork support, it now says "stock" and gives the reason, where it used to say "prefork".
    • In a container whose command is php artisan horizon or queue:work, that process is PID 1 and runs stock. The doctor now reports this, with the fix: give the container an init (init: true).
    • In shared-log mode, the FFI install line is marked optional.
  • README:
    • a Laravel Cloud section with the settings and measurements. On a Flex 2 GB instance, stock fits 27 Horizon workers and prefork about 200;
    • Docker's init: true for queue containers;
    • the doctor now runs on the server after the deploy.

1.0.2 and 1.0.3 were small fixes, listed in the changelog.

Full changelog: v1.0.3...v1.0.4