diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-10 13:10:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-10 13:10:10 -0700 |
| commit | b9365de47b04414e704cb62a3cfa9753e8c5ec0c (patch) | |
| tree | 45dd99cb3b58571372053ff79597259b707f6259 /weed/command/volume.go | |
| parent | 718052656ad8e47e72f1e32954f6aea9988fdbb3 (diff) | |
| download | seaweedfs-b9365de47b04414e704cb62a3cfa9753e8c5ec0c.tar.xz seaweedfs-b9365de47b04414e704cb62a3cfa9753e8c5ec0c.zip | |
fix volume server pprof
Diffstat (limited to 'weed/command/volume.go')
| -rw-r--r-- | weed/command/volume.go | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index 31f068f0a..d0fdd2ed1 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -11,10 +11,11 @@ import ( "strings" "time" - "github.com/chrislusf/seaweedfs/weed/util/grace" "github.com/spf13/viper" "google.golang.org/grpc" + "github.com/chrislusf/seaweedfs/weed/util/grace" + "github.com/chrislusf/seaweedfs/weed/pb" "github.com/chrislusf/seaweedfs/weed/security" "github.com/chrislusf/seaweedfs/weed/util/httpdown" @@ -33,15 +34,14 @@ var ( ) type VolumeServerOptions struct { - port *int - publicPort *int - folders []string - folderMaxLimits []int - ip *string - publicUrl *string - bindIp *string - masters *string - // pulseSeconds *int + port *int + publicPort *int + folders []string + folderMaxLimits []int + ip *string + publicUrl *string + bindIp *string + masters *string idleConnectionTimeout *int dataCenter *string rack *string @@ -55,6 +55,7 @@ type VolumeServerOptions struct { fileSizeLimitMB *int minFreeSpacePercent []float32 pprof *bool + // pulseSeconds *int } func init() { |
