« Back Issue #359
  • 2012-02-10 07:53 Reported by administrator
  • 2012-03-04 21:43 Marked fixed
Status: Marked fixed
Priority: Medium

Make crawler back off if get lots of 5xx errors

administrator 2012-02-10 07:53

If the server seems to be giving 503 errors because it is overloaded, Yioop! should detect this and back-off

administrator 2012-03-04 21:43

Fixed with a393ac2. Adds two variables to config.php /**

*  Number of error page 400 or greater seen from a host before crawl-delay
*  host and dump remainder from current schedule
*/

define('DOWNLOAD_ERROR_THRESHOLD', 10);

/** Crawl-delay to set in the event that DOWNLOAD_ERROR_THRESHOLD exceeded*/ define('ERROR_CRAWL_DELAY', 20);

X