8000 GitHub - infinivision/citus-operator: citus operator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

infinivision/citus-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< 8000 svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Citus-Operator

Run postgresql cluster on localhost

$ sudo mkdir -p /opt/data/haproxy /opt/data/prometheus-data /opt/data/stolon-data0 /opt/data/stolon-data1 /opt/data/stolon-data2
$ sudo cp haproxy.cfg pgpass /opt/data/haproxy
$ sudo cp *.yml cluster_spec.json *_env.txt /opt/data
$ cd /opt/data
$ sudo docker-compose up -d
# initialize cluster spec in etcd
$ /usr/local/bin/stolonctl --cluster-name stolon-cluster --store-backend=etcdv3 init -f /opt/data/cluster_spec.json

# connect to master node
$ psql --host=127.0.0.1 --port=5440 --username=postgres
postgres=# SELECT inet_server_addr(), inet_server_port(), pg_is_in_recovery(), inet_client_port();

# connect to one of standby nodes
$ psql --host=127.0.0.1 --port=5441 --username=postgres
postgres=# SELECT inet_server_addr(), inet_server_port(), pg_is_in_recovery(), inet_client_port();

Reference

About

citus operator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0