#!/bin/bash
#
# chkconfig: 35 99 12
# description: Configure sysctl settings to optimize Gluster I/O
#

sysctl -w vm.swappiness=0;
sysctl -w vm.vfs_cache_pressure=100000;
sysctl -w vm.dirty_background_ratio=1;
#sysctl -w kernel.core_pattern='|/opt/gvsa/bin/gluster-core-capture %p.%u.%t.%e';

modprobe fuse;

if ! grep -q Gluster /etc/security/limits.conf ; then
    echo '* - core unlimited # added by Gluster' >> /etc/security/limits.conf
fi
ulimit -c unlimited

#cat /opt/gvsa/etc/motd.gluster > /etc/motd;
