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:20:36

Author Topic: Some important changes to removing customers script  (Read 830 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
When removing many domain there should be httpd graceful at the end not after each domain
« Last Edit: 2015-07-17, 01:08:28 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Some important changes to removing customers script
« Reply #1 on: 2015-07-17, 01:13:16 »
Removing customer with 12 domains resulted in Kloxo freeze and Internal Server Error

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Some important changes to removing customers script
« Reply #2 on: 2015-07-17, 01:17:34 »
Too quickly removed user with userdel leads to non-working php-fpm !

 /etc/init.d/php-fpm restart
Stopping php-fpm:                                          [FAILED]
Starting php-fpm: [17-Jul-2015 01:21:02] ERROR: [pool walldy] cannot get uid for user 'walldy'
[17-Jul-2015 01:21:02] ERROR: FPM initialization failed
                                                           [FAILED]

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Some important changes to removing customers script
« Reply #3 on: 2015-07-17, 01:37:54 »
Removing one simple customer with 12 domains and 12 databases (nothing big) lead our server to load 110 and more ! It took almost 30 minutes and nothing.

At the end Internal Server Error were displayed and even restarting Kloxo didn't helped because it was so slow that even login page was not displayed. After about 10 minutes it was back to normal ;(

Please note I use a high-end dedicated server with 24 GB RAM.
« Last Edit: 2015-07-17, 01:41:57 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some important changes to removing customers script
« Reply #4 on: 2015-07-17, 02:48:21 »
Investigate kloxo log inside /usr/local/lxlabs/kloxo/log. I have nothing issue in my testing server.
..:: 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
Re: Some important changes to removing customers script
« Reply #5 on: 2015-07-17, 11:05:10 »
Investigate kloxo log inside /usr/local/lxlabs/kloxo/log. I have nothing issue in my testing server.

These logs does not show anything. It stops right after rm -rf and trying to remove first domain.

The problem you did is overloading a database !

Removing many databases at the same time require MariaDB to get some time to clear the cache etc. while you are executing script fix-outoingips after each domain. This make many such processes running and if database is slow (because it's clearing the cache) then it make load 110 and more.

Move script-fixoutgoing to scavenge - there is no point of running it after removing domain ! It does not affect any service.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile

 


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

Page created in 0.048 seconds with 18 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM