mirror of https://github.com/scrapy/scrapy.git
Add documentation
add section to broad-crawl topic reword in accord with broad-crawl topic add documentation for new priority queue
This commit is contained in:
parent
8e8ce301b1
commit
338b78d796
|
|
@ -39,6 +39,17 @@ you need to keep in mind when using Scrapy for doing broad crawls, along with
|
|||
concrete suggestions of Scrapy settings to tune in order to achieve an
|
||||
efficient broad crawl.
|
||||
|
||||
Use proper :setting:`SCHEDULER_PRIORITY_QUEUE`
|
||||
==============================================
|
||||
|
||||
Default scrapy's scheduler priority queue is ``'queuelib.PriorityQueue'``.
|
||||
It works best during single domain crawl. And it does not work well with crawling
|
||||
many different domains in parallel
|
||||
|
||||
To apply recommended priority queue use::
|
||||
|
||||
SCHEDULER_PRIORITY_QUEUE = 'scrapy.pqueues.DownloaderAwarePriorityQueue'
|
||||
|
||||
Increase concurrency
|
||||
====================
|
||||
|
||||
|
|
|
|||
|
|
@ -1144,7 +1144,12 @@ SCHEDULER_PRIORITY_QUEUE
|
|||
------------------------
|
||||
Default: ``'queuelib.PriorityQueue'``
|
||||
|
||||
Type of priority queue used by scheduler.
|
||||
Type of priority queue used by scheduler. Another available type is
|
||||
``scrapy.pqueues.DownloaderAwarePriorityQueue``.
|
||||
``scrapy.pqueues.DownloaderAwarePriorityQueue`` is works better than
|
||||
``'queuelib.PriorityQueue'`` when you crawl many different domains in parallel.
|
||||
But ``scrapy.pqueues.DownloaderAwarePriorityQueue``
|
||||
does not work together with :setting:`CONCURRENT_REQUESTS_PER_IP`.
|
||||
|
||||
.. setting:: SPIDER_CONTRACTS
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue