This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
role=citus | |
database=citus | |
port=5432 | |
workers=2 | |
timeout=30 | |
# start cluster with 2 workers | |
[ -f docker-compose.yml ] || wget https://raw.githubusercontent.com/citusdata/docker/master/docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user: | |
CREATE ROLE citus WITH NOSUPERUSER LOGIN IN ROLE pg_monitor; | |
-- database: | |
ALTER DATABASE citus SET citus.shard_replication_factor = 1; | |
ALTER DATABASE citus OWNER TO citus; | |
-- extensions: | |
CREATE EXTENSION IF NOT EXISTS "hll"; | |
CREATE EXTENSION IF NOT EXISTS "topn"; |
OlderNewer