lando / php

The Official Lando PHP plugin.
https://docs.lando.dev/php
GNU General Public License v3.0
16 stars 17 forks source link

How to override Lando's PHP-FPM settings #108

Open tormi opened 8 months ago

tormi commented 8 months ago

Here's a recipe for overriding Lando's default PHP-FPM settings. If necessary, adjust the name of the .lando folder.

.lando.yml

services:
  appserver:
    overrides:
      volumes:
        # Override default PHP-FPM settings.
        - ./.lando/php-fpm.conf:/usr/local/etc/php-fpm.d/www_overrides.conf

.lando/php-fpm.conf

; Override default PHP-FPM settings.
[www]

pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 500
reynoldsalec commented 8 months ago

Looking at this and considering https://github.com/lando/docs/issues/17, I'm wondering if we want to change this issue to making the php-fpm config editable via the config option in the .lando.yml file? Sounds like folks are desiring it.

pirog commented 1 month ago

i saw some pool related code was merged into main is that related to this?

reynoldsalec commented 1 month ago

Per our convo this morning I'm guessing that's the case; would be cool to wrap that up, sorry for the half-done feature.