Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > Suggestions > Topic : Backup cron optimization



Threaded Mode | Print  

 Backup cron optimization (6 Replies, Read 20844 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
It seems that when users have a backup scheduled for their Softaculous installations - when those backups run, they all run simultaneously.

Would a better solution be to do these sequentially?  Run one backup, wait for it to finish, before starting another backup.


When a use schedules a backup it would seem to add a cron to the user's crontab:

/usr/local/cpanel/3rdparty/bin/php -d disable_functions="" "/usr/local/cpanel/whostmgr/docroot/cgi/softaculous"/cli.php --backup --auto=1 --insid=XXXXXXXX

This presumably sets a flag some where, so that root's cron knows to actually do the backup.

And then when root's cron runs:

/usr/local/cpanel/3rdparty/bin/php -d disable_functions="" /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/do_backups.php

all of the backups - across all users - all run at once.  This can create a huge disk i/o usage because all of those backups are trying to run at the same time.

I think it would be better logic for /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/do_backups.php to do one user's backup, wait for it to finish, and then move on to the next backup.


IP: --   

Backup cron optimization
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Sorry for the delay in response.

Thank you for the feedback.

We will make the required changes to execute max 10 backup processes at a time and this setting will be customizable by admin and you can set it to run max 1 backup at a time.

We will try to add this soon.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Backup cron optimization
softacmani
Group: Member
Post Group: Newbie
Posts: 9
Status:
Hi,

Softaculous v5.7.3 has been released which includes this fix.

Please run the corn command to update the Softaculous to v5.7.3 as shown in the below guide:
http://www.softaculous.com/docs/admin/immediate-synchronize-with-softaculous-servers/

If you wish not to run the cron command, then it will be automatically available to you by tomorrow.
IP: --   

Backup cron optimization
ConorAgency
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hi,
How do I make it so only 1 backup runs on the server at a time? I followed the link you posted but I believe that's just to run the backup script manually.
Thank you
IP: --   

Backup cron optimization
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

We run maximum 10 processes (default) at a time and the remaining ones stay in queue.

This limit is customizable from Softaculous admin panel -> Settings and set the limit to 1 for "Maximum number of background processes" setting and click on "Edit Settings" button.

Let us know if you face any issues.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Backup cron optimization
bamhost
Group: Member
Post Group: Newbie
Posts: 5
Status:
Where is this setting???? I do not see it anywhere inside the softaculous admin settings. Please guide to the exact location.
IP: --   

Backup cron optimization
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Sorry for the delay in response.

Can you please make sure your are logged in as root/admin user ?

Once you reach the Softaculous Admin panel select "General" tab under "Settings" section in the left menu.

There search for the field "Maximum number of background processes" there you can set the number of background processes.

If you still face the issue please upload a screenshot of the settings page you see so we can check further.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 10:43 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.042