Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.99 KB | None | 0 0
  1. ; Start a new pool named 'www'.
  2. [www]
  3.  
  4. ; Unix user/group of processes
  5. ; Note: The user is mandatory. If the group is not set, the default user's group
  6. ; will be used.
  7. ; RPM: apache Choosed to be able to access some dir as httpd
  8. user=nginx
  9. ; RPM: Keep a group allowed to write in log dir.
  10. group=nginx
  11.  
  12. ; The address on which to accept FastCGI requests.
  13. ; Valid syntaxes are:
  14. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
  15. ; a specific port;
  16. ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
  17. ; a specific port;
  18. ; 'port' - to listen on a TCP socket to all addresses
  19. ; (IPv6 and IPv4-mapped) on a specific port;
  20. ; '/path/to/unix/socket' - to listen on a unix socket.
  21. ; Note: This value is mandatory.
  22. listen=/var/run/php-fpm/php-fpm.sock
  23.  
  24. ; Set listen(2) backlog.
  25. ; Default Value: 511 (-1 on FreeBSD and OpenBSD)
  26. ;listen.backlog = 511
  27.  
  28. ; Set permissions for unix socket, if one is used. In Linux, read/write
  29. ; permissions must be set in order to allow connections from a web server. Many
  30. ; BSD-derived systems allow connections regardless of permissions.
  31. ; Default Values: user and group are set as the running user
  32. ; mode is set to 0660
  33. ;listen.owner = nobody
  34. ;listen.group = nobody
  35. ;listen.mode = 0660
  36. ; When POSIX Access Control Lists are supported you can set them using
  37. ; these options, value is a comma separated list of user/group names.
  38. ; When set, listen.owner and listen.group are ignored
  39. ;listen.acl_users =
  40. ;listen.acl_groups =
  41.  
  42. ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
  43. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  44. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  45. ; must be separated by a comma. If this value is left blank, connections will be
  46. ; accepted from any ip address.
  47. ; Default Value: any
  48. listen.allowed_clients = 127.0.0.1
  49.  
  50. ; Specify the nice(2) priority to apply to the pool processes (only if set)
  51. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  52. ; Note: - It will only work if the FPM master process is launched as root
  53. ; - The pool processes will inherit the master process priority
  54. ; unless it specified otherwise
  55. ; Default Value: no set
  56. ; process.priority = -19
  57.  
  58. ; Choose how the process manager will control the number of child processes.
  59. ; Possible Values:
  60. ; static - a fixed number (pm.max_children) of child processes;
  61. ; dynamic - the number of child processes are set dynamically based on the
  62. ; following directives. With this process management, there will be
  63. ; always at least 1 children.
  64. ; pm.max_children - the maximum number of children that can
  65. ; be alive at the same time.
  66. ; pm.start_servers - the number of children created on startup.
  67. ; pm.min_spare_servers - the minimum number of children in 'idle'
  68. ; state (waiting to process). If the number
  69. ; of 'idle' processes is less than this
  70. ; number then some children will be created.
  71. ; pm.max_spare_servers - the maximum number of children in 'idle'
  72. ; state (waiting to process). If the number
  73. ; of 'idle' processes is greater than this
  74. ; number then some children will be killed.
  75. ; ondemand - no children are created at startup. Children will be forked when
  76. ; new requests will connect. The following parameter are used:
  77. ; pm.max_children - the maximum number of children that
  78. ; can be alive at the same time.
  79. ; pm.process_idle_timeout - The number of seconds after which
  80. ; an idle process will be killed.
  81. ; Note: This value is mandatory.
  82. pm = dynamic
  83.  
  84. ; The number of child processes to be created when pm is set to 'static' and the
  85. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  86. ; This value sets the limit on the number of simultaneous requests that will be
  87. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  88. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  89. ; CGI.
  90. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  91. ; Note: This value is mandatory.
  92. pm.max_children = 50
  93.  
  94. ; The number of child processes created on startup.
  95. ; Note: Used only when pm is set to 'dynamic'
  96. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  97. pm.start_servers = 5
  98.  
  99. ; The desired minimum number of idle server processes.
  100. ; Note: Used only when pm is set to 'dynamic'
  101. ; Note: Mandatory when pm is set to 'dynamic'
  102. pm.min_spare_servers = 5
  103.  
  104. ; The desired maximum number of idle server processes.
  105. ; Note: Used only when pm is set to 'dynamic'
  106. ; Note: Mandatory when pm is set to 'dynamic'
  107. pm.max_spare_servers = 35
  108.  
  109. ; The number of seconds after which an idle process will be killed.
  110. ; Note: Used only when pm is set to 'ondemand'
  111. ; Default Value: 10s
  112. ;pm.process_idle_timeout = 10s;
  113.  
  114. ; The number of requests each child process should execute before respawning.
  115. ; This can be useful to work around memory leaks in 3rd party libraries. For
  116. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  117. ; Default Value: 0
  118. ;pm.max_requests = 500
  119.  
  120. ; The URI to view the FPM status page. If this value is not set, no URI will be
  121. ; recognized as a status page. It shows the following informations:
  122. ; pool - the name of the pool;
  123. ; process manager - static, dynamic or ondemand;
  124. ; start time - the date and time FPM has started;
  125. ; start since - number of seconds since FPM has started;
  126. ; accepted conn - the number of request accepted by the pool;
  127. ; listen queue - the number of request in the queue of pending
  128. ; connections (see backlog in listen(2));
  129. ; max listen queue - the maximum number of requests in the queue
  130. ; of pending connections since FPM has started;
  131. ; listen queue len - the size of the socket queue of pending connections;
  132. ; idle processes - the number of idle processes;
  133. ; active processes - the number of active processes;
  134. ; total processes - the number of idle + active processes;
  135. ; max active processes - the maximum number of active processes since FPM
  136. ; has started;
  137. ; max children reached - number of times, the process limit has been reached,
  138. ; when pm tries to start more children (works only for
  139. ; pm 'dynamic' and 'ondemand');
  140. ; Value are updated in real time.
  141. ; Example output:
  142. ; pool: www
  143. ; process manager: static
  144. ; start time: 01/Jul/2011:17:53:49 +0200
  145. ; start since: 62636
  146. ; accepted conn: 190460
  147. ; listen queue: 0
  148. ; max listen queue: 1
  149. ; listen queue len: 42
  150. ; idle processes: 4
  151. ; active processes: 11
  152. ; total processes: 15
  153. ; max active processes: 12
  154. ; max children reached: 0
  155. ;
  156. ; By default the status page output is formatted as text/plain. Passing either
  157. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  158. ; output syntax. Example:
  159. ; http://www.foo.bar/status
  160. ; http://www.foo.bar/status?json
  161. ; http://www.foo.bar/status?html
  162. ; http://www.foo.bar/status?xml
  163. ;
  164. ; By default the status page only outputs short status. Passing 'full' in the
  165. ; query string will also return status for each pool process.
  166. ; Example:
  167. ; http://www.foo.bar/status?full
  168. ; http://www.foo.bar/status?json&full
  169. ; http://www.foo.bar/status?html&full
  170. ; http://www.foo.bar/status?xml&full
  171. ; The Full status returns for each process:
  172. ; pid - the PID of the process;
  173. ; state - the state of the process (Idle, Running, ...);
  174. ; start time - the date and time the process has started;
  175. ; start since - the number of seconds since the process has started;
  176. ; requests - the number of requests the process has served;
  177. ; request duration - the duration in µs of the requests;
  178. ; request method - the request method (GET, POST, ...);
  179. ; request URI - the request URI with the query string;
  180. ; content length - the content length of the request (only with POST);
  181. ; user - the user (PHP_AUTH_USER) (or '-' if not set);
  182. ; script - the main script called (or '-' if not set);
  183. ; last request cpu - the %cpu the last request consumed
  184. ; it's always 0 if the process is not in Idle state
  185. ; because CPU calculation is done when the request
  186. ; processing has terminated;
  187. ; last request memory - the max amount of memory the last request consumed
  188. ; it's always 0 if the process is not in Idle state
  189. ; because memory calculation is done when the request
  190. ; processing has terminated;
  191. ; If the process is in Idle state, then informations are related to the
  192. ; last request the process has served. Otherwise informations are related to
  193. ; the current request being served.
  194. ; Example output:
  195. ; ************************
  196. ; pid: 31330
  197. ; state: Running
  198. ; start time: 01/Jul/2011:17:53:49 +0200
  199. ; start since: 63087
  200. ; requests: 12808
  201. ; request duration: 1250261
  202. ; request method: GET
  203. ; request URI: /test_mem.php?N=10000
  204. ; content length: 0
  205. ; user: -
  206. ; script: /home/fat/web/docs/php/test_mem.php
  207. ; last request cpu: 0.00
  208. ; last request memory: 0
  209. ;
  210. ; Note: There is a real-time FPM status monitoring sample web page available
  211. ; It's available in: @EXPANDED_DATADIR@/fpm/status.html
  212. ;
  213. ; Note: The value must start with a leading slash (/). The value can be
  214. ; anything, but it may not be a good idea to use the .php extension or it
  215. ; may conflict with a real PHP file.
  216. ; Default Value: not set
  217. ;pm.status_path = /status
  218.  
  219. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  220. ; URI will be recognized as a ping page. This could be used to test from outside
  221. ; that FPM is alive and responding, or to
  222. ; - create a graph of FPM availability (rrd or such);
  223. ; - remove a server from a group if it is not responding (load balancing);
  224. ; - trigger alerts for the operating team (24/7).
  225. ; Note: The value must start with a leading slash (/). The value can be
  226. ; anything, but it may not be a good idea to use the .php extension or it
  227. ; may conflict with a real PHP file.
  228. ; Default Value: not set
  229. ;ping.path = /ping
  230.  
  231. ; This directive may be used to customize the response of a ping request. The
  232. ; response is formatted as text/plain with a 200 response code.
  233. ; Default Value: pong
  234. ;ping.response = pong
  235.  
  236. ; The access log file
  237. ; Default: not set
  238. ;access.log = log/$pool.access.log
  239.  
  240. ; The access log format.
  241. ; The following syntax is allowed
  242. ; %%: the '%' character
  243. ; %C: %CPU used by the request
  244. ; it can accept the following format:
  245. ; - %{user}C for user CPU only
  246. ; - %{system}C for system CPU only
  247. ; - %{total}C for user + system CPU (default)
  248. ; %d: time taken to serve the request
  249. ; it can accept the following format:
  250. ; - %{seconds}d (default)
  251. ; - %{miliseconds}d
  252. ; - %{mili}d
  253. ; - %{microseconds}d
  254. ; - %{micro}d
  255. ; %e: an environment variable (same as $_ENV or $_SERVER)
  256. ; it must be associated with embraces to specify the name of the env
  257. ; variable. Some exemples:
  258. ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
  259. ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
  260. ; %f: script filename
  261. ; %l: content-length of the request (for POST request only)
  262. ; %m: request method
  263. ; %M: peak of memory allocated by PHP
  264. ; it can accept the following format:
  265. ; - %{bytes}M (default)
  266. ; - %{kilobytes}M
  267. ; - %{kilo}M
  268. ; - %{megabytes}M
  269. ; - %{mega}M
  270. ; %n: pool name
  271. ; %o: output header
  272. ; it must be associated with embraces to specify the name of the header:
  273. ; - %{Content-Type}o
  274. ; - %{X-Powered-By}o
  275. ; - %{Transfert-Encoding}o
  276. ; - ....
  277. ; %p: PID of the child that serviced the request
  278. ; %P: PID of the parent of the child that serviced the request
  279. ; %q: the query string
  280. ; %Q: the '?' character if query string exists
  281. ; %r: the request URI (without the query string, see %q and %Q)
  282. ; %R: remote IP address
  283. ; %s: status (response code)
  284. ; %t: server time the request was received
  285. ; it can accept a strftime(3) format:
  286. ; %d/%b/%Y:%H:%M:%S %z (default)
  287. ; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
  288. ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
  289. ; %T: time the log has been written (the request has finished)
  290. ; it can accept a strftime(3) format:
  291. ; %d/%b/%Y:%H:%M:%S %z (default)
  292. ; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
  293. ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
  294. ; %u: remote user
  295. ;
  296. ; Default: "%R - %u %t \"%m %r\" %s"
  297. ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
  298.  
  299. ; The log file for slow requests
  300. ; Default Value: not set
  301. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  302. slowlog = /var/log/php-fpm/www-slow.log
  303.  
  304. ; The timeout for serving a single request after which a PHP backtrace will be
  305. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  306. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  307. ; Default Value: 0
  308. ;request_slowlog_timeout = 0
  309.  
  310. ; The timeout for serving a single request after which the worker process will
  311. ; be killed. This option should be used when the 'max_execution_time' ini option
  312. ; does not stop script execution for some reason. A value of '0' means 'off'.
  313. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  314. ; Default Value: 0
  315. ;request_terminate_timeout = 0
  316.  
  317. ; Set open file descriptor rlimit.
  318. ; Default Value: system defined value
  319. ;rlimit_files = 1024
  320.  
  321. ; Set max core size rlimit.
  322. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  323. ; Default Value: system defined value
  324. ;rlimit_core = 0
  325.  
  326. ; Chroot to this directory at the start. This value must be defined as an
  327. ; absolute path. When this value is not set, chroot is not used.
  328. ; Note: chrooting is a great security feature and should be used whenever
  329. ; possible. However, all PHP paths will be relative to the chroot
  330. ; (error_log, sessions.save_path, ...).
  331. ; Default Value: not set
  332. ;chroot =
  333.  
  334. ; Chdir to this directory at the start.
  335. ; Note: relative path can be used.
  336. ; Default Value: current directory or / when chroot
  337. ;chdir = /var/www
  338.  
  339. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  340. ; stderr will be redirected to /dev/null according to FastCGI specs.
  341. ; Note: on highloaded environement, this can cause some delay in the page
  342. ; process time (several ms).
  343. ; Default Value: no
  344. ;catch_workers_output = yes
  345.  
  346. ; Clear environment in FPM workers
  347. ; Prevents arbitrary environment variables from reaching FPM worker processes
  348. ; by clearing the environment in workers before env vars specified in this
  349. ; pool configuration are added.
  350. ; Setting to "no" will make all environment variables available to PHP code
  351. ; via getenv(), $_ENV and $_SERVER.
  352. ; Default Value: yes
  353. ;clear_env = no
  354.  
  355. ; Limits the extensions of the main script FPM will allow to parse. This can
  356. ; prevent configuration mistakes on the web server side. You should only limit
  357. ; FPM to .php extensions to prevent malicious users to use other extensions to
  358. ; exectute php code.
  359. ; Note: set an empty value to allow all extensions.
  360. ; Default Value: .php
  361. ;security.limit_extensions = .php .php3 .php4 .php5 .php7
  362.  
  363. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  364. ; the current environment.
  365. ; Default Value: clean env
  366. ;env[HOSTNAME] = $HOSTNAME
  367. ; Start a new pool named 'www'.
  368. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  369. ;env[TMP] = /tmp
  370. ;env[TMPDIR] = /tmp
  371. ;env[TEMP] = /tmp
  372.  
  373. ; Additional php.ini defines, specific to this pool of workers. These settings
  374. ; overwrite the values previously defined in the php.ini. The directives are the
  375. ; same as the PHP SAPI:
  376. ; php_value/php_flag - you can set classic ini defines which can
  377. ; be overwritten from PHP call 'ini_set'.
  378. ; php_admin_value/php_admin_flag - these directives won't be overwritten by
  379. ; PHP call 'ini_set'
  380. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  381.  
  382. ; Defining 'extension' will load the corresponding shared extension from
  383. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  384. ; overwrite previously defined php.ini values, but will append the new value
  385. ; instead.
  386.  
  387. ; Default Value: nothing is defined by default except the values in php.ini and
  388. ; specified at startup with the -d argument
  389. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
  390. ;php_flag[display_errors] = off
  391. php_admin_value[error_log] = /var/log/php-fpm/www-error.log
  392. php_admin_flag[log_errors] = on
  393. ;php_admin_value[memory_limit] = 128M
  394.  
  395. ; Set session path to a directory owned by process user
  396. php_value[session.save_handler] = files
  397. php_value[session.save_path] = /var/lib/php/session
  398. php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
  399.  
  400. listen.owner=nginx
  401. listen.group=nginx
  402. [root@271 html]# cim /etc/php-fpm.d/www.conf
  403. -bash: cim: command not found
  404. [root@271 html]# vim /etc/php-fpm.d/www.conf
  405. [root@271 html]# systemctl restart nginx
  406. [root@271 html]# systemctl restart php-fpm
  407. [root@271 html]# ps aux| grep fpm
  408. root 29690 0.6 4.4 510984 33308 ? Ss 20:02 0:00 php-fpm: master process (/etc/php-fpm.conf)
  409. nginx 29691 0.0 1.0 510984 7864 ? S 20:02 0:00 php-fpm: pool www
  410. nginx 29692 0.0 1.0 510984 7856 ? S 20:02 0:00 php-fpm: pool www
  411. nginx 29693 0.0 1.0 510984 7856 ? S 20:02 0:00 php-fpm: pool www
  412. nginx 29694 0.0 1.0 510984 7860 ? S 20:02 0:00 php-fpm: pool www
  413. nginx 29695 0.0 1.0 510984 7864 ? S 20:02 0:00 php-fpm: pool www
  414. root 29697 0.0 0.1 112644 964 pts/0 R+ 20:02 0:00 grep --color=auto fpm
  415. [root@271 html]# cat /etc/php-fpm.d/www.conf
  416. ; Start a new pool named 'www'.
  417. [www]
  418.  
  419. ; Unix user/group of processes
  420. ; Note: The user is mandatory. If the group is not set, the default user's group
  421. ; will be used.
  422. ; RPM: apache Choosed to be able to access some dir as httpd
  423. user=nginx
  424. ; RPM: Keep a group allowed to write in log dir.
  425. group=nginx
  426.  
  427. ; The address on which to accept FastCGI requests.
  428. ; Valid syntaxes are:
  429. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
  430. ; a specific port;
  431. ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
  432. ; a specific port;
  433. ; 'port' - to listen on a TCP socket to all addresses
  434. ; (IPv6 and IPv4-mapped) on a specific port;
  435. ; '/path/to/unix/socket' - to listen on a unix socket.
  436. ; Note: This value is mandatory.
  437. listen=/var/run/php-fpm/php-fpm.sock
  438.  
  439. ; Set listen(2) backlog.
  440. ; Default Value: 511 (-1 on FreeBSD and OpenBSD)
  441. ;listen.backlog = 511
  442.  
  443. ; Set permissions for unix socket, if one is used. In Linux, read/write
  444. ; permissions must be set in order to allow connections from a web server. Many
  445. ; BSD-derived systems allow connections regardless of permissions.
  446. ; Default Values: user and group are set as the running user
  447. ; mode is set to 0660
  448. ;listen.owner = nobody
  449. ;listen.group = nobody
  450. ;listen.mode = 0660
  451. ; When POSIX Access Control Lists are supported you can set them using
  452. ; these options, value is a comma separated list of user/group names.
  453. ; When set, listen.owner and listen.group are ignored
  454. ;listen.acl_users =
  455. ;listen.acl_groups =
  456.  
  457. ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
  458. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  459. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  460. ; must be separated by a comma. If this value is left blank, connections will be
  461. ; accepted from any ip address.
  462. ; Default Value: any
  463. listen.allowed_clients = 127.0.0.1
  464.  
  465. ; Specify the nice(2) priority to apply to the pool processes (only if set)
  466. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  467. ; Note: - It will only work if the FPM master process is launched as root
  468. ; - The pool processes will inherit the master process priority
  469. ; unless it specified otherwise
  470. ; Default Value: no set
  471. ; process.priority = -19
  472.  
  473. ; Choose how the process manager will control the number of child processes.
  474. ; Possible Values:
  475. ; static - a fixed number (pm.max_children) of child processes;
  476. ; dynamic - the number of child processes are set dynamically based on the
  477. ; following directives. With this process management, there will be
  478. ; always at least 1 children.
  479. ; pm.max_children - the maximum number of children that can
  480. ; be alive at the same time.
  481. ; pm.start_servers - the number of children created on startup.
  482. ; pm.min_spare_servers - the minimum number of children in 'idle'
  483. ; state (waiting to process). If the number
  484. ; of 'idle' processes is less than this
  485. ; number then some children will be created.
  486. ; pm.max_spare_servers - the maximum number of children in 'idle'
  487. ; state (waiting to process). If the number
  488. ; of 'idle' processes is greater than this
  489. ; number then some children will be killed.
  490. ; ondemand - no children are created at startup. Children will be forked when
  491. ; new requests will connect. The following parameter are used:
  492. ; pm.max_children - the maximum number of children that
  493. ; can be alive at the same time.
  494. ; pm.process_idle_timeout - The number of seconds after which
  495. ; an idle process will be killed.
  496. ; Note: This value is mandatory.
  497. pm = dynamic
  498.  
  499. ; The number of child processes to be created when pm is set to 'static' and the
  500. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  501. ; This value sets the limit on the number of simultaneous requests that will be
  502. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  503. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  504. ; CGI.
  505. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  506. ; Note: This value is mandatory.
  507. pm.max_children = 50
  508.  
  509. ; The number of child processes created on startup.
  510. ; Note: Used only when pm is set to 'dynamic'
  511. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  512. pm.start_servers = 5
  513.  
  514. ; The desired minimum number of idle server processes.
  515. ; Note: Used only when pm is set to 'dynamic'
  516. ; Note: Mandatory when pm is set to 'dynamic'
  517. pm.min_spare_servers = 5
  518.  
  519. ; The desired maximum number of idle server processes.
  520. ; Note: Used only when pm is set to 'dynamic'
  521. ; Note: Mandatory when pm is set to 'dynamic'
  522. pm.max_spare_servers = 35
  523.  
  524. ; The number of seconds after which an idle process will be killed.
  525. ; Note: Used only when pm is set to 'ondemand'
  526. ; Default Value: 10s
  527. ;pm.process_idle_timeout = 10s;
  528.  
  529. ; The number of requests each child process should execute before respawning.
  530. ; This can be useful to work around memory leaks in 3rd party libraries. For
  531. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  532. ; Default Value: 0
  533. ;pm.max_requests = 500
  534.  
  535. ; The URI to view the FPM status page. If this value is not set, no URI will be
  536. ; recognized as a status page. It shows the following informations:
  537. ; pool - the name of the pool;
  538. ; process manager - static, dynamic or ondemand;
  539. ; start time - the date and time FPM has started;
  540. ; start since - number of seconds since FPM has started;
  541. ; accepted conn - the number of request accepted by the pool;
  542. ; listen queue - the number of request in the queue of pending
  543. ; connections (see backlog in listen(2));
  544. ; max listen queue - the maximum number of requests in the queue
  545. ; of pending connections since FPM has started;
  546. ; listen queue len - the size of the socket queue of pending connections;
  547. ; idle processes - the number of idle processes;
  548. ; active processes - the number of active processes;
  549. ; total processes - the number of idle + active processes;
  550. ; max active processes - the maximum number of active processes since FPM
  551. ; has started;
  552. ; max children reached - number of times, the process limit has been reached,
  553. ; when pm tries to start more children (works only for
  554. ; pm 'dynamic' and 'ondemand');
  555. ; Value are updated in real time.
  556. ; Example output:
  557. ; pool: www
  558. ; process manager: static
  559. ; start time: 01/Jul/2011:17:53:49 +0200
  560. ; start since: 62636
  561. ; accepted conn: 190460
  562. ; listen queue: 0
  563. ; max listen queue: 1
  564. ; listen queue len: 42
  565. ; idle processes: 4
  566. ; active processes: 11
  567. ; total processes: 15
  568. ; max active processes: 12
  569. ; max children reached: 0
  570. ;
  571. ; By default the status page output is formatted as text/plain. Passing either
  572. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  573. ; output syntax. Example:
  574. ; http://www.foo.bar/status
  575. ; http://www.foo.bar/status?json
  576. ; http://www.foo.bar/status?html
  577. ; http://www.foo.bar/status?xml
  578. ;
  579. ; By default the status page only outputs short status. Passing 'full' in the
  580. ; query string will also return status for each pool process.
  581. ; Example:
  582. ; http://www.foo.bar/status?full
  583. ; http://www.foo.bar/status?json&full
  584. ; http://www.foo.bar/status?html&full
  585. ; http://www.foo.bar/status?xml&full
  586. ; The Full status returns for each process:
  587. ; pid - the PID of the process;
  588. ; state - the state of the process (Idle, Running, ...);
  589. ; start time - the date and time the process has started;
  590. ; start since - the number of seconds since the process has started;
  591. ; requests - the number of requests the process has served;
  592. ; request duration - the duration in µs of the requests;
  593. ; request method - the request method (GET, POST, ...);
  594. ; request URI - the request URI with the query string;
  595. ; content length - the content length of the request (only with POST);
  596. ; user - the user (PHP_AUTH_USER) (or '-' if not set);
  597. ; script - the main script called (or '-' if not set);
  598. ; last request cpu - the %cpu the last request consumed
  599. ; it's always 0 if the process is not in Idle state
  600. ; because CPU calculation is done when the request
  601. ; processing has terminated;
  602. ; last request memory - the max amount of memory the last request consumed
  603. ; it's always 0 if the process is not in Idle state
  604. ; because memory calculation is done when the request
  605. ; processing has terminated;
  606. ; If the process is in Idle state, then informations are related to the
  607. ; last request the process has served. Otherwise informations are related to
  608. ; the current request being served.
  609. ; Example output:
  610. ; ************************
  611. ; pid: 31330
  612. ; state: Running
  613. ; start time: 01/Jul/2011:17:53:49 +0200
  614. ; start since: 63087
  615. ; requests: 12808
  616. ; request duration: 1250261
  617. ; request method: GET
  618. ; request URI: /test_mem.php?N=10000
  619. ; content length: 0
  620. ; user: -
  621. ; script: /home/fat/web/docs/php/test_mem.php
  622. ; last request cpu: 0.00
  623. ; last request memory: 0
  624. ;
  625. ; Note: There is a real-time FPM status monitoring sample web page available
  626. ; It's available in: @EXPANDED_DATADIR@/fpm/status.html
  627. ;
  628. ; Note: The value must start with a leading slash (/). The value can be
  629. ; anything, but it may not be a good idea to use the .php extension or it
  630. ; may conflict with a real PHP file.
  631. ; Default Value: not set
  632. ;pm.status_path = /status
  633.  
  634. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  635. ; URI will be recognized as a ping page. This could be used to test from outside
  636. ; that FPM is alive and responding, or to
  637. ; - create a graph of FPM availability (rrd or such);
  638. ; - remove a server from a group if it is not responding (load balancing);
  639. ; - trigger alerts for the operating team (24/7).
  640. ; Note: The value must start with a leading slash (/). The value can be
  641. ; anything, but it may not be a good idea to use the .php extension or it
  642. ; may conflict with a real PHP file.
  643. ; Default Value: not set
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement