mirror of https://github.com/k3s-io/k3s
If you can't set hashsize on nf_conntrack don't fail
parent
a35032f197
commit
a33c7a476c
|
@ -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()
|
||||||
klog.Infof("Setting conntrack hashsize to %d", max/4)
|
klog.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 {
|
||||||
|
klog.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 {
|
||||||
|
|
Loading…
Reference in New Issue