update ratelimiter and circuitbreaker config.

This commit is contained in:
mo3et 2025-09-22 11:02:07 +08:00
parent d3e72347e2
commit 2eb92d0c67
11 changed files with 85 additions and 85 deletions

View File

@ -20,10 +20,10 @@ prometheus:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850

View File

@ -29,17 +29,17 @@ longConnSvr:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -9,17 +9,17 @@ prometheus:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -12,24 +12,24 @@ rpc:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached
prometheus:
# Enable or disable Prometheus monitoring
enable: true
enable: false
# List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
# It will only take effect when autoSetPorts is set to false.
ports:

View File

@ -23,17 +23,17 @@ tokenPolicy:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -19,17 +19,17 @@ prometheus:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -19,17 +19,17 @@ prometheus:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -22,17 +22,17 @@ enableHistoryForNewMembers: true
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -23,17 +23,17 @@ friendVerify: false
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
requestThreshold: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached

View File

@ -19,20 +19,20 @@ prometheus:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached
object:
# Use MinIO as object storage, or set to "cos", "oss", "kodo", "aws", while also configuring the corresponding settings

View File

@ -19,17 +19,17 @@ prometheus:
ratelimiter:
# Whether to enable rate limiting
enable: true
enable: false
# WindowSize defines time duration per window
window: 10s
window: 20s
# BucketNum defines bucket number for each window
bucket: 100
bucket: 500
# CPU threshold; valid range 01000 (1000 = 100%)
cpuThreshold: 800
cpuThreshold: 850
circuitBreaker:
enable: true
window: 3s # Time window size (seconds)
bucket: 10 # Number of buckets
enable: false
window: 5s # Time window size (seconds)
bucket: 100 # Number of buckets
success: 0.6 # Success rate threshold (0.6 means 60%)
request: 100 # Request threshold; circuit breaker evaluation occurs when reached
request: 500 # Request threshold; circuit breaker evaluation occurs when reached