User striping

2010-12-01 Thread Carson Gross
Hi Guys, The datamodel in our little heroku application is set up so there are no data dependencies between users. We would like our scaling story to be as we add users, we add nodes where the nodes can be totally independent (separate web server, separate db) from one another. (We don't want

memcached servers

2010-12-18 Thread Carson Gross
Memcached/rube/rails/heroku newb. Apologies in advance. The docs here: http://docs.heroku.com/memcache give this for the memcached config: # Session cache ActionController::Base.session = { :namespace = 'sessions', :expire_after = 20.minutes.to_i, :memcache_server =

Re: memcached servers

2010-12-18 Thread Carson Gross
:59 AM, Carson Gross carsongr...@gmail.com wrote: Memcached/rube/rails/heroku newb.  Apologies in advance. The docs here:http://docs.heroku.com/memcachegive this for the memcached config:  # Session cache  ActionController::Base.session = {    :namespace   = 'sessions

Re: memcached servers

2010-12-20 Thread Carson Gross
Thanks guys. I *think* we've got things installed correctly now. Is there an easy way to see the stats for our memcache? I tried what the docs say, and got this: mc = Memcached.new NameError: uninitialized constant Memcached /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/

Re: memcached servers

2010-12-21 Thread Carson Gross
On Dec 20, 11:15 pm, Carson Gross carsongr...@gmail.com wrote: Thanks guys.  I *think* we've got things installed correctly now. Is there an easy way to see the stats for our memcache?  I tried what the docs say, and got this: mc = Memcached.new NameError: uninitialized constant Memcached

Re: memcached servers

2010-12-27 Thread Carson Gross
To the top: is there a way to find out how well our dalli-based memcache is working? Thanks, Carson On Dec 21, 10:09 pm, Carson Gross carsongr...@gmail.com wrote: To the top:  any good way to look at the utilization and  of our dalli memcache clien?  The code in the heroku docs doesn't work

postgres tuning

2011-01-07 Thread Carson Gross
Is it possible to tune a dedicated postgres database? In particular, we'd like to change the effective cache size and checkpoint segments setting from the defaults (appear to be ~200MB and 40, respectively.) Cheers, Carson -- You received this message because you are subscribed to the Google

Re: postgres tuning

2011-01-07 Thread Carson Gross
be supported in the future. Matt On Fri, Jan 7, 2011 at 10:50 AM, Carson Gross carsongr...@gmail.com wrote: Is it possible to tune a dedicated postgres database?  In particular, we'd like to change the effective cache size and checkpoint segments setting from the defaults (appear

Re: postgres tuning

2011-01-11 Thread Carson Gross
Hey Guys, Any further thoughts on this? Thanks, Carson On Jan 7, 1:35 pm, Carson Gross carsongr...@gmail.com wrote: Sure.  We've got a big, ugly database that we are constantly slamming data into (nearly constant appends on one table, with occasionally purges.)  We'd like to increase

Re: postgres tuning

2011-01-11 Thread Carson Gross
Yeah. Sadly, we are all very much stuck in the YesSQL mindset (our data is relational) and would prefer to stick with that horse as long as is possible. Our performance is good right now and appears to scale to the loads we'd like to see, but since perf is typically a non-linear sort of thing

Re: postgres tuning

2011-01-13 Thread Carson Gross
performance on heroku, The more we share the better things are for all of us. -John On Tue, Jan 11, 2011 at 11:48 AM, Carson Gross carsongr...@gmail.comwrote: Hey Guys, Any further thoughts on this? Thanks, Carson On Jan 7, 1:35 pm, Carson  Gross carsongr...@gmail.com wrote

request.remote_ip

2011-03-14 Thread Carson Gross
Hello, I'm trying to get at the remote ip address for requests, and I'm using the standard request.remote_ip method, but it appears that this is returning the same few IP's for all our users. My guess is that this is the heroku load balancer at work, but that's just a shot in the dark. Any

Re: request.remote_ip

2011-03-14 Thread Carson Gross
Travis, Thanks. Any heroku guys care to chime in and confirm? Cheers, Carson On Mar 14, 2:32 pm, Travis Reeder tree...@gmail.com wrote: Check out the headers, you may find X-Forwarded-For or X-Forwarded-Proto which will be the IP you want. On Mon, Mar 14, 2011 at 1:42 PM, Carson Gross

Re: request.remote_ip

2011-03-14 Thread Carson Gross
://blitz.iohttp://twitter.com/pcapr On Mon, Mar 14, 2011 at 2:32 PM, Travis Reeder tree...@gmail.com wrote: Check out the headers, you may find X-Forwarded-For or X-Forwarded-Proto which will be the IP you want. On Mon, Mar 14, 2011 at 1:42 PM, Carson Gross carsongr...@gmail.com wrote: Hello

Re: request.remote_ip

2011-03-25 Thread Carson Gross
OK, circling back on this: request.remote_ip Does *not* work consistently in our heroku application, even on non- https requests. Any solutions or suggestions for this from the heroku guys? I guess I can use clicky's API, but that would be a lot of work... Cheers, Carson On Mar 15, 9:39 

Java apps

2011-09-06 Thread Carson Gross
Guys, Just saw your announcement on supporting Java applications, and I'm very excited about it. I've been working on a rails app deployed on heroku and always wondered if someone would make a heroku for java and, well, here we are. I also work on Gosu (a JVM language) and Ronin (a Gosu-based

Re: Java apps

2011-09-09 Thread Carson Gross
/faq and keep an eye on how they do things. (I just pushed out a rails app to their beta product, and ran some performance tests. They are still adding features, but my app is running fine, so I'll definitely keep them on my radar) -John On Wed, Sep 7, 2011 at 12:21 AM, Carson Gross

Newb question on static assets

2012-01-26 Thread Carson Gross
Heya, Sorry, digging through the docs I couldn't really get an answer on this that I understand: So, with static assets, deployed on the bamboo-ree-1.8.7 stack, are static assets served by web dynos? As our application has grown over time, we've evolved to issue a horrific number of requests

Re: Newb question on static assets

2012-01-26 Thread Carson Gross
a complete and utter newb at this. Cheers, Carson On Jan 26, 5:00 pm, Carson Gross carsongr...@gmail.com wrote: Heya, Sorry, digging through the docs I couldn't really get an answer on this that I understand: So, with static assets, deployed on the bamboo-ree-1.8.7 stack, are static assets

Re: Newb question on static assets

2012-01-26 Thread Carson Gross
and going down, causing the Last Modified date to be relatively recent, causing Chrome to submit more requests to the server than I'd like. Does that sound at all plausible? Thanks, Carson On Jan 26, 5:56 pm, Carson Gross carsongr...@gmail.com wrote: Looking at it a bit more (as well as some *yikes

Re: Newb question on static assets

2012-01-27 Thread Carson Gross
://www.slideshare.net/rtomayko/https-bestkept-secret-cachinghttp://tomayko.com/writings/things-caches-dohttp://tomayko.com/writings/rack-cache-announce Oren On Thu, Jan 26, 2012 at 9:53 PM, Carson  Gross carsongr...@gmail.com wrote: And one last note: due to the way some of these resources are included

Re: Database CPU

2012-02-22 Thread Carson Gross
Will do, thanks Peter. On Feb 22, 5:51 pm, Peter van Hardenberg p...@heroku.com wrote: On Tue, Feb 21, 2012 at 12:51 PM, Carson  Gross carsongr...@gmail.com wrote: Is there a way to get this information? Not today -- we have some customers who look at more database specific information

Sanity check: pg follow - alter column

2012-03-13 Thread Carson Gross
Hi Guys, So, we've got ourselves into a bit of a pickle, and have an integer column in a (100 million plus rows) table that really needs to be bigint. Not this year, but certainly before we die. I'd like to make the change sooner rather than later, and I *think* that heroku is gonna save our

Re: Sanity check: pg follow - alter column

2012-03-14 Thread Carson Gross
. Let us know what you discover, -pvh On Tue, Mar 13, 2012 at 9:11 PM, Carson Gross carsongr...@gmail.com (mailto:carsongr...@gmail.com) wrote: Hi Guys, So, we've got ourselves into a bit of a pickle, and have an integer column in a (100 million plus rows) table that really needs

Rails parameter question...

2012-03-17 Thread Carson Gross
Hey Guys, This is a rails question, so please ignore if that doesn't interest you. Does anyone know if there is a way to make rails *not* parse the body of an XML post to a given controller method? I've been googling for an hour now and can't figure it out. Basically we've got some huge XML

Re: Rails parameter question...

2012-03-17 Thread Carson Gross
According to my tests, yes, the parameter parsing happens before the before_filters are run. Thanks, Carson On Mar 17, 11:15 am, Jeff Schmitz jeffrey.j.schm...@gmail.com wrote: Does Rails parse the body prior to any before_filters run? Jeff On Mar 17, 2012, at 12:57 PM, Carson  Gross

Re: Rails parameter question...

2012-03-18 Thread Carson Gross
PM, Carson  Gross carsongr...@gmail.com wrote: According to my tests, yes, the parameter parsing happens before the before_filters are run. Thanks, Carson On Mar 17, 11:15 am, Jeff Schmitz jeffrey.j.schm...@gmail.com wrote: Does Rails parse the body prior to any before_filters run

Adding pessimistic locking, need advice

2012-07-05 Thread Carson Gross
Hi All, I apologize in advance if this isn't on topic, but I've had success with general rails questions here before, so here goes: We are going to add some pessimistic locking to a DelayedJob that we are running. The code appears easy enough (this is rails2): User.transation do user =

Multiple differently-sized memcache caches

2012-08-18 Thread Carson Gross
Hi, Googling around didn't turn up an answer I was 100% confident in, so I'm hoping someone can help me out. I'd like to set up a few different caches in my app with different sizes. In particular I've got one stream of data that is fairly large and I want to speculatively cache, but that

Re: Multiple differently-sized memcache caches

2012-08-22 Thread Carson Gross
://heroku.com @schneems http://twitter.com/schneems On Saturday, August 18, 2012 at 11:52 AM, Carson Gross wrote: Hi, Googling around didn't turn up an answer I was 100% confident in, so I'm hoping someone can help me out. I'd like to set up a few different caches in my app with different

Multiple apps/Same DB

2012-08-24 Thread Carson Gross
Hey Everyone, I'm going to be running two heroku apps with the same backing database (I want request isolation between the API and the web application so that if I screw the web application up from a perf perspective it won't back up the API.) It seems pretty simple to do this:

Re: Multiple apps/Same DB

2012-08-24 Thread Carson Gross
don't believe it's ready for external users yet. In conclusion: go ahead, but it's grody, and we're hoping it will be better soon. -p On Fri, Aug 24, 2012 at 3:27 PM, Carson Gross carso...@gmail.comjavascript: wrote: Hey Everyone, I'm going to be running two heroku apps with the same

Background Jobs For Mission Critical Info

2012-09-26 Thread Carson Gross
Hi, I've got a bit of processing that is not time critical but that is mission critical, and I'm considering running as a Delayed Job in order to minimize request times. My experience with Delayed Jobs on bamboo was that there were times when the queue just hung, and I had to delete the jobs

Re: Background Jobs For Mission Critical Info

2012-09-27 Thread Carson Gross
experience with Delayed Job, but if you are using it heavily it can impact your database performance. -- Richard Schneeman http://heroku.com @schneems http://twitter.com/schneems On Wednesday, September 26, 2012 at 9:21 PM, Carson Gross wrote: Hi, I've got a bit of processing