Upstream keepalive time (#8319)
* nginx 1.19.10 keepalive_time parameter * nginx v1.19.10 base image * keepalive_time documentation * base image * restore base image * e2e test * replace default value in test
This commit is contained in:
parent
db4aeea723
commit
d4b9b486e6
4 changed files with 29 additions and 6 deletions
|
|
@ -74,6 +74,15 @@ var _ = framework.DescribeSetting("keep-alive keep-alive-requests", func() {
|
|||
})
|
||||
})
|
||||
|
||||
ginkgo.It("should set keepalive time to upstream server", func() {
|
||||
f.UpdateNginxConfigMapData("upstream-keepalive-time", "75s")
|
||||
|
||||
f.WaitForNginxConfiguration(func(server string) bool {
|
||||
match, _ := regexp.MatchString(`upstream\supstream_balancer\s\{[\s\S]*keepalive_time\s*75s;`, server)
|
||||
return match
|
||||
})
|
||||
})
|
||||
|
||||
ginkgo.It("should set the request count to upstream server through one keep alive connection", func() {
|
||||
f.UpdateNginxConfigMapData("upstream-keepalive-requests", "200")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue