UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > VPS Hosting - Virtual Private Servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 13-07-2007, 08:16
Member
 
Join Date: Dec 2006
Location: UK
Posts: 92
Default Temoprarily Disabling User Crons on cPanel [url=http://www.eukhost.com/vps-hosting.php]VPS Hosting[/url]

I'm partly being a bit lazy here, but on the other hand perhaps we could put something together for the benfit of all users (I remember coming across a script that would do this but have lost the link) ...

I'm seeig repeated excessive usage by one of our user accounts via cron during the night when we run our backup and cpup scripts, the effect is of course heavy slowdowns on our VPS Hosting.

What I'd like to do is temporarily disable user cron jobs (either all users or selective users) during a specific period so that our VPS Hosting can complete cpbackup and cpup without interruption.

I think a cron job under root would be best, to perhaps moving the user cron jobs from /var/spool/cron to /var/spool/cron.suspended and then back again at the end of the period, but I am sure some of us could recommend another/more efficient alternative.

.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 13-07-2007, 10:46
vzAddict's Avatar
System Administrator
 
Join Date: Mar 2007
Posts: 93
Default

Hello,

cPanel automatically stops the backup or cPanel update processes if the load increases on the server. You need to write a custom script which will check if the backup process and cPanel update is running or not. If backup or cPanel update scripts are not running then the script which is created by a user will be executed otherwise it wont do anything.
__________________
vzAddict || Mike
http://eukHost.com
VPS Hosting || Managed Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 14-07-2007, 19:49
Member
 
Join Date: Dec 2006
Location: UK
Posts: 92
Default

I was fully aware of the low priority cpup has. Running a script to sense when these processes are running and then disabling user(s) cron could lead to momentary slow downs when if the user(s) cron is already running (you'd either have to kill the process or let it run until it completes for proper working), so it wouldn't do. Even if you wrote the script to wait and try later, you run the risk of falling foul of an exceptionally resource intensive user cron job and not seeing your cpup and cpbackup running at the appropriate times, unless you kill it.

I've just written a small script to move the user(s) cron jobs to suspended.cron just before the said scripts run and another script to put them back a couple of hours later when I know they'll be complete. That entails two cron jobs.

Its better here to stop the crons from running just before I know cpup and cpbackup are going to run, at least they will always complete before the majority of our client account holders will be up in the morning to experience any slow down.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:56.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service