SD-14 · WEB CRAWLER · INTERACTIVEBreak it.
Break it.
Then fix it.
Turn up the crawl rate, watch what melts, and add the parts a real crawler needs. Each page brings about 30 links, and every site expects one polite request at a time.
CHALLENGECrawl 4,000 pages/s with no errors, no sites blocking us and no duplicate pages stored.
StatusDOWNAt 2K pages per second
Pages crawled1.5K/sOf 2.0K asked for
Errors25%Fetches or checks dropped
Monthly cost$15,650Storing 30% copies
URL frontierQUEUE
One queue per host2.0K URLs/s handed out
Fetchers × 45HOT
Fetch + parse2.0K / 2.7K pages/s
DNS resolverDOWN
A lookup per fetch2.0K / 1.5K lookups/s
WebsitesTHE WEB
100M hosts1.5K pages/s crawled
Page storeCOPIES
Every copy stored in full2.0K pages/s written
URL seen setDOWN
Every link to the store60K / 50K checks/s
DNS is the bottleneck. Every fetch waits on a lookup, and upstream resolvers allow about 1,500 a second. Cache answers for their TTL; 95% of fetches go to a host we resolved recently.
30New links per pageSo 4,000 pages/s means 120,000 URL checks a second.
1%Bloom false positives62 GB of bits remember 50 billion URLs; a few new ones are skipped.
95%DNS cache hitsOnly about 200 lookups a second go upstream.
1 sBetween requests to a hostFast overall, slow per site: thousands of hosts in flight at once.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.