|
@ -24,6 +24,7 @@ type VolumeServer struct { |
|
|
inFlightDownloadDataSize int64 |
|
|
inFlightDownloadDataSize int64 |
|
|
concurrentUploadLimit int64 |
|
|
concurrentUploadLimit int64 |
|
|
concurrentDownloadLimit int64 |
|
|
concurrentDownloadLimit int64 |
|
|
|
|
|
inFlightUploadDataLimitCond *sync.Cond |
|
|
inFlightDownloadDataLimitCond *sync.Cond |
|
|
inFlightDownloadDataLimitCond *sync.Cond |
|
|
|
|
|
|
|
|
SeedMasterNodes []pb.ServerAddress |
|
|
SeedMasterNodes []pb.ServerAddress |
|
@ -84,6 +85,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, |
|
|
fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024, |
|
|
fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024, |
|
|
isHeartbeating: true, |
|
|
isHeartbeating: true, |
|
|
stopChan: make(chan bool), |
|
|
stopChan: make(chan bool), |
|
|
|
|
|
inFlightUploadDataLimitCond: sync.NewCond(new(sync.Mutex)), |
|
|
inFlightDownloadDataLimitCond: sync.NewCond(new(sync.Mutex)), |
|
|
inFlightDownloadDataLimitCond: sync.NewCond(new(sync.Mutex)), |
|
|
concurrentUploadLimit: concurrentUploadLimit, |
|
|
concurrentUploadLimit: concurrentUploadLimit, |
|
|
concurrentDownloadLimit: concurrentDownloadLimit, |
|
|
concurrentDownloadLimit: concurrentDownloadLimit, |
|
|