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

Enhance parallel execution #16

Open
nicosensei opened this issue Sep 22, 2013 · 0 comments
Open

Enhance parallel execution #16

nicosensei opened this issue Sep 22, 2013 · 0 comments

Comments

@nicosensei
Copy link

Right now we have a full crawl workflow in a crawler thread:

  1. Fetch a number of URLs from the frontier
  2. For each candidate URL, process it:
    • HTTP GET
    • test if should visit
    • if so parse
    • extract outgoing links and schedule them
    • visit; e.g. process payload

I believe separating the different steps of the URL processing would enhance the crawl speed (that's basically the approach Internet Archive's Heritrix takes):

Have configurable thread pools for:

  • executing the HTTP request
  • parsing
  • link extraction and frontier scheduling
  • visiting

This involves having a shared component to store the HTTP response contents between the moment they are downloaded and the moment they have been visited. My initial guess is that Berkeley DB looks like a damn good candidate ;-)

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

1 participant