Re: inconsistent Memcache reads

2010-10-05 Thread John Norman
Brandon: Regretably, I'm cheating and am using the Dalli gem without the guidance of Heroku. :-( I couldn't get memcached-northscale to compile on my Mac. Whatever. In any case: Rails.cache.write foo, bar = true Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar

Re: inconsistent Memcache reads

2010-10-05 Thread John Norman
P.S. Stack = bamboo-mri-1.9.2, Rails 3.0.0. On Tue, Oct 5, 2010 at 8:13 AM, John Norman j...@7fff.com wrote: Brandon: Regretably, I'm cheating and am using the Dalli gem without the guidance of Heroku. :-( I couldn't get memcached-northscale to compile on my Mac. Whatever. In any case:

Re: inconsistent Memcache reads

2010-10-05 Thread chris
It does sound like your cache might be full. You can use Rails.cache.stats to see various stats, including how much memory you're using. Docs are at the vey bottom of http://docs.heroku.com/memcache On Oct 2, 7:58 pm, Brandon Casci bran...@loudcaster.com wrote: Hello I'm new to Heroku, so

Re: inconsistent Memcache reads

2010-10-05 Thread Brandon Casci
It took a few days for the ticket to get answered, but yesterday did get confirmation from Heroku that this was a problem, with Amazon EC2 causing the pain. See this: http://getsatisfaction.com/heroku/topics/sporadic_errors_with_memcache_addon I have the same symptoms they mention, though for my

Re: inconsistent Memcache reads

2010-10-05 Thread Brandon Casci
That was the first thing I checked. The cache did not look full to me. I had this app running outside of heroku for months with out the problem. Though as a safeguard I went ahead and made sure I gave all my memcache writes an expirations and cleared the cache. That didn't seem to help. On Tue,

Re: inconsistent Memcache reads

2010-10-05 Thread Brandon Casci
I forgot to mention, when this state kicks up Rails.cache.stats will error out occasionally, but not nearly as often as a cache miss. On Tue, Oct 5, 2010 at 9:19 AM, chris mcclellan...@gmail.com wrote: It does sound like your cache might be full. You can use Rails.cache.stats to see various

Re: inconsistent Memcache reads

2010-10-05 Thread Keenan Brock
Hi Brandon, Once, I had changed my memcache client library and it started raising exceptions. Turns out the previous library just returned a nil, while this one raised an exception. So I hacked the library to return nil on failures rather than throw exceptions. (The previous library just

Re: inconsistent Memcache reads

2010-10-05 Thread Brandon Casci
The problem for me isn't the exception vs miss, it's data reliability. On Tue, Oct 5, 2010 at 10:19 AM, Keenan Brock kee...@thebrocks.net wrote: Hi Brandon, Once, I had changed my memcache client library and it started raising exceptions. Turns out the previous library just returned a nil,

Re: inconsistent Memcache reads

2010-10-05 Thread John Norman
Maybe you should take it up in the Northscale forums ( http://www.northscale.com/support/policies.html). On Tue, Oct 5, 2010 at 9:26 AM, Brandon Casci bran...@loudcaster.comwrote: The problem for me isn't the exception vs miss, it's data reliability. On Tue, Oct 5, 2010 at 10:19 AM, Keenan

Re: inconsistent Memcache reads

2010-10-05 Thread Brandon Casci
Aye On Tue, Oct 5, 2010 at 10:37 AM, John Norman j...@7fff.com wrote: Maybe you should take it up in the Northscale forums ( http://www.northscale.com/support/policies.html). On Tue, Oct 5, 2010 at 9:26 AM, Brandon Casci bran...@loudcaster.comwrote: The problem for me isn't the

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.

database empty

2010-10-05 Thread landge
Hi! I have a little app running on heroku where I upload a csv-file into a database. Everything is working fine most of the time. But during the last week the entries in my database have disappeared several times. I can't reproduce the error systematically. It just happens. During the last days

two heroku apps talking to same db

2010-10-05 Thread Joel VanderWerf
Is it possible for two apps on heroku to access the same database? -- 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

Timezone Brazil/Brasilia

2010-10-05 Thread Serradura
Hi, Someone could tell me how I change the TZ var for the timezone of Brasilia? heroku config:add TZ=Brasilia (Thats right?) Tks, Serradura -- 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.

Re: Dogpile effect with Varnish?

2010-10-05 Thread Ben Scofield
Hi Chris, I just did some quick tests, and it looks like Varnish is behaving as advertised -- expensive requests are only sent to the backend once. I'm going to confirm those experimental results with someone who knows more about the configuration, but you should be good to go. Ben On Oct 5,

Re: Dogpile effect with Varnish?

2010-10-05 Thread Ben Scofield
Not sure why this didn't come through earlier, but: I tried out a few experiments, and it looks like our setup doesn't interfere with this default behavior. 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

Re: Dogpile effect with Varnish?

2010-10-05 Thread Thomas Balthazar
Hello Ben, I just read you were about to talk to the Varnish specialist at Heroku. I would really appreciate if you took the time to help me to find the answer to those 2 unanswered questions about Varnish and caching : http://groups.google.com/group/heroku/browse_thread/thread/8e39658d53c53b7c

Re: two heroku apps talking to same db

2010-10-05 Thread Keenan Brock
Hello Joel, I believe the party line is to use web services. It provides a much better extraction layer. But can be a little tricky. Thought there was an example out there with CAS and single signon Can't find it. Does anyone on the list remembers the link to the single signon example?

Re: two heroku apps talking to same db

2010-10-05 Thread Joel VanderWerf
On 10/05/2010 11:42 AM, Keenan Brock wrote: Hello Joel, I believe the party line is to use web services. It provides a much better extraction layer. But can be a little tricky. Thought there was an example out there with CAS and single signon Can't find it. Does anyone on the list remembers

Re: database empty

2010-10-05 Thread landge
Seems that one of the users deleted the entries... Great. /landge On Oct 5, 8:58 am, landge tschellh...@gmail.com wrote: Hi! I have a little app running on heroku where I upload a csv-file into a database. Everything is working fine most of the time. But during the last week the entries in

Re: two heroku apps talking to same db

2010-10-05 Thread Keenan Brock
That is great, If you blog about your experience, could you send the link to the list? --Keenan On Oct 5, 2010, at 2:44 PM, Joel VanderWerf wrote: On 10/05/2010 11:42 AM, Keenan Brock wrote: Hello Joel, I believe the party line is to use web services. It provides a much better extraction

Re: Getting a visitors ip address in your web app

2010-10-05 Thread marcel
Or just request.env.ip http://rack.rubyforge.org/doc/classes/Rack/Request.src/M000288.html On Oct 2, 11:55 am, Peter van Hardenberg p...@heroku.com wrote: I use this in my code -- I run my apps at foo.heroku.com with whatever the ghetto SSL option is, so YMMV. def remote_ip       if