Skip to content

Instantly share code, notes, and snippets.

@begriffs
Last active April 8, 2016 00:01
Show Gist options
  • Select an option

  • Save begriffs/d6422d142176a1e7e02b65747619989f to your computer and use it in GitHub Desktop.

Select an option

Save begriffs/d6422d142176a1e7e02b65747619989f to your computer and use it in GitHub Desktop.
Using the RPM packages to simulate the try-citus development machine style
sudo yum install -y https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-ami201503-95-9.5-2.noarch.rpm

sudo yum install -y citus_95

mkdir data{,.9700}
/usr/pgsql-9.5/bin/initdb data
/usr/pgsql-9.5/bin/initdb data.9700

echo 'localhost 9700' >> data/pg_worker_list.conf

vi data/postgresql.conf
# uncomment shared_preload_libraries, set to 'citus'

# to allow your own user to run a postgres server
sudo usermod -G postgres <your-username>

/usr/pgsql-9.5/bin/pg_ctl -D data start
/usr/pgsql-9.5/bin/pg_ctl -D data.9700 -o "-p 9700" start

createdb citus_test

Now in psql -d citus_test:

create extension citus;
select * from master_get_active_worker_nodes();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment