warning after install ( amazon linux )
Closed this issue · 2 comments
2015-06-11 09:27:03.381 [warning] <0.320.0> riak_kv_env: sysctl net.core.wmem_default is 212992, should be at least 8388608)
2015-06-11 09:27:03.381 [warning] <0.320.0> riak_kv_env: sysctl net.core.rmem_default is 212992, should be at least 8388608)
2015-06-11 09:27:03.381 [warning] <0.320.0> riak_kv_env: sysctl net.core.wmem_max is 212992, should be at least 8388608)
2015-06-11 09:27:03.382 [warning] <0.320.0> riak_kv_env: sysctl net.core.rmem_max is 212992, should be at least 8388608)
2015-06-11 09:27:03.382 [warning] <0.320.0> riak_kv_env: sysctl net.core.netdev_max_backlog is 3072, should be at least 10000)
Need be able to configure this settings too.
The reason we don't do these explicitly in the cookbook is that at a point in history we decided this was bad because no two servers or networks or interfaces are the same and picking a sane default may as well be rolling a random number.
That said, generally you will want to up these for good performance but we are already treading carefully with regard to being prescriptive about setting sysctl settings. I've been of the mind to remove it entirely and let the users set that themselves or make it a completely optional recipe as many setups already have a cookbook doing this system wide. There just isn't a good "one size fits all" solution but I'll bump this in the interest of burying the warnings for now.
You can also fix this out of band by setting the sysctl attributes yourself.
The above comment still applies but I've added those tunings to the optional riak::sysctl
recipe @ 40c8628