nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Nioche (JIRA)" <>
Subject [jira] [Updated] (NUTCH-207) Bandwidth target for fetcher rather than a thread count
Date Mon, 28 Apr 2014 08:59:15 GMT


Julien Nioche updated NUTCH-207:

    Attachment: NUTCH-207.trunk.patch

Patch for trunk. Similar to the original patch but adapted to the existing version of the

Adjusts the number of threads based on the values of the parameters :
* fetcher.maxNum.threads
which must both be set. The bandwidth is for a given mapper so if the fetching is done with
more than one mapper per machine you'll have to set the bandwith accordingly e.g. have 50Mbps
connection and 2 mappers per server => set to 25000000

Ideally we should use more modern ways of handling threads with the ExecutorService, ThreadPoolExecutors
etc... but this can be done in a separate JIRA.

The parameters will be added do nutch-default.xml with a description of what they do after
this patch has been tested and reviewed.

> Bandwidth target for fetcher rather than a thread count
> -------------------------------------------------------
>                 Key: NUTCH-207
>                 URL:
>             Project: Nutch
>          Issue Type: New Feature
>          Components: fetcher
>    Affects Versions: 0.8
>            Reporter: Rod Taylor
>            Assignee: Julien Nioche
>             Fix For: 1.9
>         Attachments: NUTCH-207.trunk.patch, ratelimit.patch
> Increases or decreases the number of threads from the starting value (fetcher.threads.fetch)
up to a maximum (fetcher.threads.maximum) to achieve a target bandwidth (fetcher.threads.bandwidth).
> It seems to be able to keep within 10% of the target bandwidth even when large numbers
of errors are found or when a number of large pages is run across.
> To achieve more accurate tracking Nutch should keep track of protocol overhead as well
as the volume of pages downloaded.

This message was sent by Atlassian JIRA

View raw message