-
Couldn't load subscription status.
- Fork 881
network: add network tuning plugin from CNI #2140
Conversation
|
omg sieht sehr cool aus On Fri, Feb 5, 2016 at 6:17 PM, Alban Crequy [email protected]
|
|
@alban very cool that you're working on this :) and potentially others. |
e0ee5ca to
eccd6fe
Compare
|
@slallema: updated :) |
|
looks good :) |
|
Nice @alban! Do you plan on integrating this to CNI too? |
|
@steveej yes, since this patch changes the CNI code in Godeps, I'll need to send a PR on CNI first before this can be merged in rkt. |
|
@alban okay let's go that route then |
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: rkt/rkt#2140
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: rkt/rkt#2140
|
I am suggesting this "tuning" network plugin to CNI: containernetworking/cni#117 |
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: rkt/rkt#2140
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: rkt/rkt#2140
|
Pending on containernetworking/cni#117 |
eccd6fe to
c5ccc3f
Compare
Allow users to tune net network parameters such as somaxconn.
With this patch, users can add a new network configuration:
> # cat /etc/rkt/net.d/mytuning.conf
> {
> "name": "mytuning",
> "type": "tuning",
> "sysctl": {
> "net.core.somaxconn": "500"
> }
> }
Then, start rkt with that configuration file:
> # rkt run --net=default,mytuning /tmp/mycontainer.aci
The value /proc/sys/net/core/somaxconn will be set to 500 in the pod but
will remain unchanged on the host.
Only sysctl parameters that belong to the network subsystem can be
modified.
|
containernetworking/cni#117 is merged, thanks @steveej I updated this PR. |
c5ccc3f to
24415bb
Compare
|
LGTM |
network: add network tuning plugin from CNI
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: rkt/rkt#2140
Allow users to tune net network parameters such as somaxconn.
With this patch, users can add a new network configuration:
Then, start rkt with that configuration file:
The value /proc/sys/net/core/somaxconn will be set to 500 in the pod but
will remain unchanged on the host.
Only sysctl parameters that belong to the network subsystem can be
modified.
/cc @slallema: In addition to
net.core.somaxconn, is there any other settings that would be useful to let users configure?/cc @steveej
Fixes #2075