Are you an LLM? You can read better optimized documentation at /en\document\policygroup.md for this page in Markdown format
Policy groups
A policy group is a collection of policies and other policy groups. Loon picks one member of the group either manually or automatically. Groups are declared in the [Proxy Group] section of the configuration file and can be nested inside each other.
select
A manual group: you choose the active member yourself on the policy screen.
url-test
Every interval seconds Loon benchmarks all members of the group against the given URL and uses the fastest one.
Available parameters:
url— the URL to benchmark; Loon sends a header request to itinterval— benchmark interval in secondstolerance— in milliseconds. If the newly measured best member is withintoleranceof the previous best, the active member is not switched
fallback
Every interval seconds Loon benchmarks all members of the group against the given URL and uses the first one that is available.
Available parameters:
url— the URL to benchmark; Loon sends a header request to itinterval— benchmark interval in secondsmax-timeout— in milliseconds. A member whose benchmark exceeds this value is treated as unavailable and left out of the ranking
load-balance
Load balancing: a sub-policy is chosen automatically according to the selected algorithm.
Available parameters:
url— the URL to benchmark; Loon sends a header request to itinterval— benchmark interval in secondsmax-timeout— in milliseconds. A member whose benchmark exceeds this value is treated as unavailable and left out of the rankingalgorithm— the load balancing algorithmRandom— pick a sub-policy at randomPCC— based on Random, but requests to the same hostname are pinned to the same nodeRound-Robin— rotate through the sub-policies in order
