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

Migrate to MongoEngine / MongoDB #156

Closed
sadsfae opened this issue Nov 3, 2017 · 2 comments
Closed

Migrate to MongoEngine / MongoDB #156

sadsfae opened this issue Nov 3, 2017 · 2 comments

Comments

@sadsfae
Copy link
Member

sadsfae commented Nov 3, 2017

This is a QUADS 2.0 design RFE, dependent upon us first moving from SimpleHTTPServer to CherryPy outlined here:

#140

General Idea

We will want to move away from flat-file management into something that scales better and requires less code to manipulate locking, reading and writing on-disk YAML files.

Moving to Mongoengine ODM will look like:

  • Splitting out schedule.yml into separate Mongo documents
    • schedule
    • hosts
    • clouds
  • Move /opt/quads/data/stat into Mongo Document
  • Move /opt/quads/data/ports/$FQDN_OF_HOSTS files into Mongo document or document(s).

This requires implementation of #140 first.

WIP here: radez@47eb97d

https://github.com/radez/quads/tree/cherrypy

@sadsfae sadsfae added this to the 2.0 milestone Nov 3, 2017
@sadsfae sadsfae changed the title Migrate to Celery, sqlite Migrate to MongoEngine / MongoDB Apr 19, 2018
@sadsfae sadsfae modified the milestones: 2.0, 1.2 Apr 19, 2018
@sadsfae
Copy link
Member Author

sadsfae commented Nov 2, 2018

Adding in an image created by @grafuls here for class architecture, this is probably the model we want to start looking at when moving to BSON / MongoEngine ORM.

f9664781-a74d-4902-964e-de02daffb643

@sadsfae sadsfae modified the milestones: 1.2, 1.1 Mar 4, 2019
@sadsfae
Copy link
Member Author

sadsfae commented Mar 4, 2019

This has been in place for quite a well and well-tested in the current master branch, closing this out now.

@sadsfae sadsfae closed this as completed Mar 4, 2019
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