Skip to main content
Documentation

About sitemap checks

Sitemap

A sitemap check reads your sitemap the way a search engine would. It tells you when the sitemap cannot be fetched, is not valid, lists nothing, or has shrunk sharply, which is often the first sign that a generator or a deploy has broken. It also visits the pages the sitemap lists and reports the ones that no longer work.

A domain has at most one sitemap check. It can read up to 10 sitemaps. The fields are listed in Sitemap check settings.

What one run does

Each run follows the same steps.

  1. Alopex fetches each sitemap you listed, with the user agent Alopex/1.0 (+uptime monitor). It follows up to 5 redirects and waits up to 10 seconds for each fetch. The request comes from a single location in the UK.
  2. It reads the sitemap. A sitemap index is followed one level, to up to 50 child sitemaps. A gzip-compressed sitemap is unpacked. Alopex reads up to 50,000 URLs from each sitemap and up to 50 MB.
  3. It counts the distinct URLs the sitemaps list.
  4. It fails the run if a sitemap could not be fetched, is not valid, lists no URLs, or lists far fewer than usual.
  5. Otherwise it updates its list of pages and visits a batch of them.

If reading takes longer than 75 seconds in all, the run is dropped. It is not a failure and opens no incident.

A sitemap check runs about once an hour, and when you add it or change its list of sitemaps. It does not follow the domain's Check every setting. If a run fails before the failure is confirmed, Alopex tries again after 5 minutes, then goes back to the hourly pace.

What counts as a failure

A run fails when any of these happens. Each links to the page that explains it.

What happenedFailure reason
A sitemap could not be fetched, or answered with an errorSitemap unreachable
A sitemap is not well-formed or is not a sitemapSitemap is not valid
The sitemaps list no URLsSitemap lists no URLs
The sitemaps list fewer than half as many URLs as usualSitemap shrank sharply

An incident for a sitemap check is headed Sitemap check failing. A sitemap check is judged on the sitemap itself. Broken pages never fail it.

How quickly you hear about a failure

One failing run does not open an incident. An incident opens when the check has failed as many runs in a row as the domain's Consecutive failures before an incident setting, which is 2 by default. You find it under Settings, in General. See Domain settings. A sitemap check retries after 5 minutes while a failure is unconfirmed, so with the default of 2 the incident opens about 5 minutes after the first failing run.

How Alopex knows a sitemap has shrunk

Alopex compares each run's count of URLs with a usual size: the median of the last 24 successful runs, once at least 6 have run. A run that lists fewer than half that is a failure. Until 6 runs have succeeded, Alopex uses the size you last accepted with Accept new size, if there is one. A brand-new check has none, so it cannot report a shrunken sitemap until 6 runs have succeeded.

If the smaller sitemap is right, for example after you removed old content, the Sitemap card on the Checks tab shows what changed and offers Accept new size. See Sitemap shrank sharply.

Broken pages

Once the sitemap reads correctly, Alopex keeps a list of the pages it lists on your own domain. It tracks up to 5,000 of them. URLs on another registered domain are counted but not checked.

Each run visits a batch of up to 50 pages, failures first, then pages never visited, then the one visited longest ago. A full pass over a large site takes many runs. At the 5,000-page limit and 50 pages an hour, it is about 100 runs, or around four days, and pages that failed are revisited first. The Sitemap card shows how recently every page was checked. It pauses a quarter of a second between pages and stops after about 45 seconds. It asks for each page with HEAD, and with GET if the server answers that it does not support HEAD. It sends the user agent Alopex/1.0 (+uptime monitor) and waits up to 10 seconds for each page.

A page counts against you when it answers 404, 410 or a 5xx status, or when it cannot be reached. Other 4xx answers, such as 401, 403 and 429, are not counted, because a site may be gating or pacing Alopex. A page is reported as broken after 2 visits in a row that fail. A page that redirects to a different address and answers there is listed as a redirect. A different trailing slash, an upgrade from http to https, letter case or a default port does not count as different.

The Sitemap card on the Checks tab shows the Broken pages and Redirects, how many URLs are tracked, and how recently every page was checked. A broken page never fails the sitemap check or opens an incident. A page that disappears from the sitemap is removed from the list, not reported as broken.

The daily summary

Alopex emails a summary of broken pages with the heading Sitemap pages need attention. It goes out once a day, after 09:00 in the domain's time zone, and only when pages have newly broken or recovered since the last one. It lists the newly broken, still broken and recovered pages, with up to 20 in each list, and says how many sitemap URLs redirect. It is sent under the Sitemap summary alert type.

Maintenance windows

While a maintenance window covers a sitemap check, its runs are recorded as maintenance. They are not counted as failures and no incident is opened. If an incident was already open when the window began, it stays open. Maintenance windows are set up on the domain. See About maintenance windows and Schedule maintenance.