From e34afc0fa4894531018a026ee6a528bc8eac5296 Mon Sep 17 00:00:00 2001 From: Guang Ya Liu Date: Sat, 3 Feb 2018 13:05:01 +0800 Subject: [PATCH] The maximum number of open file descriptors should be maxOpenFiles. (#2031) --- internal/ingress/controller/nginx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index f55238c221..efee0b9ee8 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -513,7 +513,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error { wp = 1 } maxOpenFiles := (sysctlFSFileMax() / wp) - 1024 - glog.V(3).Infof("maximum number of open file descriptors : %v", sysctlFSFileMax()) + glog.V(3).Infof("maximum number of open file descriptors : %v", maxOpenFiles) if maxOpenFiles < 1024 { // this means the value of RLIMIT_NOFILE is too low. maxOpenFiles = 1024