| 165 | | To increase the number of php-fpm processes edit the following lines in {{{/opt/local/etc/php53-fpm.conf}}} (see ticket:555#comment:26): |
| 166 | | |
| 167 | | {{{ |
| 168 | | process.max = 20 |
| 169 | | pm.max_children = 16 |
| 170 | | pm.min_spare_servers = 4 |
| 171 | | }}} |
| 172 | | |
| 173 | | And then restart php-fpm53: |
| 174 | | |
| 175 | | {{{ |
| 176 | | /etc/init.d/php53-fpm restart |
| 177 | | }}} |
| 178 | | |
| 179 | | And check the error log: |
| 180 | | |
| 181 | | {{{ |
| 182 | | tail -f /var/log/php/php53-fpm-error.log |
| | 171 | To adjust the restarting of nginx and the killing of nginx and php-fpm under heave loads edit {{{/var/xdrago/second.sh}}} changing these values (see ticket:563#comment:9): |
| | 172 | |
| | 173 | {{{ |
| | 174 | CTL_ONEX_SPIDER_LOAD=1552 |
| | 175 | CTL_FIVX_SPIDER_LOAD=1552 |
| | 176 | CTL_ONEX_LOAD=5776 |
| | 177 | CTL_FIVX_LOAD=3552 |
| | 178 | CTL_ONEX_LOAD_CRIT=7552 |
| | 179 | CTL_FIVX_LOAD_CRIT=6220 |