Rule 描述一个监听端口以及接入流量的路由策略。
| 23 | DefaultPath = "config/setting.json" |
| 24 | |
| 25 | // These limits are intentionally conservative defaults. A rule may opt in |
| 26 | // to larger limits explicitly, while a missing value never means unlimited. |
| 27 | DefaultMaxConnections = 4096 |
| 28 | DefaultMaxConnectionsPerIP = 256 |
| 29 | DefaultMetricsListen = "127.0.0.1:9090" |
| 30 | DefaultHealthCheckInterval = 10_000 |
| 31 | DefaultHealthCheckTimeout = 2_000 |
| 32 | DefaultHealthCheckFailures = 3 |
| 33 | DefaultHealthCheckSuccesses = 2 |
| 34 | DefaultHedgeMinDelay = 25 |
| 35 | DefaultHedgeMaxDelay = 250 |
| 36 | |
| 37 | ModeNormal = "normal" |
| 38 | ModeRegex = "regex" |
| 39 | ModeBoost = "boost" |
| 40 | ModeRoundRobin = "roundrobin" |
nothing calls this directly
no outgoing calls
no test coverage detected