From a12bd631f0eed60f140864d7fbc1b61b54d17b43 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 16 Oct 2017 18:45:09 +0100 Subject: [PATCH] Tune bonding on odin --- cookbooks/networking/templates/default/interfaces.erb | 3 +++ roles/odin.rb | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/cookbooks/networking/templates/default/interfaces.erb b/cookbooks/networking/templates/default/interfaces.erb index 7ffd456de..d0d4dd7c8 100644 --- a/cookbooks/networking/templates/default/interfaces.erb +++ b/cookbooks/networking/templates/default/interfaces.erb @@ -50,6 +50,9 @@ iface <%= interface[:interface] %> <%= interface[:family] %> static bond-miimon <%= interface[:bond][:miimon] || 100 %> <% if interface[:bond][:xmithashpolicy] -%> bond_xmit_hash_policy <%= interface[:bond][:xmithashpolicy] %> +<% end -%> +<% if interface[:bond][:lacprate] -%> + bond-lacp-rate <%= interface[:bond][:lacprate] %> <% end -%> bond-downdelay <%= interface[:bond][:downdelay] || 200 %> bond-updelay <%= interface[:bond][:updelay] || 200 %> diff --git a/roles/odin.rb b/roles/odin.rb index dc5a612d3..aa5700e32 100644 --- a/roles/odin.rb +++ b/roles/odin.rb @@ -12,6 +12,10 @@ default_attributes( :prefix => "23", :gateway => "130.225.254.97", :bond => { + :mode => "802.3ad", + :miimon => "100", + :xmithashpolicy => "layer3+4", + :lacprate => "fast", :slaves => %w[eno1 eno2] } }, -- 2.43.2