Apache Nutch is an extensible and scalable web crawler
Fetcher2 slow. Patch contributed by Julien Nioche.
Tacettin Guney6d13378e222e
diff --git a/CHANGES.txt b/CHANGES.txtindex 808bc2c4a..1f8d72a42 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -5,6 +5,8 @@ Unreleased Changes1. NUTCH-735 - crawl-tool.xml must be read before nutch-site.xml wheninvoked using crawl command (Susam Pal via dogacan)+ 2. NUTCH-721 - Fetcher2 Slow (Julien Nioche via dogacan)+Release 1.0 - 2009-03-231. NUTCH-474 - Fetcher2 crawlDelay and blocking fix (Dogacan Guney via ab)diff --git a/conf/nutch-default.xml b/conf/nutch-default.xmlindex c24f89817..801382d05 100644--- a/conf/nutch-default.xml+++ b/conf/nutch-default.xml@@ -575,7 +575,7 @@<property><name>fetcher.threads.per.host.by.ip</name>- <value>true</value>+ <value>false</value><description>If true, then fetcher will count threads by IP address,to which the URL's host name resolves. If false, only host name will beused. NOTE: this should be set to the same value asdiff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.javaindex 4b6c2b6a4..8cba28c3a 100644--- a/src/java/org/apache/nutch/fetcher/Fetcher.java+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java@@ -460,8 +460,7 @@ public class Fetcher extends Configured implementsthis.protocolFactory = new ProtocolFactory(conf);this.normalizers = new URLNormalizers(conf, URLNormalizers.SCOPE_FETCHER);this.maxCrawlDelay = conf.getInt("fetcher.max.crawl.delay", 30) * 1000;- // backward-compatible default setting- this.byIP = conf.getBoolean("fetcher.threads.per.host.by.ip", true);+ this.byIP = conf.getBoolean("fetcher.threads.per.host.by.ip", false);this.maxRedirect = conf.getInt("http.redirect.max", 3);this.ignoreExternalLinks =conf.getBoolean("db.ignore.external.links", false);