# 共享池至少为 Gateway 保留 100 个符合提取条件的可用 Proxy。 version: 1 security: {requireProtectionOnPublicListen: true} gateway: {enabled: true, listen: '127.0.0.1:8080', auth: {mode: none}} distribution: enabled: true listen: 127.0.0.1:8081 auth: {mode: none} clientIdentification: {mode: sourceIP} extraction: fulfillment: partial maxCountPerRequest: 100 minRemainingTTL: 30s maxHealthCheckAge: 15s reserveForGateway: 100 routing: - name: gateway enabled: true purpose: gateway match: {hostRegex: '.*'} upstreams: [provider-a] strategy: {type: leastConnections} onUnavailable: {action: reject} - name: extract enabled: true purpose: extract match: {hostRegex: '.*'} upstreams: [provider-a] strategy: {type: random} onUnavailable: {action: reject} upstreams: provider-a: enabled: true exposure: [gateway, extract] provider: {billingMode: subscription, protocols: [http]} api: {url: https://provider-a.example/proxies, method: GET, auth: {type: none}, template: '{{.}}'} proxyAuth: {type: response} pool: {maxSize: 2000} capacity: {maxConcurrencyPerProxy: 10} lifecycle: {ttl: 3m, allocationSafetyMargin: 20s} fetch: {requestInterval: 1s, timeout: 3s, maxAttempts: 3, maxInFlight: 1} check: {interval: 15s, jitter: 20, maxInFlight: 200, timeout: 2s, maxAttempts: 2, maxConsecutiveFailures: 3}