Skip to content

Commit

Permalink
Increase conntrack table size using sysctl
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Feb 8, 2017
1 parent 248323f commit 572e2ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nodeup/pkg/model/sysctls.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ limitations under the License.
package model

import (
"strings"

"k8s.io/kops/upup/pkg/fi"
"k8s.io/kops/upup/pkg/fi/nodeup/nodetasks"
"strings"
)

// SysctlBuilder set up our sysctls
Expand Down Expand Up @@ -94,6 +95,10 @@ func (b *SysctlBuilder) Build(c *fi.ModelBuilderContext) error {
"# Increase size of file handles and inode cache",
"fs.file-max = 2097152",
"",

"# Increase size of conntrack table size to avoid poor iptables performance",
"net.netfilter.nf_conntrack_max = 1000000",
"",
)
}

Expand Down

0 comments on commit 572e2ab

Please sign in to comment.