mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
make README copy and pasteable
This commit is contained in:
@@ -6,8 +6,8 @@ To get started, do the following from different terminals:
|
||||
|
||||
```
|
||||
> etcd --data-dir=data/etcd
|
||||
> run.py postgresql0.yml
|
||||
> run.py postgresql1.yml
|
||||
> ./run.py postgres0.yml
|
||||
> ./run.py postgres1.yml
|
||||
```
|
||||
|
||||
From there, you will see a high-availability cluster start up. Test
|
||||
@@ -22,6 +22,10 @@ To get a haproxy load balancing between these two hosts, run:
|
||||
> sh haproxy_status.sh 127.0.0.1 5433 15433
|
||||
```
|
||||
|
||||
```
|
||||
> psql --host 127.0.0.1 --port 5000 postgres
|
||||
```
|
||||
|
||||
# Requirements on a Mac
|
||||
|
||||
Run the following on a Mac to install requirements:
|
||||
|
||||
Reference in New Issue
Block a user