Skip to content

Instantly share code, notes, and snippets.

@earino
Last active August 29, 2023 01:55
Show Gist options
  • Save earino/d5a2f76ee64952bb28b7 to your computer and use it in GitHub Desktop.
Save earino/d5a2f76ee64952bb28b7 to your computer and use it in GitHub Desktop.
vertica on digitalocean
#!/bin/bash
echo deadline > /sys/block/vda/queue/scheduler
echo deadline > /sys/block/vda/queue/scheduler
echo 'echo deadline > /sys/block/vda/queue/scheduler' >> /etc/rc.local
/sbin/blockdev --setra 2048 /dev/vda
echo '/sbin/blockdev --setra 2048 /dev/vda' >> /etc/rc.local
sudo dd if=/dev/zero of=/swapfile bs=1k count=2048k
sudo mkswap /swapfile
sudo swapon /swapfile
yum install -y ntp
/sbin/service ntpd restart
/sbin/chkconfig ntpd on
yum install -y mcelog
yum install -y sysstat
yum install -y pstack
yum install -y wget
if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
fi
cd /etc/yum.repos.d
wget http://s3tools.org/repo/RHEL_6/s3tools.repo
yum install -y s3cmd
#rpm -Uvh vertica-7.0.2-1.x86_64.RHEL5.rpm
#/opt/vertica/sbin/install_vertica --hosts $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment