There's been some discussion on the list before about how to achieve this. It's possible, but not for the feint of heart. You can include the heroku gem and just call "heroku dynos X", or look at the heroku gem source code on github to see the API calls we make. http://github.com/heroku/heroku Search the archives for HEROKU_QUEUE_DEPTH as well.
Oren On Thu, Jan 28, 2010 at 9:03 PM, Daryl <[email protected]> wrote: > +1. I was just about to ask if anyone had some code samples of doing > this we could study (or point at them if we're just being dense with > google searches). > > In particular, for certain tasks I'd like to dump to delayed job, we'd > like to bang the hell out of it with ramped up workers and then shit > them down. > > Also, same with our dynos as well. We have very, very spikey traffic > (we're an activist campaigning org), so if anyone has examples of > ramping up dynos as load on them increases or something (think EC2 > autoscaling), I'd really really like to see it. > > ciao ! > Daryl. > > On Jan 26, 7:55 pm, Justin Kan <[email protected]> wrote: > > I have various events that occur in my app that I where I want to > > trigger adding heroku workers. Is this possible? How would I do this > > from my rails app? > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<heroku%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
