<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Linode Cron Times</title>
	<atom:link href="http://blog.linode.com/2004/03/13/linode-cron-times/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.linode.com/2004/03/13/linode-cron-times/</link>
	<description>Announcements, news, and musings from your pals at Linode.com</description>
	<lastBuildDate>Tue, 24 Jan 2012 21:18:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: griffinn</title>
		<link>http://blog.linode.com/2004/03/13/linode-cron-times/comment-page-1/#comment-197</link>
		<dc:creator>griffinn</dc:creator>
		<pubDate>Sat, 20 Mar 2004 13:24:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-197</guid>
		<description>Just a reminder that each time you upgrade the package containing the &quot;find&quot; utility (in Debian, it&#039;s &quot;findutil&quot;), the cron job will likely be unpacked into /etc/cron.daily again, while the old cron job you have moved into /etc/cron.weekly will be left there as an orphan.

So remember to move /etc/cron.daily/(find&#124;slocate(.cron)?) back to /etc/cron.weekly (overwriting the orphan) after each upgrade of the parent package.</description>
		<content:encoded><![CDATA[<p>Just a reminder that each time you upgrade the package containing the &#8220;find&#8221; utility (in Debian, it&#8217;s &#8220;findutil&#8221;), the cron job will likely be unpacked into /etc/cron.daily again, while the old cron job you have moved into /etc/cron.weekly will be left there as an orphan.</p>
<p>So remember to move /etc/cron.daily/(find|slocate(.cron)?) back to /etc/cron.weekly (overwriting the orphan) after each upgrade of the parent package.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gmt</title>
		<link>http://blog.linode.com/2004/03/13/linode-cron-times/comment-page-1/#comment-196</link>
		<dc:creator>gmt</dc:creator>
		<pubDate>Sun, 14 Mar 2004 08:22:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-196</guid>
		<description>In addition to &#039;randomising&#039; start times, I schedule maintenance cron jobs after hours or on weekends,  :D</description>
		<content:encoded><![CDATA[<p>In addition to &#8216;randomising&#8217; start times, I schedule maintenance cron jobs after hours or on weekends,  <img src='http://blog.linode.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bji</title>
		<link>http://blog.linode.com/2004/03/13/linode-cron-times/comment-page-1/#comment-195</link>
		<dc:creator>bji</dc:creator>
		<pubDate>Sun, 14 Mar 2004 06:26:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-195</guid>
		<description>[quote:90ec82635e=&quot;caker&quot;]Below is the email I sent to members on host3 and host5.  Mostly this only applies to early members -- member&#039;s that deployed before I had a chance to update the template filesystems.  It couldn&#039;t hurt to take a look at your cron times.  Removing, or at least moving the updatedb cron time from daily to weekly would help.
[/quote]

I would like to add that if you do not move your daily cron jobs to weekly as mentioned, or delete them, that you at least &quot;randomize&quot; the times that your daily cron jobs run.  This is probably the best way to solve this problem as it allows you to install services as normal and not worry about whether they put cron jobs in daily or weekly, and yet help prevent huge loads on the Linode host at specific times.  To do this, simply edit your /etc/crontab file, under the # run-parts entry.

Here is an example section from an /etc/crontab file:

[code]
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
[/code]

These indicate that cron.hourly jobs run at 1 minute past the hour, cron.daily jobs run at 4:02 am every day, cron.weekly jobs run at 4:22 am every Monday, and cron.monthly jobs run at 4:42 am on the first day of each month.

An example random change would be:

[code]
# run-parts
16 * * * * root run-parts /etc/cron.hourly
25 6 * * * root run-parts /etc/cron.daily
45 6 * * 2 root run-parts /etc/cron.weekly
55 6 3 * * root run-parts /etc/cron.monthly
[/code]

This moves the hourly jobs to the 16th minute of every hour, dailies to 6:25 am, weeklies to Wednesday at 6:45 am, and monthlies to 6:55 on the third day of each month.

If we all stagger our times randomly like this, we can go a long way towards eliminating some common performance bottlenecks on Linodes.

Thanks!</description>
		<content:encoded><![CDATA[<p>[quote:90ec82635e="caker"]Below is the email I sent to members on host3 and host5.  Mostly this only applies to early members &#8212; member&#8217;s that deployed before I had a chance to update the template filesystems.  It couldn&#8217;t hurt to take a look at your cron times.  Removing, or at least moving the updatedb cron time from daily to weekly would help.<br />
[/quote]</p>
<p>I would like to add that if you do not move your daily cron jobs to weekly as mentioned, or delete them, that you at least &#8220;randomize&#8221; the times that your daily cron jobs run.  This is probably the best way to solve this problem as it allows you to install services as normal and not worry about whether they put cron jobs in daily or weekly, and yet help prevent huge loads on the Linode host at specific times.  To do this, simply edit your /etc/crontab file, under the # run-parts entry.</p>
<p>Here is an example section from an /etc/crontab file:</p>
<p>[code]<br />
# run-parts<br />
01 * * * * root run-parts /etc/cron.hourly<br />
02 4 * * * root run-parts /etc/cron.daily<br />
22 4 * * 0 root run-parts /etc/cron.weekly<br />
42 4 1 * * root run-parts /etc/cron.monthly<br />
[/code]</p>
<p>These indicate that cron.hourly jobs run at 1 minute past the hour, cron.daily jobs run at 4:02 am every day, cron.weekly jobs run at 4:22 am every Monday, and cron.monthly jobs run at 4:42 am on the first day of each month.</p>
<p>An example random change would be:</p>
<p>[code]<br />
# run-parts<br />
16 * * * * root run-parts /etc/cron.hourly<br />
25 6 * * * root run-parts /etc/cron.daily<br />
45 6 * * 2 root run-parts /etc/cron.weekly<br />
55 6 3 * * root run-parts /etc/cron.monthly<br />
[/code]</p>
<p>This moves the hourly jobs to the 16th minute of every hour, dailies to 6:25 am, weeklies to Wednesday at 6:45 am, and monthlies to 6:55 on the third day of each month.</p>
<p>If we all stagger our times randomly like this, we can go a long way towards eliminating some common performance bottlenecks on Linodes.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

