new plugin: tuning
authorAlban Crequy <alban@kinvolk.io>
Mon, 8 Feb 2016 22:28:15 +0000 (23:28 +0100)
committerAlban Crequy <alban@kinvolk.io>
Thu, 18 Feb 2016 14:29:12 +0000 (15:29 +0100)
commitf49145d5ff6b2c48fe243b74be240492ba75dec3
tree642497af32f9e627d98c60ef8963c2d67e4cad0a
parent48849bd3e38e0537a826cf9f30869bd28c2ca151
new plugin: tuning

Allow users to tune net network parameters such as somaxconn.

With this patch, users can add a new network configuration:

> {
>   "name": "mytuning",
>   "type": "tuning",
>   "sysctl": {
>           "net.core.somaxconn": "500"
>   }
> }

The value /proc/sys/net/core/somaxconn will be set to 500 in the network
namespace but will remain unchanged on the host.

Only sysctl parameters that belong to the network subsystem can be
modified.

Related to: https://github.com/coreos/rkt/pull/2140
Documentation/tuning.md [new file with mode: 0644]
plugins/meta/tuning/tuning.go [new file with mode: 0644]
test