Skip to content

Commit

Permalink
The maximum number of open file descriptors should be maxOpenFiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
gyliu513 committed Feb 3, 2018
1 parent 42076e8 commit 2bae12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bae12c

Please sign in to comment.