SMILA/Documentation/Default configuration workflow overview

From Eclipsepedia

< SMILA‎ | Documentation
Revision as of 09:34, 24 January 2012 by Juergen.schumacher.attensity.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This pages given a short explanation of what happens behind the scenes when executing the SMILA in 5 Minutes example.

DefaultConfigurationWorkflow-1.0.png

(download this archive to get the original Powerpoint file of this diagram)

When crawling a web site with SMILA the following happens:

  1. The user starts a job with workflow updateIndex. Nothing else happens yet, the job waits for input to process.
  2. The user starts a job with workflow webCrawling in runOnce mode.
  3. The WebCrawler worker initiates the crawl process by reading the configured start URL. It extracts links and feeds them back to itself, and produces records with metadata and content. Additionally it marks links as visited so that other crawler worker instances will not produce duplicates.
  4. The DeltaChecker worker reads the records produced by the crawler and checks in the DeltaService if the crawled resources have changed since a previous crawl run. Unchanged resources are filtered out, only changed and new resources are sent to the next worker.
  5. The WebFetcher worker fetches content of resources that do not have content yet. In this case this would be non-HTML resources because their content was not needed by the crawler worker for link extraction.
  6. At the end of the crawl workflow, the UpdatePusher worker sends the crawled records with their content to the indexing job as added records and saves their current state in the delta service.
  7. Now the indexing job starts to work: The Bulkbuilder writes the records to index to bulks, depending on if they are to be added to or updated in the index, or if they are to be deleted (which does not happen at this point).
  8. The PipelineProcessor worker picks up those record bulks and puts each record (in manageable numbers) on the blackboard ...
  9. ... and invokes a configured pipeline for either adding/updating or deleting records.
  10. The pipelets in the pipelines take the record data from the blackboard, transform the data, extract further metadata and plain text ...
  11. ... and manipulate the SolrIndex accordingly. The index can now be searched using yet another pipeline (not shown here).
  12. Finally (and not yet implemented), when the crawl workflow is done, the DeltaService can be asked for all records that have not been crawled in this run, so that delete records can be sent to the indexing workflow to remove these resources from the index.

All records produced in this are stored in the ObjectStore while being passed from one worker to the next. The Job/TaskManagement uses Apache Zookeeper to coordinate the work when using multiple SMILA nodes for parallelizing the work to be done.

Crawling a filesystem works similar, the "fileCrawling" workflow just replaces the "WebCrawler" and "WebFetcher" workers by "FileCrawler" and "FileFetcher" workers.