From b8cf1837e9a270d5e9fb261d6ef1a14eb3bad0a4 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 19 Jul 2018 16:28:52 +0200 Subject: [PATCH] Fix too small ARP/ND cache --- roles/arp-cache/tasks/main.yml | 11 +++++++++++ site.yml | 25 +++++++++++++------------ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 roles/arp-cache/tasks/main.yml diff --git a/roles/arp-cache/tasks/main.yml b/roles/arp-cache/tasks/main.yml new file mode 100644 index 0000000..de0336c --- /dev/null +++ b/roles/arp-cache/tasks/main.yml @@ -0,0 +1,11 @@ +--- + +- name: Configure ARP/ND cache + sysctl: name={{ item.key }} value={{ item.value }} state=present + with_items: + - { key: 'net.ipv4.neigh.default.gc_thresh1', value: 2048 } + - { key: 'net.ipv4.neigh.default.gc_thresh2', value: 4096 } + - { key: 'net.ipv4.neigh.default.gc_thresh3', value: 8192 } + - { key: 'net.ipv6.neigh.default.gc_thresh1', value: 2048 } + - { key: 'net.ipv6.neigh.default.gc_thresh2', value: 4096 } + - { key: 'net.ipv6.neigh.default.gc_thresh3', value: 8192 } diff --git a/site.yml b/site.yml index ba2dbea..eb476e3 100644 --- a/site.yml +++ b/site.yml @@ -11,18 +11,19 @@ - name: Setup gateway servers hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net] roles: - - gw-admin-ssh-keys - - batman - - bird - - fastd - - mesh-interfaces - - exit-ipv4 - - dns - - radvd - - dhcpd - - respondd - - yanic - - web-gw + - gw-admin-ssh-keys + - arp-cache + - batman + - bird + - fastd + - mesh-interfaces + - exit-ipv4 + - dns + - radvd + - dhcpd + - respondd + - yanic + - web-gw - name: Setup confluence server hosts: confluence.regensburg.freifunk.net