Questions tagged [mongohq]

Compose (formerly MongoHQ) is a Database-as-a-Service (DBaaS) platform for securely hosting and managing databases instances including MongoDB.

Compose (formerly MongoHQ) is a Database-as-a-Service (DBaaS) platform for securely hosting and managing databases instances including MongoDB.

More information:

148 questions
4
votes
1 answer

Node.js - Connecting to MongoDB using MongoHQ on Heroku

I have a Node.js app using Express that stores data in a mongoDB (locally). It's now pushed to heroku successfully on a cedar stack and the server is running. I added the mongohq addon through the terminal. Now... how do I connect that mongoDB…
tuddy
  • 1,824
  • 4
  • 31
  • 35
4
votes
2 answers

Set an environment variable in a Sinatra app?

I want to set MONGOHQ_URL in my sinatra app in order to be able to do this: uri = URI.parse(ENV['MONGOHQ_URL']) How do I setup the MONGOHQ_URL?
donald
  • 23,587
  • 42
  • 142
  • 223
4
votes
1 answer

What latency can I expect when using MongoHQ from an external web server

Does anyone have advice to offer regarding using a hosted DB solution, specifically MongoDB, with a web server. Specifically: Is the latency acceptable? How do I co-locate (geographically via Azure, etc) the web server with the hosted DB server to…
Slappy
  • 4,042
  • 2
  • 29
  • 41
4
votes
4 answers

MongoDB collection used for log data: index or not?

I am using MongoDB as a temporary log store. The collection receives ~400,000 new rows an hour. Each row contains a UNIX timestamp and a JSON string. Periodically I would like to copy the contents of the collection to a file on S3, creating a file…
Steve Wilhelm
  • 6,200
  • 2
  • 32
  • 36
4
votes
1 answer

Mongoexport remote database not connecting

I need to export some info from my MongoDB (hosted on MongoHQ // Compose.io) instance. I'm following these instructions, which give all the examples I need and seem to correspond with the official mongo docs. Here's the command i'm…
wkd
  • 231
  • 1
  • 5
  • 16
4
votes
1 answer

Could not connect to any secondary or primary nodes at heroku

I uploaded a Sinatra app to heroku. Before that, I installed the free MongoHQ addon there. However, I have an error from heroku: Moped::Errors::ConnectionFailure - Could not connect to any secondary or primary nodes for replica set
Alan Coromano
  • 24,958
  • 53
  • 135
  • 205
4
votes
3 answers

MongoDB won't connect to MongoHQ using Mongoid

I've just started a brand new rails project and the first task I'm trying to complete is creating an object and having it save within my database. I went through the automated way of generating an object, in this case a URL object as follows: rails…
Nick ONeill
  • 7,341
  • 10
  • 47
  • 61
3
votes
1 answer

When attempting to create the new client, Mongoid could not find a client configuration for the name: 'default'

I added production database as the following: production: sessions: default: uri: <%= ENV['MONGOHQ_URL'] %> options: consistency: :strong max_retries: 1 retry_interval: 0 Depend on the following docs. And…
Mohamed Yakout
  • 2,868
  • 1
  • 25
  • 45
3
votes
1 answer

how to query Breeze.js knockout.js mongoHQ curl

How can I fetch data from MongoHQ with Breeze? So far I have tried this: this.getDataFormServer = function (formElement) { $.ajax({ url:…
Gildas.Tambo
  • 22,173
  • 7
  • 50
  • 78
2
votes
1 answer

Sharing MongoHQ database between Sinatra and Rails applications in Heroku

I have a Sinatra and Rails 3 applications. Applications were created independently and are hosted in 2 separate Heroku instances. So I need a share one MongoHQ database to both applications. How can I do it? Any idea? Thanks.
Zeck
  • 6,433
  • 21
  • 71
  • 111
2
votes
2 answers

rails3 / mongoid / heroku / mongohq

After quite a bit of struggle i manage to have my rails 3.2 app running on heroku. running rails 3.2 / mongoid app on heroku fails I have change from mongolab to mongohq as the app was crashing all the time after connecting it to mongolab. It is now…
Yannick Schall
  • 32,601
  • 6
  • 29
  • 42
2
votes
1 answer

Heroku + Node.js + MongoHQ + expressjs

I'm try to use Heroku with Mongo for an Express.js project. Struggling with the connecting to mongohq. Logs output : connstring is: mongodb://heroku:XXXXXXXXXXXXXXXXXXXXXXXX@staff.mongohq.com:10073/app676842 host is:…
jbg
  • 993
  • 1
  • 11
  • 19
2
votes
2 answers

How to download production data from MongoHQ in Heroku to local machine?

I have a web application with production data running on a Cidar stack in Heroku. The production data is stored in a MongoDB and I use MongoHQ to manage it in production. I'd like to download the production data to my local machine so I can run my…
2
votes
0 answers

create roles for different users on mongodb version 2.4.9

I'm new to mongodb , and i'm trying to understand and how to grant access to the users of my database ( i have a mongodb data base from mongoHQ sandbox 512 Mb free ). after connecting to my mongodb from my mongo shell i have a database named event…
2
votes
1 answer

mongodb could not connect to server

I'm new to MongoDB. I'm trying to connect to my remote mongo database from my work machine( I tried for both mongohq as well as mongolab). I'm getting the error listed below. When I run the same command from my home machine it runs fine and does…
sublime
  • 4,013
  • 9
  • 53
  • 92
1
2
3
9 10