xlaravel.pool.conf 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ; Unix user/group of processes
  2. ; Note: The user is mandatory. If the group is not set, the default user's group
  3. ; will be used.
  4. user = www-data
  5. group = www-data
  6. ; The address on which to accept FastCGI requests.
  7. ; Valid syntaxes are:
  8. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
  9. ; a specific port;
  10. ; 'port' - to listen on a TCP socket to all addresses on a
  11. ; specific port;
  12. ; '/path/to/unix/socket' - to listen on a unix socket.
  13. ; Note: This value is mandatory.
  14. listen = 0.0.0.0:9000
  15. ; Choose how the process manager will control the number of child processes.
  16. ; Possible Values:
  17. ; static - a fixed number (pm.max_children) of child processes;
  18. ; dynamic - the number of child processes are set dynamically based on the
  19. ; following directives. With this process management, there will be
  20. ; always at least 1 children.
  21. ; pm.max_children - the maximum number of children that can
  22. ; be alive at the same time.
  23. ; pm.start_servers - the number of children created on startup.
  24. ; pm.min_spare_servers - the minimum number of children in 'idle'
  25. ; state (waiting to process). If the number
  26. ; of 'idle' processes is less than this
  27. ; number then some children will be created.
  28. ; pm.max_spare_servers - the maximum number of children in 'idle'
  29. ; state (waiting to process). If the number
  30. ; of 'idle' processes is greater than this
  31. ; number then some children will be killed.
  32. ; ondemand - no children are created at startup. Children will be forked when
  33. ; new requests will connect. The following parameter are used:
  34. ; pm.max_children - the maximum number of children that
  35. ; can be alive at the same time.
  36. ; pm.process_idle_timeout - The number of seconds after which
  37. ; an idle process will be killed.
  38. ; Note: This value is mandatory.
  39. pm = dynamic
  40. ; The number of child processes to be created when pm is set to 'static' and the
  41. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  42. ; This value sets the limit on the number of simultaneous requests that will be
  43. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  44. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  45. ; CGI. The below defaults are based on a server without much resources. Don't
  46. ; forget to tweak pm.* to fit your needs.
  47. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  48. ; Note: This value is mandatory.
  49. pm.max_children = 20
  50. ; The number of child processes created on startup.
  51. ; Note: Used only when pm is set to 'dynamic'
  52. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  53. pm.start_servers = 2
  54. ; The desired minimum number of idle server processes.
  55. ; Note: Used only when pm is set to 'dynamic'
  56. ; Note: Mandatory when pm is set to 'dynamic'
  57. pm.min_spare_servers = 1
  58. ; The desired maximum number of idle server processes.
  59. ; Note: Used only when pm is set to 'dynamic'
  60. ; Note: Mandatory when pm is set to 'dynamic'
  61. pm.max_spare_servers = 3
  62. ;---------------------
  63. ; Make specific Docker environment variables available to PHP
  64. env[DB_1_ENV_MYSQL_DATABASE] = $DB_1_ENV_MYSQL_DATABASE
  65. env[DB_1_ENV_MYSQL_USER] = $DB_1_ENV_MYSQL_USER
  66. env[DB_1_ENV_MYSQL_PASSWORD] = $DB_1_ENV_MYSQL_PASSWORD
  67. catch_workers_output = yes