Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    139

    Default [Case 48882] Backup Queue

    I would like to have a queue for creating backups. For instance, when clicking on create full backup in cpanel, it would queue the request and check to see if any other backups were running and then proceed. This would prevent a reseller or someone to spawn 10+ backups at one time. Also, an option in whm to select how many concurrent backups are allowed to run.

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default re: [Case 48882] Backup Queue

    This is an awesome an idea and definitely should be implemented as soon as possible.

  3. #3
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    I have looked at this problem sometime. A backup queue is a good idea.

    +1 for this request

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2007
    Posts
    38

    Default re: [Case 48882] Backup Queue

    I agree that something like this is needed in cPanel currently. Resellers like to perform backups on all of their clients at once, which causes issues on populated machines.

    +1

  5. #5
    Member InterServed's Avatar
    Join Date
    Jul 2007
    Posts
    172
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    +1 vote from me

  6. #6
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Hi there people. Today I were thinking about this feature, and recalled when sometimes a backup process collides with another heavy weight process in course, like mailman sending a ton of mails and the load balance reach a spike of 18 in just 2 minutes of work. I have arranged to setup well separated cron hours for these tasks, but just because I do know how to avoid those scenarios doesn't mean that a simple queue will save problems to underpowered servers or novice admins. I think that the backup queue should also take in account the current load of the server and automatically pause itself until the load slow down to a reasonably normal value (that could set in the Backup screen as "Max Load after which backups are paused"), and issue an email alert to the sysadmin if the load don't get normalized in X minutes (also, set in the Backup screen: "Max High Load Time Wait before issuing an alert").
    What do you think?

  7. #7
    Member InterServed's Avatar
    Join Date
    Jul 2007
    Posts
    172
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Quote Originally Posted by Kent Brockman View Post
    Hi there people. Today I were thinking about this feature, and recalled when sometimes a backup process collides with another heavy weight process in course, like mailman sending a ton of mails and the load balance reach a spike of 18 in just 2 minutes of work. I have arranged to setup well separated cron hours for these tasks, but just because I do know how to avoid those scenarios doesn't mean that a simple queue will save problems to underpowered servers or novice admins. I think that the backup queue should also take in account the current load of the server and automatically pause itself until the load slow down to a reasonably normal value (that could set in the Backup screen as "Max Load after which backups are paused"), and issue an email alert to the sysadmin if the load don't get normalized in X minutes (also, set in the Backup screen: "Max High Load Time Wait before issuing an alert").
    What do you think?
    Load control with pause already exist into the current backup process.

    here's an example of custom backup script i run for a customer:
    Code:
    #!/bin/bash
    BROOT="/backup/custom_backups/domain.com/"
    BACKUPDIR="/backup/custom_backups/domain.com/`date +%Y-%m-%d`"
    CPUWATCH=/usr/local/cpanel/bin/cpuwatch
    MAXLOAD=6.0
    USER="customer_username"
    BACKUPSCRIPT=/scripts/pkgacct
    $CPUWATCH $MAXLOAD $BACKUPSCRIPT $USER
    sleep 20
    mkdir -p $BACKUPDIR ; mv /home/cpmove-customer_username.* $BACKUPDIR
    cd $BROOT && find -mtime +4|xargs rm -rf
    So as you can see i can control the max load for the backup process. In this example if the server load is >=6 then the backup script will be paused until load will decrease.

  8. #8
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Great! And the native backup system in WHM does effectively check the load of the server?

  9. #9
    Member InterServed's Avatar
    Join Date
    Jul 2007
    Posts
    172
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Quote Originally Posted by Kent Brockman View Post
    Great! And the native backup system in WHM does effectively check the load of the server?
    Yes that's correct.

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Please review this report for accuracy and completeness before I submit this to our developers:

    This feature will add a tweak setting that will determine how many instances of backups triggered by cPanel users via the cPanel interface will be permitted. This setting will only govern backups triggered via the cPanel interface and not include instances of the pkgacct script called by the cpbackup server-wide backup script.

    The goal is to reduce resource consumption caused when a reseller with a dozen accounts decides to backup all their accounts simultaneously. The load of backing up several accounts simultaneously can be quite noticeable. The folks triggering these actions are not responsible for maintaining the server and may be unaware of the strain they are placing on the server.

    If more than the designated number of permitted backups is taking place, then further requests will be queued until the number of running backups is below the threshold of permitted backup processes. This queue should be designed to only permit 1 entry per cPanel account as not to queue a backup for the same account twice.

  11. #11
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    I do agree.
    "how many instances of backups triggered by cPanel users via the cPanel interface will be permitted": should be defaulted to 1 to cover actual scenario. Then sysadmins will decide if opening to more instances is a good idea for their different scenarios.

    Let's hear some more comments

  12. #12
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Extra CPUs for server load in Tweak Settings works in a similar fashion and backups are set to obey this setting, correct?

  13. #13
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    Quote Originally Posted by Infopro View Post
    Extra CPUs for server load in Tweak Settings works in a similar fashion and backups are set to obey this setting, correct?
    Extra CPUs for server load defaults to 0. What's taken in account when set to zero? The number of CPUs?

  14. #14
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    What else could it default to on a new installation of cPanel? It should be changed like many other settings.

    The load average above the number of CPUs at which cpuwatch, cpanellogd, backups, and CPU stats consider the system to be in a critical load state. For example, a server with 4 physical CPUs and a value of 2 in this field will be considered “critical” in these cases once the load reaches 6.

  15. #15
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 48882] Backup Queue

    I do agree, Infopro.
    Actually, if several backup attempts are made and every one is detecting a critical load state, they will remain paused until the load is normalized again. A server with 4 CPUs may not be affected, but still may have performance issues, which may be avoided by queuing the backup tasks.

Similar Threads & Tags
Similar threads

  1. A Better Mail Queue [case 40383]
    By m0rpheu5 in forum Archived Feature Requests
    Replies: 4
    Last Post: 05-01-2012, 10:18 AM
  2. Replies: 12
    Last Post: 12-21-2010, 03:47 PM
  3. Replies: 12
    Last Post: 12-08-2010, 11:57 AM
  4. emails backup in queue
    By tom_taylor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-04-2006, 02:32 PM
  5. Does anybody know how to backup exim mail queue?
    By cemlouis in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-30-2005, 06:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube