22/28
Part 5 of 6 · Errors and shared stateLearn and do

A worked example

The small site, page by page

Run the coordinator on the practice tests' small site, starting at http://example.com/, where fetching /broken raises. Paths are on http://example.com unless another host is shown.

Page finishedIts linksAfter normalize and filterSubmitted
//a, /b#top, other.com/x/a new, /b new, other.com dropped/a, /b
/a/, /c, news.example.com/n/ seen, /c new, news.example.com dropped/c
/b/a#part, /broken/a seen, /broken new/broken
/cnone
/brokenraises ConnectionErrorlogged

With equal fetch times, /a and /b finish together, then /c and /broken. Other timings reorder the rows but change nothing else.

That's five fetches and five pages: /, /a, /b, /c and /broken. Three URLs are never fetched. other.com/x and news.example.com/n are on other hosts. /never sits behind the broken page, so nothing ever finds it.

The 41-page site, timed

The tests' other site is a home page linking 40 pages, each linking back home and on to the next page. Each fetch sleeps 50 ms, which averaged 58 ms here.

Predict

8 workers. The home page is one round, and its 40 links go out together, 8 at a time. How many rounds of about 58 ms in all?

Pick an answer above to see the rest