Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f87faa58
Commit
f87faa58
authored
Aug 13, 2018
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make hashsize setting optional
parent
9d40deeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
conntrack.go
cmd/kube-proxy/app/conntrack.go
+4
-1
No files found.
cmd/kube-proxy/app/conntrack.go
View file @
f87faa58
...
@@ -81,7 +81,10 @@ func (rct realConntracker) SetMax(max int) error {
...
@@ -81,7 +81,10 @@ func (rct realConntracker) SetMax(max int) error {
}
}
// TODO: generify this and sysctl to a new sysfs.WriteInt()
// TODO: generify this and sysctl to a new sysfs.WriteInt()
glog
.
Infof
(
"Setting conntrack hashsize to %d"
,
max
/
4
)
glog
.
Infof
(
"Setting conntrack hashsize to %d"
,
max
/
4
)
return
writeIntStringFile
(
"/sys/module/nf_conntrack/parameters/hashsize"
,
max
/
4
)
if
err
:=
writeIntStringFile
(
"/sys/module/nf_conntrack/parameters/hashsize"
,
max
/
4
);
err
!=
nil
{
glog
.
Errorf
(
"failed to set conntrack hashsize to %d: %v"
,
max
/
4
,
err
)
}
return
nil
}
}
func
(
rct
realConntracker
)
SetTCPEstablishedTimeout
(
seconds
int
)
error
{
func
(
rct
realConntracker
)
SetTCPEstablishedTimeout
(
seconds
int
)
error
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment