From a31d70e6dfbae654ca3751dfcf7b3d5a290d025a Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 19 Feb 2021 10:39:54 -0800 Subject: [PATCH] ensure-zookeeper: use a tmpfs This is helpful in testing situations which can see high amounts of write traffic. Change-Id: I69ff8116369c4ad40e2dc0c20af22370f3ee9927 --- roles/ensure-zookeeper/tasks/main.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/ensure-zookeeper/tasks/main.yaml b/roles/ensure-zookeeper/tasks/main.yaml index 6ea2e9fda..5c0a3efe4 100644 --- a/roles/ensure-zookeeper/tasks/main.yaml +++ b/roles/ensure-zookeeper/tasks/main.yaml @@ -28,6 +28,15 @@ state: link become: true +- name: Create a tmpfs for ZooKeeper + mount: + state: mounted + path: /tmp/zookeeper/version-2 + fstype: tmpfs + opts: "nodev,nosuid,size=500M" + src: "none" + become: true + - name: Setup Zookeeper config file copy: src: /opt/zookeeper/conf/zoo_sample.cfg