aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_circuitbreaker_test.go
AgeCommit message (Collapse)AuthorFilesLines
2022-09-16refactor(shell): readability improvements (#3704)Ryan Russell1-1/+1
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-06-20remove go.uber.org/atomic石昌林1-28/+129
2022-06-17some code optimizations石昌林1-14/+131
2022-06-17add some unit tests and some code optimizes石昌林1-1/+68
2022-06-15add s3 circuit breaker support for 'simultaneous request count' and ↵石昌林1-0/+7
'simultaneous request bytes' limitations configure s3 circuit breaker by 'command_s3_circuitbreaker.go': usage eg: # Configure the number of simultaneous global (current s3api node) requests s3.circuit.breaker -global -type count -actions Write -values 1000 -apply # Configure the number of simultaneous requests for bucket x read and write s3.circuit.breaker -buckets -type count -actions Read,Write -values 1000 -apply # Configure the total bytes of simultaneous requests for bucket write s3.circuit.breaker -buckets -type bytes -actions Write -values 100MiB -apply # Disable circuit breaker config of bucket 'x' s3.circuit.breaker -buckets x -enable false -apply # Delete circuit breaker config of bucket 'x' s3.circuit.breaker -buckets x -delete -apply