mosql icon indicating copy to clipboard operation
mosql copied to clipboard

Has anyone deployed mosql on heroku / heroku postgres?

Open tensiondriven opened this issue 11 years ago • 11 comments

This is not exactly an issue, and Boy, it would be nice to know if this is possible before attempting to implement.

tensiondriven avatar Oct 02 '13 01:10 tensiondriven

I haven't done so, and I don't know of anyone who has, offhand, but I'd be somewhat surprised if it doesn't work. If you run into any issues, I'd be happy to hear about them.

nelhage avatar Oct 02 '13 01:10 nelhage

Sounds good - this issue is in our current sprint, so look forward to an update one way or the other in the next week or so. Thanks for the prompt reply!

tensiondriven avatar Oct 02 '13 02:10 tensiondriven

I've used MoSQL with Heroku Postgres, the actual MoSQL process was running on an EC2 instance. Worked great!

charlietran avatar Oct 02 '13 14:10 charlietran

We've just deployed the actual MoSQL process on a Heroku dyno. Too early to tell how robust it is, but so far it's been painless.

levity avatar Oct 04 '13 22:10 levity

@charlietran What were the deciding factors in running the MoSQL process on ec2 vs heroku?

@charlietran @levity What's the latency like? Real time is pretty important for my visualizations.

nikilster avatar Mar 25 '14 22:03 nikilster

@levity What type of dyno did you use in heroku / how exactly did you set that up? Thanks - I'm new to Heroku :)

nikilster avatar Mar 25 '14 22:03 nikilster

Just a plain old dyno. I wrote a rake task that starts mosql in a subprocess, and then added a line to the Procfile, then started it up with heroku ps:scale.

The rake task looks like this. Procfile and ps:scale usage are well-documented on Heroku.

levity avatar Mar 25 '14 22:03 levity

Fantastic thanks!

nikilster avatar Mar 25 '14 23:03 nikilster

We (Upworthy) run mosql on Heroku.

Basically just add a Procfile with this line: worker: bundle exec mosql --sql $DATABASE_URL --mongo $MONGOHQ_URL?slaveOk=true

ryanatwork avatar Nov 07 '14 20:11 ryanatwork

:+1:

tensiondriven avatar Nov 07 '14 23:11 tensiondriven

@levity - have you tried (do you know how to) run multiple mosql processes in a single worker dyno?

brettallred avatar Jan 17 '15 04:01 brettallred