More verbose S3 logging

This commit is contained in:
Leonid Bugaev
2020-03-06 18:04:16 +03:00
parent df143cdeec
commit fa56e7644c
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -79,11 +79,14 @@ type HTTPOutputConfig struct {
CompatibilityMode bool
RequestGroup string
Debug bool
TrackResponses bool
}
// HTTPOutput plugin manage pool of workers which send request to replayed server
// By default workers pool is dynamic and starts with 10 workers
// You can specify fixed number of workers using `--output-http-workers`
@@ -180,7 +183,7 @@ func (o *HTTPOutput) sessionWorkerMaster() {
now := time.Now()
for id, w := range o.workerSessions {
if !w.lastActivity.IsZero() && now.Sub(w.lastActivity) >= 60*time.Second {
if !w.lastActivity.IsZero() && now.Sub(w.lastActivity) >= 120*time.Second {
w.stop <- true
delete(o.workerSessions, id)
atomic.AddInt64(&o.activeWorkers, -1)