Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb integration discussion #6

Open
laszewsk opened this issue Feb 28, 2013 · 2 comments
Open

mongodb integration discussion #6

laszewsk opened this issue Feb 28, 2013 · 2 comments
Assignees

Comments

@laszewsk
Copy link
Member

discussion isse with fugang hyungroo, jklingensmith

We want to set up a mongodb server that includes all information so that flask can query mongo db to present information easily

this requires to think about how we do collections and representations

strategy a) each vm is in a single collection no matter which cloud

strategy b) each vm is in its collection based on the cloud name

strategy c) each vm is in collection based on project

strategy c) each vm is in collection based on experiment

problem with mongodb is that it requires complex setup. we do not have this with any other tool in cloudmesh ...

Shoudl there be an absraction layer that introduces the queries and oand can chose if they want to use mongodb or just the dict ?

@ghost ghost assigned fugangwang Feb 28, 2013
@lee212
Copy link
Contributor

lee212 commented Feb 28, 2013

Installed mongo db server

We have a mongodb server installed by Allan. mongo.futuregrid.org . Access information won't be distributed here but ask me.

Python Package for mongodb

We use pymongo : http://api.mongodb.org/python/current/tutorial.html

Example of how to use mongodb in Python

API Function class: https://github.com/futuregrid/cloud-metrics/blob/master/fgmonitor/FGMongodb.py
Our test module: https://github.com/futuregrid/cloud-metrics/blob/master/fgmonitor/FGMonitor.py
This is currently collecting available ip addresses and compute nodes from openstack India.

mongolab database

mongolab.com supports free online mongodb service upto 500MB. This is useful to test mongodb's functionality.
For example, we simply access to mongodb like,
mongodb_uri = 'mongodb://username:password@localhost:27017/dbname'

@laszewsk
Copy link
Member Author

I added in the fab file the installation of mongodb locally, which is good for testing
it is however only osx, we may want to add conditional local installs for linux

Hyungro, why don't you do that.

On Feb 28, 2013, at 10:57 AM, lee212 [email protected] wrote:

Installed mongo db server

We have a mongodb server installed by Allan. mongo.futuregrid.org. Access information won't be distributed here but ask me.

Python Package for mongodb

We use pymongo : http://api.mongodb.org/python/current/tutorial.html

Example of how to use mongodb in Python

API Function class: https://github.com/futuregrid/cloud-metrics/blob/master/fgmonitor/FGMongodb.py
Our test module: https://github.com/futuregrid/cloud-metrics/blob/master/fgmonitor/FGMonitor.py

this is currently collect available ip addresses and compute nodes from openstack India.
mongolab database

mongolab.com supports free online mongodb service upto 500MB. This is useful to test mongodb's functionality.
For example, we simply access to mongodb like,
mongodb_uri = 'mongodb://username:password@localhost:27017/dbname'


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants