Tune bonding on odin
authorTom Hughes <tom@compton.nu>
Mon, 16 Oct 2017 17:45:09 +0000 (18:45 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 Oct 2017 17:45:09 +0000 (18:45 +0100)
cookbooks/networking/templates/default/interfaces.erb
roles/odin.rb

index 7ffd456..d0d4dd7 100644 (file)
@@ -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 %>
index dc5a612..aa5700e 100644 (file)
@@ -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]
         }
       },