MCPcopy Create free account
hub / github.com/cppla/moto / Rule

Struct Rule

config/setting.go:25–37  ·  view source on GitHub ↗

Rule 描述一个监听端口以及接入流量的路由策略。

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected