Re: How can I edit my db schema from the console?
looks like you can run from the console repository.adapter.query("...") On Jan 30, 8:29 pm, senihele wrote: > Hey all, > > I have a Sinatra/Datamapper application on Heroku. Datamapper doesn't > handle migrations very well, and to the best of my knowledge can't > remove or rename a column without wiping out the entire database. > Anyone have any ideas on how I can do this manually? I tried to run > the raw sql via the console, but when i run > > ActiveRecord::Base.connection.execute("select ...") > > I get the error message: > > ActiveRecord::ConnectionNotEstablished: > ActiveRecord::ConnectionNotEstablished > > It seems like Datamapper also now has support to AR style migrations, > but I can' find anything on how to set this up with Sinatra. Since I > haven't been using AR style migrations up until this point, it would > just be easier to be able to to remove and rename the columns > directly. > > Any ideas? Thanks. -- 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: TweetStream
Tons of missed tweets. If the tweets you're looking for happen to have URLs attached, then you can use Topsy, which is pretty good. On Mon, Mar 8, 2010 at 11:06 AM, adeel...@gmail.com wrote: > Jim - Interesting, is the problem with the search API the rate- > limiting? missed tweets? API timeouts? > > > - Adeel > > On Mar 7, 3:37 pm, Jim Gilliam wrote: > > I run two apps dependent on the Twitter streaming API, so I set up stream > > processing on a separate EC2 instance, posting the data via HTTP to the > > appropriate Heroku app. > > > > I don't like this set up for exactly the reason you specified, but I > figure > > Heroku will have a solution eventually, so I'm just sitting tight. > > > > And, FWIW, if you want anything even close to reliability in the tweet > > stream, you have to use the streaming API. The search API is almost > > worthless. > > > > Jim > > > > > > > > On Thu, Mar 4, 2010 at 1:39 PM, Josh Cheek wrote: > > > Hi, Twitter has a streaming API now, where you have a process that just > > > remains connected, and they push updates to your code as they occur. > > >http://apiwiki.twitter.com/Streaming-API-Documentation > > > > > I found a gem for it called TweetStream > > >http://github.com/intridea/tweetstream > > > But if you run it, it will never complete, because it has to stay > connected > > > to Twitter. > > > > > So they have a class, TweetStream::Daemons, that will let you run it in > the > > > background, using the daemons gem, which heroku has installed > > >http://installed-gems.heroku.com/ > > > > > Anyway, this is what I am looking at right now, but it seems like I'll > have > > > to have another dyno constantly running to handle the stream from > Twitter, > > > which gets a little bit expensive, but is manageable. The problem is > that I > > > want to also have it stream in posts for a given user, as well as > watching > > > for a hash tag, which are two different types of connections (follow vs > > > track), so then I would need another dyno again to have it follow the > user. > > > And, of course, if I wanted to monitor the daemons to restart them if > they > > > go down, that would be yet another dyno. > > > > > I'm curious what other developers are doing to integrate with Twitter, > are > > > you guys using the streaming API? Do you have it set up through cron? > > > Something else that I haven't thought of? > > > > > I'm just not sure what the best approach is to integrate in this manner > > > (I'd like it to be near real time, which is why I am leaning towards > the > > > streaming api). > > > > > I was also thinking maybe set up another computer to just run the > daemons, > > > then whenever it gets a request, have it post the request to my app. > Which > > > seems viable, but it means that the site isn't self-contained, and now > I > > > have to maintain hardware also, so I'd prefer to do it all through > heroku. > > > > > Anyway, just looking for community input on what other people have > found > > > that works, or thoughts of better ways to solve the issue. > > > > > Thanks > > > -Josh > > > > > -- > > > 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.
Re: Dynos & Queue Depth
the queue is the list of what is waiting. Requests coming in - requests getting served == queue. Oren On Mon, Mar 8, 2010 at 2:55 PM, Daniele wrote: > Hi, > I wrote a simple test app to test the queue with a dummy 1 sec action. > The app has 1 syno active. > The controller: > > class VisitmeController < ApplicationController > def test >sleep 1 >render :text => "#{Time.now} - Queue: > #{request.headers["HTTP_X_HEROKU_QUEUE_DEPTH"]}" > end > end > > So I lunch ab against it: > > ab -c 10 -t 60 http://myapp.heroku.com/visitme/test > > With a concurrency of 10 I should get a queue of 10, right? > Instead, while response times are correctly about 10 secs, the queue > is always at 5 or lower value. How can that be possibile? > > Regards, > Daniele > > -- > 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: bundle upload and animation
Saw it right on the main addon page. Also, I believe I saw it in a comment from Oren. Perhaps it was planned but unfinished. http://addons.heroku.com/bundles "A bundle is an archive (tarball) of your application code repository and a dump of the database. When you initiate a bundle capture, it's stored on Heroku's servers. From there, you can download the bundle to your local machine, keep one or unlimited on Heroku, UPLOAD bundles from your local machine and re-animate a bundle with the "heroku bundles" commands." On Mar 8, 11:23 am, Terence Lee wrote: > Hi Jason, > > Where are you seeing documentation about uploading a bundle? I've > inquired about this before, but afaik there is no support for bundle > upload. Bundle animation is using a previously captured bundle. > > Cheers, > Terence > > On Sun, 2010-03-07 at 22:17 -0800, Jason wrote: > > I've seen several places where it's mentioned that you can upload a > > bundle, though the heroku gem only lists these commands: > > > bundles # list bundles for the app > > bundles:capture [] # capture a bundle of the app's code and > > data > > bundles:download # download most recent app bundle as a > > tarball > > bundles:download # download the named bundle > > bundles:animate # animate a bundle into a new app > > bundles:destroy # destroy the named bundle > > > How does one go about uploading a bundle that can then be animated? > > -- 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.
Dynos & Queue Depth
Hi, I wrote a simple test app to test the queue with a dummy 1 sec action. The app has 1 syno active. The controller: class VisitmeController < ApplicationController def test sleep 1 render :text => "#{Time.now} - Queue: #{request.headers["HTTP_X_HEROKU_QUEUE_DEPTH"]}" end end So I lunch ab against it: ab -c 10 -t 60 http://myapp.heroku.com/visitme/test With a concurrency of 10 I should get a queue of 10, right? Instead, while response times are correctly about 10 secs, the queue is always at 5 or lower value. How can that be possibile? Regards, Daniele -- 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: Dynos pricing
Is auto-scale something you're looking to add in the future? On Mar 8, 1:34 pm, Oren Teich wrote: > it's based on what you have set. Set dynos to 2 for an hour, and you'll pay > $0.05. Set it to 2 for 30 minutes, and you'll pay $0.025. We don't > currently auto-scale. > > Oren > > On Mon, Mar 8, 2010 at 3:32 AM, Daniele wrote: > > Hi all, > > from docs I read "subsequent dynos cost $0.05 per hour, prorated to > > the second". > > So I will pay dynos for effective seconds usage? > > > Thank you in advance. > > > -- > > 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: Basic Production Site
Correct, daily. Oren On Mon, Mar 8, 2010 at 1:41 PM, DAZ wrote: > Sorry just one more question in reply to Oren - how often do you > backup for disaster recovery purposes, daily? > > cheers, > > DAZ > > > > On Mar 8, 9:06 pm, Oren Teich wrote: > > Everything is fully backed for disaster recovery purposes. We don't > provide > > user accessible backups - it's only in case something goes wrong with the > > systems. This includes your DB and your app. > > > > Start on a koi + 1 dyno, and see how it goes. You can scale the traffic > > instantly. > > > > Oren > > > > > > > > On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: > > > Hi, > > > > > I'm planning on launching a production site using Heroku, but have a > > > few questions: > > > > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > > > manually - what is the procedure for doing this? > > > 2) Is the database backed up as well? > > > 3) How does the pricing work? This site has around 500 unique visitors > > > a day, generating 4000 hits. It is a basic CMS site with a database > > > backend. Do I need to choose what type of plan I have in advance or > > > will I be told if any limits are being exceeded? > > > > > Thanks for any help anybody can give me, > > > > > DAZ > > > > > -- > > > 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.
Re: Basic Production Site
Sorry just one more question in reply to Oren - how often do you backup for disaster recovery purposes, daily? cheers, DAZ On Mar 8, 9:06 pm, Oren Teich wrote: > Everything is fully backed for disaster recovery purposes. We don't provide > user accessible backups - it's only in case something goes wrong with the > systems. This includes your DB and your app. > > Start on a koi + 1 dyno, and see how it goes. You can scale the traffic > instantly. > > Oren > > > > On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: > > Hi, > > > I'm planning on launching a production site using Heroku, but have a > > few questions: > > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > > manually - what is the procedure for doing this? > > 2) Is the database backed up as well? > > 3) How does the pricing work? This site has around 500 unique visitors > > a day, generating 4000 hits. It is a basic CMS site with a database > > backend. Do I need to choose what type of plan I have in advance or > > will I be told if any limits are being exceeded? > > > Thanks for any help anybody can give me, > > > DAZ > > > -- > > 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: Basic Production Site
Thanks to all of you taking the time to make this much clearer. Looking forward to getting it all set up. Thanks again, DAZ On Mar 8, 9:20 pm, Carl Fyffe wrote: > There is an add-on for New Relic:http://addons.heroku.com/newrelic > > Basically you want to watch how long your response time is using the > Apdex Scoring to determine if your site is fast enough for the traffic > that you have.http://newrelic.com/features.html#ApdexScoring > > With the traffic that you have, more than likely you won't need but > one dyno (as Oren stated). > > > > On Mon, Mar 8, 2010 at 4:17 PM, Terence Lee wrote: > > You would add dynos to increase the number of rails instances that are > > run concurrently, so you can scale your site. Workers would correspond > > to background jobs. > > > -Terence > > > On Mon, 2010-03-08 at 13:10 -0800, DAZ wrote: > >> Thanks Oren, > > >> That's useful as a starting point. What do I use to 'see how it goes' > >> - sorry I'm new to this game and not sure if I'd know if the site was > >> performing well or not. What do you mean when you say 'scaling traffic > >> instantly' - why would I add dynos and/or workers? > > >> cheers, > > >> DAZ > > >> On Mar 8, 9:06 pm, Oren Teich wrote: > >> > Everything is fully backed for disaster recovery purposes. We don't > >> > provide > >> > user accessible backups - it's only in case something goes wrong with the > >> > systems. This includes your DB and your app. > > >> > Start on a koi + 1 dyno, and see how it goes. You can scale the traffic > >> > instantly. > > >> > Oren > > >> > On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: > >> > > Hi, > > >> > > I'm planning on launching a production site using Heroku, but have a > >> > > few questions: > > >> > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > >> > > manually - what is the procedure for doing this? > >> > > 2) Is the database backed up as well? > >> > > 3) How does the pricing work? This site has around 500 unique visitors > >> > > a day, generating 4000 hits. It is a basic CMS site with a database > >> > > backend. Do I need to choose what type of plan I have in advance or > >> > > will I be told if any limits are being exceeded? > > >> > > Thanks for any help anybody can give me, > > >> > > DAZ > > >> > > -- > >> > > 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 > > athttp://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: Basic Production Site
There is an add-on for New Relic: http://addons.heroku.com/newrelic Basically you want to watch how long your response time is using the Apdex Scoring to determine if your site is fast enough for the traffic that you have. http://newrelic.com/features.html#ApdexScoring With the traffic that you have, more than likely you won't need but one dyno (as Oren stated). On Mon, Mar 8, 2010 at 4:17 PM, Terence Lee wrote: > You would add dynos to increase the number of rails instances that are > run concurrently, so you can scale your site. Workers would correspond > to background jobs. > > -Terence > > On Mon, 2010-03-08 at 13:10 -0800, DAZ wrote: >> Thanks Oren, >> >> That's useful as a starting point. What do I use to 'see how it goes' >> - sorry I'm new to this game and not sure if I'd know if the site was >> performing well or not. What do you mean when you say 'scaling traffic >> instantly' - why would I add dynos and/or workers? >> >> cheers, >> >> DAZ >> >> On Mar 8, 9:06 pm, Oren Teich wrote: >> > Everything is fully backed for disaster recovery purposes. We don't >> > provide >> > user accessible backups - it's only in case something goes wrong with the >> > systems. This includes your DB and your app. >> > >> > Start on a koi + 1 dyno, and see how it goes. You can scale the traffic >> > instantly. >> > >> > Oren >> > >> > >> > >> > On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: >> > > Hi, >> > >> > > I'm planning on launching a production site using Heroku, but have a >> > > few questions: >> > >> > > 1) Are sites that are hosted on Heroku backed up or do I have to do it >> > > manually - what is the procedure for doing this? >> > > 2) Is the database backed up as well? >> > > 3) How does the pricing work? This site has around 500 unique visitors >> > > a day, generating 4000 hits. It is a basic CMS site with a database >> > > backend. Do I need to choose what type of plan I have in advance or >> > > will I be told if any limits are being exceeded? >> > >> > > Thanks for any help anybody can give me, >> > >> > > DAZ >> > >> > > -- >> > > 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.
Re: Basic Production Site
You would add dynos to increase the number of rails instances that are run concurrently, so you can scale your site. Workers would correspond to background jobs. -Terence On Mon, 2010-03-08 at 13:10 -0800, DAZ wrote: > Thanks Oren, > > That's useful as a starting point. What do I use to 'see how it goes' > - sorry I'm new to this game and not sure if I'd know if the site was > performing well or not. What do you mean when you say 'scaling traffic > instantly' - why would I add dynos and/or workers? > > cheers, > > DAZ > > On Mar 8, 9:06 pm, Oren Teich wrote: > > Everything is fully backed for disaster recovery purposes. We don't provide > > user accessible backups - it's only in case something goes wrong with the > > systems. This includes your DB and your app. > > > > Start on a koi + 1 dyno, and see how it goes. You can scale the traffic > > instantly. > > > > Oren > > > > > > > > On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: > > > Hi, > > > > > I'm planning on launching a production site using Heroku, but have a > > > few questions: > > > > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > > > manually - what is the procedure for doing this? > > > 2) Is the database backed up as well? > > > 3) How does the pricing work? This site has around 500 unique visitors > > > a day, generating 4000 hits. It is a basic CMS site with a database > > > backend. Do I need to choose what type of plan I have in advance or > > > will I be told if any limits are being exceeded? > > > > > Thanks for any help anybody can give me, > > > > > DAZ > > > > > -- > > > 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: Basic Production Site
I've never come near the limit. I think Oren or someone from Heroku reaches out to you. -Terence On Mon, 2010-03-08 at 13:07 -0800, DAZ wrote: > Thanks for that Terence, > > Just a question about your last point. How do I choose which plan? Say > I went for the free plan (Blossom), how do I know if it needs > upgrading - does it crash, do I get an email warning or does it just > increase as needed and then I get charged? > > cheers, > > DAZ > > > > On Mar 8, 8:38 pm, Terence Lee wrote: > > Answers below. > > > > On Mon, 2010-03-08 at 12:31 -0800, DAZ wrote: > > > Hi, > > > > > I'm planning on launching a production site using Heroku, but have a > > > few questions: > > > > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > > > manually - what is the procedure for doing this? > > > > You have to do it manually. Heroku provides bundles which will backup > > both the git repo code and the database which you can download as a > > archive. http://docs.heroku.com/backups > > > > There are scripts about for backing this up to s3 as well. > > > > > 2) Is the database backed up as well? > > > 3) How does the pricing work? This site has around 500 unique visitors > > > a day, generating 4000 hits. It is a basic CMS site with a database > > > backend. Do I need to choose what type of plan I have in advance or > > > will I be told if any limits are being exceeded? > > > > You need to choose one of the plans from here:http://heroku.com/pricing > > with regards to your database option. Scaling dynos/workers can be done > > dynamically from the command line or website to scale to the load. > > > > > > > > > > > > > Thanks for any help anybody can give me, > > > > > DAZ > -- 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: Basic Production Site
Thanks Oren, That's useful as a starting point. What do I use to 'see how it goes' - sorry I'm new to this game and not sure if I'd know if the site was performing well or not. What do you mean when you say 'scaling traffic instantly' - why would I add dynos and/or workers? cheers, DAZ On Mar 8, 9:06 pm, Oren Teich wrote: > Everything is fully backed for disaster recovery purposes. We don't provide > user accessible backups - it's only in case something goes wrong with the > systems. This includes your DB and your app. > > Start on a koi + 1 dyno, and see how it goes. You can scale the traffic > instantly. > > Oren > > > > On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: > > Hi, > > > I'm planning on launching a production site using Heroku, but have a > > few questions: > > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > > manually - what is the procedure for doing this? > > 2) Is the database backed up as well? > > 3) How does the pricing work? This site has around 500 unique visitors > > a day, generating 4000 hits. It is a basic CMS site with a database > > backend. Do I need to choose what type of plan I have in advance or > > will I be told if any limits are being exceeded? > > > Thanks for any help anybody can give me, > > > DAZ > > > -- > > 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: Basic Production Site
Thanks for that Terence, Just a question about your last point. How do I choose which plan? Say I went for the free plan (Blossom), how do I know if it needs upgrading - does it crash, do I get an email warning or does it just increase as needed and then I get charged? cheers, DAZ On Mar 8, 8:38 pm, Terence Lee wrote: > Answers below. > > On Mon, 2010-03-08 at 12:31 -0800, DAZ wrote: > > Hi, > > > I'm planning on launching a production site using Heroku, but have a > > few questions: > > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > > manually - what is the procedure for doing this? > > You have to do it manually. Heroku provides bundles which will backup > both the git repo code and the database which you can download as a > archive. http://docs.heroku.com/backups > > There are scripts about for backing this up to s3 as well. > > > 2) Is the database backed up as well? > > 3) How does the pricing work? This site has around 500 unique visitors > > a day, generating 4000 hits. It is a basic CMS site with a database > > backend. Do I need to choose what type of plan I have in advance or > > will I be told if any limits are being exceeded? > > You need to choose one of the plans from here:http://heroku.com/pricing > with regards to your database option. Scaling dynos/workers can be done > dynamically from the command line or website to scale to the load. > > > > > > > Thanks for any help anybody can give me, > > > DAZ -- 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: Basic Production Site
Everything is fully backed for disaster recovery purposes. We don't provide user accessible backups - it's only in case something goes wrong with the systems. This includes your DB and your app. Start on a koi + 1 dyno, and see how it goes. You can scale the traffic instantly. Oren On Mon, Mar 8, 2010 at 12:31 PM, DAZ wrote: > Hi, > > I'm planning on launching a production site using Heroku, but have a > few questions: > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > manually - what is the procedure for doing this? > 2) Is the database backed up as well? > 3) How does the pricing work? This site has around 500 unique visitors > a day, generating 4000 hits. It is a basic CMS site with a database > backend. Do I need to choose what type of plan I have in advance or > will I be told if any limits are being exceeded? > > Thanks for any help anybody can give me, > > DAZ > > -- > 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: Basic Production Site
Answers below. On Mon, 2010-03-08 at 12:31 -0800, DAZ wrote: > Hi, > > I'm planning on launching a production site using Heroku, but have a > few questions: > > 1) Are sites that are hosted on Heroku backed up or do I have to do it > manually - what is the procedure for doing this? You have to do it manually. Heroku provides bundles which will backup both the git repo code and the database which you can download as a archive. http://docs.heroku.com/backups There are scripts about for backing this up to s3 as well. > 2) Is the database backed up as well? > 3) How does the pricing work? This site has around 500 unique visitors > a day, generating 4000 hits. It is a basic CMS site with a database > backend. Do I need to choose what type of plan I have in advance or > will I be told if any limits are being exceeded? You need to choose one of the plans from here: http://heroku.com/pricing with regards to your database option. Scaling dynos/workers can be done dynamically from the command line or website to scale to the load. > > Thanks for any help anybody can give me, > > DAZ > -- 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.
Basic Production Site
Hi, I'm planning on launching a production site using Heroku, but have a few questions: 1) Are sites that are hosted on Heroku backed up or do I have to do it manually - what is the procedure for doing this? 2) Is the database backed up as well? 3) How does the pricing work? This site has around 500 unique visitors a day, generating 4000 hits. It is a basic CMS site with a database backend. Do I need to choose what type of plan I have in advance or will I be told if any limits are being exceeded? Thanks for any help anybody can give me, DAZ -- 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: Dynos pricing
Thank you Oren On 8 Mar, 19:34, Oren Teich wrote: > it's based on what you have set. Set dynos to 2 for an hour, and you'll pay > $0.05. Set it to 2 for 30 minutes, and you'll pay $0.025. We don't > currently auto-scale. -- 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: TweetStream
Jim - Interesting, is the problem with the search API the rate- limiting? missed tweets? API timeouts? - Adeel On Mar 7, 3:37 pm, Jim Gilliam wrote: > I run two apps dependent on the Twitter streaming API, so I set up stream > processing on a separate EC2 instance, posting the data via HTTP to the > appropriate Heroku app. > > I don't like this set up for exactly the reason you specified, but I figure > Heroku will have a solution eventually, so I'm just sitting tight. > > And, FWIW, if you want anything even close to reliability in the tweet > stream, you have to use the streaming API. The search API is almost > worthless. > > Jim > > > > On Thu, Mar 4, 2010 at 1:39 PM, Josh Cheek wrote: > > Hi, Twitter has a streaming API now, where you have a process that just > > remains connected, and they push updates to your code as they occur. > >http://apiwiki.twitter.com/Streaming-API-Documentation > > > I found a gem for it called TweetStream > >http://github.com/intridea/tweetstream > > But if you run it, it will never complete, because it has to stay connected > > to Twitter. > > > So they have a class, TweetStream::Daemons, that will let you run it in the > > background, using the daemons gem, which heroku has installed > >http://installed-gems.heroku.com/ > > > Anyway, this is what I am looking at right now, but it seems like I'll have > > to have another dyno constantly running to handle the stream from Twitter, > > which gets a little bit expensive, but is manageable. The problem is that I > > want to also have it stream in posts for a given user, as well as watching > > for a hash tag, which are two different types of connections (follow vs > > track), so then I would need another dyno again to have it follow the user. > > And, of course, if I wanted to monitor the daemons to restart them if they > > go down, that would be yet another dyno. > > > I'm curious what other developers are doing to integrate with Twitter, are > > you guys using the streaming API? Do you have it set up through cron? > > Something else that I haven't thought of? > > > I'm just not sure what the best approach is to integrate in this manner > > (I'd like it to be near real time, which is why I am leaning towards the > > streaming api). > > > I was also thinking maybe set up another computer to just run the daemons, > > then whenever it gets a request, have it post the request to my app. Which > > seems viable, but it means that the site isn't self-contained, and now I > > have to maintain hardware also, so I'd prefer to do it all through heroku. > > > Anyway, just looking for community input on what other people have found > > that works, or thoughts of better ways to solve the issue. > > > Thanks > > -Josh > > > -- > > 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: Dynos pricing
it's based on what you have set. Set dynos to 2 for an hour, and you'll pay $0.05. Set it to 2 for 30 minutes, and you'll pay $0.025. We don't currently auto-scale. Oren On Mon, Mar 8, 2010 at 3:32 AM, Daniele wrote: > Hi all, > from docs I read "subsequent dynos cost $0.05 per hour, prorated to > the second". > So I will pay dynos for effective seconds usage? > > Thank you in advance. > > -- > 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: bundle upload and animation
Hi Jason, Where are you seeing documentation about uploading a bundle? I've inquired about this before, but afaik there is no support for bundle upload. Bundle animation is using a previously captured bundle. Cheers, Terence On Sun, 2010-03-07 at 22:17 -0800, Jason wrote: > I've seen several places where it's mentioned that you can upload a > bundle, though the heroku gem only lists these commands: > > bundles # list bundles for the app > bundles:capture [] # capture a bundle of the app's code and > data > bundles:download # download most recent app bundle as a > tarball > bundles:download # download the named bundle > bundles:animate # animate a bundle into a new app > bundles:destroy # destroy the named bundle > > How does one go about uploading a bundle that can then be animated? > -- 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.
Dynos pricing
Hi all, from docs I read "subsequent dynos cost $0.05 per hour, prorated to the second". So I will pay dynos for effective seconds usage? Thank you in advance. -- 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.