Page loaded: /blog/how-the-pool-picks-your-node
Back to MTProxy.cloud

Routing guide

How the pool selects a proxy server

The active-server candidate chain, weighted scoring, report penalties, and five-minute TCP checks behind proxy selection.

· 6 min read

01The candidate chain

A normal selection first queries active, non-trial servers with a health score above 70. Only if that database query returns zero rows does the service query any active, non-trial server; only if the second query also returns zero rows can it try the most recent non-trial server previously issued to that user.

After that query-level fallback chain, servers without a usable connection endpoint are removed. If no candidate remains, the request fails; the service does not run a later fallback merely because rows returned by an earlier query lacked usable endpoints.

This fallback behavior is why a score below 70 cannot be described as an absolute guarantee that an active server will never be returned.

02How each candidate is scored

A candidate starts with its health score and loses half a point for each current active user. This gives healthier, less-loaded servers more weight without treating load as a measured network-latency result.

For a country-targeted request, a tunneled server aimed at that country gains 40 points, a matching country tag gains 15, and a matching operator in that country gains 25. A tunnel aimed at a different country loses 10. A legacy request with no country selection can apply a five-point tunnel penalty.

Recent reports add context. Every matching report from the last seven days for the requested country or operator subtracts four points from that server’s routing score.

03Weighted choice, not nearest-node lookup

After scoring, the service performs a weighted random draw. Every candidate receives at least one unit of weight, while higher scores make a server more likely to be selected. The highest score is not guaranteed to win every request.

No latency probe runs in the request path, and the selection does not calculate the geographically nearest server. Terms such as “nearest in 25 ms,” latency histogram, or guaranteed instant failover do not describe this implementation.

04What a user report changes

A valid report reduces the server’s global health score by five and records the country, operator, city, and connection context that the user supplied. That report can then contribute to the seven-day contextual routing penalty.

Reports are sent to administrators for review; they do not automatically suspend a server. Enough reports can move a server out of the primary above-70 set, although the active-server fallback still exists when the healthy set is empty.

05Five-minute TCP health checks

When health monitoring is enabled and the platform is not in maintenance mode, the worker is scheduled every five minutes to check eligible server sockets with a TCP connection. It is not a continuous MTProto handshake or a per-request latency measurement.

Three consecutive failed checks move an active server to failed and schedule it out of earnings eligibility. Three consecutive successful checks recover a failed server to active and restore eligibility. The entire run is skipped when health monitoring is globally disabled or maintenance mode is active; otherwise, servers without a directly probeable IP and managed servers whose monitoring toggle is off are skipped.

06What proxy users experience

Site proxy issuance requires an authenticated user. Bot issuance authenticates the requester’s Telegram identity and can create or link a platform user before issuing the proxy; it does not require a separately completed site sign-up.

Requests made within the five-minute cooldown normally reissue the user’s previous proxy when that endpoint is still active and usable. A later request can be routed again, but the service does not promise connection-level instant failover after a proxy has been issued.