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. 2024-04-29, 00:27:59

Author Topic: What's different with scavenge and fixtraffic command ?  (Read 8948 times)

0 Members and 1 Guest are viewing this topic.

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
I do two command
1. sh /script/fixtraffic
2. sh /script/scavenge

Seem to be it do same thing update new bandwidth and disk space metter, domain count , ftp user count.....
What's is different between two command ?

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: What's different with scavenge and fixtraffic command ?
« Reply #1 on: 2014-05-25, 03:23:09 »
Scavenge does a few more things,  I know one of them is to gracefully restart httpd, and something else, I run scavenge once a day and have fixtraffic running every 4 hours.

Not a comprehensive answer, sorry, but they are slightly different.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #2 on: 2014-05-25, 03:34:40 »
Scavenge does a few more things,  I know one of them is to gracefully restart httpd, and something else, I run scavenge once a day and have fixtraffic running every 4 hours.

Not a comprehensive answer, sorry, but they are slightly different.
i saw the scavenge time in kloxo panel. Can i set time to do it automatic here ?
And why run fixtraffic every 4 hours. Both is update metter. 

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: What's different with scavenge and fixtraffic command ?
« Reply #3 on: 2014-05-25, 04:45:15 »
Scavenge time from panel is unpredictable.   Sometimes it does, sometimes it doesn't work.

http://forum.mratwork.com/kloxo-mr-technical-helps/error-traffic-not-work/msg30684/#msg30684

Every 4 hours is for shared hosting business, a client can eat up a lot of resources in 4 hours!  ;)  If you only run it once a day, well, I've had client's use gigabytes over their plans.  On my full production servers, I run fixtraffic every 2 hours.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #4 on: 2014-05-25, 12:07:02 »
Okay i understand that but when you run one of them the result is same so why you have to run both 2 command ?
And do you run it by add to cron job in the panel ? Please give me a tutorial ~!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: What's different with scavenge and fixtraffic command ?
« Reply #5 on: 2014-05-25, 12:10:43 »
I didn't use Scavenge or cronjob for fixtraffic. No issue related to traffic report. Yes, traffic will be updated everyday in default and using Scavenge/fixtraffic will be updated immediately.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #6 on: 2014-05-25, 14:29:32 »
I didn't use Scavenge or cronjob for fixtraffic. No issue related to traffic report. Yes, traffic will be updated everyday in default and using Scavenge/fixtraffic will be updated immediately.
But should we use fixtraffic or scavenge script to update. I just want to know the different

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: What's different with scavenge and fixtraffic command ?
« Reply #7 on: 2014-05-25, 15:07:17 »
fixtraffic only execute gettraffic.php and collectquota.php. But, scavenge ALSO execute schedulebackup.php, clearsession.php and mebackup.php beside other some functions.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: What's different with scavenge and fixtraffic command ?
« Reply #8 on: 2014-05-25, 16:12:08 »
backups, that's the part of scavenge ;)

Now, we have been down this road MANY times.  Scavenge skips days, doesn't always run, idk, I couldn't even find the cron where the panel set it.  Many of us running production shared hosting noticed skips in stats.

Second, resource usage does not magically update!  If you run scavenge once a day, and a client spends all day uploading, downloading, video, whatever, resource limits can and have been abused.  I run a fixtraffic cron to keep client resource usuage up to date (4 hours isn't really up to date, but better than 24!). This is another reason we need quota use in KloxoMR.

that's all.
« Last Edit: 2014-05-25, 16:19:51 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #9 on: 2014-05-25, 17:50:07 »
backups, that's the part of scavenge ;)

Now, we have been down this road MANY times.  Scavenge skips days, doesn't always run, idk, I couldn't even find the cron where the panel set it.  Many of us running production shared hosting noticed skips in stats.

Second, resource usage does not magically update!  If you run scavenge once a day, and a client spends all day uploading, downloading, video, whatever, resource limits can and have been abused.  I run a fixtraffic cron to keep client resource usuage up to date (4 hours isn't really up to date, but better than 24!). This is another reason we need quota use in KloxoMR.

that's all.
Ah ha in panel do you see Cron Scheduled Tasks . I think it can excute as schedule the command you want. I'm not test but you can try it.
And in your method how to make scavenge run once a day and fixtraffic per 2 hours by crontab via command ?

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: What's different with scavenge and fixtraffic command ?
« Reply #10 on: 2014-05-25, 21:11:24 »
http://forum.mratwork.com/kloxo-mr-technical-helps/error-traffic-not-work/msg30684/#msg30684

That is how I did it, follow the link ;)

Just add every 2 hours to complex cron instead of every 4.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #11 on: 2014-05-26, 18:11:17 »
http://forum.mratwork.com/kloxo-mr-technical-helps/error-traffic-not-work/msg30684/#msg30684

That is how I did it, follow the link ;)

Just add every 2 hours to complex cron instead of every 4.

Thanks i try to run fixtraffic per hour :) and scavenge per day complete !

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #12 on: 2014-05-27, 09:14:22 »
How to know if ir run success. I enter my email to cron email but no received any yet

Offline quangnhut123

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: What's different with scavenge and fixtraffic command ?
« Reply #13 on: 2014-05-28, 04:53:56 »
http://forum.mratwork.com/kloxo-mr-technical-helps/error-traffic-not-work/msg30684/#msg30684

That is how I did it, follow the link ;)

Just add every 2 hours to complex cron instead of every 4.
How to know if ir run success. I enter my email to cron email but no received any yet

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: What's different with scavenge and fixtraffic command ?
« Reply #14 on: 2014-05-28, 05:16:16 »
If you used my instructions from that other post, we piped all output to null, this is so you don't get any email.  If you want email, just enter the command without the pipe to null.

;)
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


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

Page created in 0.071 seconds with 18 queries.

web stats analysis