Skip to content

Instantly share code, notes, and snippets.

@pjvds
Last active August 29, 2015 14:13
Show Gist options
  • Save pjvds/0beffe7097382c4f3a9f to your computer and use it in GitHub Desktop.
Save pjvds/0beffe7097382c4f3a9f to your computer and use it in GitHub Desktop.
provision fdb server
yum update -y
yum localinstall -y https://foundationdb.com/downloads/token/6af12ae4-e7f6-4200-983a-627cd5f9bd1b/key-value-store/3.0.5/foundationdb-clients-3.0.5-1.el7.x86_64.rpm https://foundationdb.com/downloads/token/6266c756-3c66-4913-8dfd-d234bdf66e79/key-value-store/3.0.5/foundationdb-server-3.0.5-1.el7.x86_64.rpm
sudo /usr/lib/foundationdb/make_public.py
echo '<?xml version="1.0" encoding="utf-8"?> <service> <short>fdb</short> <description>foundationdb server</description> <port protocol="tcp" port="4500-4600"/></service>' > /etc/firewalld/services/fdb.xml
restorecon /etc/firewalld/services/fdb.xml
chmod 640 /etc/firewalld/services/fdb.xml
firewall-cmd --reload
firewall-cmd --permanent --add-service=fdb
echo "Drtu0T4S:SdzTe7B4@109.74.5.254:4500,109.74.5.151:4500" > /etc/foundationdb/fdb.cluster
fdbcli --exec "configure double ssd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment