aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
author石昌林 <changlin.shi@ly.com>2022-06-15 21:07:55 +0800
committer石昌林 <changlin.shi@ly.com>2022-06-15 21:07:55 +0800
commit78b372816935c663f7f56b92e0e79e37e99cd4d2 (patch)
treee5867fad83ef484f406f660097bbaf07258c6dcd /go.mod
parentb22ca85fbb674c445096b739af142dbf53dbd72b (diff)
downloadseaweedfs-78b372816935c663f7f56b92e0e79e37e99cd4d2.tar.xz
seaweedfs-78b372816935c663f7f56b92e0e79e37e99cd4d2.zip
add s3 circuit breaker support for 'simultaneous request count' and '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
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod3
1 files changed, 2 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index 2fbff4d37..455f07e41 100644
--- a/go.mod
+++ b/go.mod
@@ -149,6 +149,7 @@ require (
require (
github.com/Jille/raft-grpc-transport v1.2.0
+ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
github.com/arangodb/go-driver v1.3.2
github.com/fluent/fluent-logger-golang v1.9.0
github.com/hanwen/go-fuse/v2 v2.1.0
@@ -156,6 +157,7 @@ require (
github.com/hashicorp/raft-boltdb v0.0.0-20220329195025-15018e9b97e0
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.1.2
github.com/ydb-platform/ydb-go-sdk/v3 v3.25.3
+ go.uber.org/atomic v1.9.0
)
require (
@@ -211,7 +213,6 @@ require (
github.com/ydb-platform/ydb-go-yc-metadata v0.5.2 // indirect
go.etcd.io/etcd/api/v3 v3.5.4 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
- go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/zap v1.21.0 // indirect
golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57 // indirect