Skip to content

Commit

Permalink
feat: add throttle config of read/write request (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz authored Jan 28, 2022
1 parent a42ae44 commit 59dc6bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/server/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@
is_profile = true
profiler::size.request.server = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_PUT_ACK]
is_profile = true
Expand All @@ -554,6 +555,7 @@
is_profile = true
profiler::size.request.server = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_MULTI_PUT_ACK]
is_profile = true
Expand All @@ -563,6 +565,7 @@
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_REMOVE_ACK]
is_profile = true
Expand All @@ -572,6 +575,7 @@
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_MULTI_REMOVE_ACK]
is_profile = true
Expand All @@ -580,6 +584,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_INCR_ACK]
is_profile = true
Expand All @@ -588,6 +593,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_CHECK_AND_SET_ACK]
is_profile = true
Expand All @@ -596,6 +602,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_CHECK_AND_MUTATE_ACK]
is_profile = true
Expand All @@ -606,6 +613,7 @@
is_profile = true
profiler::size.response.server = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_GET_ACK]
is_profile = true
Expand All @@ -616,6 +624,7 @@
is_profile = true
profiler::size.response.server = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_MULTI_GET_ACK]
is_profile = true
Expand All @@ -624,6 +633,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_SORTKEY_COUNT_ACK]
is_profile = true
Expand All @@ -633,6 +643,7 @@
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
;rpc_request_dropped_before_execution_when_timeout = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_TTL_ACK]
is_profile = true
Expand All @@ -641,6 +652,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_GET_SCANNER_ACK]
is_profile = true
Expand All @@ -649,6 +661,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_SCAN_ACK]
is_profile = true
Expand All @@ -657,6 +670,7 @@
;rpc_request_throttling_mode = TM_DELAY
;rpc_request_delays_milliseconds = 50, 50, 50, 50, 50, 100
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_CLEAR_SCANNER_ACK]
is_profile = true
Expand Down
9 changes: 9 additions & 0 deletions src/server/config.min.ini
Original file line number Diff line number Diff line change
Expand Up @@ -179,54 +179,63 @@
[task.RPC_RRDB_RRDB_PUT]
is_profile = true
profiler::size.request.server = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_PUT_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_MULTI_PUT]
is_profile = true
profiler::size.request.server = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_MULTI_PUT_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_REMOVE]
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_REMOVE_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_MULTI_REMOVE]
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_MULTI_REMOVE_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_INCR]
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_INCR_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_CHECK_AND_SET]
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_CHECK_AND_SET_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_CHECK_AND_MUTATE]
is_profile = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_CHECK_AND_MUTATE_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_GET]
is_profile = true
profiler::size.response.server = true
rpc_request_throttling_mode = TM_REJECT

[task.RPC_RRDB_RRDB_GET_ACK]
is_profile = true

[task.RPC_RRDB_RRDB_MULTI_GET]
is_profile = true
profiler::size.response.server = true
rpc_request_throttling_mode = TM_REJECT

0 comments on commit 59dc6bd

Please sign in to comment.