Now you've got the complex qusetion. :)  What does "usage" mean.  Usually,
you want to scale your dynos when the backlog starts to build up.  you can
see the backlog by looking a the HTTP_X_HEROKU_QUEUE_DEPTH header (check
out http://rack-reflector.heroku.com/ to see all the headers).  If you're
using external services, or you're DB bound though, cranking the dyno won't
help.  It's a good first step to take a look at though.

Oren

On Sat, Jan 16, 2010 at 3:09 PM, holden <[email protected]> wrote:

> Awesome.  One last question, what metrics or tool could I used to
> determine what my app's current usage is?  I tried searching around
> this group but only found an empty thread:
>
> http://groups.google.com/group/heroku/browse_thread/thread/201f1e6feecc8dab
>
> If someone could point me in the right direction I'd be grateful.
>
> Thanks,
>
> holden
>
> On Jan 16, 11:44 pm, Oren Teich <[email protected]> wrote:
> > Nope, you're missing nothing.  You can 100% do that, and we have
> customers
> > doing that already.  For fun recursion, you can include the heroku gem in
> > your app, and just call heroku dynos X from you app itself. :)
> >
> > Oren
> >
> > On Sat, Jan 16, 2010 at 2:15 PM, holden <[email protected]> wrote:
> > > Or potentially you could even write your own app to auto-scale a
> > > heroku app yourself based solely on your own usage?  ie if the app
> > > maxes out its resources it can simply spawn a new dyno... etc.
> >
> > > Or am I missing something?
> >
> > > On Jan 16, 11:11 pm, holden <[email protected]> wrote:
> > > > So, a cheap man (wise also) could use heroku's API to auto throttle
> > > > the dynos each day?
> >
> > > > Say, his app is for whatever reason, US centric, or even pacific time
> > > > zone only, he could then target a certain set of hours, 8-5 and set
> > > > the 8 dynos to the ready at 7:59am, and then then come 5 o'clock mark
> > > > it back down to 1, skipping sat and sunday altogether and netting a
> 15
> > > > hour a day savings?
> >
> > > > Thanks,
> >
> > > > holden
> >
> > > > On Jan 16, 9:41 pm, Chris Hanks <[email protected]>
> wrote:
> >
> > > > > Yes, dynos are billed hourly, but I think he was asking whether he
> > > > > gets billed if the dynos sit there unused. The answer is yes - if
> you
> > > > > set the dynos to 8, you'll be paying 35 cents an hour regardless of
> > > > > how much traffic they're actually processing.
> >
> > > > > On Jan 16, 12:24 pm, Terence Lee <[email protected]> wrote:
> >
> > > > > > The latter, once you setup a dyno you're getting build hourly for
> it.
> >
> > > > > > On Sat, 2010-01-16 at 10:29 -0800, holden wrote:
> > > > > > > I have a newb question, but I'm a bit confused on the pricing
> since
> > > it
> > > > > > > states on the pricing page "estimated monthly cost."  I'm not
> sure
> > > how
> > > > > > > to phrase my question except as an example:
> >
> > > > > > > If I start a new app, and say I allocated 8 dynos for it,
> because
> > > I'm
> > > > > > > ambitious that I'm sitting on the next big thing.  But lets say
> my
> > > app
> > > > > > > dives and everyone who uses it hates it and leaves immediately,
> and
> > > > > > > really I could have gotten by with 2 dynos.  Once I crank the
> dynos
> > > > > > > are they constantly up and getting billed?  Or are they smart
> > > little
> > > > > > > dynos that only spring into action as the need arises?
> >
> > > > > > > Thanks for your patience.
> >
> > > > > > > holden
> >
> > > --
> > > 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]>
> <heroku%[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]<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.

Reply via email to