MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2017-01-03, 15:11:35

Title: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-03, 15:11:35
This slows Kloxo-MR as hell ;(

Can you remove it example from updating php settings for all domains.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: MRatWork on 2017-01-03, 15:37:51
Did you mean 'sh /script/fixphp'?.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-03, 18:13:45
Did you mean 'sh /script/fixphp'?.

And fixweb as well. It's takes a lot of time to execute these commands on 8-core Atom processor.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: MRatWork on 2017-01-03, 18:51:34
How long and how much domains/subdomain?.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: MRatWork on 2017-01-03, 19:11:27
I tested fixweb and investigated all log inside '/usr/local/lxlabs/kloxo/log'. But, I didn't found 'rpm -qa' strings.

So, attach here log file where content of 'rpm -qa'.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-03, 20:33:44
I tested fixweb and investigated all log inside '/usr/local/lxlabs/kloxo/log'. But, I didn't found 'rpm -qa' strings.

So, attach here log file where content of 'rpm -qa'.

See this - it even asks for rpm for qmail-toaster !

Title: Re: Pointless rpm -qa php53X on every web server config
Post by: MRatWork on 2017-01-04, 04:57:06
I didn't found 'rpm -qa' for detecting fixweb using htop.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-04, 12:22:38
I didn't found 'rpm -qa' for detecting fixweb using htop.

Try on my server. Just run /script/fixweb, then run

ps aux | grep rpm

you will see:

rpm -qa qmail-toaster
rpm -qa php
rpm -qa php-cli
rpm -qa php53u
rpm -qa php53u-cli
rpm -qa php54
rpm -qa php54-cli
rpm -qa php55u
rpm -qa php55u-cli
rpm -qa php55w
rpm -qa php55w-cli
rpm -qa php56u
rpm -qa php56u-cli
rpm -qa php56w
rpm -qa php56w-cli
rpm -qa php70u
rpm -qa php70w
rpm -qa php70w-cli
rpm -qa php70w-php

etc. it takes ages to complete :(
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: MRatWork on 2017-01-04, 14:48:48
Try 'rm -f /usr/local/lxlabs/kloxo/etc/list/*; yum reinstall kloxomr7 -y; sh /script/fix-service-list'.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-04, 23:00:14
Try 'rm -f /usr/local/lxlabs/kloxo/etc/list/*; yum reinstall kloxomr7 -y; sh /script/fix-service-list'.

Does not help - still rpm is running before commands. So it's a bug in the script.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: MRatWork on 2017-01-05, 03:41:40
How long to process fixweb in your server. In my test, fixweb for 250 domains only need 1 minutes in OpenVZ VPS with 1 core.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-05, 14:15:47
How long to process fixweb in your server. In my test, fixweb for 250 domains only need 1 minutes in OpenVZ VPS with 1 core.

Mine almost the same for just about 20 domains. That rpm at the beginning is slowing as hell. Maybe you CPU is faster and you just don't see it ? I've never seen this on a Xeon CPU.

Try running /script/fixweb on 8-core Atom.
Title: Re: Pointless rpm -qa php53X on every web server config
Post by: Spacedust on 2017-01-05, 14:18:07
I think this file is responsible for that rpm -qa qmail-toaster:

https://github.com/mustafaramadhan/kloxo/blob/59ea817ee9bbe01db88028872c7ee64dda0e6cb4/kloxo/httpdocs/lib/sgbl.php