Browse Source

Php-fpm change to static (#3735)

* Php-fpm change for static

* Limit children for vagrant box
Joan Miquel 7 years ago
parent
commit
9c9044230c
57 changed files with 91 additions and 23 deletions
  1. 2 0
      frameworks/PHP/cakephp/cakephp.dockerfile
  2. 1 1
      frameworks/PHP/cakephp/deploy/conf/php-fpm.conf
  3. 2 0
      frameworks/PHP/clancats/clancats.dockerfile
  4. 1 1
      frameworks/PHP/clancats/deploy/conf/php-fpm.conf
  5. 2 0
      frameworks/PHP/codeigniter/codeigniter.dockerfile
  6. 1 1
      frameworks/PHP/codeigniter/deploy/conf/php-fpm.conf
  7. 2 0
      frameworks/PHP/cygnite/cygnite.dockerfile
  8. 1 1
      frameworks/PHP/cygnite/deploy/conf/php-fpm.conf
  9. 1 1
      frameworks/PHP/fat-free/deploy/conf/php-fpm.conf
  10. 2 0
      frameworks/PHP/fat-free/fat-free-raw.dockerfile
  11. 2 0
      frameworks/PHP/fat-free/fat-free.dockerfile
  12. 1 1
      frameworks/PHP/fuel/deploy/conf/php-fpm.conf
  13. 2 0
      frameworks/PHP/fuel/fuel.dockerfile
  14. 1 1
      frameworks/PHP/kohana/deploy/conf/php-fpm.conf
  15. 2 0
      frameworks/PHP/kohana/kohana.dockerfile
  16. 1 1
      frameworks/PHP/kumbiaphp/deploy/conf/php-fpm.conf
  17. 2 0
      frameworks/PHP/kumbiaphp/kumbiaphp-raw.dockerfile
  18. 2 0
      frameworks/PHP/kumbiaphp/kumbiaphp.dockerfile
  19. 1 1
      frameworks/PHP/laravel/deploy/conf/php-fpm.conf
  20. 2 0
      frameworks/PHP/laravel/laravel.dockerfile
  21. 1 1
      frameworks/PHP/limonade/deploy/conf/php-fpm.conf
  22. 2 0
      frameworks/PHP/limonade/limonade.dockerfile
  23. 1 1
      frameworks/PHP/lithium/deploy/conf/php-fpm.conf
  24. 2 0
      frameworks/PHP/lithium/lithium.dockerfile
  25. 1 1
      frameworks/PHP/lumen/deploy/conf/php-fpm.conf
  26. 2 0
      frameworks/PHP/lumen/lumen.dockerfile
  27. 1 1
      frameworks/PHP/phalcon/deploy/conf/php-fpm.conf
  28. 2 0
      frameworks/PHP/phalcon/phalcon-micro.dockerfile
  29. 2 0
      frameworks/PHP/phalcon/phalcon-mongodb.dockerfile
  30. 2 0
      frameworks/PHP/phalcon/phalcon.dockerfile
  31. 1 1
      frameworks/PHP/php/deploy/conf/php-fpm.conf
  32. 2 0
      frameworks/PHP/php/php-php5-raw.dockerfile
  33. 2 0
      frameworks/PHP/php/php-php5.dockerfile
  34. 2 0
      frameworks/PHP/php/php-raw7-tcp.dockerfile
  35. 2 0
      frameworks/PHP/php/php-raw7.dockerfile
  36. 2 0
      frameworks/PHP/php/php.dockerfile
  37. 1 1
      frameworks/PHP/phpixie/deploy/conf/php-fpm.conf
  38. 2 0
      frameworks/PHP/phpixie/phpixie.dockerfile
  39. 1 1
      frameworks/PHP/phreeze/deploy/conf/php-fpm.conf
  40. 2 0
      frameworks/PHP/phreeze/phreeze.dockerfile
  41. 1 1
      frameworks/PHP/silex/deploy/conf/php-fpm.conf
  42. 2 0
      frameworks/PHP/silex/silex-raw.dockerfile
  43. 2 0
      frameworks/PHP/silex/silex.dockerfile
  44. 1 1
      frameworks/PHP/slim/deploy/conf/php-fpm.conf
  45. 2 0
      frameworks/PHP/slim/slim-php5.dockerfile
  46. 2 0
      frameworks/PHP/slim/slim.dockerfile
  47. 1 1
      frameworks/PHP/symfony/deploy/conf/php-fpm.conf
  48. 2 0
      frameworks/PHP/symfony/symfony-raw.dockerfile
  49. 2 0
      frameworks/PHP/symfony/symfony.dockerfile
  50. 1 1
      frameworks/PHP/workerman/deploy/conf/php-fpm.conf
  51. 1 1
      frameworks/PHP/yii2/deploy/conf/php-fpm.conf
  52. 2 0
      frameworks/PHP/yii2/yii2-hhvm.dockerfile
  53. 2 0
      frameworks/PHP/yii2/yii2.dockerfile
  54. 1 1
      frameworks/PHP/zend/deploy/conf/php-fpm.conf
  55. 2 0
      frameworks/PHP/zend/zend.dockerfile
  56. 1 1
      frameworks/PHP/zend1/deploy/conf/php-fpm.conf
  57. 2 0
      frameworks/PHP/zend1/zend1.dockerfile

+ 2 - 0
frameworks/PHP/cakephp/cakephp.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /cakephp
 ADD ./ /cakephp
 WORKDIR /cakephp
 WORKDIR /cakephp
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN mkdir -p app/tmp/cache/models
 RUN mkdir -p app/tmp/cache/models
 RUN mkdir -p app/tmp/cache/persistent
 RUN mkdir -p app/tmp/cache/persistent
 RUN mkdir -p app/tmp/logs
 RUN mkdir -p app/tmp/logs

+ 1 - 1
frameworks/PHP/cakephp/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/clancats/clancats.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /clancats
 ADD ./ /clancats
 WORKDIR /clancats
 WORKDIR /clancats
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN git clone --branch v2.0.6 --depth 1 https://github.com/ClanCats/Framework.git clancatsapp
 RUN git clone --branch v2.0.6 --depth 1 https://github.com/ClanCats/Framework.git clancatsapp

+ 1 - 1
frameworks/PHP/clancats/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/codeigniter/codeigniter.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /codeigniter
 ADD ./ /codeigniter
 WORKDIR /codeigniter
 WORKDIR /codeigniter
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 1 - 1
frameworks/PHP/codeigniter/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/cygnite/cygnite.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /cygnite
 ADD ./ /cygnite
 WORKDIR /cygnite
 WORKDIR /cygnite
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php5.6-fpm start && \
 CMD service php5.6-fpm start && \

+ 1 - 1
frameworks/PHP/cygnite/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 1 - 1
frameworks/PHP/fat-free/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/fat-free/fat-free-raw.dockerfile

@@ -17,6 +17,8 @@ ENV F3DIR="/fat-free/src"
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN chmod -R 777 /fat-free
 RUN chmod -R 777 /fat-free
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 2 - 0
frameworks/PHP/fat-free/fat-free.dockerfile

@@ -17,6 +17,8 @@ ENV F3DIR="/fat-free/src"
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN chmod -R 777 /fat-free
 RUN chmod -R 777 /fat-free
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 1 - 1
frameworks/PHP/fuel/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/fuel/fuel.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /fuel
 ADD ./ /fuel
 WORKDIR /fuel
 WORKDIR /fuel
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php5.6-fpm start && \
 CMD service php5.6-fpm start && \

+ 1 - 1
frameworks/PHP/kohana/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/kohana/kohana.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /kohana
 ADD ./ /kohana
 WORKDIR /kohana
 WORKDIR /kohana
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 /kohana
 RUN chmod -R 777 /kohana

+ 1 - 1
frameworks/PHP/kumbiaphp/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/kumbiaphp/kumbiaphp-raw.dockerfile

@@ -14,5 +14,7 @@ WORKDIR /kumbiaphp
 
 
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 -q https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 -q https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"

+ 2 - 0
frameworks/PHP/kumbiaphp/kumbiaphp.dockerfile

@@ -15,5 +15,7 @@ WORKDIR /kumbiaphp
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 RUN git clone -b v0.4.0 --single-branch --depth 1 https://github.com/KumbiaPHP/ActiveRecord.git vendor/Kumbia/ActiveRecord
 RUN git clone -b v0.4.0 --single-branch --depth 1 https://github.com/KumbiaPHP/ActiveRecord.git vendor/Kumbia/ActiveRecord
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/laravel/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/laravel/laravel.dockerfile

@@ -15,6 +15,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /laravel
 ADD ./ /laravel
 WORKDIR /laravel
 WORKDIR /laravel
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN mkdir -p /laravel/bootstrap/cache
 RUN mkdir -p /laravel/bootstrap/cache
 RUN mkdir -p /laravel/storage/framework/sessions
 RUN mkdir -p /laravel/storage/framework/sessions
 RUN mkdir -p /laravel/storage/framework/views
 RUN mkdir -p /laravel/storage/framework/views

+ 1 - 1
frameworks/PHP/limonade/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/limonade/limonade.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /limonade
 ADD ./ /limonade
 WORKDIR /limonade
 WORKDIR /limonade
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 1 - 1
frameworks/PHP/lithium/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/lithium/lithium.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /lithium
 ADD ./ /lithium
 WORKDIR /lithium
 WORKDIR /lithium
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 /lithium
 RUN chmod -R 777 /lithium

+ 1 - 1
frameworks/PHP/lumen/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/lumen/lumen.dockerfile

@@ -15,6 +15,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /lumen
 ADD ./ /lumen
 WORKDIR /lumen
 WORKDIR /lumen
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN mkdir -p /lumen/storage
 RUN mkdir -p /lumen/storage

+ 1 - 1
frameworks/PHP/phalcon/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/phalcon/phalcon-micro.dockerfile

@@ -12,6 +12,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /phalcon
 ADD ./ /phalcon
 WORKDIR /phalcon
 WORKDIR /phalcon
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN apt-get install -yqq php7.2-phalcon php7.2-dev  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon php7.2-dev  > /dev/null
 
 
 RUN mv /phalcon/public/index-micro.php /phalcon/public/index.php
 RUN mv /phalcon/public/index-micro.php /phalcon/public/index.php

+ 2 - 0
frameworks/PHP/phalcon/phalcon-mongodb.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /phalcon
 ADD ./ /phalcon
 WORKDIR /phalcon
 WORKDIR /phalcon
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 
 
 RUN composer install --quiet
 RUN composer install --quiet

+ 2 - 0
frameworks/PHP/phalcon/phalcon.dockerfile

@@ -16,6 +16,8 @@ WORKDIR /phalcon
 
 
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 app
 RUN chmod -R 777 app

+ 1 - 1
frameworks/PHP/php/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/php/php-php5-raw.dockerfile

@@ -13,6 +13,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 
 CMD service php5.6-fpm start && \
 CMD service php5.6-fpm start && \

+ 2 - 0
frameworks/PHP/php/php-php5.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php

+ 2 - 0
frameworks/PHP/php/php-raw7-tcp.dockerfile

@@ -15,6 +15,8 @@ WORKDIR /php
 RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = 127.0.0.1:9001|g" /etc/php/7.2/fpm/php-fpm.conf
 RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = 127.0.0.1:9001|g" /etc/php/7.2/fpm/php-fpm.conf
 RUN sed -i "s|server unix:/var/run/php/php7.2-fpm.sock;|server 127.0.0.1:9001;|g" deploy/nginx7.conf
 RUN sed -i "s|server unix:/var/run/php/php7.2-fpm.sock;|server 127.0.0.1:9001;|g" deploy/nginx7.conf
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 2 - 0
frameworks/PHP/php/php-raw7.dockerfile

@@ -12,6 +12,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 2 - 0
frameworks/PHP/php/php.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php

+ 1 - 1
frameworks/PHP/phpixie/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/phpixie/phpixie.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /phpixie
 ADD ./ /phpixie
 WORKDIR /phpixie
 WORKDIR /phpixie
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 1 - 1
frameworks/PHP/phreeze/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/phreeze/phreeze.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /phreeze
 ADD ./ /phreeze
 WORKDIR /phreeze
 WORKDIR /phreeze
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php5.6-fpm start && \
 CMD service php5.6-fpm start && \

+ 1 - 1
frameworks/PHP/silex/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/silex/silex-raw.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /silex
 ADD ./ /silex
 WORKDIR /silex
 WORKDIR /silex
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN mv /silex/web/index_raw.php /silex/web/index.php
 RUN mv /silex/web/index_raw.php /silex/web/index.php

+ 2 - 0
frameworks/PHP/silex/silex.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /silex
 ADD ./ /silex
 WORKDIR /silex
 WORKDIR /silex
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 1 - 1
frameworks/PHP/slim/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/slim/slim-php5.dockerfile

@@ -15,6 +15,8 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /slim
 ADD ./ /slim
 WORKDIR /slim
 WORKDIR /slim
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 /slim
 RUN chmod -R 777 /slim

+ 2 - 0
frameworks/PHP/slim/slim.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /slim
 ADD ./ /slim
 WORKDIR /slim
 WORKDIR /slim
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 RUN chmod -R 777 /slim
 RUN chmod -R 777 /slim

+ 1 - 1
frameworks/PHP/symfony/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/symfony/symfony-raw.dockerfile

@@ -15,6 +15,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /symfony
 ADD ./ /symfony
 WORKDIR /symfony
 WORKDIR /symfony
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 ENV APP_ENV=prod
 ENV APP_ENV=prod
 
 
 RUN composer install --quiet
 RUN composer install --quiet

+ 2 - 0
frameworks/PHP/symfony/symfony.dockerfile

@@ -15,6 +15,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /symfony
 ADD ./ /symfony
 WORKDIR /symfony
 WORKDIR /symfony
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 ENV APP_ENV=prod
 ENV APP_ENV=prod
 
 
 RUN composer install --quiet
 RUN composer install --quiet

+ 1 - 1
frameworks/PHP/workerman/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 1 - 1
frameworks/PHP/yii2/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/yii2/yii2-hhvm.dockerfile

@@ -14,6 +14,8 @@ RUN apt-get install -yqq composer > /dev/null
 ADD ./ /yii2
 ADD ./ /yii2
 WORKDIR /yii2
 WORKDIR /yii2
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD hhvm -m daemon --config /yii2/deploy/config.hdf && \
 CMD hhvm -m daemon --config /yii2/deploy/config.hdf && \

+ 2 - 0
frameworks/PHP/yii2/yii2.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /yii2
 ADD ./ /yii2
 WORKDIR /yii2
 WORKDIR /yii2
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \

+ 1 - 1
frameworks/PHP/zend/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/zend/zend.dockerfile

@@ -15,6 +15,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /zend
 ADD ./ /zend
 WORKDIR /zend
 WORKDIR /zend
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN mkdir -p data/cache
 RUN mkdir -p data/cache
 RUN chmod 777 data/cache
 RUN chmod 777 data/cache
 
 

+ 1 - 1
frameworks/PHP/zend1/deploy/conf/php-fpm.conf

@@ -227,7 +227,7 @@ listen.group = www-data
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;             pm.process_idle_timeout   - The number of seconds after which
 ;                                         an idle process will be killed.
 ;                                         an idle process will be killed.
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm = dynamic
+pm = static
 
 
 ; The number of child processes to be created when pm is set to 'static' and the
 ; The number of child processes to be created when pm is set to 'static' and the
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.

+ 2 - 0
frameworks/PHP/zend1/zend1.dockerfile

@@ -14,6 +14,8 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /zend1
 ADD ./ /zend1
 WORKDIR /zend1
 WORKDIR /zend1
 
 
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+
 RUN composer install --quiet
 RUN composer install --quiet
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \