
Radek Ostrowski • about 8 years ago
Problems using MongoDB service
Hi, I'm trying to add MongoDB service so it works together with Spark, but after providing the connection details I end up with empty MongoDB Bluemix page. I'm using MongoDB by Compose running on Heroku. The connection settings don't let me choose a database, only the host and port, so it might be the reason for this issue. I can provide a screenshot if required. Cheers
Comments are closed.
2 comments
Serena Pietruszka Manager • about 8 years ago
Hi Radek,
Thanks for your question! I've sent it along to the Bluemix team, but in the mean time you may want to post your question here: https://developer.ibm.com/bluemix/#support
Best,
Serena
Serena Pietruszka Manager • about 8 years ago
Hi Radek,
Thanks for your question and I’m sorry about the delay in our response.
The Compose services are currently not fully managed Bluemix services, which means that they exist outside of Bluemix (on Compose servers). In order to provision a Mongo database, users need to have a Compose account and create a database there. Unfortunately, Compose is not included in your free Bluemix trial, however there is a free 30-day trial available for Compose here: https://app.compose.io/signup/svelte
Once the database has been created, the Bluemix catalog is used to create a 'user defined service’. This user defined service can be seen in spaces where it is created, and users can bind apps to it, and receive the credentials via VCAP_SERVICES the usual way. You can learn more about using Compose here: https://developer.ibm.com/bluemix/2015/07/29/getting-started-compose-bluemix/
Another option for MongoDB would be to use Cloudant - a NoSQL database based on open source CouchDB. In some ways Cloudant is superior to Compose due to its true master-master replication ability. However, Cloudant is also not included in your free Bluemix trial. However, it does have a free tier of 20GB free data storage and 500,000 light, 100,000 heavy data API calls per months; charges apply over this. You can see more here: https://console.ng.bluemix.net/catalog/services/cloudant-nosql-db/
I do hope this is helpful and please let us know if you have further questions!
Serena