Logo
Rotation Engine

Rotation Policies

Configure session limits, rotate-on-status behavior, cooldown, quarantine, fallback, and concurrency.

Rotation policies control how aggressively the runtime changes proxies and how it treats failures.

Rotation Engine Policies

Balanced Rotation Policy

The default policy is rotation-policy-balanced.

SettingDefault
Startup validationDisabled
Expected status200
Request timeout20 seconds
Connect timeout12 seconds
Health check interval30 seconds
Max requests per session1
Max session seconds300
Max bytes per session50 MB
Sticky by target hostDisabled
Failure threshold2
Retry budget1
Rotate on statuses403, 429, 502, 503, 504
Cooldown30 seconds
Quarantine300 seconds
Max concurrent requests per proxy4
FallbackEnabled

The default Balanced Rotation policy cannot be deleted.

Policies that are in use cannot be deleted. Max bytes per session is normalized and supports very large caps, up to about 1 TiB.

Complete Policy Fields

FieldUse
Startup validationPre-probe proxies before runtime use.
Probe URLTarget used for health checks.
Expected status codesSuccessful probe statuses.
Request timeoutWhole request timeout for forwarded requests.
Connect timeoutDial and tunnel timeout.
Health intervalHow often proxies are health-checked.
Max requests/sessionRotates after a session uses a proxy this many times.
Max session secondsRotates after a session age limit.
Max bytes/sessionRotates after a session byte limit.
Sticky by target hostKeeps separate sessions per target host.
Failure thresholdRepeated failures before quarantine.
Retry budgetAlternate proxy attempts after route/dial failure.
Rotate-on statusesStatus codes that trigger rotation and session reset.
Cooldown secondsShort pause after a failure below quarantine threshold.
Quarantine secondsLonger pause after failure threshold.
Max concurrent requests/proxyPer-proxy active request limit.
Fallback enabledAllows fallback sources when primary sources are exhausted.

Key Policy Choices

NeedChange
New proxy every requestKeep max requests per session at 1.
Keep target sessions stableEnable sticky by target host and increase session limits.
Avoid bad proxies longerIncrease quarantine seconds.
Recover fasterLower cooldown or quarantine cautiously.
Reduce pressure on proxiesLower max concurrent requests per proxy.
React to target blocksKeep 403 and 429 in rotate-on status codes.

Cooldown vs Quarantine

Cooldown is a temporary pause after a failure. Quarantine is a stronger pause after the failure threshold is reached. The runtime avoids cooling and quarantined proxies while selecting candidates.

Aggressive rotation does not fix bad source quality. Remove consistently failing proxies from the source pool.

On this page