Changing proxy providers is not a credential swap. It is a production systems change involving network identity, authentication, routing, sessions, DNS behavior, retry policy, compliance, and cost. A provider that looks faster in a dashboard can still fail your actual workload because country selection, sticky-session semantics, error codes, or upstream address pools differ.

Parallel internet routes carrying data through a controlled migration junction

This runbook turns the change into a measurable, reversible migration. Use it for residential, rotating, ISP, datacenter, IPv4, IPv6, HTTP, HTTPS, or SOCKS proxy services. Test only workloads and destinations you are authorized to access.

1. Inventory every dependency before testing

Build a consumer map. For each crawler, verification job, research pipeline, browser worker, or API integration, record:

  • gateway hostname and port;
  • authentication method and secret owner;
  • country, region, city, ASN, or session parameters;
  • HTTP, HTTPS, SOCKS5, IPv4, and IPv6 requirements;
  • remote-DNS expectations;
  • connection, read, and overall deadlines;
  • concurrency and request-rate limits;
  • retryable status codes and maximum attempts;
  • sticky-session duration and state stored behind it;
  • IP allowlists, firewalls, and monitoring dependencies.

Do not copy credentials into the migration document. Reference the approved secret location and its owner. The inventory should reveal hidden consumers before the old endpoint is retired.

2. Define success and rollback before cutover

Choose workload-level service indicators, not a single average latency. A useful scorecard includes successful responses, connection failures, proxy-authentication failures, target throttling, p50 and p95 latency, bytes transferred, unique usable exits, geography accuracy, session survival, and cost per successful request.

Set explicit gates. For example, pause promotion if the new path increases terminal failures by more than an agreed margin, breaks session continuity, produces an unexpected geography mismatch, or exceeds the allowed cost per successful result. Define who can declare rollback and how quickly routing can return to the old path.

For a reusable trial scorecard, see the proxy trial acceptance test and proxy SLA validation guide.

3. Verify that the supply is actually different

A new brand does not guarantee a different network. Compare observed ASNs, subnets, geography, protocol behavior, and churn patterns across representative time windows. Look for excessive overlap and concentration. If both services depend heavily on the same upstream networks, the migration may not reduce correlated failure risk.

Run the proxy ASN concentration audit against both samples. Judge diversity against the business requirement: a research job needing broad regional coverage has a different acceptable profile from a stable account session.

4. Build a normalized benchmark

Test both providers with the same destinations, request mix, regions, concurrency, timeout policy, payload sizes, and observation windows. Warm-up traffic should not be mixed with steady-state results. Separate provider failures from target responses and client-side timeouts.

Compare successful work, not purchased bandwidth alone. Record the effective cost per completed page, verified impression, or accepted dataset row. The cost per successful request method prevents an apparently cheap plan from winning because failed attempts were ignored.

5. Shadow representative traffic safely

Before serving production results from the new path, replay a representative, authorized sample in shadow mode. Suppress state-changing actions, duplicate submissions, purchases, messages, and other side effects. Compare response structure, status distribution, latency, geography, and session behavior.

Shadow traffic should have its own rate budget. It must not double the load placed on a destination or violate its terms. Redact secrets and personal data from comparison logs.

6. Canary by workload, not randomly by request

Move a small, low-risk cohort first. A practical progression is 1%, 5%, 20%, 50%, then 100%, with a full observation window at every stage. Cohorts should be stable: route an entire job, tenant, geography, or session to one provider. Randomly switching individual requests can destroy session continuity and make failures hard to attribute.

At each gate, compare the canary with a concurrent control group on the old path. Promotion requires clean evidence, not merely the absence of alerts.

7. Drain sticky sessions

Do not move an active sticky session between providers. Stop assigning new sessions to the old pool, allow existing sessions to finish or expire, and send only new sessions to the canary pool. Track the number and age of remaining sessions so cutover is based on state rather than a guessed delay.

Validate session behavior independently with the residential proxy session stickiness test. If a workflow binds cookies, fingerprints, and network identity, migrate them as one unit.

8. Reclassify errors and cap retries

Providers may represent the same condition differently: an authentication issue, depleted region, connection reset, target throttle, or gateway overload may surface as different status codes. Build an error mapping before promotion. Never treat every 4xx or 5xx response as retryable.

Use exponential backoff with jitter, a strict attempt cap, and a shared retry budget. When the new path degrades, automatic retries must not multiply a small incident into a destination or cost spike.

9. Keep rollback independent and tested

Maintain the old route, credentials, allowlists, monitoring, and capacity throughout the rollback window. Test the routing switch before the first canary. Rollback should restore a known-good configuration without rebuilding it during an incident.

After 100% cutover, observe at least one complete business cycle. Then stop new use of old credentials, confirm no consumers remain, remove obsolete allowlists, revoke secrets through the approved system, and close overlapping capacity. Record the final bill so the migration's cost is visible.

Suggested timeline

  • T-14 days: inventory consumers, define SLOs, select test regions, and prepare rollback.
  • T-7 days: run normalized benchmarks and supply-overlap checks.
  • T-2 days: shadow representative traffic and correct error mappings.
  • Cutover: progress through canary gates; drain rather than move sessions.
  • T+1 day: review overnight workloads, regional coverage, and cost.
  • T+7 days: confirm no old consumers, revoke old credentials, and close overlap.

Acceptance checklist

  • All consumers and owners are accounted for.
  • The test uses identical workload and timeout settings.
  • Supply overlap and ASN concentration are understood.
  • Success, latency, geography, sessions, and unit cost meet the gate.
  • Retry behavior has an attempt cap and global budget.
  • Active sessions remain on their original provider until drained.
  • Rollback has been exercised and does not depend on the new provider.
  • Old credentials remain only for the approved rollback window.
  • Compliance, destination rules, and data-handling requirements are documented.

FAQ

Can DNS or protocol behavior change after migration?

Yes. Test where DNS resolution occurs, IPv4 and IPv6 selection, SOCKS5 remote DNS, TLS connectivity, and connection reuse. A successful basic request does not prove the production protocol path is equivalent.

How long should a canary stage run?

Long enough to cover the workload's natural variability, including peak concurrency, important regions, and at least one scheduled job cycle. A low-volume cohort may need more time than a high-volume one.

When is the old provider safe to remove?

Only after every consumer is verified on the new path, the rollback window has closed, old-session count is zero, monitoring shows no hidden traffic, and credentials can be revoked without losing recovery options.

Compliance note

Proxy infrastructure does not grant permission to access a system. Respect applicable law, contracts, robots and rate policies, account rules, privacy obligations, and destination terms. Use least-privilege credentials, minimize retained data, and maintain an auditable owner for every production workload.