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

Test if mongoDB and deepstream works together #42

Open
Weffe opened this issue Nov 23, 2017 · 3 comments
Open

Test if mongoDB and deepstream works together #42

Weffe opened this issue Nov 23, 2017 · 3 comments
Assignees

Comments

@Weffe
Copy link
Collaborator

Weffe commented Nov 23, 2017

We need to make sure that deepstream record changes reflect inside mongoDB

@Weffe Weffe self-assigned this Nov 23, 2017
@Weffe
Copy link
Collaborator Author

Weffe commented Nov 23, 2017

From playing with the mongoDB and deepstream's records, it looks like records are updated in mongoDB when updated in deepstream. However, for the testing, I am just overwriting a record's data and not appending to it as a list. Will need to test about pushing to a list and see if there might be performance issues with it.

@Weffe Weffe changed the title Investigate mongoDB and deepstream works together Test if mongoDB and deepstream works together Nov 23, 2017
@Weffe
Copy link
Collaborator Author

Weffe commented Nov 23, 2017

Also, if you would like to see what data is currently inside the database...

ssh in to the nvidia and in a terminal type: mongo

  1. use deepstream - switch to the deepstream table
  2. db.deepstream_records.find().pretty() - pretty print everything

Or you can do this locally for a local mongodb instance

@Weffe
Copy link
Collaborator Author

Weffe commented Feb 10, 2018

I have updated the test folder for the fake science sensors to use Lists in deepstream. I was not able to test it but it should work. (/rover/core/servers/deepstream)

@kiren-s Your goal is to try and make sure whatever is updating on deepstream is getting replicated into the mongo database. There is already a mongodb plugin written that I have tested that works. The only requirement for you is to install and setup mongodb on your computer. Then inside the /rover/core/servers/deepstream/ds-server/ folder you can npm install and npm start to start up the Deepstream server. Inside /deepstream/test-client-and-receiver/ you can do the same npm install and npm start to start spitting out fake data to the Deepstream server.

Refer to the README in the folders for any clues. Also, feel free to ask for clarifications from me. Kind of wrote this up in a rush 😅

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

No branches or pull requests

1 participant