Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 21:21:08

Author Topic: Critical ! Changing user package does not change number of php-fpm processes !  (Read 1339 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Ex. package 120 GB got 12 php-fpm processes - customer downgrades to 15 GB which has just 4 php-fpm processes but it stays on 12 in /etc/php-fpm.d !

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
You mean no impact for 'resouce plan'?
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
You mean no impact for 'resouce plan'?

Yes. You change resource plan for customer and php-fpm processes inside /etc/php-fpm.d remains from older package.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
What's about when using 'limit' for client?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
What's about when using 'limit' for client?.

Then it works fine ;)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Try modified postUpdate() inside /usr/local/lxlabs/kloxo/httpdocs/lib/client/lxclient.php to:
Code: [Select]
	function postUpdate()
{
// We need to write because reads everything from the database.
$this->write();

if ($this->subaction === 'limit') {
$this->distributeChildQuota();

// MR -- php-fpm config mod update until client create 1 domain or more
lxshell_return("sh", "/script/fixphp", "--client={$this->nname}", "--nolog");
createRestartFile('php-fpm');
}

if ($this->subaction === 'change_plan') {
// MR -- php-fpm config mod update until client create 1 domain or more
lxshell_return("sh", "/script/fixphp", "--client={$this->nname}", "--nolog");
createRestartFile('php-fpm');
}

if ($this->subaction === 'resendwelcome') {
$this->send_welcome_f = 'On';
$this->notifyObjects('add');
$this->subaction = 'password';
}
}
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
It does not help - pm.max_children remains unchanged.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Wait for last update.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.039 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM