Re: Programmatically Spinning Workers Up and Down

2010-06-23 Thread Keenan Brock
Pedro,

This is great!

One concept I got from a 2007 IT Conversation podcast interviewing GigaVox and 
SmugMug:

You are optimizing cost vs responsiveness.
Reducing the granularity of startup and shutting down of instances saves quite 
a deal of money.


Don MacAskill spoke more about this and SkyNet:
http://don.blogs.smugmug.com/2008/12/09/on-why-auto-scaling-in-the-cloud-rocks/
http://don.blogs.smugmug.com/2008/06/03/skynet-lives-aka-ec2-smugmug/


I don't have anything more recent. Please share if anyone does.


--Keenan
On Jun 23, 2010, at 12:56 AM, Pedro Belo wrote:

 Hi Chris,
 
 There is. I made a little proof using DJ that might give you some insight.
 
 The code is on this branch:
 http://github.com/pedro/delayed_job/commits/autoscaling
 
 And instructions/notes are on the comments here:
 http://github.com/pedro/delayed_job/commit/09d7657e1fc7d25072e6c5e73ede20d6e1185eac#commitcomment-58225
 
 On Fri, Jun 18, 2010 at 2:33 AM, Chris Kalaboukis thinkfut...@gmail.com 
 wrote:
 Hi guys: I saw an old thread on this but there seemed to be no answer.
 Is there a way within my app to shut down and restart all the workers
 programmatically? I have a twitter harvesting app which requires it
 and I need to do it manually. Is there a doc somewhere  which
 describes how to do it?
 
 Thanks...chris
 
 --
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/heroku?hl=en.
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/heroku?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



how to setup mime-type in my rails app

2010-06-23 Thread Eki
Hi there ,
Is there anyway to setup mime-type of jar file , I need my mobile app
to download some jar file in public folder , I adding some code for
mime_type.rb file something like this :

Mime::Type.register text/vnd.sun.j2me.app-descriptor, :jad
Mime::Type.register application/java-archive, :jar

but still not working . whenever I read the jad file it read it as
text instead of downloading it .

Any help will be highly appreciated .

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Bundler path Option

2010-06-23 Thread logicaltext
Hi All,

Has anyone had any luck using the path option in a `Gemfile` for a
vendored gem?

source rubygems.org
gem rails, 3.0.0.beta4
...
gem mygem, 0.0.1, :path = vendor/gems/mygem-0.0.1

This seems to work when I run my app locally in production mode, but I
get `const_missing` errors when deploying to Heroku. Is this a Bundler
issue? A Heroku issue? Or am I doing something wrong?

Any insight would be greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: how to setup mime-type in my rails app

2010-06-23 Thread Keenan Brock
Hey Eki,

hostname = the name of your app
filename = the name of the jar file


telnet hostname 80
HEAD filename HTTP/1.1
Host: hostname

(2 returns)

What does it say is the Content-Type?

There is probably an easier way to just use firefox ...

--Keenan

On Jun 23, 2010, at 6:53 AM, Eki wrote:

 Hi there ,
 Is there anyway to setup mime-type of jar file , I need my mobile app
 to download some jar file in public folder , I adding some code for
 mime_type.rb file something like this :
 
 Mime::Type.register text/vnd.sun.j2me.app-descriptor, :jad
 Mime::Type.register application/java-archive, :jar
 
 but still not working . whenever I read the jad file it read it as
 text instead of downloading it .
 
 Any help will be highly appreciated .
 
 Cheers
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/heroku?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Programmatically Spinning Workers Up and Down

2010-06-23 Thread Roman Catz
In addition, could anyone provide good solution for running short
tasks from time to time but in preset time, I do not now time exactly
because user define it by itself. Running full worker will be
expensive for this type of project.

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.