You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2009/01/09 20:03:59 UTC

[jira] Commented: (NUTCH-627) Minimize host address lookup

    [ https://issues.apache.org/jira/browse/NUTCH-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662474#action_12662474 ] 

Andrzej Bialecki  commented on NUTCH-627:
-----------------------------------------

Otis, is the patch already applied? If not, +1 from me.

> Minimize host address lookup
> ----------------------------
>
>                 Key: NUTCH-627
>                 URL: https://issues.apache.org/jira/browse/NUTCH-627
>             Project: Nutch
>          Issue Type: Improvement
>          Components: generator
>            Reporter: Otis Gospodnetic
>            Assignee: Otis Gospodnetic
>         Attachments: NUTCH-627.patch
>
>
> The simple patch that I'm about to attach keeps track of hosts whose "max URLs per host" limit we already reached, as well as hosts whose hostname->IP lookup already failed.  For such hosts, further DNS lookups are skipped:
> - there is no point in looking up a hostname yet again if we already have the max number of URLs for that host
> - there is little point in attempting to look up a hostname yet again if the previous lookup already failed
> In a simple test, this saved a few hundred thousand lookups for the first case and a few hundred lookups for the second case.
> If nobody complains, I'll commit by the end of the week.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.