<?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: How to Reduce a 9 Hour Job into a 9 Minute Job	</title>
	<atom:link href="https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/</link>
	<description>Scalable serverless application tools to run background tasks with Docker containers and manage messaging queues with cloud elasticity and handheld customer support.</description>
	<lastBuildDate>Wed, 02 Aug 2023 04:58:36 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Travis Reeder		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-41</link>

		<dc:creator><![CDATA[Travis Reeder]]></dc:creator>
		<pubDate>Tue, 01 Jan 2013 21:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-41</guid>

					<description><![CDATA[Hi Unknown, worker hours are based on $0.05 per hour, not $0.75 (that&#039;s the overage price if you exceed your plan limits) and the actual running time of each task was ~6 minutes (&quot;Each task should take approximately 3.5 * 100 = 350 seconds = ~6 minutes to run&quot;) so it would be:&lt;br /&gt;&lt;br /&gt;2000 * 6 / 60 * $0.05 = $10&lt;br /&gt;
]]></description>
			<content:encoded><![CDATA[<p>Hi Unknown, worker hours are based on $0.05 per hour, not $0.75 (that&#8217;s the overage price if you exceed your plan limits) and the actual running time of each task was ~6 minutes (&#8220;Each task should take approximately 3.5 * 100 = 350 seconds = ~6 minutes to run&#8221;) so it would be:</p>
<p>2000 * 6 / 60 * $0.05 = $10</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Unknown		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-40</link>

		<dc:creator><![CDATA[Unknown]]></dc:creator>
		<pubDate>Tue, 01 Jan 2013 18:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-40</guid>

					<description><![CDATA[Wait a minute, that is 8.75 minute per worker process. So if you have 2000 worker process in parallel, ironworker will  charge you for 8.75*2000*0.075/60 = $21.82&lt;br /&gt;&lt;br /&gt;true?]]></description>
			<content:encoded><![CDATA[<p>Wait a minute, that is 8.75 minute per worker process. So if you have 2000 worker process in parallel, ironworker will  charge you for 8.75*2000*0.075/60 = $21.82</p>
<p>true?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Trevor		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-39</link>

		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Tue, 04 Dec 2012 16:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-39</guid>

					<description><![CDATA[You could use `find_in_batches`and avoid your custom batching:&lt;br /&gt;https://apidock.com/rails/ActiveRecord/Batches/find_in_batches]]></description>
			<content:encoded><![CDATA[<p>You could use `find_in_batches`and avoid your custom batching:<br /><a href="https://apidock.com/rails/ActiveRecord/Batches/find_in_batches" rel="nofollow ugc">https://apidock.com/rails/ActiveRecord/Batches/find_in_batches</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Travis Reeder		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-38</link>

		<dc:creator><![CDATA[Travis Reeder]]></dc:creator>
		<pubDate>Mon, 12 Nov 2012 22:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-38</guid>

					<description><![CDATA[We recommend a run-time of at least 30 seconds for each task so that would be a good starting point. Really, the more you can do in a single task, the more efficient it is because you amortize the setup/teardown time of your worker (loading, making db connections, etc). But at the same time, there is value in having short quick tasks, for instance if task errors out, it&#039;s easier to debug and retry it. Also, you don&#039;t have to wait forever to ensure that it worked (or didn&#039;t). &lt;br /&gt;&lt;br /&gt;So as a rule of thumb, greater than 30 seconds, but less than 5 minutes is a good place to be. &lt;br /&gt;
]]></description>
			<content:encoded><![CDATA[<p>We recommend a run-time of at least 30 seconds for each task so that would be a good starting point. Really, the more you can do in a single task, the more efficient it is because you amortize the setup/teardown time of your worker (loading, making db connections, etc). But at the same time, there is value in having short quick tasks, for instance if task errors out, it&#8217;s easier to debug and retry it. Also, you don&#8217;t have to wait forever to ensure that it worked (or didn&#8217;t). </p>
<p>So as a rule of thumb, greater than 30 seconds, but less than 5 minutes is a good place to be. </p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: IPDb Developers		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-37</link>

		<dc:creator><![CDATA[IPDb Developers]]></dc:creator>
		<pubDate>Sat, 10 Nov 2012 20:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-37</guid>

					<description><![CDATA[Can you provide some insight as to how to choose batch size for each IronWorker? That is - if my task has a set up time of X and a run time of Y, how many tasks should I send to each IronWorker?]]></description>
			<content:encoded><![CDATA[<p>Can you provide some insight as to how to choose batch size for each IronWorker? That is &#8211; if my task has a set up time of X and a run time of Y, how many tasks should I send to each IronWorker?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Travis Reeder		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-36</link>

		<dc:creator><![CDATA[Travis Reeder]]></dc:creator>
		<pubDate>Mon, 04 Jun 2012 21:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-36</guid>

					<description><![CDATA[Hi Sunny,&lt;br /&gt;&lt;br /&gt;100 users in the example above is arbitrary. It&#039;s your code and your choice to do it however you want, you could do 1 user per worker or 1000 per task if you wanted. &lt;br /&gt;&lt;br /&gt;The final task would be whatever is left over. If you had 200,001 users, then the final task would just do the work for 1 user. Again, it&#039;s your code and you create the payload for each task so it would be totally up to you.]]></description>
			<content:encoded><![CDATA[<p>Hi Sunny,</p>
<p>100 users in the example above is arbitrary. It&#8217;s your code and your choice to do it however you want, you could do 1 user per worker or 1000 per task if you wanted. </p>
<p>The final task would be whatever is left over. If you had 200,001 users, then the final task would just do the work for 1 user. Again, it&#8217;s your code and you create the payload for each task so it would be totally up to you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sunny Gleason		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-35</link>

		<dc:creator><![CDATA[Sunny Gleason]]></dc:creator>
		<pubDate>Mon, 04 Jun 2012 21:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-35</guid>

					<description><![CDATA[Are there always a multiple of 100 users? If not, it seems like this code might be missing the part to enqueue the final tail remainder...]]></description>
			<content:encoded><![CDATA[<p>Are there always a multiple of 100 users? If not, it seems like this code might be missing the part to enqueue the final tail remainder&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Travis Reeder		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-34</link>

		<dc:creator><![CDATA[Travis Reeder]]></dc:creator>
		<pubDate>Wed, 02 May 2012 17:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-34</guid>

					<description><![CDATA[Hi Ismael, could you share your calculation?&lt;br /&gt;&lt;br /&gt;While it&#039;s running, the cost would be the same, but with IronWorker, you would only pay for the time the workers are actually running, no more, no less. With Heroku you&#039;d have to pay for the 9 hours of time and then be sure to turn off all your workers every day after they were done or pay $827 per month to keep them running. &lt;br /&gt;&lt;br /&gt;IronWorker would be ~$10 per nightly run (2000 * 6 / 60 * $0.05)]]></description>
			<content:encoded><![CDATA[<p>Hi Ismael, could you share your calculation?</p>
<p>While it&#8217;s running, the cost would be the same, but with IronWorker, you would only pay for the time the workers are actually running, no more, no less. With Heroku you&#8217;d have to pay for the 9 hours of time and then be sure to turn off all your workers every day after they were done or pay $827 per month to keep them running. </p>
<p>IronWorker would be ~$10 per nightly run (2000 * 6 / 60 * $0.05)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ismael		</title>
		<link>https://blog.iron.io/how-to-reduce-9-hour-job-into-10-minute/#comment-33</link>

		<dc:creator><![CDATA[ismael]]></dc:creator>
		<pubDate>Mon, 26 Mar 2012 21:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://ironio2.wpengine.com/?p=201#comment-33</guid>

					<description><![CDATA[In my calculations this way saves them about $340 in workers, is it true?]]></description>
			<content:encoded><![CDATA[<p>In my calculations this way saves them about $340 in workers, is it true?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
