best practices for perf testing
I'm about to start putting a lot of work into performance testing of my app, and I was wondering if anyone had any best practices in this area. Specifically, from where are you running the tests (an EC2 instance?), what tools are you using, have you managed to automate the tests to any degree? Finally, I'd really like to reuse some of my selenium/capybara tests for stress testing. Is there a way to translate the selenium calls into something the perf tools use? Thanks all. -- 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: Adding newrelic crashes my rails 3 app
Thanks nader. Seems to be working for me as well. Guess I'll start playing with the mongodb settings now. On Nov 8, 7:18 pm, nader wrote: > just remove the gem from your gemfile and you should be ok. the addon > is self contained, so you don't need to add anything to your gemfile > > On Nov 8, 7:37 am, nader wrote: > > > > > > > > > Will do > > > On Nov 8, 6:35 am, JDeville wrote: > > > > Thanks Nader. Would you mind updating me when you get a reply? > > > > On Nov 8, 9:24 am, nader wrote: > > > > > I've got the same thing happening and opened a case with new relic. > > > > Haven't heard back yet. They told me to remove the new relic addon in > > > > the mean time > > > > > On Nov 7, 8:11 pm, JDeville wrote: > > > > > > Basically, I update my gemfile with: > > > > > > gem 'newrelic_rpm' > > > > > > push, add the new relic addon, and before long, I get a silent crash > > > > > of my app. Nothing logged. I've turned it off for the moment > > > > > obviously. Is this a known issue? I'm running Rails 3.01 w/ a > > > > > mongodb backend. -- 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: Adding newrelic crashes my rails 3 app
just remove the gem from your gemfile and you should be ok. the addon is self contained, so you don't need to add anything to your gemfile On Nov 8, 7:37 am, nader wrote: > Will do > > On Nov 8, 6:35 am, JDeville wrote: > > > > > > > > > Thanks Nader. Would you mind updating me when you get a reply? > > > On Nov 8, 9:24 am, nader wrote: > > > > I've got the same thing happening and opened a case with new relic. > > > Haven't heard back yet. They told me to remove the new relic addon in > > > the mean time > > > > On Nov 7, 8:11 pm, JDeville wrote: > > > > > Basically, I update my gemfile with: > > > > > gem 'newrelic_rpm' > > > > > push, add the new relic addon, and before long, I get a silent crash > > > > of my app. Nothing logged. I've turned it off for the moment > > > > obviously. Is this a known issue? I'm running Rails 3.01 w/ a > > > > mongodb backend. -- 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: Devise on Heroku: Erroneous links in emails
Thanks Nina, that was exactly the issue! All is working nicely now. Cheers, Adriaan On Nov 9, 5:12 am, Nin wrote: > I suggest looking at your config/environments/production.rb file. > > There should be a line there, configuring the action_mailer. Should be > something like: > > config.action_mailer.default_url_options = { :host => > '.heroku.com' } > if you're using the free version or just { :host => ' url>' } otherwise > > Do Not add the "http://"; before. > > Hopes it helps :) > > Best, > > -- > Nina. > > On Nov 8, 12:34 pm, adriaan wrote: > > > I'm using Devise for authentication in my app. > > It's all working fine except the URL's in emails sent by Devise when > > deployed on Heroku are wrong > > > They turn out like this: > > >http://http://[heroku app url]//users/password/edit? > > reset_password_token... > > > So with a double http:// and an extra slash after the heroku app url > > > When running the app locally, there is no issue with the URL's => only > > when deployed on Heroku. > > > Any ideas? > > -- 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: I added BUNDLE_WITHOUT="development test", but Heroku still installs everything
It works! Thanks, Oren. On Nov 8, 12:05 pm, Oren Teich wrote: > Bundlr 1.0.3 changed the syntax for without. We are deploying a > hotfix tomorrow. In the meantime, seperate the groups you don't want > deployed with a : instead of a space. e.g. heroku config:add > BUNDLER_WITHUOUT=development:test > > Oren > > On Mon, Nov 8, 2010 at 12:03 PM, Chris Hanks > > > > > > > > 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 to install all the > > development/test gems anyway (which it can't, for me, because Heroku > > can't handle ruby-debug19). > > > I haven't had a burning need to deploy recently, so I've been waiting > > for Heroku to sort it out, but it looks like they haven't, yet. > > > Anyway, it's definitely a bug, so why not open a support ticket about > > it? And maybe let us know how it works out? > > > On Nov 6, 3:06 pm, Volkan Unsal wrote: > >> I wanted Heroku's bundler to ignore some gems I have installed. It > >> doesn't manage to do that, and as a result I am getting lots of > >> errors. > > > -- > > 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: I added BUNDLE_WITHOUT="development test", but Heroku still installs everything
Bundlr 1.0.3 changed the syntax for without. We are deploying a hotfix tomorrow. In the meantime, seperate the groups you don't want deployed with a : instead of a space. e.g. heroku config:add BUNDLER_WITHUOUT=development:test Oren On Mon, Nov 8, 2010 at 12:03 PM, Chris Hanks 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 to install all the > development/test gems anyway (which it can't, for me, because Heroku > can't handle ruby-debug19). > > I haven't had a burning need to deploy recently, so I've been waiting > for Heroku to sort it out, but it looks like they haven't, yet. > > Anyway, it's definitely a bug, so why not open a support ticket about > it? And maybe let us know how it works out? > > > > On Nov 6, 3:06 pm, Volkan Unsal wrote: >> I wanted Heroku's bundler to ignore some gems I have installed. It >> doesn't manage to do that, and as a result I am getting lots of >> errors. > > -- > 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: I added BUNDLE_WITHOUT="development test", but Heroku still installs everything
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 haven't had a burning need to deploy recently, so I've been waiting for Heroku to sort it out, but it looks like they haven't, yet. Anyway, it's definitely a bug, so why not open a support ticket about it? And maybe let us know how it works out? On Nov 6, 3:06 pm, Volkan Unsal wrote: > I wanted Heroku's bundler to ignore some gems I have installed. It > doesn't manage to do that, and as a result I am getting lots of > errors. -- 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: Getting a visitors ip address in your web app
Anything new with this? I have an app which is complete behind SSL (hostname SSL) and we have to implement IP logging. Do we need to change/upgrade our ssl service ? On Oct 5, 1:26 pm, marcel wrote: > 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 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 forwarded = request.env["HTTP_X_FORWARDED_FOR"] > > forwarded.split(",").first > > elsif addr = request.env["REMOTE_ADDR"] > > addr > > end > > end > > > -pvh -- 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.
multiple databases
Hi, my app needs to access an external database (cloud-accessible postgres database) and a local one. Generally the external database is accessed via admin pages (and rake tasks) to import data into the local database. I've been using the connection_ninja gem for this. Is there a way to deploy that database.yml to heroku, or can you recommend another way to do this? -- 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: S3 image uploads with paperclip and delayed_job in Rails 3
On Nov 5, 2010, at 1:59 PM, Phil Pirozhkov wrote: >> And I was also wondering, if I get te delayed_job is working will >> users still get timeouts on Heroku if it simply takes more than 30 >> seconds to upload the image from their local machine to Heroku (before >> image processing)? We ran into this limit. Not only do you have the time it takes to upload the image to heroku, but also the time to offload it from heroku to s3. And yes, it will timeout after 30 seconds, which rules out larger uploads or slow connections. We ended use swfupload to upload the file direct to s3 and on completion enqueue a job to fetch and process it with paperclip. TJ Singleton http://www.salescrunch.com -- 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: S3 image uploads with paperclip and delayed_job in Rails 3
In my App I also have file uploads with post processing. I did the implementation according to http://madeofcode.com/posts/42-paperclip-s3-delayed-job-in-rails which would actually work fine. But the 30 seconds delay is not coming from the post processing but from the initial upload. But I think it has nothing to do with heroku as I observer this behavior also on my local development environment when pointing the storage to S3. On Nov 5, 1:53 pm, adriaan wrote: > My app requires image upload functionality for users to upload > images. > I successfully implemented image uploads to S3 using paperclip (as > outlined in Heroku docs -http://docs.heroku.com/s3). Files are > processed to generate 2 new image sizes and uploaded to S3. > This works fine locally, but results in timeouts on Heroku. > > So I'm now trying to do the image processing using delayed_job. > I've tried a few different approaches: > - using the delayed_paperclip gem (https://github.com/jstorimer/ > delayed_paperclip) > -http://madeofcode.com/posts/42-paperclip-s3-delayed-job-in-rails > > Both of them led the delayed_job to fail. > > Does anyone have / know a good code sample on how to set this up? > Are there any compatability issues between versions of paperclip and > delayed_job? (what combination of versions play nice together) > > And I was also wondering, if I get te delayed_job is working will > users still get timeouts on Heroku if it simply takes more than 30 > seconds to upload the image from their local machine to Heroku (before > image processing)? -- 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.
I added BUNDLE_WITHOUT="development test", but Heroku still installs everything
I wanted Heroku's bundler to ignore some gems I have installed. It doesn't manage to do that, and as a result I am getting lots of errors. -- 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: Devise on Heroku: Erroneous links in emails
I suggest looking at your config/environments/production.rb file. There should be a line there, configuring the action_mailer. Should be something like: config.action_mailer.default_url_options = { :host => '.heroku.com' } if you're using the free version or just { :host => '' } otherwise Do Not add the "http://"; before. Hopes it helps :) Best, -- Nina. On Nov 8, 12:34 pm, adriaan wrote: > I'm using Devise for authentication in my app. > It's all working fine except the URL's in emails sent by Devise when > deployed on Heroku are wrong > > They turn out like this: > > http://http://[heroku app url]//users/password/edit? > reset_password_token... > > So with a double http:// and an extra slash after the heroku app url > > When running the app locally, there is no issue with the URL's => only > when deployed on Heroku. > > Any ideas? -- 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: Adding newrelic crashes my rails 3 app
Will do On Nov 8, 6:35 am, JDeville wrote: > Thanks Nader. Would you mind updating me when you get a reply? > > On Nov 8, 9:24 am, nader wrote: > > > > > > > > > I've got the same thing happening and opened a case with new relic. > > Haven't heard back yet. They told me to remove the new relic addon in > > the mean time > > > On Nov 7, 8:11 pm, JDeville wrote: > > > > Basically, I update my gemfile with: > > > > gem 'newrelic_rpm' > > > > push, add the new relic addon, and before long, I get a silent crash > > > of my app. Nothing logged. I've turned it off for the moment > > > obviously. Is this a known issue? I'm running Rails 3.01 w/ a > > > mongodb backend. -- 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: Adding newrelic crashes my rails 3 app
Thanks Nader. Would you mind updating me when you get a reply? On Nov 8, 9:24 am, nader wrote: > I've got the same thing happening and opened a case with new relic. > Haven't heard back yet. They told me to remove the new relic addon in > the mean time > > On Nov 7, 8:11 pm, JDeville wrote: > > > > > > > > > Basically, I update my gemfile with: > > > gem 'newrelic_rpm' > > > push, add the new relic addon, and before long, I get a silent crash > > of my app. Nothing logged. I've turned it off for the moment > > obviously. Is this a known issue? I'm running Rails 3.01 w/ a > > mongodb backend. -- 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: Adding newrelic crashes my rails 3 app
I've got the same thing happening and opened a case with new relic. Haven't heard back yet. They told me to remove the new relic addon in the mean time On Nov 7, 8:11 pm, JDeville wrote: > Basically, I update my gemfile with: > > gem 'newrelic_rpm' > > push, add the new relic addon, and before long, I get a silent crash > of my app. Nothing logged. I've turned it off for the moment > obviously. Is this a known issue? I'm running Rails 3.01 w/ a > mongodb backend. -- 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.
Devise on Heroku: Erroneous links in emails
I'm using Devise for authentication in my app. It's all working fine except the URL's in emails sent by Devise when deployed on Heroku are wrong They turn out like this: http://http://[heroku app url]//users/password/edit? reset_password_token... So with a double http:// and an extra slash after the heroku app url When running the app locally, there is no issue with the URL's => only when deployed on Heroku. Any ideas? -- 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.