# Max Requests to One Hostname

**URL:** <https://discuss.httparchive.org/t/max-requests-to-one-hostname/67>\
**Category:** Analysis\
**Created:** [September 5, 2013, 4:40pm UTC](https://discuss.httparchive.org/t/max-requests-to-one-hostname/67 "2013-09-05T16:40:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![souders](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/souders/32/1307_2.png) [@souders](https://discuss.httparchive.org/u/souders)\
**Post date:** [September 5, 2013, 4:40pm UTC](https://discuss.httparchive.org/t/max-requests-to-one-hostname/67/1 "2013-09-05T16:40:16Z")

</div>

The HTTP Archive plots “maxDomainReqs”. The average is 50 requests on a single domain across the top 300K URLs. But what are the percentile values?

```sql
SELECT
  NTH(50, quantiles(maxDomainReqs)) median,
  NTH(90, quantiles(maxDomainReqs)) ninetieth,
  NTH(95, quantiles(maxDomainReqs)) ninetyfifth
FROM [httparchive:runs.latest_pages]

```

The results from the Sep 1 2013 crawl are:  
 ![](https://yyz1.discourse-cdn.com/flex035/uploads/httparchive/57/f6164561a0862d80.png)

39 is lower than 50 - that’s good. But the 90th percentile is 97!

---

<div class="post-metadata">

**Author:** ![igrigorik](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/igrigorik/32/925_2.png) [@igrigorik](https://discuss.httparchive.org/u/igrigorik)\
**Post date:** [September 5, 2013, 5:58pm UTC](https://discuss.httparchive.org/t/max-requests-to-one-hostname/67/2 "2013-09-05T17:58:28Z")

</div>

Trimmed at 200 req’s… the max is at 800 - yikes.

![](https://yyz1.discourse-cdn.com/flex035/uploads/httparchive/58/85839f485f76a6af.png)

```sql
SELECT bucket, COUNT(*) pages FROM (      
  SELECT
    ROUND(maxDomainReqs/10)*10 bucket
  FROM [httparchive:runs.latest_pages]
)
GROUP BY bucket      
ORDER BY bucket; 

```
