Bump incoming links to MEDIUM to compete with e.g. runs of redirects.

This commit is contained in:
Andrew Jackson
2016-10-03 16:51:28 +01:00
parent c6c396af8b
commit eaec682dd4
@@ -446,7 +446,13 @@ public class AMQPUrlReceiver
curi.setSchedulingDirective(SchedulingConstants.HIGH);
curi.setPrecedence(1);
} else {
curi.setSchedulingDirective(SchedulingConstants.NORMAL);
/*
* By default, redirects get set to MEDIUM, so to ensure the
* incoming links are caught promptly, even if the crawler hits
* a lot of redirects (which we have observed for e.g. The
* Guardian), we bump them to MEDIUM so these links can compete.
*/
curi.setSchedulingDirective(SchedulingConstants.MEDIUM);
curi.setPrecedence(1);
}