From 2eb92d0c67f312d5700ab799797ef5a3ea76ddba Mon Sep 17 00:00:00 2001 From: mo3et Date: Mon, 22 Sep 2025 11:02:07 +0800 Subject: [PATCH] update ratelimiter and circuitbreaker config. --- config/openim-api.yml | 8 ++++---- config/openim-msggateway.yml | 16 ++++++++-------- config/openim-msgtransfer.yml | 16 ++++++++-------- config/openim-push.yml | 18 +++++++++--------- config/openim-rpc-auth.yml | 16 ++++++++-------- config/openim-rpc-conversation.yml | 16 ++++++++-------- config/openim-rpc-friend.yml | 16 ++++++++-------- config/openim-rpc-group.yml | 16 ++++++++-------- config/openim-rpc-msg.yml | 16 ++++++++-------- config/openim-rpc-third.yml | 16 ++++++++-------- config/openim-rpc-user.yml | 16 ++++++++-------- 11 files changed, 85 insertions(+), 85 deletions(-) diff --git a/config/openim-api.yml b/config/openim-api.yml index 71429f947..df0177d24 100644 --- a/config/openim-api.yml +++ b/config/openim-api.yml @@ -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 0–1000 (1000 = 100%) - cpuThreshold: 800 + cpuThreshold: 850 diff --git a/config/openim-msggateway.yml b/config/openim-msggateway.yml index 22033e49e..8ac07faae 100644 --- a/config/openim-msggateway.yml +++ b/config/openim-msggateway.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-msgtransfer.yml b/config/openim-msgtransfer.yml index 817a118e0..c6ea06803 100644 --- a/config/openim-msgtransfer.yml +++ b/config/openim-msgtransfer.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-push.yml b/config/openim-push.yml index e522a6003..58784f13d 100644 --- a/config/openim-push.yml +++ b/config/openim-push.yml @@ -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 0–1000 (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: diff --git a/config/openim-rpc-auth.yml b/config/openim-rpc-auth.yml index 1941f4155..09ceef0f4 100644 --- a/config/openim-rpc-auth.yml +++ b/config/openim-rpc-auth.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-rpc-conversation.yml b/config/openim-rpc-conversation.yml index 35e25fbf7..1135ffe6e 100644 --- a/config/openim-rpc-conversation.yml +++ b/config/openim-rpc-conversation.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-rpc-friend.yml b/config/openim-rpc-friend.yml index 35e25fbf7..1135ffe6e 100644 --- a/config/openim-rpc-friend.yml +++ b/config/openim-rpc-friend.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-rpc-group.yml b/config/openim-rpc-group.yml index 179a3ad69..154b149e1 100644 --- a/config/openim-rpc-group.yml +++ b/config/openim-rpc-group.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-rpc-msg.yml b/config/openim-rpc-msg.yml index 471a97d23..ffe8943df 100644 --- a/config/openim-rpc-msg.yml +++ b/config/openim-rpc-msg.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file diff --git a/config/openim-rpc-third.yml b/config/openim-rpc-third.yml index 09b8aad5b..f6fbee695 100644 --- a/config/openim-rpc-third.yml +++ b/config/openim-rpc-third.yml @@ -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 0–1000 (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 diff --git a/config/openim-rpc-user.yml b/config/openim-rpc-user.yml index 19df87935..c46db7f37 100644 --- a/config/openim-rpc-user.yml +++ b/config/openim-rpc-user.yml @@ -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 0–1000 (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 \ No newline at end of file + request: 500 # Request threshold; circuit breaker evaluation occurs when reached \ No newline at end of file