2024-04-19 22:23:08 +08:00
rpc :
# API or other RPCs can access this RPC through this IP; if left blank, the internal network IP is obtained by default
2024-08-21 15:10:43 +08:00
registerIP :
2024-04-19 22:23:08 +08:00
# Listening IP; 0.0.0.0 means both internal and external IPs are listened to, if blank, the internal network IP is automatically obtained by default
listenIP : 0.0 .0 .0
2024-12-06 17:25:42 +08:00
# autoSetPorts indicates whether to automatically set the ports
2024-12-07 17:35:42 +08:00
# if you use in kubernetes, set it to false
2024-12-06 17:25:42 +08:00
autoSetPorts : true
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
2024-12-18 18:10:25 +08:00
ports :
2024-04-19 22:23:08 +08:00
prometheus :
# Whether to enable prometheus
enable : true
# Prometheus listening ports, must be consistent with the number of rpc.ports
2024-12-10 11:43:19 +08:00
# It will only take effect when autoSetPorts is set to false.
2024-12-18 18:10:25 +08:00
ports :
2025-11-05 15:12:06 +08:00
ratelimiter :
# Whether to enable rate limiting
enable : false
# WindowSize defines time duration per window
window : 20s
# BucketNum defines bucket number for each window
bucket : 500
# CPU threshold; valid range 0– 1000 (1000 = 100%)
cpuThreshold : 850
circuitBreaker :
enable : false
window : 5s # Time window size (seconds)
bucket : 100 # Number of buckets
success : 0.6 # Success rate threshold (0.6 means 60%)
request : 500 # Request threshold; circuit breaker evaluation occurs when reached