Browse Source

Merge pull request #145 from alexandruavadanii/ovs-dpdk-alternatives

ovs-dpdk should work without system reboot
pull/146/head
Filip Pytloun 6 years ago
parent
commit
1ba71ad1dd
No account linked to committer's email address
2 changed files with 17 additions and 0 deletions
  1. +10
    -0
      linux/network/dpdk.sls
  2. +7
    -0
      linux/system/hugepages.sls

+ 10
- 0
linux/network/dpdk.sls View File

linux_dpdk_kernel_module: linux_dpdk_kernel_module:
kmod.present: kmod.present:
- name: {{ network.dpdk.driver }} - name: {{ network.dpdk.driver }}
- persist: true
- require: - require:
- pkg: linux_dpdk_pkgs - pkg: linux_dpdk_pkgs
- require_in: - require_in:


{%- endfor %} {%- endfor %}


openvswitch_dpdk_ovs_alternative:
alternatives.remove:
- name: ovs-vswitchd
- path: /usr/lib/openvswitch-switch/ovs-vswitchd
- require:
- pkg: openvswitch_dpdk_pkgs
- watch_in:
- service: service_openvswitch

service_openvswitch: service_openvswitch:
service.running: service.running:
- name: openvswitch-switch - name: openvswitch-switch

+ 7
- 0
linux/system/hugepages.sls View File

- mkmnt: true - mkmnt: true
- opts: mode=775,pagesize={{ hugepages.size }} - opts: mode=775,pagesize={{ hugepages.size }}


# Make hugepages available right away with a temporary systctl write
# This will be handled via krn args after reboot, so don't use `sysctl.present`
hugepages_sysctl_vm_nr_hugepages:
cmd.run:
- name: "sysctl vm.nr_hugepages={{ hugepages.count }}"
- unless: "sysctl vm.nr_hugepages | grep -qE '{{ hugepages.count }}'"

{%- endif %} {%- endif %}


{%- endfor %} {%- endfor %}

Loading…
Cancel
Save