Home/Docs/Build a Proxy Pool Health Monitor

Build a Proxy Pool Health Monitor

content-verified success · latency percentiles · IP uniqueness · cron + alerts · updated 6 November 2026
Tutorials
Home › Tutorials › Build a Proxy Pool Health Monitor

A "200 OK" proves almost nothing: challenge pages, soft-404s and JSON error bodies all return 200. A pool monitor that counts status codes will tell you everything is fine on the day your scraper breaks. Measure four things instead:

MetricHow to measureHealthy
Content-verified success rateRequest a URL you control (or a stable page) and assert an anchor string in the body> 95%
Latency percentilesRecord connect+read time per request, report p50 / p95p95 < 3 s
IP uniquenessN requests via echo endpoint, count unique exit IPsclose to N for rotating pools
Geo / ASN mixSample ipinfo.io per exit, tally countries and ASN typesmatches what you pay for

A complete cron-able monitor

One file, stdlib + requests only, writes a JSON line per run so any trend tool can graph it:

#!/usr/bin/env python3
# pool_monitor.py — run from cron: */30 * * * *
import time, json, statistics, requests
from collections import Counter

PROXY = "http://USER:PASS@GATEWAY:PORT"
TARGET = "https://your-target.com/health"   # must contain ANCHOR
ANCHOR = "ok"
ECHO = "https://api.ipify.org"
N = 30

def one(sess, url, anchor=None):
    t0 = time.time()
    r = sess.get(url, timeout=(5, 20))
    ms = (time.time() - t0) * 1000
    ok = (anchor is None) or (anchor in r.text)
    return ok, ms

sess = requests.Session()
sess.proxies = {"http": PROXY, "https": PROXY}
lat, ok_n, ips = [], 0, Counter()
for _ in range(N):
    try:
        ok, ms = one(sess, TARGET, ANCHOR)
        lat.append(ms)
        ok_n += ok
        ips[sess.get(ECHO, timeout=(5, 10)).text] += 1
    except Exception:
        lat.append(None)

ok_ms = [x for x in lat if x is not None]
report = {
    "ts": time.time(),
    "success_rate": round(ok_n / N, 3),
    "p50_ms": round(statistics.median(ok_ms)) if ok_ms else None,
    "p95_ms": round(sorted(ok_ms)[int(len(ok_ms)*0.95)-1]) if len(ok_ms) >= 20 else None,
    "unique_ips": len(ips),
    "requests": N,
}
print(json.dumps(report))

# alert thresholds
if report["success_rate"] < 0.9 or report["unique_ips"] < N * 0.8:
    exit(2)  # non-zero exit = cron mail / alert hook
The exit-IP loop reuses the same Session for simplicity. For a rotating gateway that rotates per session token, drop and recreate the session each iteration so every request lands on a fresh IP — otherwise your uniqueness metric measures your own connection reuse, not the pool.

Reading the numbers

Alerting that means something

Thresholds from the table above are starting points; tune them against a week of your own data. Wire the exit code into whatever you already run: cron mail, healthchecks.io, or a Slack webhook on the JSON line. Keep 30 days of history — it turns provider disputes ("the pool is fine") into a one-screenshot conversation.

FAQ

Why is status-code-based monitoring useless for proxies?

Because challenge pages, soft-404s and error JSON all return 200. Only asserting an expected anchor string in the body separates a real success from a block page.

How often should I run pool health checks?

Every 15-30 minutes is enough for trend detection; add a fast 3-request probe every 5 minutes if a scraping operation depends on the pool in real time.

What success rate should I expect from a residential pool?

Content-verified success above 95% is a reasonable expectation for a healthy pool; sustained readings below 90% justify a support ticket with your measured data.

How do I measure how many IPs a provider really has?

Send a large batch of requests through one rotating entry with a fresh session token each, echo the exit IP of every request, and count unique IPs. IPLight publishes exactly this measurement in its daily live pool report.

Want a reference for what a healthy pool looks like? IPLight publishes its measured pool depth — 215,000+ live IPs, 170+ countries — in the live pool report, updated daily. Plans from $1.20/GB.

Test on your own target list

Residential from $1.20/GB · static ISP from $4/IP per month · no monthly commitment. Create an account, top up a small balance and run your first requests in minutes.

Create account

Frequently asked questions

How much does it cost?

Dynamic residential traffic starts at $1.20/GB on the 100 GB tier ($120), dropping to $0.96/GB at 1,000 GB, $0.72/GB at 5,000 GB and $0.60/GB at 10,000 GB. Static residential IPs are $4/IP/month, or $4/IP/month. There are no setup fees or monthly platform fees.

Does traffic count both upload and download?

Yes - traffic is metered in both directions and 1 GB = 1,000 MB. The console shows an hourly usage breakdown per sub-account, so you can audit exactly what each job consumed. Disabling images and video in your crawler cuts usage significantly.

Is there a contract or minimum commitment?

No. Top up once and spend the balance across dynamic traffic, static IPs and unlocking. Paid orders keep their unit price even if the public price list changes later.

Which protocols are supported?

HTTP and SOCKS5 endpoints are provided, with username/password or IP-whitelist authentication. AdsPower, BitBrowser, Python, Node, Scrapy, Playwright and Puppeteer all connect directly.

What is the difference between ISP proxies and static residential proxies?

At IPLight they are the same product: real IP addresses registered to consumer internet service providers, dedicated to your account for the whole term. Some providers sell 'ISP proxies' that are actually datacenter ranges announced by an ISP - ours are checked as residential before they enter inventory.

Can I keep the same IP for months?

Yes. Choose a 30, 90 or 180-day term and the same IP stays assigned to your account for the full term, which is what makes ISP proxies suitable for account management and long-lived logins.

Popular proxy locations: All locations · USA · UK · Germany · Japan · Indonesia · Brazil · India · Russia
Popular products: Residential proxies · ISP proxies · SERP proxies · Static residential · Pricing
IPLight live residential pool: 215,000+ online IPs across 170+ countries & regions · dynamic residential from $1.20/GB · pool sizes measured in real time · updated 2026-11