Преглед изворни кода

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

ovs-dpdk should work without system reboot
pull/146/head
Filip Pytloun пре 6 година
родитељ
комит
1ba71ad1dd
No account linked to committer's email address
2 измењених фајлова са 17 додато и 0 уклоњено
  1. +10
    -0
      linux/network/dpdk.sls
  2. +7
    -0
      linux/system/hugepages.sls

+ 10
- 0
linux/network/dpdk.sls Прегледај датотеку

@@ -9,6 +9,7 @@ linux_dpdk_pkgs:
linux_dpdk_kernel_module:
kmod.present:
- name: {{ network.dpdk.driver }}
- persist: true
- require:
- pkg: linux_dpdk_pkgs
- require_in:
@@ -73,6 +74,15 @@ linux_network_dpdk_ovs_option_{{ option }}:

{%- 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.running:
- name: openvswitch-switch

+ 7
- 0
linux/system/hugepages.sls Прегледај датотеку

@@ -29,6 +29,13 @@ hugepages_mount_{{ hugepages_type }}:
- mkmnt: true
- 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 %}

{%- endfor %}

Loading…
Откажи
Сачувај