Merge pull request #536 from weaveworks/loadtester-timeout

loadtester: set write timeout
This commit is contained in:
Stefan Prodan
2020-03-30 12:01:51 +03:00
committed by GitHub
5 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
name: loadtester
version: 0.14.0
appVersion: 0.14.0
version: 0.15.0
appVersion: 0.15.0
kubeVersion: ">=1.11.0-0"
engine: gotpl
description: Flagger's load testing services based on rakyll/hey and bojand/ghz that generates traffic during canary analysis when configured as a webhook.

View File

@@ -2,7 +2,7 @@ replicaCount: 1
image:
repository: weaveworks/flagger-loadtester
tag: 0.14.0
tag: 0.15.0
pullPolicy: IfNotPresent
podAnnotations:

View File

@@ -11,7 +11,7 @@ import (
"go.uber.org/zap"
)
var VERSION = "0.14.0"
var VERSION = "0.15.0"
var (
logLevel string
port string

View File

@@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: loadtester
image: weaveworks/flagger-loadtester:0.14.0
image: weaveworks/flagger-loadtester:0.15.0
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@@ -342,7 +342,7 @@ func ListenAndServe(port string, timeout time.Duration, logger *zap.SugaredLogge
Addr: ":" + port,
Handler: mux,
ReadTimeout: 5 * time.Second,
WriteTimeout: 1 * time.Minute,
WriteTimeout: timeout,
IdleTimeout: 15 * time.Second,
}