Re: Running Grails application which requires ~3GB on the heap - possible in heroku?

2012-04-20 Thread Chris Hanks
It's not possible, sorry. A single dyno is limited to 512 MB of RAM (see the Acceptable Use Policy: http://policy.heroku.com/aup). And cranking up the dynos won't help, because their RAM won't pool (and Heroku goes out of its way to split your dynos across different machines anyway). On

Config var unavailability during asset precompilation.

2011-09-13 Thread Chris Hanks
I'm using Sequel with Rails 3.1.0, and connecting to my database by simply passing a database url in a config var to Sequel.connect - the standard way of doing it. It seems that when Heroku runs the asset precompilation rake task during a deploy, my config vars apparently aren't available to the

Re: Config var unavailability during asset precompilation.

2011-09-13 Thread Chris Hanks
I wound up solving this by establishing the DB connection unless Rails.env.production? Rails.groups.include?('assets'). It seems to work alright. On Sep 13, 12:22 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: I'm using Sequel with Rails 3.1.0, and connecting to my database by simply

Re: Gzip not available on Cedar?

2011-06-03 Thread Chris Hanks
the official word on the gzip thing would be nice. thanks -John On Thu, Jun 2, 2011 at 8:50 PM, Chris Hanks christopher.m.ha...@gmail.comwrote: Nevermind, I found Rack::Deflater, and it seems to be Gzipping most things alright (it takes care of the assets, but not HTML, and i'm

Gzip not available on Cedar?

2011-06-02 Thread Chris Hanks
I tried moving an app over to Cedar, and now that I'm looking at it in Firebug it appears that Heroku isn't gzipping responses anymore. I knew that I'd have to handle my own http caching since this stack doesn't use Varnish, but I thought that Gzip was handled by Nginx and would still be

Re: Gzip not available on Cedar?

2011-06-02 Thread Chris Hanks
Nevermind, I found Rack::Deflater, and it seems to be Gzipping most things alright (it takes care of the assets, but not HTML, and i'm not sure why). On Jun 2, 6:30 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: I tried moving an app over to Cedar, and now that I'm looking

Re: varnish not caching?

2011-06-01 Thread Chris Hanks
I'm seeing the same behavior as craayzie. Redbot shows headers that look correct: HTTP/1.1 200 OK Server: nginx/0.7.67 Date: Wed, 01 Jun 2011 20:16:01 GMT Content-Type: application/json; charset=utf-8 Connection: keep-alive Last-Modified: Wed, 11 May 2011 19:35:02 GMT

Re: varnish not caching?

2011-06-01 Thread Chris Hanks
Huh. I remembered seeing somebody from Heroku say that they had their Varnish servers set up in a hash ring, which I thought would mean this kind of effect wouldn't happen, but I guess it does. It looks like they have 10 Varnish servers going - if I use Apache Benchmark to hit my server with 1000

Re: Changing static asset cache time

2011-05-29 Thread Chris Hanks
Yeah, Heroku should make this a lot easier. I experimented with one approach to this a while ago, and it seemed to work fine on my staging dyno. I haven't gotten around to actually running it in production yet, though, so use at your own risk: https://gist.github.com/998124 Let me know how it

Re: Rails 3.1 asset pipeline causing 503?

2011-05-20 Thread Chris Hanks
I get this same error frequently on my development machine (Ruby 1.9.2p180 on Ubuntu Natty), so it's not Heroku-specific. On May 20, 8:01 am, David datab...@gmail.com wrote: Klaus Harti posted this message originally on May 11th and I have it in my digest list - I just can't seem to find it on

Re: what external executables are available in the heroku stack?

2011-05-04 Thread Chris Hanks
It would also be good if our apps had access to a node.js executable, since execjs would be able to use it to compile coffeescripts in Rails 3.1 when it's released. On May 4, 9:23 am, fearless_fool rdp...@gmail.com wrote: I've dug around for a bit and haven't found a list of all the

Re: Cron: Run a cron job only on Monday

2011-03-31 Thread Chris Hanks
Try: Time.now.monday? On Mar 31, 8:16 am, Doug Naegele dougnaeg...@gmail.com wrote: Can someone help me configure Heroku Cron to only run on a certain day? So, imagine I send an email report every Monday morning.  How do I write the syntax for that? Something like this: This one works:

Re: Cron: Run a cron job only on Monday

2011-03-31 Thread Chris Hanks
! undefined local variable or method `thursday' for main:Object On Mar 31, 12:32 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: Try: Time.now.monday? On Mar 31, 8:16 am, Doug Naegele dougnaeg...@gmail.com wrote: Can someone help me configure Heroku Cron to only run on a certain

Re: Action Caching... force it to use Varnish not Memcache

2011-02-19 Thread Chris Hanks
Not sure what you mean by this. Varnish is an HTTP cache, it sits in front of your dyno and only caches the responses that it sends - you can't use it as a key-value store like memcached. When a request is handled by varnish and doesn't even hit your app, that IS page caching. If you could write

Price reduction in custom SSL?

2011-01-27 Thread Chris Hanks
I know that the custom SSL plan costs $100 because it requires a dedicated EC2 instance, and the small instances cost about $60 a month. But since EC2 has now introduced micro instances, for a little under $15 a month, will we be seeing a price reduction for the custom SSL plan? Chris -- You

Question on shutting down Workers

2011-01-25 Thread Chris Hanks
Hi - I'm rigging up my own auto-scaling solution for workers. My plan to shut a worker down when it's not needed is to set $exit = true when there are no jobs left for it to do. As you can see (https:// github.com/collectiveidea/delayed_job/blob/v2.1.3/lib/delayed/ worker.rb#L74-92) this will

Re: Question on shutting down Workers

2011-01-25 Thread Chris Hanks
Alright, that makes sense. Thanks, Adam. On Jan 25, 11:12 am, Adam Wiggins a...@heroku.com wrote: I understand what you're trying to do, but this won't work.  Heroku will try to keep your workers alive no matter what; when it exits it will change state to crashed and try to restart once,

Re: My (flawed?) attempt to add or subtract workers via Heroku API.

2011-01-21 Thread Chris Hanks
You can start up as many workers (or dynos, for that matter) as you want through the command line. 24 is just how high the slider goes on the pricing page. On Jan 21, 7:52 am, rubynoob mysmilecent...@gmail.com wrote: I may misunderstand how workers get charged on heroku, but from what I've

Re: Running a daemon process on Heroku

2010-12-07 Thread Chris Hanks
Well, since you pay for workers by the hour, I'm sure Heroku would be perfectly happy with you keeping many of them busy for a very long time. On Dec 7, 10:44 pm, Jonas jo...@jonasbnielsen.dk wrote: Nice. So that was actually what I initially thought. And there is no limitation on what that

How to determine if my app is being run on a dyno or a worker?

2010-12-01 Thread Chris Hanks
I have a few delayed_jobs that require data to be loaded from the database and kept in memory. I've set up an initializer to load that data (this is a Rails 3 app), but I'm not sure how to only run it on a worker process and not my dynos. I noticed, while tooling around in `heroku console`, that

Re: compass causing file writing error?

2010-11-16 Thread Chris Hanks
In my compass initializer file I include: Sass::Plugin.options[:never_update] = true if Rails.env.production? On Nov 16, 9:57 pm, Josh Coffman joshcoff...@gmail.com wrote: I'm using compass in one of my rails apps on heroku, and every time I push it, it fails to load on the first request

Re: I added BUNDLE_WITHOUT=development test, but Heroku still installs everything

2010-11-08 Thread Chris Hanks
Yes, this started happening for me on Friday (worked fine up until then). and it looks like it's still going on. When I push I see Using --without development test, but it tries to install all the development/test gems anyway (which it can't, for me, because Heroku can't handle ruby-debug19). I

Re: I added BUNDLE_WITHOUT=development test, but Heroku still installs everything

2010-11-08 Thread Chris Hanks
=development:test Oren On Mon, Nov 8, 2010 at 12:03 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: Yes, this started happening for me on Friday (worked fine up until then). and it looks like it's still going on. When I push I see Using --without development test, but it tries

Re: http basic auth

2010-11-04 Thread Chris Hanks
Don't see why Heroku would have a problem with it. I've been using Rails' basic auth functionality on Heroku for months with zero issues. On Nov 4, 6:39 pm, Jimmy Thrasher ji...@jimmythrasher.com wrote: Not sure what you mean.  If you implement it, it's supported.. it's just a webserver

Re: Pushing a Rails app without the rails gem.

2010-10-31 Thread Chris Hanks
For anyone curious about this, I eventually solved it by starting off my Gemfile with: source :rubygems # Shut up, Heroku. # gem 'rails' gem 'railties', '3.0.0' gem 'actionpack', '3.0.0' gem 'activesupport', '3.0.0' And so on... On Oct 18, 11:54 am, Chris Hanks christopher.m.ha...@gmail.com

Re: heroku routing issues

2010-10-29 Thread Chris Hanks
Can you explain what is actually happening? Is there an error message? Also, actions aren't typically defined in the ApplicationController, so I wouldn't be surprised if putting them there makes things iffy. You can try running your app in production mode on your local machine is order to see

Re: heroku routing issues

2010-10-29 Thread Chris Hanks
... On Oct 29, 4:00 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: Can you explain what is actually happening? Is there an error message? Also, actions aren't typically defined in the ApplicationController, so I wouldn't be surprised if putting them there makes things iffy. You can

Re: Bundler upgrade to 1.0.3 to support BUNDLE_WITHOUT?

2010-10-28 Thread Chris Hanks
Yep, it's worked for me for weeks too. On Oct 28, 7:28 am, marcel mpoi...@gmail.com wrote: BUNDLE_WITHOUT is currently working for me. It magically started being recognized a few weeks ago. From my heroku config output: BUNDLE_WITHOUT                    = test development And when I

Re: Pushing a Rails app without the rails gem.

2010-10-18 Thread Chris Hanks
is that it's failing to find config.ru, auto-detecting a Rails app, and not finding all the gems. Just some thoughts.. maybe you've already done all that.  :) Jimmy On Mon, Oct 18, 2010 at 12:33 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: There's a lot of parts of Rails

Re: Dalli memcached not hitting the cache

2010-10-18 Thread Chris Hanks
You can use groups with heroku + bundler. For example, I do: heroku config:add BUNDLE_WITHOUT=development test source :rubygems gem 'rails', '3.0.0' group :development, :test do gem 'rspec-rails', '2.0.0' # etc... end Then, Heroku doesn't install any of the RSpec gems. Anyway, it's a bad

Re: Dogpile effect with Varnish?

2010-10-13 Thread Chris Hanks
. I'm going to talk to someone with more intimate knowledge of our Varnish config to confirm that, but so far it looks promising. Ben On Oct 5, 12:00 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: Is anyone from Heroku around that might know how their setup works? On Oct 2

Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread Chris Hanks
, at 12:48 AM, Chris Hanks wrote: Yeah, this has happened to me before, too. I'm pretty sure the problem is on Heroku's end. I don't worry that much about it, though, since the max slug size is 100 MB. On Oct 11, 8:57 pm, stephen murdoch stephenjamesmurd...@gmail.com wrote: I have

Re: Dogpile effect with Varnish?

2010-10-06 Thread Chris Hanks
. Ben On Oct 5, 12:00 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: Is anyone from Heroku around that might know how their setup works? On Oct 2, 8:42 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: I'm wondering about Heroku's use of Varnish. Suppose I have a page

Re: Dogpile effect with Varnish?

2010-10-05 Thread Chris Hanks
Is anyone from Heroku around that might know how their setup works? On Oct 2, 8:42 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: I'm wondering about Heroku's use of Varnish. Suppose I have a page that is expensive to produce (lots of database queries) but can be cached in Varnish

Dogpile effect with Varnish?

2010-10-02 Thread Chris Hanks
I'm wondering about Heroku's use of Varnish. Suppose I have a page that is expensive to produce (lots of database queries) but can be cached in Varnish. Right after Varnish's copy expires, if it's very popular, I might have a dozen people accessing it simultaneously before the newly created

Re: Heroku Mongoid config and how it works

2010-09-27 Thread Chris Hanks
Heroku might be breaking up the ENV['MONGOHQ_URL'] into those components for you. Try heroku console from your command line and then ENV['MONGOID_HOST'] to see if it's present. On Sep 27, 6:51 am, Abel Tamayo abel.tam...@gmail.com wrote: It seems MongoMapper is more popular around here. At

Re: Heroku Mongoid config and how it works

2010-09-27 Thread Chris Hanks
haven't been able to locate anything that gives an indication that this is happening. On Sep 27, 11:44 am, Chris Hanks christopher.m.ha...@gmail.com wrote: Heroku might be breaking up the ENV['MONGOHQ_URL'] into those components for you. Try heroku console from your command line

Question about HTTP caching

2010-09-09 Thread Chris Hanks
I've read through the caching docs, and Things Caches Do, but I'm still not clear on something, so here I am. Suppose I signal Heroku to cache a page for an hour (setting the 'Cache-Control' header to 'public, max-age=3600'). Alice visits the page at noon, and Heroku stashes it in Varnish to

Re: Question about HTTP caching

2010-09-09 Thread Chris Hanks
Ok, thanks! On Sep 9, 5:09 pm, Pedro Belo pe...@heroku.com wrote: At the time you told Heroku, 1pm. Thanks, Pedro On Thu, Sep 9, 2010 at 4:59 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: I've read through the caching docs, and Things Caches Do, but I'm still not clear

Re: Question about HTTP caching

2010-09-09 Thread Chris Hanks
no guarantee that Bob's request will hit the same server. If you need more control to your cache we recommend using Memcache. On Thu, Sep 9, 2010 at 5:14 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: Ok, thanks! On Sep 9, 5:09 pm, Pedro Belo pe...@heroku.com wrote: At the time you

Re: free vs. paid heroku app performance

2010-08-31 Thread Chris Hanks
What other questions do you guys have on the area that I should include? Two: What is Heroku's timeout when spinning up dynos/workers? I thought that I'd seen this mentioned somewhere, but I can't find it now. I ask because an app I'm thinking of would need to hit external services and the

Re: Backup for MongoHQ Data

2010-08-26 Thread Chris Hanks
settings. Thanks.    -Ginny On Aug 26, 12:45 am, Chris Hanks christopher.m.ha...@gmail.com wrote: Use the mongodump utility from the command line. It comes with mongodb, and can be pointed at whatever remote database you like. For example, try a ruby script that looks something

Re: ANNOUNCEMENT: Upgrading to Bundler 1.0.0.rc.6

2010-08-25 Thread Chris Hanks
Hurrah! Is there any word/ETA on Ruby 1.9.2? On Aug 24, 4:16 pm, Terence Lee tere...@heroku.com wrote: Hello, Bundler 1.0.0.rc.6 was pushed out yesterday with some bug fixes.  You can view the complete changelog here:http://github.com/carlhuda/bundler/blob/master/CHANGELOG.md The new

Re: Backup for MongoHQ Data

2010-08-25 Thread Chris Hanks
Use the mongodump utility from the command line. It comes with mongodb, and can be pointed at whatever remote database you like. For example, try a ruby script that looks something like: host = 'flame.mongohq.com:27000' db = 'ginnys-database' user = 'ginny' pass = 'password' `mongodump

Re: Daily cron job time - can it be changed?

2010-07-27 Thread Chris Hanks
You can open a support ticket to request a specific time. Chris On Jul 27, 10:37 am, Henry Wagner hjw3...@gmail.com wrote: Hi, I have an app on Heroku with a daily cron job. Currently the job runs at around 11pm. Is this time configurable? Ideally I would like to have the job run at around

Re: rails-3.0.0.beta4 on bamboo-ree-1.8.7?

2010-06-10 Thread Chris Hanks
I'm anxious for Bundler 0.9.26 also! On Jun 9, 3:31 am, Ariejan de Vroom arie...@gmail.com wrote: Hey, I'm running into a Bundler/Rails issue when trying to deploy a Rails 3.0.0.beta4 app to the bamboo-ree-.1.8.7 stack. Rails 3b4 need bundler 0.9.26, however, 0.9.25 is installed. Are

Re: NOTICE: Memcached exiting beta

2010-04-19 Thread Chris Hanks
Sounds good. I wasn't a member of the beta - was the flush_all function ever added? I don't see it in the docs. Thanks On Apr 19, 5:48 pm, Oren Teich o...@heroku.com wrote: Hi all, We're excited to announce that we'll be taking memcached out of beta this week.  We will have a few plans to

Re: heroku restart inside app for clearing http cache

2010-04-13 Thread Chris Hanks
Chap's question is pretty clear - he wants to flush a specific page from the http cache. Unfortunately, there's no way to do this on heroku right now. I'd love this functionality, too, but it just doesn't seem to be possible yet. What you can do, though, is set a low expiration on the cached

Re: Maximum RAM per dyno?

2010-03-10 Thread Chris Hanks
On Mar 9, 10:40 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: I'm interested in this too. I have several thousand MongoDB documents that are read-only and frequently accessed, so I figured I'd just cache them in the dyno's memory to speed up requests. So is 300 MB the hard limit

Re: Maximum RAM per dyno?

2010-03-10 Thread Chris Hanks
to get near it anytime soon, but it would be helpful to know. Thanks! On Mar 10, 11:36 am, Carl Fyffe carl.fy...@gmail.com wrote: Chris, Will this work for you?http://docs.heroku.com/http-caching Carl On Wed, Mar 10, 2010 at 2:22 PM, Chris Hanks christopher.m.ha...@gmail.com wrote

Re: Maximum RAM per dyno?

2010-03-09 Thread Chris Hanks
I'm interested in this too. I have several thousand MongoDB documents that are read-only and frequently accessed, so I figured I'd just cache them in the dyno's memory to speed up requests. So is 300 MB the hard limit for each dyno's RAM, then? I suppose that if it grows beyond that point, the

Re: Pricing of Dynos...

2010-01-16 Thread Chris Hanks
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

Re: Why is it mandatory to submit Credit Card Information for Add Ons ?

2010-01-14 Thread Chris Hanks
Absolutely. I'd much rather trust my credit card number to Heroku than to Paypal. On Jan 14, 4:57 pm, Shane Becker veganstraighte...@gmail.com wrote: Haha, well, let's see if I can rephrase that. Heroku, can you please   replace your current payment method with PayPal? It would make  

Re: Filesystem?

2009-12-19 Thread Chris Hanks
My app info screen on heroku.com says: Slug Size: 6.2 MB of 20mb. Is that a typo, then? Should it be 50mb? On Dec 19, 12:25 pm, Oren Teich o...@heroku.com wrote: That is just for the DB.  Your slug can be up to 50MB.  If you're hosting large assets, we suggest using S3 directly.  1GB is only

Re: If you reserve full instance for custom SSL - why don't I get more dynos?

2009-12-08 Thread Chris Hanks
Wojciech, if you ask support about that and get some good news, would you report back? I'm curious about this too. Thanks! Chris On Dec 8, 2:05 pm, Oren Teich o...@heroku.com wrote: I don't know if that's possible or not it's probably a function of the SSL protocol and our routing mesh, but

Re: Rails 3

2009-11-25 Thread Chris Hanks
Rails 3 won't run on Ruby 1.8.6, so Heroku will need to offer Ruby 1.8.7 or 1.9 (preferably 1.9) before we can use it. This is what's keeping me from trying out Rails 3.0.pre on Heroku right now. Source: http://www.mail-archive.com/rubyonrails-c...@googlegroups.com/msg09683.html On Nov 25,

Re: Database alternative to Postgres?

2009-11-04 Thread Chris Hanks
Can anyone at Heroku comment on this? Thanks! On Oct 21, 3:06 pm, Chris Hanks christopher.m.ha...@gmail.com wrote: Hi - Does Heroku have any plans to offer a NoSQL alternative to Postgres? MongoDB, CouchDB, etc? Thank you! --~--~-~--~~~---~--~~ You