A fleet p95 is calculated from the fleet’s combined compatible latency distribution. It is not the average of worker p95 values—even when that average is weighted by worker traffic.
This guide is for an owner of an authorized, long-running proxy workflow deciding whether a latency signal supports renewal, remediation, or a bounded capacity test. It does not benchmark IPHTML or any other provider. Use a documented API, licensed feed, or direct route when that meets the task; a proxy is not automatically the right answer.
Why a “weighted p95” still changes the question
Imagine two compatible workers in the same 10-minute window. Worker A completed two valid jobs with 10 and 100 ms latency, so its nearest-rank p95 is 100 ms. Worker B completed eight with values ending at 20 ms, so its p95 is 20 ms. Averaging the two p95s gives 60 ms. Weighting them by 2 and 8 jobs gives 36 ms. Neither number is the fleet p95: pooling all ten observations makes the rank ceil(0.95 × 10) = 10, which is 100 ms.
Quantiles describe positions in distributions, not quantities that can be averaged. A worker-level p95 can still be useful for finding an unhealthy shard. Label it as a worker result. Do not relabel its average as the fleet outcome.
| Calculation | Result | What it answers |
|---|---|---|
| Mean of worker p95s | (100 + 20) / 2 = 60 ms | Average of two worker summaries only |
| Traffic-weighted mean of worker p95s | (100×2 + 20×8) / 10 = 36 ms | A weighted summary average, still not a quantile |
| Pooled nearest-rank p95 | rank 10 of 10 = 100 ms | The combined compatible completed-job population |
Establish one population before pooling
Pooling is only meaningful when each observation means the same thing. Record the metric unit, aligned window start/end and timezone, population, outcome rule, target/workload segment, client version, region/session rule, and bucket schema where applicable. For counters, take each worker’s delta over that same interval after its reset handling; do not add unrelated lifetime counter snapshots. For example, “completed and validator-accepted jobs, latency in ms, 10:00–10:10 UTC” is a different population from “all started attempts” or “successful requests excluding parser failures.”
Keep timeout, transport failure, cancellation, and validation-failure denominators visible beside the conditional latency percentile. A 95th percentile of completed valid jobs says nothing about the latency of jobs that never completed. Do not convert missing timing into zero or quietly remove a failed worker from the fleet denominator.
| Check before pool | Proceed only if | Hold if |
|---|---|---|
| Metric and unit | Both are the same latency boundary and unit. | One includes queue time, or one is seconds and another is ms without an explicit conversion record. |
| Window and population | Same aligned start/end, declared job population, and distinct nonduplicated observations. | Windows differ, or one sample includes different workload/target classes. |
| Outcome and failures | Same acceptance rule; separate attempt/failure counts remain available. | One worker silently drops timeouts or invalid results. |
| Worker coverage | Expected workers are observed, including explicitly verified zero counts. | A worker is absent or unverified; absence is not a zero-count histogram. |
| Histogram schema | Boundaries and meaning match exactly. | Bucket edges or instrumentation versions differ. |
Merge evidence first: raw values or compatible histogram counts
With retained raw observations, concatenate the compatible rows, sort, and take the stated percentile rule once. This is exact for the chosen rule. If retaining raw values is impractical, merge histogram evidence only when its schema and metadata pass the gate. For a classic cumulative histogram, add the count at the same le boundary across workers: do not add all cumulative buckets within one worker, because each later bucket already includes the earlier observations.
In the fixture, the two workers expose cumulative counts <=10: [1,0], <=20: [1,8], and <=100: [2,8]. The merged cumulative sequence is 1, 9, 10. The p95 rank is in (20,100] ms. That is a defensible bound. A histogram quantile is an estimate within bucket information, not proof that an individual job took the displayed estimate.
Prometheus explains that precomputed summary quantiles cannot be aggregated, while histogram distributions can be aggregated before calculating a quantile. Its histogram guidance and histogram_quantile documentation also describe bucket-based estimation. They do not validate this site’s traffic, proxy behavior, or a renewal result.
Reproduce the counterexample offline
Download the standard-library Python fixture. It has unequal worker counts, no network operations, no credentials, no proxy endpoint, and no external input. It calculates the two misleading summary averages, the pooled nearest-rank answer, and compatible cumulative bucket merging. It also demonstrates holds for a missing worker and a metadata mismatch.
python3 proxy-latency-percentile-aggregation.py
Exact output:
offline synthetic fixture; network_requests=0 metadata=metric:authorized_job_latency unit:ms window:2026-12-06T10:00:00Z/2026-12-06T10:10:00Z population:completed_valid_jobs outcome:success_only worker-a n=2 raw=[10, 100] p95_nearest_rank=100ms worker-b n=8 raw=[11, 12, 13, 14, 15, 16, 17, 20] p95_nearest_rank=20ms naive_mean_of_worker_p95s=60.0ms (not fleet p95) traffic_weighted_mean_of_worker_p95s=36.0ms (still not fleet p95) pooled_n=10 sorted=[10, 11, 12, 13, 14, 15, 16, 17, 20, 100] pooled_p95_nearest_rank=100ms (rank=ceil(0.95*10)=10) cumulative_buckets_per_worker: <=10ms [1,0]; <=20ms [1,8]; <=100ms [2,8]; <=+Inf [2,8] merged_cumulative_buckets: <=10ms 1; <=20ms 9; <=100ms 10; <=+Inf 10 histogram_p95_bound=(20,100]ms; bucket quantile is an estimate, not an exact 100ms observation HOLD: missing worker(s): worker-c; absent is not zero HOLD: metadata mismatch; do not pool PASS: merge raw observations or compatible bucket counts first; record failures/timeouts in a separate denominator
Use one renewal worksheet, not one dashboard number
| Record for the review window | Decision use | Stop or hold condition |
|---|---|---|
| Expected workers, reporting workers, and explicit outage/missing-data rows | Shows whether fleet coverage is complete. | Any unexplained absence; do not substitute zero. |
| Population, outcome rule, raw count or compatible bucket counts | Makes the p95 denominator auditable. | Changed validator, mixed workload, or incompatible window. |
| Fleet p50/p95 method and bucket bound where used | Compares like with like across cycles. | Only per-worker p95s or an averaged p95 is available. |
| Attempts, timeouts, transport failures, invalid results, cancellations | Prevents a fast-success-only percentile from hiding delivery loss. | Failure categories are missing or denominators changed. |
| Business deadline, useful-delivery result, spend, and review owner | Connects observed evidence to a renewal decision. | Latency is treated as proof of value, savings, or provider fault. |
Continue or expand only when compatible, complete evidence meets the team’s written delivery need and economics. Fix and retest when one worker, queue, client release, or target segment explains the tail. Hold spend when worker coverage, metadata, or failure denominators are incomplete. For broader useful-delivery accounting, use the reliability scorecard; for deadline outcomes, use the timeout benchmark; and for a billing-period decision, use the monthly usage review.
If an authorized workflow still needs a particular rotating-proxy configuration after this evidence is complete, review IPHTML’s rotating proxy information. Bring a redacted worksheet with workload boundary, regions, window, expected-worker list, buckets, failure denominators, and decision deadline to contact IPHTML. Confirm current fit and limits before changing a paid plan.
Sources checked December 6, 2026: the linked Prometheus documentation supports the distribution/aggregation and histogram-estimation concepts. The numbers, fixture, thresholds, and decision worksheet are original synthetic teaching material. The fixture assumes its supplied roster is true; it cannot discover unreported jobs or count real failure denominators, and its tiny sample illustrates arithmetic rather than SLA confidence. No live proxy test, customer result, pricing claim, saving, availability result, or renewal outcome is claimed.