modfiied to support more users open files. 43/18743/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Tue, 16 Aug 2016 15:46:29 +0000 (10:46 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 16 Aug 2016 15:47:11 +0000 (10:47 -0500)
Change-Id: Ic90aa296539da8c6559befc816fa0ca80093a3b4
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/02-deploybundle.sh

index deaa51e..4b537c2 100755 (executable)
@@ -113,7 +113,10 @@ count=`juju status nodes --format=short | grep nodes | wc -l`
 
 c=0
 while [ $c -lt $count ]; do
-    juju ssh nodes/$c 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances'
+    juju ssh nodes/$c 'echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p' || true
+    juju ssh nodes-compute/$c 'echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p' || true
+    juju ssh nodes/$c 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances' || true
+    juju ssh nodes-compute/$c 'echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances' || true
     let c+=1
 done