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

Make Database initialization faster #20

Closed
jatrost opened this issue Jul 8, 2014 · 7 comments
Closed

Make Database initialization faster #20

jatrost opened this issue Jul 8, 2014 · 7 comments
Assignees

Comments

@jatrost
Copy link
Collaborator

jatrost commented Jul 8, 2014

Current the downloading of snort rules and initialization of the database take too long. We should be able to improve this.

@gregcmartin
Copy link
Contributor

Agreed. Maybe threaded snort rule downloads from the multiple files instead single thread download of the big snort rule file from ET?

@gregcmartin
Copy link
Contributor

Another way would be to only download snort rules when user initiates that from a button in the UI. This would make install go much faster.

[ no rules loaded currently, would you like to pull a fresh copy? ]

@jatrost
Copy link
Collaborator Author

jatrost commented Jul 10, 2014

Switching to compressed version would be faster for the download http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz. We could also host a preprocessed mhn.db or rules file as well. Lots of options. Maybe the lazy load makes sense though.

@gregcmartin
Copy link
Contributor

did not know we were not using the compressed, lets start there.

On Wed, Jul 9, 2014 at 6:10 PM, Jason Trost notifications@github.com
wrote:

Switching to compressed version would be faster for the download
http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz.
We could also host a preprocessed mhn.db or rules file as well. Lots of
options. Maybe the lazy load makes sense though.


Reply to this email directly or view it on GitHub
https://github.com/threatstream/mhn/issues/20#issuecomment-48554761.

@serpulga
Copy link
Contributor

I don't think it's the download that takes that long, it is parsing the file and and storing each rule into the database. We could add a command line option: Do you want to setup Snort Rules now?.

@jatrost
Copy link
Collaborator Author

jatrost commented Jul 14, 2014

The problem with this is we need a way to eventually download the rules if they intend to deploy a snort box (and the rules need to download before deploying one).

I think for many users who tested this download speed was their issue. When I asked them to attempt to manually download the file using wget it would timeout or hang. When running over vagrant with my fast Internet connection my DB initialization only takes a few minutes (3-5 min). We had users report 12+ hours for this step.

@d1str0
Copy link
Collaborator

d1str0 commented Oct 25, 2017

Haven't noticed a prohibitively long database init. Issue seems to be resolved.

@d1str0 d1str0 closed this as completed Oct 25, 2017
fwininger pushed a commit to Cyberwatch/mhn that referenced this issue Sep 29, 2022
Fixes, install new mongodb, install honeymap
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

4 participants